mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
746 lines
15 KiB
Lua
746 lines
15 KiB
Lua
local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1
|
|
L0_1 = {}
|
|
L0_1.group_id = 133103193
|
|
L1_1 = {}
|
|
L1_1.group_id = 133103193
|
|
L1_1.gadget_target_1S = 193002
|
|
L1_1.gadget_target_1E = 193005
|
|
L1_1.gadget_target_2S = 193003
|
|
L1_1.gadget_target_2E = 193006
|
|
L1_1.gadget_target_3S = 193004
|
|
L1_1.gadget_target_3E = 193007
|
|
L2_1 = {}
|
|
monsters = L2_1
|
|
L2_1 = {}
|
|
npcs = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 193001
|
|
L3_1.gadget_id = 70360008
|
|
L4_1 = {}
|
|
L4_1.x = 1108.563
|
|
L4_1.y = 349.457
|
|
L4_1.z = 1542.613
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 0.0
|
|
L4_1.y = 268.8
|
|
L4_1.z = 0.0
|
|
L3_1.rot = L4_1
|
|
L3_1.level = 32
|
|
L3_1.area_id = 6
|
|
L4_1 = {}
|
|
L4_1.config_id = 193002
|
|
L4_1.gadget_id = 70360011
|
|
L5_1 = {}
|
|
L5_1.x = 1104.2
|
|
L5_1.y = 349.1
|
|
L5_1.z = 1545.7
|
|
L4_1.pos = L5_1
|
|
L5_1 = {}
|
|
L5_1.x = 0.0
|
|
L5_1.y = 302.6
|
|
L5_1.z = 0.0
|
|
L4_1.rot = L5_1
|
|
L4_1.level = 32
|
|
L4_1.mark_flag = 2
|
|
L4_1.area_id = 6
|
|
L5_1 = {}
|
|
L5_1.config_id = 193003
|
|
L5_1.gadget_id = 70360011
|
|
L6_1 = {}
|
|
L6_1.x = 1113.4
|
|
L6_1.y = 349.1
|
|
L6_1.z = 1546.3
|
|
L5_1.pos = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 0.0
|
|
L6_1.y = 240.7
|
|
L6_1.z = 0.0
|
|
L5_1.rot = L6_1
|
|
L5_1.level = 32
|
|
L5_1.mark_flag = 4
|
|
L5_1.area_id = 6
|
|
L6_1 = {}
|
|
L6_1.config_id = 193004
|
|
L6_1.gadget_id = 70360011
|
|
L7_1 = {}
|
|
L7_1.x = 1109.9
|
|
L7_1.y = 349.1
|
|
L7_1.z = 1536.8
|
|
L6_1.pos = L7_1
|
|
L7_1 = {}
|
|
L7_1.x = 0.0
|
|
L7_1.y = 136.9
|
|
L7_1.z = 0.0
|
|
L6_1.rot = L7_1
|
|
L6_1.level = 32
|
|
L6_1.mark_flag = 8
|
|
L6_1.area_id = 6
|
|
L7_1 = {}
|
|
L7_1.config_id = 193005
|
|
L7_1.gadget_id = 70360014
|
|
L8_1 = {}
|
|
L8_1.x = 1104.194
|
|
L8_1.y = 349.1
|
|
L8_1.z = 1545.655
|
|
L7_1.pos = L8_1
|
|
L8_1 = {}
|
|
L8_1.x = 0.0
|
|
L8_1.y = 187.8
|
|
L8_1.z = 0.0
|
|
L7_1.rot = L8_1
|
|
L7_1.level = 32
|
|
L7_1.route_id = 310300063
|
|
L7_1.area_id = 6
|
|
L8_1 = {}
|
|
L8_1.config_id = 193006
|
|
L8_1.gadget_id = 70360014
|
|
L9_1 = {}
|
|
L9_1.x = 1113.4
|
|
L9_1.y = 349.1
|
|
L9_1.z = 1546.3
|
|
L8_1.pos = L9_1
|
|
L9_1 = {}
|
|
L9_1.x = 0.0
|
|
L9_1.y = 287.7
|
|
L9_1.z = 0.0
|
|
L8_1.rot = L9_1
|
|
L8_1.level = 32
|
|
L8_1.route_id = 310300064
|
|
L8_1.area_id = 6
|
|
L9_1 = {}
|
|
L9_1.config_id = 193007
|
|
L9_1.gadget_id = 70360014
|
|
L10_1 = {}
|
|
L10_1.x = 1109.939
|
|
L10_1.y = 349.1
|
|
L10_1.z = 1536.773
|
|
L9_1.pos = L10_1
|
|
L10_1 = {}
|
|
L10_1.x = 0.0
|
|
L10_1.y = 299.1
|
|
L10_1.z = 0.0
|
|
L9_1.rot = L10_1
|
|
L9_1.level = 32
|
|
L9_1.route_id = 310300065
|
|
L9_1.area_id = 6
|
|
L10_1 = {}
|
|
L10_1.config_id = 193008
|
|
L10_1.gadget_id = 70211111
|
|
L11_1 = {}
|
|
L11_1.x = 1109.646
|
|
L11_1.y = 349.435
|
|
L11_1.z = 1542.265
|
|
L10_1.pos = L11_1
|
|
L11_1 = {}
|
|
L11_1.x = 348.527
|
|
L11_1.y = 267.801
|
|
L11_1.z = 8.153
|
|
L10_1.rot = L11_1
|
|
L10_1.level = 21
|
|
L10_1.drop_tag = "\232\167\163\232\176\156\228\184\173\231\186\167\231\146\131\230\156\136"
|
|
L10_1.showcutscene = true
|
|
L10_1.isOneoff = true
|
|
L10_1.persistent = true
|
|
L11_1 = {}
|
|
L11_1.name = "chest"
|
|
L11_1.exp = 1
|
|
L10_1.explore = L11_1
|
|
L10_1.area_id = 6
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_1
|
|
L2_1[4] = L6_1
|
|
L2_1[5] = L7_1
|
|
L2_1[6] = L8_1
|
|
L2_1[7] = L9_1
|
|
L2_1[8] = L10_1
|
|
gadgets = L2_1
|
|
L2_1 = {}
|
|
regions = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 1193009
|
|
L3_1.name = "GADGET_STATE_CHANGE_193009"
|
|
L4_1 = EventType
|
|
L4_1 = L4_1.EVENT_GADGET_STATE_CHANGE
|
|
L3_1.event = L4_1
|
|
L3_1.source = ""
|
|
L3_1.condition = ""
|
|
L3_1.action = "action_EVENT_GADGET_STATE_CHANGE_193009"
|
|
L3_1.trigger_count = 0
|
|
L4_1 = {}
|
|
L4_1.config_id = 1193010
|
|
L4_1.name = "GADGET_STATE_CHANGE_193010"
|
|
L5_1 = EventType
|
|
L5_1 = L5_1.EVENT_GADGET_STATE_CHANGE
|
|
L4_1.event = L5_1
|
|
L4_1.source = ""
|
|
L4_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_193010"
|
|
L4_1.action = "action_EVENT_GADGET_STATE_CHANGE_193010"
|
|
L5_1 = {}
|
|
L5_1.config_id = 1193011
|
|
L5_1.name = "VARIABLE_CHANGE_193011"
|
|
L6_1 = EventType
|
|
L6_1 = L6_1.EVENT_VARIABLE_CHANGE
|
|
L5_1.event = L6_1
|
|
L5_1.source = ""
|
|
L5_1.condition = "condition_EVENT_VARIABLE_CHANGE_193011"
|
|
L5_1.action = "action_EVENT_VARIABLE_CHANGE_193011"
|
|
L6_1 = {}
|
|
L6_1.config_id = 1193012
|
|
L6_1.name = "GADGET_STATE_CHANGE_193012"
|
|
L7_1 = EventType
|
|
L7_1 = L7_1.EVENT_GADGET_STATE_CHANGE
|
|
L6_1.event = L7_1
|
|
L6_1.source = ""
|
|
L6_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_193012"
|
|
L6_1.action = "action_EVENT_GADGET_STATE_CHANGE_193012"
|
|
L6_1.trigger_count = 0
|
|
L7_1 = {}
|
|
L7_1.config_id = 1193013
|
|
L7_1.name = "GADGET_CREATE_193013"
|
|
L8_1 = EventType
|
|
L8_1 = L8_1.EVENT_GADGET_CREATE
|
|
L7_1.event = L8_1
|
|
L7_1.source = ""
|
|
L7_1.condition = "condition_EVENT_GADGET_CREATE_193013"
|
|
L7_1.action = "action_EVENT_GADGET_CREATE_193013"
|
|
L7_1.trigger_count = 0
|
|
L8_1 = {}
|
|
L8_1.config_id = 1193014
|
|
L8_1.name = "SELECT_OPTION_193014"
|
|
L9_1 = EventType
|
|
L9_1 = L9_1.EVENT_SELECT_OPTION
|
|
L8_1.event = L9_1
|
|
L8_1.source = ""
|
|
L8_1.condition = "condition_EVENT_SELECT_OPTION_193014"
|
|
L8_1.action = "action_EVENT_SELECT_OPTION_193014"
|
|
L8_1.trigger_count = 0
|
|
L9_1 = {}
|
|
L9_1.config_id = 1193015
|
|
L9_1.name = "GROUP_REFRESH_193015"
|
|
L10_1 = EventType
|
|
L10_1 = L10_1.EVENT_GROUP_REFRESH
|
|
L9_1.event = L10_1
|
|
L9_1.source = ""
|
|
L9_1.condition = ""
|
|
L9_1.action = "action_EVENT_GROUP_REFRESH_193015"
|
|
L10_1 = {}
|
|
L10_1.config_id = 1193016
|
|
L10_1.name = "ANY_GADGET_DIE_193016"
|
|
L11_1 = EventType
|
|
L11_1 = L11_1.EVENT_ANY_GADGET_DIE
|
|
L10_1.event = L11_1
|
|
L10_1.source = ""
|
|
L10_1.condition = ""
|
|
L10_1.action = "action_EVENT_ANY_GADGET_DIE_193016"
|
|
L10_1.trigger_count = 0
|
|
L11_1 = {}
|
|
L11_1.config_id = 1193017
|
|
L11_1.name = "GADGET_CREATE_193017"
|
|
L12_1 = EventType
|
|
L12_1 = L12_1.EVENT_GADGET_CREATE
|
|
L11_1.event = L12_1
|
|
L11_1.source = ""
|
|
L11_1.condition = "condition_EVENT_GADGET_CREATE_193017"
|
|
L11_1.action = "action_EVENT_GADGET_CREATE_193017"
|
|
L11_1.trigger_count = 0
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_1
|
|
L2_1[4] = L6_1
|
|
L2_1[5] = L7_1
|
|
L2_1[6] = L8_1
|
|
L2_1[7] = L9_1
|
|
L2_1[8] = L10_1
|
|
L2_1[9] = L11_1
|
|
triggers = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.configId = 1
|
|
L3_1.name = "count"
|
|
L3_1.value = 0
|
|
L3_1.no_refresh = false
|
|
L2_1[1] = L3_1
|
|
variables = L2_1
|
|
L2_1 = {}
|
|
L2_1.suite = 1
|
|
L2_1.end_suite = 2
|
|
L2_1.rand_suite = false
|
|
init_config = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L4_1 = {}
|
|
L3_1.monsters = L4_1
|
|
L4_1 = {}
|
|
L5_1 = 193001
|
|
L6_1 = 193002
|
|
L7_1 = 193003
|
|
L8_1 = 193004
|
|
L4_1[1] = L5_1
|
|
L4_1[2] = L6_1
|
|
L4_1[3] = L7_1
|
|
L4_1[4] = L8_1
|
|
L3_1.gadgets = L4_1
|
|
L4_1 = {}
|
|
L3_1.regions = L4_1
|
|
L4_1 = {}
|
|
L5_1 = "GADGET_STATE_CHANGE_193009"
|
|
L6_1 = "GADGET_STATE_CHANGE_193010"
|
|
L7_1 = "VARIABLE_CHANGE_193011"
|
|
L8_1 = "GADGET_STATE_CHANGE_193012"
|
|
L9_1 = "GADGET_CREATE_193013"
|
|
L10_1 = "SELECT_OPTION_193014"
|
|
L11_1 = "GROUP_REFRESH_193015"
|
|
L12_1 = "ANY_GADGET_DIE_193016"
|
|
L4_1[1] = L5_1
|
|
L4_1[2] = L6_1
|
|
L4_1[3] = L7_1
|
|
L4_1[4] = L8_1
|
|
L4_1[5] = L9_1
|
|
L4_1[6] = L10_1
|
|
L4_1[7] = L11_1
|
|
L4_1[8] = L12_1
|
|
L3_1.triggers = L4_1
|
|
L3_1.rand_weight = 100
|
|
L4_1 = {}
|
|
L5_1 = {}
|
|
L4_1.monsters = L5_1
|
|
L5_1 = {}
|
|
L6_1 = 193001
|
|
L7_1 = 193008
|
|
L5_1[1] = L6_1
|
|
L5_1[2] = L7_1
|
|
L4_1.gadgets = L5_1
|
|
L5_1 = {}
|
|
L4_1.regions = L5_1
|
|
L5_1 = {}
|
|
L6_1 = "GADGET_CREATE_193017"
|
|
L5_1[1] = L6_1
|
|
L4_1.triggers = L5_1
|
|
L4_1.rand_weight = 100
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
suites = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2
|
|
L2_2 = A1_2.param1
|
|
L3_2 = GadgetState
|
|
L3_2 = L3_2.GearStart
|
|
if L2_2 == L3_2 then
|
|
L2_2 = A1_2.param3
|
|
L3_2 = GadgetState
|
|
L3_2 = L3_2.Default
|
|
if L2_2 == L3_2 then
|
|
L2_2 = A1_2.param2
|
|
L3_2 = L1_1.gadget_target_1S
|
|
if L2_2 == L3_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.CreateGadget
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L5_2 = L1_1.gadget_target_1E
|
|
L4_2.config_id = L5_2
|
|
L2_2(L3_2, L4_2)
|
|
else
|
|
L2_2 = A1_2.param2
|
|
L3_2 = L1_1.gadget_target_2S
|
|
if L2_2 == L3_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.CreateGadget
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L5_2 = L1_1.gadget_target_2E
|
|
L4_2.config_id = L5_2
|
|
L2_2(L3_2, L4_2)
|
|
else
|
|
L2_2 = A1_2.param2
|
|
L3_2 = L1_1.gadget_target_3S
|
|
if L2_2 == L3_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.CreateGadget
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L5_2 = L1_1.gadget_target_3E
|
|
L4_2.config_id = L5_2
|
|
L2_2(L3_2, L4_2)
|
|
end
|
|
end
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
else
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
action_EVENT_GADGET_STATE_CHANGE_193009 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2
|
|
L2_2 = A1_2.param2
|
|
if 193001 == L2_2 then
|
|
L2_2 = GadgetState
|
|
L2_2 = L2_2.Action01
|
|
L3_2 = A1_2.param1
|
|
if L2_2 == L3_2 then
|
|
goto lbl_11
|
|
end
|
|
end
|
|
L2_2 = false
|
|
do return L2_2 end
|
|
::lbl_11::
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.group_id
|
|
L5_2 = L1_1.gadget_target_1S
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 0 == L2_2 then
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.group_id
|
|
L5_2 = L1_1.gadget_target_2S
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 0 == L2_2 then
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.group_id
|
|
L5_2 = L1_1.gadget_target_3S
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 0 == L2_2 then
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
condition_EVENT_GADGET_STATE_CHANGE_193010 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.RefreshGroup
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.group_id = 133103193
|
|
L4_2.suite = 1
|
|
L2_2 = L2_2(L3_2, L4_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : refresh_group_to_suite"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_GADGET_STATE_CHANGE_193010 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = A1_2.param1
|
|
L3_2 = A1_2.param2
|
|
if L2_2 == L3_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "count"
|
|
L2_2 = L2_2(L3_2, L4_2)
|
|
if L2_2 ~= 3 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_VARIABLE_CHANGE_193011 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 193001
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.GearAction1
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GoToGroupSuite
|
|
L3_2 = A0_2
|
|
L4_2 = 133103193
|
|
L5_2 = 2
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : goto_groupSuite"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.MarkPlayerAction
|
|
L3_2 = A0_2
|
|
L4_2 = 2008
|
|
L5_2 = 3
|
|
L6_2 = 1
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : mark_playerAction"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_VARIABLE_CHANGE_193011 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = A1_2.param2
|
|
if 193001 == L2_2 then
|
|
L2_2 = GadgetState
|
|
L2_2 = L2_2.GearStart
|
|
L3_2 = A1_2.param1
|
|
if L2_2 == L3_2 then
|
|
goto lbl_11
|
|
end
|
|
end
|
|
L2_2 = false
|
|
do return L2_2 end
|
|
::lbl_11::
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_GADGET_STATE_CHANGE_193012 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.MarkPlayerAction
|
|
L3_2 = A0_2
|
|
L4_2 = 2008
|
|
L5_2 = 1
|
|
L6_2 = 1
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : mark_playerAction"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.DelWorktopOptionByGroupId
|
|
L3_2 = A0_2
|
|
L4_2 = 133103193
|
|
L5_2 = 193001
|
|
L6_2 = 171
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : del_work_options_by_group_configId"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_GADGET_STATE_CHANGE_193012 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2
|
|
L2_2 = A1_2.param1
|
|
if 193001 == L2_2 then
|
|
L2_2 = GadgetState
|
|
L2_2 = L2_2.Default
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.GetGadgetStateByConfigId
|
|
L4_2 = A0_2
|
|
L5_2 = 0
|
|
L6_2 = A1_2.param1
|
|
L3_2 = L3_2(L4_2, L5_2, L6_2)
|
|
if L2_2 == L3_2 then
|
|
goto lbl_16
|
|
end
|
|
end
|
|
L2_2 = false
|
|
do return L2_2 end
|
|
::lbl_16::
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_GADGET_CREATE_193013 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetWorktopOptionsByGroupId
|
|
L3_2 = A0_2
|
|
L4_2 = 133103193
|
|
L5_2 = 193001
|
|
L6_2 = {}
|
|
L7_2 = 171
|
|
L6_2[1] = L7_2
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : set_wok_options_by_configid"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_GADGET_CREATE_193013 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2
|
|
L2_2 = A1_2.param1
|
|
if 193001 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_SELECT_OPTION_193014 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 193001
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.GearStart
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_SELECT_OPTION_193014 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetWorktopOptionsByGroupId
|
|
L3_2 = A0_2
|
|
L4_2 = 133103193
|
|
L5_2 = 193001
|
|
L6_2 = {}
|
|
L7_2 = 171
|
|
L6_2[1] = L7_2
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : set_wok_options_by_configid"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_GROUP_REFRESH_193015 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2
|
|
L2_2 = A1_2.param1
|
|
L3_2 = L1_1.gadget_target_1E
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = A1_2.param1
|
|
L3_2 = L1_1.gadget_target_2E
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = A1_2.param1
|
|
L3_2 = L1_1.gadget_target_3E
|
|
if L2_2 ~= L3_2 then
|
|
goto lbl_19
|
|
end
|
|
end
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.ChangeGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "count"
|
|
L5_2 = 1
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
::lbl_19::
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_ANY_GADGET_DIE_193016 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2
|
|
L2_2 = A1_2.param1
|
|
if 193001 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_GADGET_CREATE_193017 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 193001
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.GearAction1
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_GADGET_CREATE_193017 = L2_1
|