From 3f4c977bc9c4604f0216f0463bd609c615b6c0b7 Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Fri, 11 Oct 2024 17:55:27 +0300 Subject: Update demo scripts --- indra/newview/scripts/lua/test_luafloater_demo.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview/scripts/lua/test_luafloater_demo.lua') 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) -- cgit v1.2.3