mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-10 00:43:27 +02:00
Merge pull request #139 from Masamune0/adminLogFixSwitchMutagen
Admin log : fix bug of always switching to mutagen log by using the dropdown
This commit is contained in:
commit
37147bfd3e
@ -206,20 +206,23 @@ end)
|
|||||||
|
|
||||||
local function on_gui_selection_state_changed(event)
|
local function on_gui_selection_state_changed(event)
|
||||||
local player = game.players[event.player_index]
|
local player = game.players[event.player_index]
|
||||||
|
if not event.element.valid then return end
|
||||||
local name = event.element.name
|
local name = event.element.name
|
||||||
if global.dropdown_users_choice_force == nil then
|
if global.dropdown_users_choice_force == nil then
|
||||||
initialize_dropdown_users_choice()
|
initialize_dropdown_users_choice()
|
||||||
end
|
end
|
||||||
if name == "dropdown-force" then
|
if name == "dropdown-force" then
|
||||||
global.dropdown_users_choice_force[player.name] = event.element.selected_index
|
global.dropdown_users_choice_force[player.name] = event.element.selected_index
|
||||||
|
build_config_gui(player, frame_sciencelogs)
|
||||||
end
|
end
|
||||||
if name == "dropdown-science" then
|
if name == "dropdown-science" then
|
||||||
global.dropdown_users_choice_science[player.name] = event.element.selected_index
|
global.dropdown_users_choice_science[player.name] = event.element.selected_index
|
||||||
|
build_config_gui(player, frame_sciencelogs)
|
||||||
end
|
end
|
||||||
if name == "dropdown-evofilter" then
|
if name == "dropdown-evofilter" then
|
||||||
global.dropdown_users_choice_evo_filter[player.name] = event.element.selected_index
|
global.dropdown_users_choice_evo_filter[player.name] = event.element.selected_index
|
||||||
end
|
|
||||||
build_config_gui(player, frame_sciencelogs)
|
build_config_gui(player, frame_sciencelogs)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
event.add(defines.events.on_gui_selection_state_changed, on_gui_selection_state_changed)
|
event.add(defines.events.on_gui_selection_state_changed, on_gui_selection_state_changed)
|
||||||
|
Loading…
Reference in New Issue
Block a user