Update core files

This commit is contained in:
Cooldude2606
2023-10-01 22:40:49 +01:00
parent d82514ccb6
commit 51480e4ca5
4 changed files with 62 additions and 27 deletions

View File

@@ -48,6 +48,7 @@ end)
]]
function Gui._prototype_element:add_to_top_flow(authenticator)
if not self.name then error("Elements for the top flow must have a static name") end
Gui.top_elements[self.name] = authenticator or true
return self
end
@@ -138,7 +139,8 @@ function Gui.toolbar_button(sprite, tooltip, authenticator)
type = 'sprite-button',
sprite = sprite,
tooltip = tooltip,
style = Gui.top_flow_button_style
style = Gui.top_flow_button_style,
name = Gui.unique_static_name
}
:style{
minimal_width = 36,