1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-12-15 23:41:28 +02:00

Mtn: fix more bugs

This commit is contained in:
Gerkiz
2024-10-27 09:21:16 +01:00
parent a8f2db5fe2
commit d3ce9d24cb
9 changed files with 53 additions and 16 deletions

View File

@@ -281,8 +281,10 @@ function Public.add_main_frame_with_toolbar(player, align, set_frame_name, set_s
end
end
local close_button
if close_main_frame_name then
titlebar.add {
close_button = titlebar.add {
type = 'sprite-button',
name = close_main_frame_name,
style = 'frame_action_button',
@@ -304,7 +306,7 @@ function Public.add_main_frame_with_toolbar(player, align, set_frame_name, set_s
name = 'inside_frame'
}
return main_frame, inside_frame
return main_frame, inside_frame, close_button
end
-- Removes data associated with LuaGuiElement and its children recursively.