summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua/test_luafloater_demo.lua
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2024-10-17 00:38:52 +0300
committerGitHub <noreply@github.com>2024-10-17 00:38:52 +0300
commit38c684b825d1280600787ecd628cadb53ef1498f (patch)
treebd69624da08bca36222d14967cfd751784183b71 /indra/newview/scripts/lua/test_luafloater_demo.lua
parent43beabd0c7ef22e9c814124916c2f193624834e7 (diff)
parent3ed29a74f734a2b790814970df71a83c6cb47303 (diff)
Merge pull request #2805 from secondlife/maxim/lua-nearby-avatars
Lua api to get info about nearby avatars and objects
Diffstat (limited to 'indra/newview/scripts/lua/test_luafloater_demo.lua')
-rw-r--r--indra/newview/scripts/lua/test_luafloater_demo.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/scripts/lua/test_luafloater_demo.lua b/indra/newview/scripts/lua/test_luafloater_demo.lua
index 2158134511..23310c6176 100644
--- a/indra/newview/scripts/lua/test_luafloater_demo.lua
+++ b/indra/newview/scripts/lua/test_luafloater_demo.lua
@@ -14,7 +14,7 @@ function flt:handleEvents(event_data)
end
function flt:commit_disable_ctrl(event_data)
- self:post({action="set_enabled", ctrl_name="open_btn", value = (1 - event_data.value)})
+ self:post({action="set_enabled", ctrl_name="open_btn", value = not event_data.value})
end
function flt:commit_title_cmb(event_data)