diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-07-01 13:02:49 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-07-01 13:02:49 +0300 |
commit | 07f0f12bcbe864177a145b074c2739eaf08f2c5c (patch) | |
tree | 520b3e4c581e993be11e3ca680463834f4ddb162 /indra/newview/scripts/lua | |
parent | eb6d24e531aa5faa251b7aaf8b13c62f06708696 (diff) |
Move error strings to strings.xml; pass wearable type and is_worn flag for outfit items
Diffstat (limited to 'indra/newview/scripts/lua')
-rw-r--r-- | indra/newview/scripts/lua/test_outfits_list.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/scripts/lua/test_outfits_list.lua b/indra/newview/scripts/lua/test_outfits_list.lua index dd5f914402..1011029f34 100644 --- a/indra/newview/scripts/lua/test_outfits_list.lua +++ b/indra/newview/scripts/lua/test_outfits_list.lua @@ -34,7 +34,13 @@ function populate_list() action_data.action = "add_list_element" action_data.ctrl_name = "outfits_list" local outfits = {} - for uuid, name in pairs(DATA_MAP) do + for uuid, info in pairs(DATA_MAP) do + name = {} + if SHOW_OUTFITS then + name = info + else + name = info.name + end table.insert(outfits, {value = uuid, columns={column = "outfit_name", value = name}}) end action_data.value = outfits |