diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-05-11 01:48:21 +0300 | 
|---|---|---|
| committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-05-11 01:48:21 +0300 | 
| commit | e886a5e34320c6448293dc05ac89a41b2b4a7f69 (patch) | |
| tree | aa6821369aa36ba852cc72e7ab4042cfa0944c36 | |
| parent | 9dee16185a0b33177c6b7b3c60733682cebee66d (diff) | |
SL-15168 Reset title of guidebook when opening
| -rw-r--r-- | indra/newview/llfloaterhowto.cpp | 6 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/floater_how_to.xml | 9 | 
2 files changed, 13 insertions, 2 deletions
| diff --git a/indra/newview/llfloaterhowto.cpp b/indra/newview/llfloaterhowto.cpp index ef40060807..6e913b08ea 100644 --- a/indra/newview/llfloaterhowto.cpp +++ b/indra/newview/llfloaterhowto.cpp @@ -51,6 +51,12 @@ BOOL LLFloaterHowTo::postBuild()  void LLFloaterHowTo::onOpen(const LLSD& key)  { +    // LLFloaterHowTo is intended to be opened as a location specific guidebook +    // with custom titles, reset the title, LLUrlFloaterDispatchHandler will +    // set needed one later +    // todo: make title into general parameter for LLFloaterWebContent +    setTitle(getString("default_tittle")); +      LLFloaterWebContent::Params p(key);      if (!p.url.isProvided() || p.url.getValue().empty())      { diff --git a/indra/newview/skins/default/xui/en/floater_how_to.xml b/indra/newview/skins/default/xui/en/floater_how_to.xml index acfa6a5152..95690219b8 100644 --- a/indra/newview/skins/default/xui/en/floater_how_to.xml +++ b/indra/newview/skins/default/xui/en/floater_how_to.xml @@ -3,7 +3,7 @@    legacy_header_height="18"    can_resize="false"    can_minimize="false" -  can_close="false"  +  can_close="false"    height="525"    layout="topleft"    name="floater_how_to" @@ -14,4 +14,9 @@    width="310"    rel_x="-0.469309"    rel_y="-0.011166" -  filename="floater_web_content.xml"/>
\ No newline at end of file +  filename="floater_web_content.xml"> +  <floater.string +    name="default_tittle"> +WELCOME ISLAND GUIDEBOOK +  </floater.string> +</floater>
\ No newline at end of file | 
