summaryrefslogtreecommitdiff
path: root/src/gui/windows/inventorywindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-22 15:23:28 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-22 15:23:28 +0300
commitd7131239c18eafecef2e8b8fa6898ba9962ff0e8 (patch)
treef54629cc0e2616281957e24e18f27f9d33ceaa4b /src/gui/windows/inventorywindow.cpp
parent0dd6ab2bfdee4527ca0960b4e7a64e257bb93fa3 (diff)
downloadmv-d7131239c18eafecef2e8b8fa6898ba9962ff0e8.tar.gz
mv-d7131239c18eafecef2e8b8fa6898ba9962ff0e8.tar.bz2
mv-d7131239c18eafecef2e8b8fa6898ba9962ff0e8.tar.xz
mv-d7131239c18eafecef2e8b8fa6898ba9962ff0e8.zip
allow use different theme file for different progress bars.
Diffstat (limited to 'src/gui/windows/inventorywindow.cpp')
-rw-r--r--src/gui/windows/inventorywindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp
index bdc0b342e..b477e2b5a 100644
--- a/src/gui/windows/inventorywindow.cpp
+++ b/src/gui/windows/inventorywindow.cpp
@@ -117,7 +117,8 @@ InventoryWindow::InventoryWindow(Inventory *const inventory):
mRetrieveButton(nullptr),
mInvCloseButton(nullptr),
mWeightBar(nullptr),
- mSlotsBar(new ProgressBar(this, 0.0F, 100, 0, Theme::PROG_INVY_SLOTS)),
+ mSlotsBar(new ProgressBar(this, 0.0F, 100, 0, Theme::PROG_INVY_SLOTS,
+ "slotsprogressbar.xml")),
mFilter(nullptr),
mSortModel(new SortListModelInv),
mSortDropDown(new DropDown(this, mSortModel, false, false, this, "sort")),
@@ -225,7 +226,8 @@ InventoryWindow::InventoryWindow(Inventory *const inventory):
mShopButton = new Button(this, _("Shop"), "shop", this);
// TRANSLATORS: inventory button
mEquipmentButton = new Button(this, _("Equipment"), "equipment", this);
- mWeightBar = new ProgressBar(this, 0.0F, 100, 0, Theme::PROG_WEIGHT);
+ mWeightBar = new ProgressBar(this, 0.0F, 100, 0, Theme::PROG_WEIGHT,
+ "weightprogressbar.xml");
mWeightBar->setColor(Theme::getThemeColor(Theme::WEIGHT_BAR),
Theme::getThemeColor(Theme::WEIGHT_BAR_OUTLINE));