diff options
Diffstat (limited to 'src/gui/widgets/itemshortcutcontainer.cpp')
-rw-r--r-- | src/gui/widgets/itemshortcutcontainer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp index 9a53b5b17..041a9e8dc 100644 --- a/src/gui/widgets/itemshortcutcontainer.cpp +++ b/src/gui/widgets/itemshortcutcontainer.cpp @@ -92,6 +92,14 @@ ItemShortcutContainer::~ItemShortcutContainer() mSpellPopup = nullptr; } +void ItemShortcutContainer::setWidget2(const Widget2 *const widget) +{ + Widget2::setWidget2(widget); + mEquipedColor = getThemeColor(Theme::ITEM_EQUIPPED); + mUnEquipedColor = getThemeColor(Theme::ITEM_NOT_EQUIPPED); + mForegroundColor = getThemeColor(Theme::TEXT); +} + void ItemShortcutContainer::draw(gcn::Graphics *graphics) { const ItemShortcut *const selShortcut = itemShortcut[mNumber]; |