コード例 #1
0
void LLInspectAvatar::onClickFreeze()
{
	if (gAgent.isGodlike())
	{
		// use godlike freeze-at-a-distance, with confirmation
		LLNotificationsUtil::add("FreezeAvatar",
			LLSD(),
			LLSD().with("avatar_id", mAvatarID),
			godlike_freeze);
	}
	else
	{
		// use default "local" version of freezing that requires avatar to be in range
		handle_avatar_freeze( LLSD(mAvatarID) );
	}
	closeFloater();
}
コード例 #2
0
void LLInspectAvatar::onClickFreeze()
{
	handle_avatar_freeze( LLSD(mAvatarID) );
	closeFloater();
}