Added highlight: featured addons for normal players, and
non-approved items in artist mode. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8711 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -134,6 +134,14 @@ void AddonsScreen::loadList()
|
||||
addon->getDesigner().c_str(),
|
||||
addon->getDateAsString().c_str());
|
||||
w_list->addItem(addon->getId(), s.c_str(), icon);
|
||||
|
||||
// Highlight the entry if it's features for normal users,
|
||||
// or if it's not approved in artists debug mode.
|
||||
if( (!UserConfigParams::m_artist_debug_mode &&
|
||||
addon->testStatus(Addon::AS_FEATURED)) ||
|
||||
(UserConfigParams::m_artist_debug_mode &&
|
||||
!addon->testStatus(Addon::AS_APPROVED)))
|
||||
w_list->markItemRed(addon->getId(), true);
|
||||
}
|
||||
|
||||
getWidget<GUIEngine::RibbonWidget>("category")->setActivated();
|
||||
|
||||
Reference in New Issue
Block a user