diff options
author | nat-goodspeed <nat@lindenlab.com> | 2024-05-09 10:41:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-09 10:41:17 -0400 |
commit | a3f2cacf542e1d770698ef6c7e6ea1c0a5cd3368 (patch) | |
tree | 5e0af7909b62f6ca0ed01056366aafed8ed57753 /indra/newview | |
parent | 51e86a0eff4e919075b32c498305add577450111 (diff) | |
parent | cec3b8d870085925cd0c9fb900b7d5e4629bcbfd (diff) |
Merge pull request #1419 from secondlife/lua-resizable-debugfloater
Copy xml files to scripts/lua; make Lua debug floater resizable
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/scripts/lua/LLDebugSettings.lua | 2 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/floater_lua_debug.xml | 18 | ||||
-rwxr-xr-x | indra/newview/viewer_manifest.py | 1 |
3 files changed, 11 insertions, 10 deletions
diff --git a/indra/newview/scripts/lua/LLDebugSettings.lua b/indra/newview/scripts/lua/LLDebugSettings.lua index c809dfff91..c1d74fe00a 100644 --- a/indra/newview/scripts/lua/LLDebugSettings.lua +++ b/indra/newview/scripts/lua/LLDebugSettings.lua @@ -1,6 +1,6 @@ leap = require 'leap' -function check_response(res) +local function check_response(res) if res.error then error(res.error) end diff --git a/indra/newview/skins/default/xui/en/floater_lua_debug.xml b/indra/newview/skins/default/xui/en/floater_lua_debug.xml index a028a1802c..012ea6f254 100644 --- a/indra/newview/skins/default/xui/en/floater_lua_debug.xml +++ b/indra/newview/skins/default/xui/en/floater_lua_debug.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <floater can_minimize="false" - can_resize="false" + can_resize="true" can_close="true" bevel_style="in" height="220" @@ -14,7 +14,7 @@ <text type="string" length="1" - follows="left|bottom" + follows="left|top" font="SansSerif" height="30" layout="topleft" @@ -26,7 +26,7 @@ LUA string: </text> <check_box - follows="left|bottom" + follows="right|top" height="15" label="Use clean lua_State" layout="topleft" @@ -37,7 +37,7 @@ <line_editor border_style="line" border_thickness="1" - follows="left|bottom" + follows="left|top|right" font="SansSerif" height="20" layout="topleft" @@ -48,7 +48,7 @@ top_delta="30" width="435" /> <button - follows="left|bottom" + follows="right|top" height="25" label="Execute" layout="topleft" @@ -63,7 +63,7 @@ height="95" layout="topleft" name="result_text" - follows="left|top" + follows="all" max_length="65536" width="515" top_delta="40" @@ -85,7 +85,7 @@ border_style="line" enabled="false" border_thickness="1" - follows="left|bottom" + follows="left|bottom|right" font="SansSerif" height="20" layout="topleft" @@ -96,7 +96,7 @@ top_delta="-2" width="320" /> <button - follows="left|bottom" + follows="right|bottom" height="25" label="Browse..." label_selected="Browse..." @@ -106,7 +106,7 @@ top_delta="-2" width="70" /> <button - follows="left|bottom" + follows="right|bottom" height="25" label="Run" label_selected="Run" diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py index b60e349e90..8123827f5a 100755 --- a/indra/newview/viewer_manifest.py +++ b/indra/newview/viewer_manifest.py @@ -168,6 +168,7 @@ class ViewerManifest(LLManifest): with self.prefix(src_dst="scripts/lua"): self.path("*.lua") + self.path("*.xml") #build_data.json. Standard with exception handling is fine. If we can't open a new file for writing, we have worse problems #platform is computed above with other arg parsing |