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();
}
예제 #4
0
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);
	}
}
예제 #5
0
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);
	}
}