diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llprogressview.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llprogressview.cpp')
-rw-r--r-- | linden/indra/newview/llprogressview.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/linden/indra/newview/llprogressview.cpp b/linden/indra/newview/llprogressview.cpp index d10cc8f..123c583 100644 --- a/linden/indra/newview/llprogressview.cpp +++ b/linden/indra/newview/llprogressview.cpp | |||
@@ -59,8 +59,8 @@ S32 gStartImageWidth = 1; | |||
59 | S32 gStartImageHeight = 1; | 59 | S32 gStartImageHeight = 1; |
60 | const F32 FADE_IN_TIME = 1.f; | 60 | const F32 FADE_IN_TIME = 1.f; |
61 | 61 | ||
62 | const LLString ANIMATION_FILENAME = "Login Sequence "; | 62 | const std::string ANIMATION_FILENAME = "Login Sequence "; |
63 | const LLString ANIMATION_SUFFIX = ".jpg"; | 63 | const std::string ANIMATION_SUFFIX = ".jpg"; |
64 | const F32 TOTAL_LOGIN_TIME = 10.f; // seconds, wild guess at time from GL context to actual world view | 64 | const F32 TOTAL_LOGIN_TIME = 10.f; // seconds, wild guess at time from GL context to actual world view |
65 | S32 gLastStartAnimationFrame = 0; // human-style indexing, first image = 1 | 65 | S32 gLastStartAnimationFrame = 0; // human-style indexing, first image = 1 |
66 | const S32 ANIMATION_FRAMES = 1; //13; | 66 | const S32 ANIMATION_FRAMES = 1; //13; |
@@ -78,12 +78,11 @@ LLProgressView::LLProgressView(const std::string& name, const LLRect &rect) | |||
78 | getRect().getWidth() - CANCEL_BTN_OFFSET - CANCEL_BTN_WIDTH, CANCEL_BTN_OFFSET, | 78 | getRect().getWidth() - CANCEL_BTN_OFFSET - CANCEL_BTN_WIDTH, CANCEL_BTN_OFFSET, |
79 | CANCEL_BTN_WIDTH, BTN_HEIGHT ); | 79 | CANCEL_BTN_WIDTH, BTN_HEIGHT ); |
80 | 80 | ||
81 | mCancelBtn = new LLButton( | 81 | mCancelBtn = new LLButton(std::string("Quit"), |
82 | "Quit", | 82 | r, |
83 | r, | 83 | std::string(""), |
84 | "", | 84 | LLProgressView::onCancelButtonClicked, |
85 | LLProgressView::onCancelButtonClicked, | 85 | NULL ); |
86 | NULL ); | ||
87 | mCancelBtn->setFollows( FOLLOWS_RIGHT | FOLLOWS_BOTTOM ); | 86 | mCancelBtn->setFollows( FOLLOWS_RIGHT | FOLLOWS_BOTTOM ); |
88 | addChild( mCancelBtn ); | 87 | addChild( mCancelBtn ); |
89 | mFadeTimer.stop(); | 88 | mFadeTimer.stop(); |
@@ -264,7 +263,7 @@ void LLProgressView::draw() | |||
264 | F32 alpha = 0.5f + 0.5f*0.5f*(1.f + (F32)sin(3.f*timer.getElapsedTimeF32())); | 263 | F32 alpha = 0.5f + 0.5f*0.5f*(1.f + (F32)sin(3.f*timer.getElapsedTimeF32())); |
265 | // background_color.mV[3] = background_color.mV[3]*alpha; | 264 | // background_color.mV[3] = background_color.mV[3]*alpha; |
266 | 265 | ||
267 | LLString top_line = LLAppViewer::instance()->getSecondLifeTitle(); | 266 | std::string top_line = LLAppViewer::instance()->getSecondLifeTitle(); |
268 | 267 | ||
269 | S32 bar_bottom = line_two_y - 30; | 268 | S32 bar_bottom = line_two_y - 30; |
270 | S32 bar_height = 18; | 269 | S32 bar_height = 18; |
@@ -380,7 +379,7 @@ void LLProgressView::draw() | |||
380 | LLView::draw(); | 379 | LLView::draw(); |
381 | } | 380 | } |
382 | 381 | ||
383 | void LLProgressView::setText(const LLString& text) | 382 | void LLProgressView::setText(const std::string& text) |
384 | { | 383 | { |
385 | mText = text; | 384 | mText = text; |
386 | } | 385 | } |
@@ -390,12 +389,12 @@ void LLProgressView::setPercent(const F32 percent) | |||
390 | mPercentDone = llclamp(percent, 0.f, 100.f); | 389 | mPercentDone = llclamp(percent, 0.f, 100.f); |
391 | } | 390 | } |
392 | 391 | ||
393 | void LLProgressView::setMessage(const LLString& msg) | 392 | void LLProgressView::setMessage(const std::string& msg) |
394 | { | 393 | { |
395 | mMessage = msg; | 394 | mMessage = msg; |
396 | } | 395 | } |
397 | 396 | ||
398 | void LLProgressView::setCancelButtonVisible(BOOL b, const LLString& label) | 397 | void LLProgressView::setCancelButtonVisible(BOOL b, const std::string& label) |
399 | { | 398 | { |
400 | mCancelBtn->setVisible( b ); | 399 | mCancelBtn->setVisible( b ); |
401 | mCancelBtn->setEnabled( b ); | 400 | mCancelBtn->setEnabled( b ); |