summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorCosmic Linden <cosmic@lindenlab.com>2022-02-28 11:55:15 -0800
committerCosmic Linden <cosmic@lindenlab.com>2022-03-03 12:30:59 -0800
commit0e927e92f33f4a421a3cd56f7b9bc65c19003df2 (patch)
tree0a3fe9d2e541c5a0e26ff18ffe8d8134590b39ab /indra
parent81da0dd2db7261e402c53445efa1d012177a4cfe (diff)
SL-16824: Fix minimap tooltip hint not updating until viewer restart (double click to show map vs double click to teleport)
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llfloatermap.cpp10
-rw-r--r--indra/newview/llnetmap.cpp10
-rw-r--r--indra/newview/llnetmap.h2
3 files changed, 13 insertions, 9 deletions
diff --git a/indra/newview/llfloatermap.cpp b/indra/newview/llfloatermap.cpp
index ab39d08830..95c43805d4 100755
--- a/indra/newview/llfloatermap.cpp
+++ b/indra/newview/llfloatermap.cpp
@@ -84,14 +84,8 @@ BOOL LLFloaterMap::postBuild()
mMap->setParcelSaleAreaMsg(getString("ParcelSaleAreaMsg"));
mMap->setParcelOwnerMsg(getString("ParcelOwnerMsg"));
mMap->setRegionNameMsg(getString("RegionNameMsg"));
- if (gSavedSettings.getBOOL("DoubleClickTeleport"))
- {
- mMap->setToolTipHintMsg(getString("AltToolTipHintMsg"));
- }
- else if (gSavedSettings.getBOOL("DoubleClickShowWorldMap"))
- {
- mMap->setToolTipHintMsg(getString("ToolTipHintMsg"));
- }
+ mMap->setToolTipHintMsg(getString("ToolTipHintMsg"));
+ mMap->setAltToolTipHintMsg(getString("AltToolTipHintMsg"));
sendChildToBack(mMap);
mTextBoxNorth = getChild<LLTextBox>("floater_map_north");
diff --git a/indra/newview/llnetmap.cpp b/indra/newview/llnetmap.cpp
index e87ec10e5d..29623ccd53 100644
--- a/indra/newview/llnetmap.cpp
+++ b/indra/newview/llnetmap.cpp
@@ -699,7 +699,15 @@ BOOL LLNetMap::handleToolTip(S32 x, S32 y, MASK mask)
}
}
- std::string tool_tip_hint_msg = mToolTipHintMsg;
+ std::string tool_tip_hint_msg;
+ if (gSavedSettings.getBOOL("DoubleClickTeleport"))
+ {
+ tool_tip_hint_msg = mAltToolTipHintMsg;
+ }
+ else if (gSavedSettings.getBOOL("DoubleClickShowWorldMap"))
+ {
+ tool_tip_hint_msg = mToolTipHintMsg;
+ }
LLStringUtil::format_map_t args;
args["[PARCEL_NAME_MSG]"] = parcel_name_msg.empty() ? "" : parcel_name_msg + '\n';
diff --git a/indra/newview/llnetmap.h b/indra/newview/llnetmap.h
index e7eeda7dcc..b82b3d4105 100644
--- a/indra/newview/llnetmap.h
+++ b/indra/newview/llnetmap.h
@@ -88,6 +88,7 @@ public:
void setParcelOwnerMsg(const std::string& msg) { mParcelOwnerMsg = msg; }
void setRegionNameMsg(const std::string& msg) { mRegionNameMsg = msg; }
void setToolTipHintMsg(const std::string& msg) { mToolTipHintMsg = msg; }
+ void setAltToolTipHintMsg(const std::string& msg) { mAltToolTipHintMsg = msg; }
void renderScaledPointGlobal( const LLVector3d& pos, const LLColor4U &color, F32 radius );
@@ -140,6 +141,7 @@ private:
std::string mParcelOwnerMsg;
std::string mRegionNameMsg;
std::string mToolTipHintMsg;
+ std::string mAltToolTipHintMsg;
public:
void setSelected(uuid_vec_t uuids) { gmSelected=uuids; };