summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemcontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/itemcontainer.cpp')
-rw-r--r--src/gui/widgets/itemcontainer.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp
index 10a1b7b8d..e815b1541 100644
--- a/src/gui/widgets/itemcontainer.cpp
+++ b/src/gui/widgets/itemcontainer.cpp
@@ -164,35 +164,35 @@ ItemContainer::ItemContainer(const Widget2 *const widget,
gcn::MouseListener(),
gcn::WidgetListener(),
mInventory(inventory),
+ mSelImg(Theme::getImageFromThemeXml("item_selection.xml", "")),
+ mName(),
+ mItemPopup(new ItemPopup),
+ mShowMatrix(nullptr),
+ mSkin(Theme::instance() ? Theme::instance()->load(
+ "itemcontainer.xml", "") : nullptr),
+ mEquipedColor(getThemeColor(Theme::ITEM_EQUIPPED)),
+ mEquipedColor2(getThemeColor(Theme::ITEM_EQUIPPED_OUTLINE)),
+ mUnEquipedColor(getThemeColor(Theme::ITEM_NOT_EQUIPPED)),
+ mUnEquipedColor2(getThemeColor(Theme::ITEM_NOT_EQUIPPED_OUTLINE)),
+ mSelectionListeners(),
mGridColumns(1),
mGridRows(1),
- mSelImg(Theme::getImageFromThemeXml("item_selection.xml", "")),
mSelectedIndex(-1),
mHighlightedIndex(-1),
mLastUsedSlot(-1),
- mSelectionStatus(SEL_NONE),
- mForceQuantity(forceQuantity),
- mSwapItems(false),
- mDescItems(false),
mTag(0),
mSortType(0),
- mName(),
- mItemPopup(new ItemPopup),
- mShowMatrix(nullptr),
mClicks(1),
- mSkin(Theme::instance() ? Theme::instance()->load(
- "itemcontainer.xml", "") : nullptr),
mBoxWidth(mSkin ? mSkin->getOption("boxWidth", 35) : 35),
mBoxHeight(mSkin ? mSkin->getOption("boxHeight", 43) : 43),
mEquippedTextPadding(mSkin ? mSkin->getOption(
"equippedTextPadding", 29) : 29),
mPaddingItemX(mSkin ? mSkin->getOption("paddingItemX", 0) : 0),
mPaddingItemY(mSkin ? mSkin->getOption("paddingItemY", 0) : 0),
- mSelectionListeners(),
- mEquipedColor(getThemeColor(Theme::ITEM_EQUIPPED)),
- mEquipedColor2(getThemeColor(Theme::ITEM_EQUIPPED_OUTLINE)),
- mUnEquipedColor(getThemeColor(Theme::ITEM_NOT_EQUIPPED)),
- mUnEquipedColor2(getThemeColor(Theme::ITEM_NOT_EQUIPPED_OUTLINE))
+ mSelectionStatus(SEL_NONE),
+ mForceQuantity(forceQuantity),
+ mSwapItems(false),
+ mDescItems(false)
{
setFocusable(true);
addKeyListener(this);