From 7a7f5905cf19f6a773dcf9bab762b54c16e325f2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 Oct 2012 17:00:40 +0300 Subject: Add support for padding in progress bars. Also fixed progress bars size. New progress bar attributes: fillPadding - padding for will rectangle padding - normal padding for bar --- src/gui/inventorywindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/inventorywindow.cpp') diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index ffa1f29d8..fd85b0d85 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -106,7 +106,7 @@ InventoryWindow::InventoryWindow(Inventory *const inventory): mRetrieveButton(nullptr), mCloseButton(nullptr), mWeightBar(nullptr), - mSlotsBar(new ProgressBar(0.0f, 100, 20, Theme::PROG_INVY_SLOTS)), + mSlotsBar(new ProgressBar(0.0f, 100, 0, Theme::PROG_INVY_SLOTS)), mFilter(nullptr), mSortModel(new SortListModel()), mSortDropDown(new DropDown(mSortModel, this, "sort")), @@ -183,7 +183,7 @@ InventoryWindow::InventoryWindow(Inventory *const inventory): mOutfitButton = new Button(_("Outfits"), "outfit", this); mShopButton = new Button(_("Shop"), "shop", this); mEquipmentButton = new Button(_("Equipment"), "equipment", this); - mWeightBar = new ProgressBar(0.0f, 100, 20, Theme::PROG_WEIGHT); + mWeightBar = new ProgressBar(0.0f, 100, 0, Theme::PROG_WEIGHT); place(0, 0, mWeightBar, 4); mSlotsBarCell = &place(4, 0, mSlotsBar, 5); -- cgit v1.2.3-60-g2f50