summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaternewfeaturenotification.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-08-18 18:51:42 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-08-18 18:53:11 +0300
commitd32e685d96e19be3711e09ab626203d248d3594b (patch)
tree338c065af93e5467276e15bbf3450277a7e4d72a /indra/newview/llfloaternewfeaturenotification.cpp
parent4800e3e4164640bc98f92f9c50d2ab7b882f97a1 (diff)
SL-19929 Small rework of a 'feature' notification
To make multiple parallel features possible
Diffstat (limited to 'indra/newview/llfloaternewfeaturenotification.cpp')
-rw-r--r--indra/newview/llfloaternewfeaturenotification.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llfloaternewfeaturenotification.cpp b/indra/newview/llfloaternewfeaturenotification.cpp
index 7c3fe8cdc8..3a2035b9b9 100644
--- a/indra/newview/llfloaternewfeaturenotification.cpp
+++ b/indra/newview/llfloaternewfeaturenotification.cpp
@@ -42,6 +42,14 @@ BOOL LLFloaterNewFeatureNotification::postBuild()
{
setCanDrag(FALSE);
getChild<LLButton>("close_btn")->setCommitCallback(boost::bind(&LLFloaterNewFeatureNotification::onCloseBtn, this));
+
+ const std::string title_txt = "title_txt";
+ const std::string dsc_txt = "description_txt";
+ std::string feature = "_" + getKey().asString();
+
+ getChild<LLUICtrl>(title_txt)->setValue(getString(title_txt + feature));
+ getChild<LLUICtrl>(dsc_txt)->setValue(getString(dsc_txt + feature));
+
return TRUE;
}