You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Yafc/Utils/Preferences.cs
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,18 @@ public void Save() {
45
45
publicbooldarkMode{get;set;}
46
46
publicstringlanguage{get;set;}="en";
47
47
publicstring?overrideFont{get;set;}
48
+
/// <summary>
49
+
/// Whether or not the main screen should be created maximized.
50
+
/// </summary>
51
+
publicboolmaximizeMainScreen{get;set;}
52
+
/// <summary>
53
+
/// The initial width of the main screen or the width the main screen will be after being restored, depending on whether it starts restored or maximized.
54
+
/// </summary>
55
+
publicfloatinitialMainScreenWidth{get;set;}
56
+
/// <summary>
57
+
/// The initial height of the main screen or the height the main screen will be after being restored, depending on whether it starts restored or maximized.
Create("Yet Another Factorio Calculator CE v"+YafcLib.version,display);
58
+
Create("Yet Another Factorio Calculator CE v"+YafcLib.version,display,Preferences.Instance.initialMainScreenWidth,Preferences.Instance.initialMainScreenHeight,Preferences.Instance.maximizeMainScreen);
0 commit comments