diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-07-23 17:25:54 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-07-23 17:25:54 +0000 |
commit | 822a523b5e8d25ca03071549248f1178b397d22b (patch) | |
tree | fa82242861225c1dcf995e02e6e6c2b7b45bdd2b /src/gui | |
parent | 58242ee776a52bd7aed40834897b10d0d356f4e9 (diff) | |
download | mana-client-822a523b5e8d25ca03071549248f1178b397d22b.tar.gz mana-client-822a523b5e8d25ca03071549248f1178b397d22b.tar.bz2 mana-client-822a523b5e8d25ca03071549248f1178b397d22b.tar.xz mana-client-822a523b5e8d25ca03071549248f1178b397d22b.zip |
New login wallpaper by Momotaro and shortened update window a bit to not
overlap the logo.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/progressbar.cpp | 7 | ||||
-rw-r--r-- | src/gui/updatewindow.cpp | 14 |
2 files changed, 13 insertions, 8 deletions
diff --git a/src/gui/progressbar.cpp b/src/gui/progressbar.cpp index a12c6510..e9e3f1b9 100644 --- a/src/gui/progressbar.cpp +++ b/src/gui/progressbar.cpp @@ -28,8 +28,11 @@ ImageRect ProgressBar::mBorder; int ProgressBar::mInstances = 0; -ProgressBar::ProgressBar(float progress, int x, int y, unsigned int width, unsigned int height, - unsigned char red, unsigned char green, unsigned char blue): +ProgressBar::ProgressBar(float progress, int x, int y, + unsigned int width, unsigned int height, + unsigned char red, + unsigned char green, + unsigned char blue): gcn::Widget(), red(red), green(green), blue(blue), redToGo(red), greenToGo(green), blueToGo(blue) diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index d29474fe..ebe9013f 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -50,17 +50,12 @@ UpdaterWindow::UpdaterWindow(): mCurlError = new char[CURL_ERROR_SIZE]; mCurlError[0] = 0; - int h = 300; + int h = 240; int w = 320; setContentSize(w, h); mBrowserBox = new BrowserBox(); mBrowserBox->setOpaque(false); - mScrollArea = new ScrollArea(mBrowserBox); - mScrollArea->setDimension(gcn::Rectangle(5, 5, 310, 190)); - mLabel = new gcn::Label("Connecting..."); - mLabel->setPosition(5,205); - mProgressBar = new ProgressBar(0.0, 5, 225, w - 10, 40, 37, 70, 23); mCancelButton = new Button("Cancel"); mCancelButton->setPosition(5, h - 5 - mCancelButton->getHeight()); mCancelButton->setEventId("cancel"); @@ -72,6 +67,13 @@ UpdaterWindow::UpdaterWindow(): mPlayButton->setEventId("play"); mPlayButton->setEnabled(false); mPlayButton->addActionListener(this); + mProgressBar = new ProgressBar(0.0, 5, mCancelButton->getY() - 20 - 5, + w - 10, 20, 37, 70, 23); + mLabel = new gcn::Label("Connecting..."); + mLabel->setPosition(5, mProgressBar->getY() - mLabel->getHeight() - 5); + mScrollArea = new ScrollArea(mBrowserBox); + mScrollArea->setDimension(gcn::Rectangle(5, 5, 310, + mLabel->getY() - 12)); add(mScrollArea); add(mLabel); |