@@ -105,6 +105,13 @@ def initialize_ui(self):
105105 self .detect_unreal_versions ()
106106 self .load_project_uproject_file ()
107107
108+ self .setup_version_label ()
109+
110+ def setup_version_label (self ):
111+ version_text = config .get ("version" )
112+ self .version_label = tk .Label (self .root , text = f"Version: { version_text } " , fg = "grey" )
113+ self .version_label .pack (side = tk .TOP , fill = tk .X )
114+
108115
109116 def has_uproject_file (self ):
110117 """Checks if the project directory contains a .uproject file."""
@@ -246,8 +253,15 @@ def setup_main_page(self):
246253 self .copy_command_button = Button (bottom_frame , text = "Copy Command" , command = self .copy_text_to_clipboard )
247254 self .copy_command_button .pack (side = tk .LEFT , padx = 5 )
248255
249- self .launch_button = Button (bottom_frame , text = "Launch" , state = 'disabled' , command = self .launch_project )
250- self .launch_button .pack (side = tk .LEFT , padx = 5 )
256+ # New bottom frame for the Launch button
257+ launch_button_frame = tk .Frame (self .root ) # Create the frame
258+ launch_button_frame .pack (side = tk .BOTTOM , fill = tk .X )
259+
260+ # Configure the Launch button to fill the X-axis in its frame
261+ self .launch_button = tk .Button (launch_button_frame , text = "Launch" , state = 'disabled' , command = self .launch_project )
262+ self .launch_button .pack (fill = tk .X , padx = 10 , pady = 10 )
263+
264+ version_label = tk .Label (bottom_frame , text = config .get ("version" ))
251265
252266
253267 def copy_text_to_clipboard (self , event = None ):
0 commit comments