aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/floaterao.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-03-30 23:39:25 -0700
committerMcCabe Maxsted2010-03-30 23:39:25 -0700
commit7e458d1989ea06d06c64db4732619e03b59cf223 (patch)
tree2b4fc86591d3834baaea146d0b88b843d95ed9a2 /linden/indra/newview/floaterao.cpp
parentPorted clientside AO from Emerald r1633 (diff)
downloadmeta-impy-7e458d1989ea06d06c64db4732619e03b59cf223.zip
meta-impy-7e458d1989ea06d06c64db4732619e03b59cf223.tar.gz
meta-impy-7e458d1989ea06d06c64db4732619e03b59cf223.tar.bz2
meta-impy-7e458d1989ea06d06c64db4732619e03b59cf223.tar.xz
Made the AO toggle and work like an actual menu check
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/floaterao.cpp22
1 files changed, 18 insertions, 4 deletions
diff --git a/linden/indra/newview/floaterao.cpp b/linden/indra/newview/floaterao.cpp
index e3083d3..d8844d8 100644
--- a/linden/indra/newview/floaterao.cpp
+++ b/linden/indra/newview/floaterao.cpp
@@ -249,11 +249,25 @@ LLFloaterAO::~LLFloaterAO()
249void LLFloaterAO::show(void*) 249void LLFloaterAO::show(void*)
250{ 250{
251 if (!sInstance) 251 if (!sInstance)
252 sInstance = new LLFloaterAO(); 252 {
253 updateLayout(sInstance); 253 sInstance = new LLFloaterAO();
254 init(); 254 updateLayout(sInstance);
255 init();
256
257 sInstance->open();
258 }
259 else
260 {
261 sInstance->close();
262 }
263}
255 264
256 sInstance->open(); 265bool LLFloaterAO::getInstance()
266{
267 if (sInstance)
268 return true;
269 else
270 return false;
257} 271}
258 272
259BOOL LLFloaterAO::postBuild() 273BOOL LLFloaterAO::postBuild()