added toolbar button for radar, made option to disable lookat completely, changed groundsit hotkey and made it allow standing as well

This commit is contained in:
Hazim Gazov
2010-04-05 13:31:42 -03:00
parent 0b7b99d2d1
commit a5ba51d715
8 changed files with 49 additions and 24 deletions

View File

@@ -53,6 +53,7 @@
#include "llfloaterchatterbox.h"
#include "llfloaterfriends.h"
#include "llfloatersnapshot.h"
#include "llfloateravatarlist.h"
#include "lltoolmgr.h"
#include "llui.h"
#include "llviewermenu.h"
@@ -128,8 +129,8 @@ BOOL LLToolBar::postBuild()
childSetAction("appearance_btn", onClickAppearance, this);
childSetControlName("appearance_btn", "");
childSetAction("fly_btn", onClickFly, this);
childSetControlName("fly_btn", "FlyBtnState");
childSetAction("radar_list_btn", onClickRadarList, this);
childSetControlName("radar_list_btn", "RadarListBtnState");
childSetAction("sit_btn", onClickSit, this);
childSetControlName("sit_btn", "SitBtnState");
@@ -449,6 +450,17 @@ void LLToolBar::onClickAppearance(void*)
}
}
// static
void LLToolBar::onClickRadarList(void*)
{
LLFloaterAvatarList::toggle(0);
bool vis = false;
if(LLFloaterAvatarList::getInstance())
{
vis = (bool)LLFloaterAvatarList::getInstance()->getVisible();
}
}
// static
void LLToolBar::onClickFly(void*)