Widen login/teleport progress bar. Fixed toolbar/overlaybar appearing over login progressview. Updated progressview a bit. Added drawcontext alpha support to llprogressbar. Fixed issue with prim media control panel blocking mouseclicks on upper portion of on-prim media.
This commit is contained in:
@@ -73,19 +73,19 @@ LLProgressBar::~LLProgressBar()
|
|||||||
void LLProgressBar::draw()
|
void LLProgressBar::draw()
|
||||||
{
|
{
|
||||||
static LLTimer timer;
|
static LLTimer timer;
|
||||||
|
F32 alpha = getDrawContext().mAlpha;
|
||||||
LLUIImagePtr shadow_imagep = LLUI::getUIImage("rounded_square_soft.tga");
|
|
||||||
|
//LLUIImagePtr shadow_imagep = LLUI::getUIImage("rounded_square_soft.tga");
|
||||||
LLUIImagePtr bar_fg_imagep = LLUI::getUIImage("progressbar_fill.tga");
|
LLUIImagePtr bar_fg_imagep = LLUI::getUIImage("progressbar_fill.tga");
|
||||||
LLUIImagePtr bar_bg_imagep = LLUI::getUIImage("progressbar_track.tga");
|
LLUIImagePtr bar_bg_imagep = LLUI::getUIImage("progressbar_track.tga");
|
||||||
LLUIImagePtr bar_imagep = LLUI::getUIImage("rounded_square.tga");
|
//LLUIImagePtr bar_imagep = LLUI::getUIImage("rounded_square.tga");
|
||||||
LLColor4 background_color = LLUI::sColorsGroup->getColor("LoginProgressBarBgColor");
|
LLColor4 background_color = LLUI::sColorsGroup->getColor("LoginProgressBarBgColor");
|
||||||
|
|
||||||
bar_bg_imagep->draw(getLocalRect(),
|
bar_bg_imagep->draw(getLocalRect(), background_color % alpha);
|
||||||
background_color);
|
|
||||||
|
|
||||||
LLRect progress_rect = getLocalRect();
|
LLRect progress_rect = getLocalRect();
|
||||||
progress_rect.mRight = llround(getRect().getWidth() * (mPercentDone / 100.f));
|
progress_rect.mRight = llround(getRect().getWidth() * (mPercentDone / 100.f));
|
||||||
bar_fg_imagep->draw(progress_rect);
|
bar_fg_imagep->draw(progress_rect, LLColor4::white % alpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LLProgressBar::setPercent(const F32 percent)
|
void LLProgressBar::setPercent(const F32 percent)
|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
|
|
||||||
#include "llagent.h"
|
#include "llagent.h"
|
||||||
#include "llbutton.h"
|
#include "llbutton.h"
|
||||||
|
#include "llcallbacklist.h"
|
||||||
#include "llfocusmgr.h"
|
#include "llfocusmgr.h"
|
||||||
#include "llprogressbar.h"
|
#include "llprogressbar.h"
|
||||||
#include "llstartup.h"
|
#include "llstartup.h"
|
||||||
@@ -55,28 +56,28 @@
|
|||||||
#include "llappviewer.h"
|
#include "llappviewer.h"
|
||||||
#include "llweb.h"
|
#include "llweb.h"
|
||||||
#include "lluictrlfactory.h"
|
#include "lluictrlfactory.h"
|
||||||
|
#include "llpanellogin.h"
|
||||||
|
|
||||||
LLProgressView* LLProgressView::sInstance = NULL;
|
LLProgressView* LLProgressView::sInstance = NULL;
|
||||||
|
|
||||||
S32 gStartImageWidth = 1;
|
S32 gStartImageWidth = 1;
|
||||||
S32 gStartImageHeight = 1;
|
S32 gStartImageHeight = 1;
|
||||||
const F32 FADE_IN_TIME = 1.f;
|
const F32 FADE_TO_WORLD_TIME = 1.0f;
|
||||||
|
|
||||||
const std::string ANIMATION_FILENAME = "Login Sequence ";
|
|
||||||
const std::string ANIMATION_SUFFIX = ".jpg";
|
|
||||||
const F32 TOTAL_LOGIN_TIME = 10.f; // seconds, wild guess at time from GL context to actual world view
|
|
||||||
S32 gLastStartAnimationFrame = 0; // human-style indexing, first image = 1
|
|
||||||
const S32 ANIMATION_FRAMES = 1; //13;
|
|
||||||
|
|
||||||
// XUI:translate
|
// XUI:translate
|
||||||
LLProgressView::LLProgressView(const std::string& name, const LLRect &rect)
|
LLProgressView::LLProgressView(const std::string& name, const LLRect &rect)
|
||||||
: LLPanel(name, rect, FALSE),
|
: LLPanel(name, rect, FALSE),
|
||||||
mPercentDone( 0.f ),
|
mPercentDone( 0.f ),
|
||||||
mURLInMessage(false),
|
mURLInMessage(false),
|
||||||
mMouseDownInActiveArea( false )
|
mMouseDownInActiveArea( false ),
|
||||||
|
mFadeToWorldTimer(),
|
||||||
|
mFadeFromLoginTimer(),
|
||||||
|
mStartupComplete(false)
|
||||||
{
|
{
|
||||||
LLUICtrlFactory::getInstance()->buildPanel(this, "panel_progress.xml");
|
LLUICtrlFactory::getInstance()->buildPanel(this, "panel_progress.xml");
|
||||||
reshape(rect.getWidth(), rect.getHeight());
|
reshape(rect.getWidth(), rect.getHeight());
|
||||||
|
mFadeToWorldTimer.stop();
|
||||||
|
mFadeFromLoginTimer.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL LLProgressView::postBuild()
|
BOOL LLProgressView::postBuild()
|
||||||
@@ -85,12 +86,13 @@ BOOL LLProgressView::postBuild()
|
|||||||
|
|
||||||
mCancelBtn = getChild<LLButton>("cancel_btn");
|
mCancelBtn = getChild<LLButton>("cancel_btn");
|
||||||
mCancelBtn->setClickedCallback( boost::bind(&LLProgressView::onCancelButtonClicked) );
|
mCancelBtn->setClickedCallback( boost::bind(&LLProgressView::onCancelButtonClicked) );
|
||||||
mFadeTimer.stop();
|
|
||||||
|
|
||||||
getChild<LLTextBox>("title_text")->setText(LLStringExplicit(LLAppViewer::instance()->getSecondLifeTitle()));
|
getChild<LLTextBox>("title_text")->setText(LLStringExplicit(LLAppViewer::instance()->getSecondLifeTitle()));
|
||||||
|
|
||||||
getChild<LLTextBox>("message_text")->setClickedCallback(boost::bind(&LLProgressView::onClickMessage, this));
|
getChild<LLTextBox>("message_text")->setClickedCallback(boost::bind(&LLProgressView::onClickMessage, this));
|
||||||
|
|
||||||
|
// hidden initially, until we need it
|
||||||
|
setVisible(FALSE);
|
||||||
sInstance = this;
|
sInstance = this;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
@@ -98,6 +100,9 @@ BOOL LLProgressView::postBuild()
|
|||||||
|
|
||||||
LLProgressView::~LLProgressView()
|
LLProgressView::~LLProgressView()
|
||||||
{
|
{
|
||||||
|
// Just in case something went wrong, make sure we deregister our idle callback.
|
||||||
|
gIdleCallbacks.deleteFunction(onIdle, this);
|
||||||
|
|
||||||
gFocusMgr.releaseFocusIfNeeded( this );
|
gFocusMgr.releaseFocusIfNeeded( this );
|
||||||
|
|
||||||
sInstance = NULL;
|
sInstance = NULL;
|
||||||
@@ -123,34 +128,44 @@ BOOL LLProgressView::handleKeyHere(KEY key, MASK mask)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LLProgressView::revealIntroPanel()
|
||||||
|
{
|
||||||
|
getParent()->sendChildToFront(this);
|
||||||
|
mFadeFromLoginTimer.start();
|
||||||
|
gIdleCallbacks.addFunction(onIdle, this);
|
||||||
|
}
|
||||||
|
void LLProgressView::setStartupComplete()
|
||||||
|
{
|
||||||
|
mStartupComplete = true;
|
||||||
|
|
||||||
|
mFadeFromLoginTimer.stop();
|
||||||
|
mFadeToWorldTimer.start();
|
||||||
|
}
|
||||||
void LLProgressView::setVisible(BOOL visible)
|
void LLProgressView::setVisible(BOOL visible)
|
||||||
{
|
{
|
||||||
|
// hiding progress view
|
||||||
if (getVisible() && !visible)
|
if (getVisible() && !visible)
|
||||||
{
|
{
|
||||||
mFadeTimer.start();
|
LLPanel::setVisible(FALSE);
|
||||||
}
|
}
|
||||||
else if (!getVisible() && visible)
|
// showing progress view
|
||||||
|
else if (visible && (!getVisible() || mFadeToWorldTimer.getStarted()))
|
||||||
{
|
{
|
||||||
gFocusMgr.setTopCtrl(this);
|
|
||||||
setFocus(TRUE);
|
setFocus(TRUE);
|
||||||
mFadeTimer.stop();
|
mFadeToWorldTimer.stop();
|
||||||
mProgressTimer.start();
|
LLPanel::setVisible(TRUE);
|
||||||
LLPanel::setVisible(visible);
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void LLProgressView::draw()
|
void LLProgressView::drawStartTexture(F32 alpha)
|
||||||
{
|
{
|
||||||
static LLTimer timer;
|
|
||||||
|
|
||||||
// Paint bitmap if we've got one
|
|
||||||
gGL.pushMatrix();
|
gGL.pushMatrix();
|
||||||
if (gStartTexture)
|
if (gStartTexture)
|
||||||
{
|
{
|
||||||
LLGLSUIDefault gls_ui;
|
LLGLSUIDefault gls_ui;
|
||||||
gGL.getTexUnit(0)->bind(gStartTexture);
|
gGL.getTexUnit(0)->bind(gStartTexture.get());
|
||||||
gGL.color4f(1.f, 1.f, 1.f, mFadeTimer.getStarted() ? clamp_rescale(mFadeTimer.getElapsedTimeF32(), 0.f, FADE_IN_TIME, 1.f, 0.f) : 1.f);
|
gGL.color4f(1.f, 1.f, 1.f, alpha);
|
||||||
F32 image_aspect = (F32)gStartImageWidth / (F32)gStartImageHeight;
|
F32 image_aspect = (F32)gStartImageWidth / (F32)gStartImageHeight;
|
||||||
S32 width = getRect().getWidth();
|
S32 width = getRect().getWidth();
|
||||||
S32 height = getRect().getHeight();
|
S32 height = getRect().getHeight();
|
||||||
@@ -176,20 +191,51 @@ void LLProgressView::draw()
|
|||||||
gl_rect_2d(getRect());
|
gl_rect_2d(getRect());
|
||||||
}
|
}
|
||||||
gGL.popMatrix();
|
gGL.popMatrix();
|
||||||
|
}
|
||||||
|
|
||||||
// Handle fade-in animation
|
|
||||||
if (mFadeTimer.getStarted())
|
void LLProgressView::draw()
|
||||||
|
{
|
||||||
|
static LLTimer timer;
|
||||||
|
|
||||||
|
if (mFadeFromLoginTimer.getStarted())
|
||||||
{
|
{
|
||||||
|
F32 alpha = clamp_rescale(mFadeFromLoginTimer.getElapsedTimeF32(), 0.f, FADE_TO_WORLD_TIME, 0.f, 1.f);
|
||||||
|
LLViewDrawContext context(alpha);
|
||||||
|
|
||||||
|
drawStartTexture(alpha);
|
||||||
|
|
||||||
LLPanel::draw();
|
LLPanel::draw();
|
||||||
if (mFadeTimer.getElapsedTimeF32() > FADE_IN_TIME)
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// handle fade out to world view when we're asked to
|
||||||
|
if (mFadeToWorldTimer.getStarted())
|
||||||
|
{
|
||||||
|
// draw fading panel
|
||||||
|
F32 alpha = clamp_rescale(mFadeToWorldTimer.getElapsedTimeF32(), 0.f, FADE_TO_WORLD_TIME, 1.f, 0.f);
|
||||||
|
LLViewDrawContext context(alpha);
|
||||||
|
|
||||||
|
drawStartTexture(alpha);
|
||||||
|
LLPanel::draw();
|
||||||
|
|
||||||
|
// faded out completely - remove panel and reveal world
|
||||||
|
if (mFadeToWorldTimer.getElapsedTimeF32() > FADE_TO_WORLD_TIME )
|
||||||
{
|
{
|
||||||
gFocusMgr.removeTopCtrlWithoutCallback(this);
|
mFadeToWorldTimer.stop();
|
||||||
LLPanel::setVisible(FALSE);
|
|
||||||
|
// Fade is complete, release focus
|
||||||
|
gFocusMgr.releaseFocusIfNeeded( this );
|
||||||
|
|
||||||
|
// turn off panel that hosts intro so we see the world
|
||||||
|
setVisible(FALSE);
|
||||||
|
|
||||||
gStartTexture = NULL;
|
gStartTexture = NULL;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
drawStartTexture(1.0f);
|
||||||
// draw children
|
// draw children
|
||||||
LLPanel::draw();
|
LLPanel::draw();
|
||||||
}
|
}
|
||||||
@@ -226,7 +272,10 @@ void LLProgressView::setCancelButtonVisible(BOOL b, const std::string& label)
|
|||||||
// static
|
// static
|
||||||
void LLProgressView::onCancelButtonClicked()
|
void LLProgressView::onCancelButtonClicked()
|
||||||
{
|
{
|
||||||
if (gAgent.getTeleportState() == LLAgent::TELEPORT_NONE)
|
// Quitting viewer here should happen only when "Quit" button is pressed while starting up.
|
||||||
|
// Check for startup state is used here instead of teleport state to avoid quitting when
|
||||||
|
// cancel is pressed while teleporting inside region (EXT-4911)
|
||||||
|
if (LLStartUp::getStartupState() < STATE_STARTED)
|
||||||
{
|
{
|
||||||
LLAppViewer::instance()->requestQuit();
|
LLAppViewer::instance()->requestQuit();
|
||||||
}
|
}
|
||||||
@@ -265,3 +314,21 @@ void LLProgressView::onClickMessage(void* data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// static
|
||||||
|
void LLProgressView::onIdle(void* user_data)
|
||||||
|
{
|
||||||
|
LLProgressView* self = (LLProgressView*) user_data;
|
||||||
|
|
||||||
|
// Close login panel on mFadeToWorldTimer expiration.
|
||||||
|
if (self->mFadeFromLoginTimer.getStarted() &&
|
||||||
|
self->mFadeFromLoginTimer.getElapsedTimeF32() > FADE_TO_WORLD_TIME)
|
||||||
|
{
|
||||||
|
self->mFadeFromLoginTimer.stop();
|
||||||
|
LLPanelLogin::close();
|
||||||
|
|
||||||
|
// Nothing to do anymore.
|
||||||
|
gIdleCallbacks.deleteFunction(onIdle, user_data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ public:
|
|||||||
BOOL postBuild();
|
BOOL postBuild();
|
||||||
|
|
||||||
/*virtual*/ void draw();
|
/*virtual*/ void draw();
|
||||||
|
void drawStartTexture(F32 alpha);
|
||||||
|
|
||||||
/*virtual*/ BOOL handleHover(S32 x, S32 y, MASK mask);
|
/*virtual*/ BOOL handleHover(S32 x, S32 y, MASK mask);
|
||||||
/*virtual*/ BOOL handleKeyHere(KEY key, MASK mask);
|
/*virtual*/ BOOL handleKeyHere(KEY key, MASK mask);
|
||||||
@@ -60,6 +61,10 @@ public:
|
|||||||
// Set it to NULL when you want to eliminate the message.
|
// Set it to NULL when you want to eliminate the message.
|
||||||
void setMessage(const std::string& msg);
|
void setMessage(const std::string& msg);
|
||||||
|
|
||||||
|
void revealIntroPanel();
|
||||||
|
|
||||||
|
void setStartupComplete();
|
||||||
|
|
||||||
void setCancelButtonVisible(BOOL b, const std::string& label);
|
void setCancelButtonVisible(BOOL b, const std::string& label);
|
||||||
|
|
||||||
static void onCancelButtonClicked();
|
static void onCancelButtonClicked();
|
||||||
@@ -70,13 +75,14 @@ protected:
|
|||||||
F32 mPercentDone;
|
F32 mPercentDone;
|
||||||
std::string mMessage;
|
std::string mMessage;
|
||||||
LLButton* mCancelBtn;
|
LLButton* mCancelBtn;
|
||||||
LLFrameTimer mFadeTimer;
|
LLFrameTimer mFadeToWorldTimer;
|
||||||
LLFrameTimer mProgressTimer;
|
LLFrameTimer mFadeFromLoginTimer;
|
||||||
LLRect mOutlineRect;
|
LLRect mOutlineRect;
|
||||||
bool mMouseDownInActiveArea;
|
bool mMouseDownInActiveArea;
|
||||||
|
bool mStartupComplete;
|
||||||
bool mURLInMessage;
|
bool mURLInMessage;
|
||||||
|
|
||||||
static LLProgressView* sInstance;
|
static LLProgressView* sInstance;
|
||||||
|
static void onIdle(void* user_data);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // LL_LLPROGRESSVIEW_H
|
#endif // LL_LLPROGRESSVIEW_H
|
||||||
|
|||||||
@@ -1096,7 +1096,7 @@ bool idle_startup()
|
|||||||
LLURLSimString::setString( location );
|
LLURLSimString::setString( location );
|
||||||
*/
|
*/
|
||||||
// END TODO
|
// END TODO
|
||||||
LLPanelLogin::close();
|
//LLPanelLogin::close();
|
||||||
}
|
}
|
||||||
|
|
||||||
//For HTML parsing in text boxes.
|
//For HTML parsing in text boxes.
|
||||||
@@ -1150,6 +1150,7 @@ bool idle_startup()
|
|||||||
gViewerWindow->setShowProgress(!gSavedSettings.getBOOL("AscentDisableLogoutScreens"));
|
gViewerWindow->setShowProgress(!gSavedSettings.getBOOL("AscentDisableLogoutScreens"));
|
||||||
gViewerWindow->setProgressCancelButtonVisible(TRUE, LLTrans::getString("Quit"));
|
gViewerWindow->setProgressCancelButtonVisible(TRUE, LLTrans::getString("Quit"));
|
||||||
|
|
||||||
|
gViewerWindow->revealIntroPanel();
|
||||||
// Poke the VFS, which could potentially block for a while if
|
// Poke the VFS, which could potentially block for a while if
|
||||||
// Windows XP is acting up
|
// Windows XP is acting up
|
||||||
set_startup_status(0.07f, LLTrans::getString("LoginVerifyingCache"), LLStringUtil::null);
|
set_startup_status(0.07f, LLTrans::getString("LoginVerifyingCache"), LLStringUtil::null);
|
||||||
@@ -1786,9 +1787,6 @@ bool idle_startup()
|
|||||||
handleCloudSettingsChanged(LLSD());
|
handleCloudSettingsChanged(LLSD());
|
||||||
display_startup();
|
display_startup();
|
||||||
|
|
||||||
// Move the progress view in front of the UI
|
|
||||||
gViewerWindow->moveProgressViewToFront();
|
|
||||||
display_startup();
|
|
||||||
|
|
||||||
LLError::logToFixedBuffer(gDebugView->mDebugConsolep);
|
LLError::logToFixedBuffer(gDebugView->mDebugConsolep);
|
||||||
display_startup();
|
display_startup();
|
||||||
@@ -2641,7 +2639,8 @@ bool idle_startup()
|
|||||||
gViewerWindow->getWindow()->resetBusyCount();
|
gViewerWindow->getWindow()->resetBusyCount();
|
||||||
gViewerWindow->getWindow()->setCursor(UI_CURSOR_ARROW);
|
gViewerWindow->getWindow()->setCursor(UI_CURSOR_ARROW);
|
||||||
LL_DEBUGS("AppInit") << "Done releasing bitmap" << LL_ENDL;
|
LL_DEBUGS("AppInit") << "Done releasing bitmap" << LL_ENDL;
|
||||||
gViewerWindow->setShowProgress(FALSE);
|
|
||||||
|
gViewerWindow->setStartupComplete();
|
||||||
gViewerWindow->setProgressCancelButtonVisible(FALSE);
|
gViewerWindow->setProgressCancelButtonVisible(FALSE);
|
||||||
display_startup();
|
display_startup();
|
||||||
|
|
||||||
|
|||||||
@@ -3347,15 +3347,6 @@ class LLAvatarGiveCard : public view_listener_t
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
void login_done(S32 which, void *user)
|
|
||||||
{
|
|
||||||
llinfos << "Login done " << which << llendl;
|
|
||||||
|
|
||||||
LLPanelLogin::close();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool callback_leave_group(const LLSD& notification, const LLSD& response)
|
bool callback_leave_group(const LLSD& notification, const LLSD& response)
|
||||||
{
|
{
|
||||||
S32 option = LLNotification::getSelectedOption(notification, response);
|
S32 option = LLNotification::getSelectedOption(notification, response);
|
||||||
|
|||||||
@@ -1653,7 +1653,8 @@ LLViewerWindow::LLViewerWindow(
|
|||||||
mResDirty(false),
|
mResDirty(false),
|
||||||
//mStatesDirty(false), //Singu Note: No longer needed. State update is now in restoreGL.
|
//mStatesDirty(false), //Singu Note: No longer needed. State update is now in restoreGL.
|
||||||
mIsFullscreenChecked(false),
|
mIsFullscreenChecked(false),
|
||||||
mCurrResolutionIndex(0)
|
mCurrResolutionIndex(0),
|
||||||
|
mProgressView(NULL)
|
||||||
{
|
{
|
||||||
LLNotificationChannel::buildChannel("VW_alerts", "Visible", LLNotificationFilters::filterBy<std::string>(&LLNotification::getType, "alert"));
|
LLNotificationChannel::buildChannel("VW_alerts", "Visible", LLNotificationFilters::filterBy<std::string>(&LLNotification::getType, "alert"));
|
||||||
LLNotificationChannel::buildChannel("VW_alertmodal", "Visible", LLNotificationFilters::filterBy<std::string>(&LLNotification::getType, "alertmodal"));
|
LLNotificationChannel::buildChannel("VW_alertmodal", "Visible", LLNotificationFilters::filterBy<std::string>(&LLNotification::getType, "alertmodal"));
|
||||||
@@ -2218,6 +2219,7 @@ void LLViewerWindow::initWorldUI_postLogin()
|
|||||||
|
|
||||||
LLFloaterChatterBox::createInstance(LLSD());
|
LLFloaterChatterBox::createInstance(LLSD());
|
||||||
}
|
}
|
||||||
|
mRootView->sendChildToFront(mProgressView);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Destroy the UI
|
// Destroy the UI
|
||||||
@@ -5159,6 +5161,13 @@ void LLViewerWindow::setup3DViewport(S32 x_offset, S32 y_offset)
|
|||||||
glViewport(gGLViewport[0], gGLViewport[1], gGLViewport[2], gGLViewport[3]);
|
glViewport(gGLViewport[0], gGLViewport[1], gGLViewport[2], gGLViewport[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LLViewerWindow::revealIntroPanel()
|
||||||
|
{
|
||||||
|
if (mProgressView)
|
||||||
|
{
|
||||||
|
mProgressView->revealIntroPanel();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void LLViewerWindow::setShowProgress(const BOOL show)
|
void LLViewerWindow::setShowProgress(const BOOL show)
|
||||||
{
|
{
|
||||||
@@ -5168,12 +5177,11 @@ void LLViewerWindow::setShowProgress(const BOOL show)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LLViewerWindow::moveProgressViewToFront()
|
void LLViewerWindow::setStartupComplete()
|
||||||
{
|
{
|
||||||
if (mProgressView && mRootView)
|
if (mProgressView)
|
||||||
{
|
{
|
||||||
mRootView->removeChild(mProgressView);
|
mProgressView->setStartupComplete();
|
||||||
mRootView->addChild(mProgressView);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -274,12 +274,13 @@ public:
|
|||||||
|
|
||||||
void setShowProgress(const BOOL show);
|
void setShowProgress(const BOOL show);
|
||||||
BOOL getShowProgress() const;
|
BOOL getShowProgress() const;
|
||||||
void moveProgressViewToFront();
|
|
||||||
void setProgressString(const std::string& string);
|
void setProgressString(const std::string& string);
|
||||||
void setProgressPercent(const F32 percent);
|
void setProgressPercent(const F32 percent);
|
||||||
void setProgressMessage(const std::string& msg);
|
void setProgressMessage(const std::string& msg);
|
||||||
void setProgressCancelButtonVisible( BOOL b, const std::string& label = LLStringUtil::null );
|
void setProgressCancelButtonVisible( BOOL b, const std::string& label = LLStringUtil::null );
|
||||||
LLProgressView *getProgressView() const;
|
LLProgressView *getProgressView() const;
|
||||||
|
void revealIntroPanel();
|
||||||
|
void setStartupComplete();
|
||||||
|
|
||||||
void updateObjectUnderCursor();
|
void updateObjectUnderCursor();
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
bottom="-45"
|
bottom="-45"
|
||||||
left="0"
|
left="0"
|
||||||
border_size="0"
|
border_size="0"
|
||||||
mouse_opaque="true"
|
mouse_opaque="false"
|
||||||
orientation="horizontal">
|
orientation="horizontal">
|
||||||
<!-- outer layout_panels center the inner one -->
|
<!-- outer layout_panels center the inner one -->
|
||||||
<layout_panel
|
<layout_panel
|
||||||
|
|||||||
@@ -2,15 +2,15 @@
|
|||||||
<panel bottom="0" follows="left|bottom|right|top" height="768" left="0" name="login_progress_panel" width="1024" visible="true">
|
<panel bottom="0" follows="left|bottom|right|top" height="768" left="0" name="login_progress_panel" width="1024" visible="true">
|
||||||
<layout_stack name="stack1" orientation="horizontal" left="0" bottom="0" width="1024" height="768" follows="left|right|top|bottom">
|
<layout_stack name="stack1" orientation="horizontal" left="0" bottom="0" width="1024" height="768" follows="left|right|top|bottom">
|
||||||
<layout_panel name="panel1" user_resize="false" min_width="10" width="150"/>
|
<layout_panel name="panel1" user_resize="false" min_width="10" width="150"/>
|
||||||
<layout_panel name="panel2" user_resize="false" min_width="640" width="640" height="768">
|
<layout_panel name="panel2" user_resize="false" min_width="640" width="724" height="768">
|
||||||
<layout_stack name="stack2" orientation="vertical" left="0" bottom="0" height="768" width="640" follows="left|right|top|bottom">
|
<layout_stack name="stack2" orientation="vertical" left="0" bottom="0" height="768" width="640" follows="left|right|top|bottom">
|
||||||
<layout_panel name="panel3" min_height="10" height="200" width="640"/>
|
<layout_panel name="panel3" min_height="10" height="200" width="724"/>
|
||||||
<layout_panel name="panel4" min_height="250" height="250" width="640" auto_resize="false">
|
<layout_panel name="panel4" min_height="250" height="250" width="724" auto_resize="false">
|
||||||
<icon image_name="rounded_square.tga" color="LoginProgressBoxCenterColor" left="0" bottom="0" width="640" height="250" follows="left|right|bottom|top"/>
|
<icon image_name="rounded_square.tga" color="LoginProgressBoxCenterColor" left="0" bottom="0" width="724" height="250" follows="left|right|bottom|top"/>
|
||||||
<text name="title_text" halign="center" font="SansSerif" left="0" bottom="-70" width="640" height="20" text_color="LoginProgressBoxTextColor" font-shadow="hard" follows="left|right|top"/>
|
<text name="title_text" halign="center" font="SansSerif" left="0" bottom="-70" width="724" height="20" text_color="LoginProgressBoxTextColor" font-shadow="hard" follows="left|right|top"/>
|
||||||
<text name="progress_text" halign="center" font="SansSerif" left="0" bottom="-95" width="640" height="20" text_color="LoginProgressBoxTextColor" font-shadow="hard" follows="left|right|top"/>
|
<text name="progress_text" halign="center" font="SansSerif" left="0" bottom="-95" width="724" height="20" text_color="LoginProgressBoxTextColor" font-shadow="hard" follows="left|right|top"/>
|
||||||
<progress_bar name="login_progress_bar" color="255,255,255,245" height="16" bottom="135" left="45" right="-45" follows="left|right|top" />
|
<progress_bar name="login_progress_bar" color="255,255,255,245" height="16" bottom="135" left="45" right="-45" follows="left|right|top" />
|
||||||
<text name="message_text" halign="center" line_spacing="8" font="SansSerif" left="20" bottom="5" width="600" height="100" text_color="LoginProgressBoxTextColor" font-shadow="hard" follows="left|right|top|bottom"/>
|
<text name="message_text" halign="center" line_spacing="8" font="SansSerif" left="20" bottom="5" width="700" height="100" text_color="LoginProgressBoxTextColor" font-shadow="hard" follows="left|right|top|bottom"/>
|
||||||
</layout_panel>
|
</layout_panel>
|
||||||
<layout_panel name="panel5" min_width="10" height="200" width="640"/>
|
<layout_panel name="panel5" min_width="10" height="200" width="640"/>
|
||||||
</layout_stack>
|
</layout_stack>
|
||||||
|
|||||||
Reference in New Issue
Block a user