diff options
author | McCabe Maxsted | 2010-03-30 23:39:25 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-03-30 23:39:25 -0700 |
commit | 7e458d1989ea06d06c64db4732619e03b59cf223 (patch) | |
tree | 2b4fc86591d3834baaea146d0b88b843d95ed9a2 /linden/indra/newview/floaterao.cpp | |
parent | Ported clientside AO from Emerald r1633 (diff) | |
download | meta-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.cpp | 22 |
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() | |||
249 | void LLFloaterAO::show(void*) | 249 | void 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(); | 265 | bool LLFloaterAO::getInstance() |
266 | { | ||
267 | if (sInstance) | ||
268 | return true; | ||
269 | else | ||
270 | return false; | ||
257 | } | 271 | } |
258 | 272 | ||
259 | BOOL LLFloaterAO::postBuild() | 273 | BOOL LLFloaterAO::postBuild() |