From 3983ee0adcf3b37c3e4016f6cc046216e01f316c Mon Sep 17 00:00:00 2001
From: Thorsten Goetzke
Date: Thu, 11 Jan 2024 23:14:49 +0100
Subject: [PATCH] pasting untested stuff from chatgpt
---
scripts/caravan/caravan-global-gui.lua | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/scripts/caravan/caravan-global-gui.lua b/scripts/caravan/caravan-global-gui.lua
index 936a4fd4..69133609 100644
--- a/scripts/caravan/caravan-global-gui.lua
+++ b/scripts/caravan/caravan-global-gui.lua
@@ -8,6 +8,12 @@ Caravan.events.on_open_global_gui = function(event)
local main_frame = player.gui.screen.add { type = 'frame', name = 'caravan_gui_global', caption = { 'caravan-global-gui.caption' }, direction = 'vertical' }
main_frame.style.width = 436
main_frame.style.minimal_height = 710
+ main_frame.add {
+ type = "sprite-button",
+ name = "caravan_organizer_closeButton",
+ sprite = "utility/close_white",
+ style = "frame_action_button"
+ }
local content_frame = main_frame.add { type = 'frame', direction = 'vertical',
style = 'inside_shallow_frame_with_padding' }