aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorRobin Cornelius2011-10-01 22:16:53 +0100
committerDavid Walter Seikel2013-04-05 23:10:32 +1000
commit0528bbd5ef37b7d60c639db2c450cca415b6590e (patch)
treef88830cb3867a2009872f6cf3ff718e5d6271305 /linden/indra/newview/llviewermenu.cpp
parentFor Armin and his teapot. (diff)
downloadmeta-impy-0528bbd5ef37b7d60c639db2c450cca415b6590e.zip
meta-impy-0528bbd5ef37b7d60c639db2c450cca415b6590e.tar.gz
meta-impy-0528bbd5ef37b7d60c639db2c450cca415b6590e.tar.bz2
meta-impy-0528bbd5ef37b7d60c639db2c450cca415b6590e.tar.xz
MOAP Radar patch set
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r--linden/indra/newview/llviewermenu.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index a83c11b..538adc7 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -238,6 +238,8 @@
238#include "llfloaterteleporthistory.h" 238#include "llfloaterteleporthistory.h"
239#include "slfloatermediafilter.h" 239#include "slfloatermediafilter.h"
240 240
241#include "rcmoapradar.h"
242
241using namespace LLVOAvatarDefines; 243using namespace LLVOAvatarDefines;
242void init_client_menu(LLMenuGL* menu); 244void init_client_menu(LLMenuGL* menu);
243void init_server_menu(LLMenuGL* menu); 245void init_server_menu(LLMenuGL* menu);
@@ -5216,6 +5218,34 @@ class LLViewEnableLastChatter : public view_listener_t
5216 } 5218 }
5217}; 5219};
5218 5220
5221class LLViewToggleRadar: public view_listener_t
5222{
5223 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
5224 {
5225 LLFloaterAvatarList::toggle(0);
5226 bool vis = false;
5227 if(LLFloaterAvatarList::getInstance())
5228 {
5229 vis = (bool)LLFloaterAvatarList::getInstance()->getVisible();
5230 }
5231 return true;
5232 }
5233};
5234
5235class LLViewToggleMOAPRadar: public view_listener_t
5236{
5237 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
5238 {
5239 LLFloaterMOAPRadar::toggle(0);
5240 bool vis = false;
5241 if(LLFloaterMOAPRadar::getInstance())
5242 {
5243 vis = (bool)LLFloaterMOAPRadar::getInstance()->getVisible();
5244 }
5245 return true;
5246 }
5247};
5248
5219class LLEditEnableDeselect : public view_listener_t 5249class LLEditEnableDeselect : public view_listener_t
5220{ 5250{
5221 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 5251 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
@@ -11215,6 +11245,8 @@ void initialize_menus()
11215 addMenu(new LLViewEnableMouselook(), "View.EnableMouselook"); 11245 addMenu(new LLViewEnableMouselook(), "View.EnableMouselook");
11216 addMenu(new LLViewEnableJoystickFlycam(), "View.EnableJoystickFlycam"); 11246 addMenu(new LLViewEnableJoystickFlycam(), "View.EnableJoystickFlycam");
11217 addMenu(new LLViewEnableLastChatter(), "View.EnableLastChatter"); 11247 addMenu(new LLViewEnableLastChatter(), "View.EnableLastChatter");
11248 addMenu(new LLViewToggleRadar(), "View.ToggleAvatarList");
11249 addMenu(new LLViewToggleMOAPRadar(), "View.ToggleMOAPList");
11218 11250
11219 addMenu(new LLViewCheckBuildMode(), "View.CheckBuildMode"); 11251 addMenu(new LLViewCheckBuildMode(), "View.CheckBuildMode");
11220 addMenu(new LLViewCheckJoystickFlycam(), "View.CheckJoystickFlycam"); 11252 addMenu(new LLViewCheckJoystickFlycam(), "View.CheckJoystickFlycam");