mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-08 00:39:30 +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,21 +206,24 @@ end)
|
||||
|
||||
local function on_gui_selection_state_changed(event)
|
||||
local player = game.players[event.player_index]
|
||||
if not event.element.valid then return end
|
||||
local name = event.element.name
|
||||
if global.dropdown_users_choice_force == nil then
|
||||
initialize_dropdown_users_choice()
|
||||
end
|
||||
if name == "dropdown-force" then
|
||||
global.dropdown_users_choice_force[player.name] = event.element.selected_index
|
||||
build_config_gui(player, frame_sciencelogs)
|
||||
end
|
||||
if name == "dropdown-science" then
|
||||
global.dropdown_users_choice_science[player.name] = event.element.selected_index
|
||||
build_config_gui(player, frame_sciencelogs)
|
||||
end
|
||||
if name == "dropdown-evofilter" then
|
||||
global.dropdown_users_choice_evo_filter[player.name] = event.element.selected_index
|
||||
end
|
||||
build_config_gui(player, frame_sciencelogs)
|
||||
end
|
||||
end
|
||||
|
||||
event.add(defines.events.on_gui_selection_state_changed, on_gui_selection_state_changed)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user