From 536fba3a842f2d4a419401723e987dead51567dd Mon Sep 17 00:00:00 2001 From: Tametomo Date: Tue, 5 May 2009 09:11:14 -0600 Subject: Start out all progress bars at 0, so that they progress upwards. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tametomo Signed-off-by: Bjørn Lindeijer --- src/gui/inventorywindow.cpp | 4 ++-- src/gui/ministatus.cpp | 6 +++--- src/gui/status.cpp | 8 ++++---- src/gui/statuswindow.cpp | 2 +- src/gui/storagewindow.cpp | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index efa5bc2e..1f03c67ee 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -92,8 +92,8 @@ InventoryWindow::InventoryWindow(int invSize): mSlotsLabel = new Label(_("Slots:")); mWeightLabel = new Label(_("Weight:")); - mSlotsBar = new ProgressBar(1.0f, 100, 20, gcn::Color(225, 200, 25)); - mWeightBar = new ProgressBar(1.0f, 100, 20, gcn::Color(0, 0, 255)); + mSlotsBar = new ProgressBar(0.0f, 100, 20, gcn::Color(225, 200, 25)); + mWeightBar = new ProgressBar(0.0f, 100, 20, gcn::Color(0, 0, 255)); place(0, 0, mWeightLabel).setPadding(3); place(1, 0, mWeightBar, 3); diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp index b4bc29e9..65d2391d 100644 --- a/src/gui/ministatus.cpp +++ b/src/gui/ministatus.cpp @@ -36,10 +36,10 @@ MiniStatusWindow::MiniStatusWindow(): Popup("MiniStatus") { - mHpBar = new ProgressBar(1.0f, 100, 20, gcn::Color(0, 171, 34)); + mHpBar = new ProgressBar(0.0f, 100, 20, gcn::Color(0, 171, 34)); #ifdef EATHENA_SUPPORT - mMpBar = new ProgressBar(1.0f, 100, 20, gcn::Color(26, 102, 230)); - mXpBar = new ProgressBar(1.0f, 100, 20, gcn::Color(143, 192, 211)); + mMpBar = new ProgressBar(0.0f, 100, 20, gcn::Color(26, 102, 230)); + mXpBar = new ProgressBar(0.0f, 100, 20, gcn::Color(143, 192, 211)); #endif mHpBar->setPosition(0, 3); diff --git a/src/gui/status.cpp b/src/gui/status.cpp index c9681fa9..7fc42fdb 100644 --- a/src/gui/status.cpp +++ b/src/gui/status.cpp @@ -58,16 +58,16 @@ StatusWindow::StatusWindow(LocalPlayer *player): Units::formatCurrency(mCurrency).c_str())); mHpLabel = new Label(_("HP:")); - mHpBar = new ProgressBar(1.0f, 80, 15, gcn::Color(0, 171, 34)); + mHpBar = new ProgressBar(0.0f, 80, 15, gcn::Color(0, 171, 34)); mXpLabel = new Label(_("Exp:")); - mXpBar = new ProgressBar(1.0f, 80, 15, gcn::Color(143, 192, 211)); + mXpBar = new ProgressBar(0.0f, 80, 15, gcn::Color(143, 192, 211)); mMpLabel = new Label(_("MP:")); - mMpBar = new ProgressBar(1.0f, 80, 15, gcn::Color(26, 102, 230)); + mMpBar = new ProgressBar(0.0f, 80, 15, gcn::Color(26, 102, 230)); mJobLabel = new Label(_("Job:")); - mJobBar = new ProgressBar(1.0f, 80, 15, gcn::Color(220, 135, 203)); + mJobBar = new ProgressBar(0.0f, 80, 15, gcn::Color(220, 135, 203)); // ---------------------- // Stats Part diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp index e76c19a7..edbf387b 100644 --- a/src/gui/statuswindow.cpp +++ b/src/gui/statuswindow.cpp @@ -50,7 +50,7 @@ StatusWindow::StatusWindow(LocalPlayer *player): mMoneyLabel = new Label("Money:"); mHpLabel = new Label("HP:"); - mHpBar = new ProgressBar(1.0f, 80, 15, gcn::Color(0, 171, 34)); + mHpBar = new ProgressBar(0.0f, 80, 15, gcn::Color(0, 171, 34)); mHpValueLabel = new Label; int y = 3; diff --git a/src/gui/storagewindow.cpp b/src/gui/storagewindow.cpp index 6502399a..593a49a3 100644 --- a/src/gui/storagewindow.cpp +++ b/src/gui/storagewindow.cpp @@ -77,7 +77,7 @@ StorageWindow::StorageWindow(int invSize): mSlotsLabel = new Label(_("Slots: ")); - mSlotsBar = new ProgressBar(1.0f, 100, 20, gcn::Color(225, 200, 25)); + mSlotsBar = new ProgressBar(0.0f, 100, 20, gcn::Color(225, 200, 25)); mSlotsBar->setText(strprintf("%d/%d", mUsedSlots, mMaxSlots)); mSlotsBar->setProgress((float) mUsedSlots / mMaxSlots); -- cgit v1.2.3-70-g09d2