diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llpanellogin.cpp | 14 | ||||
| -rw-r--r-- | indra/newview/llpanellogin.h | 1 | ||||
| -rw-r--r-- | indra/newview/skins/default/textures/textures.xml | 4 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/panel_login.xml | 15 | 
4 files changed, 29 insertions, 5 deletions
| diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index d80d5c3d2e..e73c65e252 100644 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -71,7 +71,6 @@  #include "llmediactrl.h"  #include "llrootview.h" -  #include "llfloatertos.h"  #include "lltrans.h"  #include "llglheaders.h" @@ -260,6 +259,9 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,  	LLTextBox* create_new_account_text = getChild<LLTextBox>("create_new_account_text");  	create_new_account_text->setClickedCallback(onClickNewAccount, NULL); + +	LLTextBox* need_help_text = getChild<LLTextBox>("login_help"); +	need_help_text->setClickedCallback(onClickHelp, NULL);  #endif      	// get the web browser control @@ -963,6 +965,16 @@ void LLPanelLogin::onClickForgotPassword(void*)  	}  } +//static +void LLPanelLogin::onClickHelp(void*) +{ +	if (sInstance) +	{ +		LLViewerHelp* vhelp = LLViewerHelp::getInstance(); +		vhelp->showTopic(vhelp->getTopicFromFocus()); +	} +} +  // static  void LLPanelLogin::onPassKey(LLLineEditor* caller, void* user_data)  { diff --git a/indra/newview/llpanellogin.h b/indra/newview/llpanellogin.h index acb2001c22..e3d30d7d0c 100644 --- a/indra/newview/llpanellogin.h +++ b/indra/newview/llpanellogin.h @@ -96,6 +96,7 @@ private:  //	static bool newAccountAlertCallback(const LLSD& notification, const LLSD& response);  	static void onClickVersion(void*);  	static void onClickForgotPassword(void*); +	static void onClickHelp(void*);  	static void onPassKey(LLLineEditor* caller, void* user_data);  	static void onSelectServer(LLUICtrl*, void*);  	static void onServerComboLostFocus(LLFocusableElement*); diff --git a/indra/newview/skins/default/textures/textures.xml b/indra/newview/skins/default/textures/textures.xml index 7e309d2bad..6f9801491a 100644 --- a/indra/newview/skins/default/textures/textures.xml +++ b/indra/newview/skins/default/textures/textures.xml @@ -194,8 +194,8 @@ with the same filename but different name    <texture name="Icon_Gear_Foreground" file_name="windows/Icon_Gear_Foreground.png" preload="false" />    <texture name="Icon_Gear_Press" file_name="windows/Icon_Gear_Press.png" preload="false" /> -  <texture name="Icon_Help_Foreground" file_name="windows/Icon_Help_Foreground.png" preload="false" /> -  <texture name="Icon_Help_Press" file_name="windows/Icon_Help_Press.png" preload="false" /> +  <texture name="Icon_Help_Foreground" file_name="windows/Icon_Help_Foreground.png" preload="true" /> +  <texture name="Icon_Help_Press" file_name="windows/Icon_Help_Press.png" preload="true" />    <texture name="Icon_Info" file_name="windows/Icon_Info.png" preload="false" />    <texture name="Icon_Minimize_Foreground" file_name="windows/Icon_Minimize_Foreground.png" preload="true" /> diff --git a/indra/newview/skins/default/xui/en/panel_login.xml b/indra/newview/skins/default/xui/en/panel_login.xml index efe26d3887..22977b2274 100644 --- a/indra/newview/skins/default/xui/en/panel_login.xml +++ b/indra/newview/skins/default/xui/en/panel_login.xml @@ -167,8 +167,8 @@       text_color="EmphasisColor"       halign="right"       height="16" -     top="17" -     left_pad="10" +     top="12" +     left_pad="5"       right="-10"       name="create_new_account_text"       width="180"> @@ -188,6 +188,17 @@      <text       follows="right|bottom"       font="SansSerifSmall" +     text_color="EmphasisColor" +     halign="right" +     height="16" +     name="login_help" +     top_pad="2" +     width="180"> +        Need help logging in? +    </text> +    <text +     follows="right|bottom" +     font="SansSerifSmall"       halign="right"       height="28"       top_pad="2" | 
