From fcffe9e420207e6eb2ee43c6f22f985ed1ae347f Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Wed, 13 Apr 2011 19:39:59 -0700 Subject: Added button for the full viewer to the minimap. Now need to think about the xui, hrm --- linden/indra/newview/panelradar.cpp | 9 +++++++++ linden/indra/newview/panelradar.h | 1 + 2 files changed, 10 insertions(+) (limited to 'linden/indra/newview') diff --git a/linden/indra/newview/panelradar.cpp b/linden/indra/newview/panelradar.cpp index a868ee2..c94c0d1 100644 --- a/linden/indra/newview/panelradar.cpp +++ b/linden/indra/newview/panelradar.cpp @@ -32,6 +32,7 @@ #include "llagent.h" #include "llchat.h" #include "llfloateravatarinfo.h" +#include "llfloateravatarlist.h" #include "llfloaterchat.h" #include "llfloaterfriends.h" #include "llfloatergroupinvite.h" @@ -95,6 +96,7 @@ BOOL PanelRadar::postBuild() //childSetAction("estate_eject_btn", onClickEjectFromEstate, this); //childSetAction("estate_ban_btn", onClickBanFromEstate, this); childSetAction("ban_btn", onClickBan, this); + childSetAction("full_radar_btn", onClickFullRadar, this); setDefaultBtn("im_btn"); @@ -1025,6 +1027,13 @@ void PanelRadar::onClickAR(void* user_data) } +// static +void PanelRadar::onClickFullRadar(void* user_data) +{ + LLFloaterAvatarList::toggle(NULL); +} + + //static /* Don't use until the UI can be worked out void PanelRadar::onClickBanFromEstate(void* user_data) diff --git a/linden/indra/newview/panelradar.h b/linden/indra/newview/panelradar.h index 59e6aff..ff5912c 100644 --- a/linden/indra/newview/panelradar.h +++ b/linden/indra/newview/panelradar.h @@ -108,6 +108,7 @@ private: static void onClickAR(void* user_data); //static void onClickEjectFromEstate(void* user_data); Not working yet //static void onClickBanFromEstate(void* user_data); + static void onClickFullRadar(void* user_data); static void callbackAR(void* user_data); static bool callbackFreeze(const LLSD& notification, const LLSD& response); -- cgit v1.1