summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelexperiencelisteditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llpanelexperiencelisteditor.cpp')
-rw-r--r--indra/newview/llpanelexperiencelisteditor.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llpanelexperiencelisteditor.cpp b/indra/newview/llpanelexperiencelisteditor.cpp
index 6d47673849..f01438b34e 100644
--- a/indra/newview/llpanelexperiencelisteditor.cpp
+++ b/indra/newview/llpanelexperiencelisteditor.cpp
@@ -36,6 +36,8 @@
#include "llscrolllistctrl.h"
#include "llviewerregion.h"
#include "llagent.h"
+#include "lltextbox.h"
+#include "lltrans.h"
static LLPanelInjector<LLPanelExperienceListEditor> t_panel_experience_list_editor("panel_experience_list_editor");
@@ -211,6 +213,14 @@ void LLPanelExperienceListEditor::setReadonly( bool val )
checkButtonsEnabled();
}
+void LLPanelExperienceListEditor::refreshExperienceCounter(std::string string_name)
+{
+ LLStringUtil::format_map_t args;
+ args["[EXPERIENCES]"] = llformat("%d", mItems->getItemCount());
+ args["[MAXEXPERIENCES]"] = llformat("%d", ESTATE_MAX_EXPERIENCE_IDS);
+ getChild<LLTextBox>("text_name")->setText(LLTrans::getString(string_name, args));
+}
+
boost::signals2::connection LLPanelExperienceListEditor::setAddedCallback( list_changed_signal_t::slot_type cb )
{
return mAddedCallback.connect(cb);