Sorry, I screwed up. Fixed previous commit

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5284 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2010-04-26 23:20:11 +00:00
parent a644fb4dac
commit 0a67a1ee20
2 changed files with 9 additions and 1 deletions

View File

@@ -117,6 +117,9 @@ namespace GUIEngine
friend class EventHandler;
friend class Screen;
friend class Skin;
friend class RibbonWidget;
friend class SpinnerWidget;
friend class DynamicRibbonWidget;
/** When true, this widget shall use a bigger and more colourful font */
bool m_title_font;
@@ -285,6 +288,11 @@ namespace GUIEngine
m_badges = 0;
}
int getBadges() const
{
return m_badges;
}
/** Set to false if widget is something that should not receieve focus */
bool m_focusable;

View File

@@ -707,7 +707,7 @@ void DynamicRibbonWidget::updateItemDisplay()
icon->m_properties[PROP_ID] = m_items[icon_id].m_code_name;
icon->setLabel(m_items[icon_id].m_user_name);
icon->m_text = m_items[icon_id].m_user_name;
icon->m_badges = m_items[icon_id].m_badges;
icon->m_badges = m_items[icon_id].getBadges();
//std::wcout << L"Setting widget text '" << icon->m_text.c_str() << L"'\n";