mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-11-14 05:34:52 +09:00
.
This commit is contained in:
1 parent
ff799196ed
commit
7aa2cc222a
1 file changed
+15
-5
@@ -69,12 +69,22 @@ function main.gui_update(player, entity)
|
||||
|
||||
local val = cs1.min or 0
|
||||
|
||||
if player.gui.relative.phi_cl_combinator_config and player.gui.relative.phi_cl_combinator_config['default'] and player.gui.relative.phi_cl_combinator_config['default']['table_research_queue'] then
|
||||
local dropdown = player.gui.relative.phi_cl_combinator_config['default']['table_research_queue']['research_queue_dropdown']
|
||||
if not player.gui.relative.phi_cl_combinator_config then
|
||||
return
|
||||
end
|
||||
|
||||
if dropdown then
|
||||
dropdown.selected_index = ((val < 0 or val > 3) and 1) or (val + 1)
|
||||
end
|
||||
if not player.gui.relative.phi_cl_combinator_config['default'] then
|
||||
return
|
||||
end
|
||||
|
||||
if not player.gui.relative.phi_cl_combinator_config['default']['table_research_queue'] then
|
||||
return
|
||||
end
|
||||
|
||||
local dropdown = player.gui.relative.phi_cl_combinator_config['default']['table_research_queue']['research_queue_dropdown']
|
||||
|
||||
if dropdown then
|
||||
dropdown.selected_index = ((val < 0 or val > 3) and 1) or (val + 1)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user