Add player as an event argument

This commit is contained in:
Cooldude2606
2025-01-29 23:47:32 +00:00
parent 1a88592a8a
commit 6850cfa968
17 changed files with 91 additions and 141 deletions

View File

@@ -252,7 +252,7 @@ local button_apply = Gui.element("button_apply")
type = "button",
caption = { "module.apply" },
style = "button",
}:on_click(function(player)
}:on_click(function(def, player, element)
if Selection.is_selecting(player, SelectionModuleArea) then
Selection.stop(player)
else
@@ -268,7 +268,7 @@ module_container = Gui.element("module_container")
})
local slots_per_row = config.module_slots_per_row + 1
local scroll_table = Gui.elements.scroll_table(container, (config.module_slots_per_row + 2) * 36, slots_per_row)
local scroll_table = Gui.elements.scroll_table(container, (config.module_slots_per_row + 2) * 36, slots_per_row, "scroll")
for i = 1, config.default_module_row_count do
scroll_table.add{