Beispiel #1
0
void LLFloaterScriptDebugOutput::addLine(const std::string &utf8mesg, const std::string &user_name, const LLColor4& color)
{
	if (mObjectID.isNull())
	{
		//setTitle("[All scripts]");
		setCanTearOff(FALSE);
		setCanClose(FALSE);
	}
	else
	{
		setTitle(user_name);
	}

	mHistoryEditor->appendColoredText(utf8mesg, false, true, color);
}
void LLFloaterScriptDebugOutput::addLine(const std::string &utf8mesg, const std::string &user_name, const LLColor4& color)
{
	if (mObjectID.isNull())
	{
		setCanTearOff(FALSE);
		setCanClose(FALSE);
	}
	else
	{
		setTitle(user_name);
		setShortTitle(user_name);
	}

	mHistoryEditor->appendText(utf8mesg, true, LLStyle::Params().color(color));
	mHistoryEditor->blockUndo();
}
void LLFloaterProperties::setExpanded(BOOL expanded)
{
	mExpanded = expanded;
	LLRect rect = getRect();
	if(expanded)
		rect.setOriginAndSize(rect.mLeft, rect.mBottom, 800, rect.getHeight());
	else
		rect.setOriginAndSize(rect.mLeft, rect.mBottom, 350, rect.getHeight());
	setRect(rect);
	childSetVisible("more_btn", !mExpanded);
	childSetVisible("less_btn", mExpanded);
	childSetVisible("item_text", mExpanded);
	childSetVisible("copy_btn", mExpanded);
	childSetVisible("update_btn", mExpanded);
	if(getHost())
		setCanTearOff(!expanded); // idk why it comes out ugly if expanded
}