diff --git a/data/gui/addons_loading.stkgui b/data/gui/addons_loading.stkgui
index d7f28c969..53fd6e1b8 100644
--- a/data/gui/addons_loading.stkgui
+++ b/data/gui/addons_loading.stkgui
@@ -13,8 +13,7 @@
-
-
+
diff --git a/src/addons/addon.hpp b/src/addons/addon.hpp
index 51f919b49..ffa0a8a18 100644
--- a/src/addons/addon.hpp
+++ b/src/addons/addon.hpp
@@ -34,8 +34,8 @@ public:
AS_ALPHA = 0x0002,
AS_BETA = 0x0004,
AS_RC = 0x0008,
- AS_FAN = 0x0010,
- AS_HQ = 0x0020,
+ //AS_FAN = 0x0010, currently not supported
+ //AS_HQ = 0x0020, currently not supported
AS_DFSG = 0x0040,
AS_FEATURED = 0x0080,
AS_LATEST = 0X0100,
diff --git a/src/states_screens/dialogs/addons_loading.cpp b/src/states_screens/dialogs/addons_loading.cpp
index 7fd446dd3..f84cacbdf 100644
--- a/src/states_screens/dialogs/addons_loading.cpp
+++ b/src/states_screens/dialogs/addons_loading.cpp
@@ -76,7 +76,8 @@ void AddonsLoading::beforeAddingWidgets()
m_back_button = getWidget ("cancel" );
getWidget("name")->setText(m_addon.getName().c_str(), false);
- getWidget("description")->setText(m_addon.getDescription().c_str());
+ getWidget("description")
+ ->setText(m_addon.getDescription().c_str());
core::stringw revision = _("Version: %d", m_addon.getRevision());
getWidget("revision")->setText(revision, false);
@@ -85,44 +86,43 @@ void AddonsLoading::beforeAddingWidgets()
std::vector l;
if(UserConfigParams::m_artist_debug_mode)
{
+ // In non artist-debug-mode only approved items will be shown anyway,
+ // but give even tester an idea about the status:
+ if(m_addon.testStatus(Addon::AS_APPROVED))
+ l.push_back("approved");
+
+ // Note that an approved addon should never have alpha, beta, or
+ // RC status - and only one of those should be used
if(m_addon.testStatus(Addon::AS_ALPHA))
l.push_back("alpha");
- if(m_addon.testStatus(Addon::AS_BETA))
+ else if(m_addon.testStatus(Addon::AS_BETA))
l.push_back("beta");
- if(m_addon.testStatus(Addon::AS_RC))
+ else if(m_addon.testStatus(Addon::AS_RC))
l.push_back("RC");
+
if(m_addon.testStatus(Addon::AS_BAD_DIM))
l.push_back("bad-texture");
if(!m_addon.testStatus(Addon::AS_DFSG))
l.push_back("non-DFSG");
}
- if(m_addon.testStatus(Addon::AS_FAN))
- l.push_back("fan-made");
- else
- l.push_back("official");
if(m_addon.testStatus(Addon::AS_FEATURED))
- l.push_back("featured");
+ l.push_back(_("featured"));
- GUIEngine::LabelWidget *flags1 = getWidget("flags1");
- GUIEngine::LabelWidget *flags2 = getWidget("flags2");
- core::stringw s1(""), s2("");
- for(unsigned int i=0; i("flags");
+ if(flags)
{
- if(i%2==0)
+ core::stringw s1("");
+ for(unsigned int i=0; isetText(s1, false);
}
- if(flags1) flags1->setText(s1, false);
- if(flags2) flags2->setText(s2, false);
// Display the size
// ================