File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ namespace TSMapEditor.UI
1919{
2020 public class MainMenu : EditorPanel
2121 {
22- private const string DirectoryPrefix = "<DIR> " ;
2322 private const int BrowseButtonWidth = 70 ;
2423
2524 public MainMenu ( WindowManager windowManager ) : base ( windowManager )
@@ -184,10 +183,18 @@ public override void Initialize()
184183 settingsPanel . Name = nameof ( settingsPanel ) ;
185184 settingsPanel . X = Width ;
186185 settingsPanel . Y = Constants . UIEmptyTopSpace ;
187- settingsPanel . Height = Height - Constants . UIEmptyTopSpace - Constants . UIEmptyBottomSpace ;
186+ settingsPanel . Height = lbFileList . Bottom - settingsPanel . Y ;
188187 AddChild ( settingsPanel ) ;
189188 Width += settingsPanel . Width + Constants . UIEmptySideSpace ;
190189
190+ var lblVersion = new XNALabel ( WindowManager ) ;
191+ lblVersion . Name = nameof ( lblVersion ) ;
192+ lblVersion . Text = "Version " + Constants . ReleaseVersion ;
193+ lblVersion . TextColor = UISettings . ActiveSettings . SubtleTextColor ;
194+ AddChild ( lblVersion ) ;
195+ lblVersion . CenterOnControlVertically ( btnLoad ) ;
196+ lblVersion . X = Width - lblVersion . Width - Constants . UIEmptySideSpace ;
197+
191198 string directoryPath = string . Empty ;
192199
193200 if ( ! string . IsNullOrWhiteSpace ( tbGameDirectory . Text ) )
You can’t perform that action at this time.
0 commit comments