void LLPanelTopInfoBar::updateParcelInfoText() { static LLUICachedControl<bool> show_coords("NavBarShowCoordinates", false); //MK if (gRRenabled && gAgent.mRRInterface.mContainsShowloc) { std::string dummy_text = "(Hidden)"; mParcelInfoText->setText(dummy_text); toggle_show_mini_location_panel(LLSD(false)); return; } //mk //MK // Update the location whether the coordinates are shown or not, because // buildLocationString() is where the parcel, region and coords are hidden //// if (show_coords) //mk { std::string new_text; buildLocationString(new_text, show_coords); setParcelInfoText(new_text); } }
void LLPanelTopInfoBar::onNavBarShowParcelPropertiesCtrlChanged() { std::string new_text; // don't need to have separate show_coords variable; if user requested the coords to be shown // they will be added during the next call to the draw() method. buildLocationString(new_text, false); setParcelInfoText(new_text); }
void LLPanelTopInfoBar::update() { std::string new_text; // don't need to have separate show_coords variable; if user requested the coords to be shown // they will be added during the next call to the draw() method. buildLocationString(new_text, false); setParcelInfoText(new_text); updateParcelIcons(); }
void LLPanelTopInfoBar::updateParcelInfoText() { static LLUICachedControl<bool> show_coords("NavBarShowCoordinates", false); if (show_coords) { std::string new_text; buildLocationString(new_text, show_coords); setParcelInfoText(new_text); } }
void LLStatusBar::updateParcelInfoText() { static LLUICachedControl<bool> show_coords("NavBarShowCoordinates", false); //MK // Update the location whether the coordinates are shown or not, because // buildLocationString() is where the parcel, region and coords are hidden // when under @showloc //// if (show_coords) //mk { std::string new_text; buildLocationString(new_text, show_coords); setParcelInfoText(new_text); } }
BOOL LLAgentUI::buildLocationString(std::string& str, ELocationFormat fmt) { return buildLocationString(str,fmt, gAgent.getPositionAgent()); }