File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ Global g_GraphicsOutput:GraphicsOutput = Null
26
26
27
27
Repeat
28
28
g_SettingsManager = New SettingsManager ()
29
- g_UserInterface = New UserInterface ()
29
+ g_UserInterface = New UserInterface (g_DefaultMaximizeWindow )
30
30
g_FileIO = New FileIO ()
31
31
g_GraphicsOutput = New GraphicsOutput (g_UserInterface.GetMaxWorkspaceWidth())
32
32
EnablePolledInput()
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ Import "Utility.bmx"
2
2
3
3
'//// SETTINGS MANAGER //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4
4
5
+ Global g_DefaultMaximizeWindow:Int = False
5
6
Global g_DefaultBackgroundRed:Int = 50
6
7
Global g_DefaultBackgroundGreen:Int = 170
7
8
Global g_DefaultBackgroundBlue:Int = 255
@@ -42,6 +43,8 @@ Type SettingsManager
42
43
propAndValue[ 1 ] = propAndValue[ 1 ] .Trim()
43
44
44
45
Select propAndValue[ 0 ]
46
+ Case " StartMaximizedWindow"
47
+ g_DefaultMaximizeWindow = Utility.Clamp(propAndValue[ 1 ] .ToInt(), False , True )
45
48
Case " BackgroundRed"
46
49
g_DefaultBackgroundRed = Utility.Clamp(propAndValue[ 1 ] .ToInt(), 0 , 255 )
47
50
Case " BackgroundGreen"
@@ -76,6 +79,7 @@ Type SettingsManager
76
79
Method WriteSettingsFile (propertyValues:String [] )
77
80
Local outputString:TStringBuilder = New TStringBuilder (" // User Settings~n~n " )
78
81
82
+ outputString.Append(" StartMaximizedWindow = " + g_DefaultMaximizeWindow + " ~n " )
79
83
outputString.Append(" BackgroundRed = " + propertyValues[ 0 ] + " ~n " )
80
84
outputString.Append(" BackgroundGreen = " + propertyValues[ 1 ] + " ~n " )
81
85
outputString.Append(" BackgroundBlue = " + propertyValues[ 2 ] + " ~n " )
Original file line number Diff line number Diff line change @@ -78,9 +78,12 @@ Type UserInterface
78
78
79
79
'////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
80
80
81
- Method New ()
81
+ Method New (startMaximized: Int )
82
82
InitializeUserInterface()
83
83
InitializeCanvasGraphics()
84
+ If startMaximized Then
85
+ MaximizeWindow(m_MainWindow)
86
+ EndIf
84
87
EndMethod
85
88
86
89
'////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
You can’t perform that action at this time.
0 commit comments