mark a todo + add some #regions

pull/32/head
Miepee 4 years ago
parent ea0a5d947f
commit b9eb2228a3

@ -682,6 +682,7 @@ namespace AM2RLauncher
// Get drawing variables
float height = drawable.Height;
float width = drawable.Width;
//TODO: apparently winforms is the big outlier here. Works normal on wpf, I have *no* idea why, investigate and submit issue at eto
float scaleDivisor = OS.IsWindows ? 955f : 715f; // Magic brute-forced values. Don't ask questions, because we don't have answers >_>
// Also, seems like nix systems share the same scaleDivisor. Again, don't ask.
float scale = height / scaleDivisor;

@ -390,6 +390,7 @@ namespace AM2RLauncher
#region TABS
#region MAIN PAGE
// [MAIN PAGE]
mainPage = new TabPage
{
@ -397,9 +398,10 @@ namespace AM2RLauncher
Text = Language.Text.PlayTab,
Content = drawable
};
#endregion
#region CHANGELOG PAGE
// [CHANGELOG]
changelogUri = new Uri("https://am2r-community-developers.github.io/DistributionCenter/changelog.html");
changelogWebView = new WebView { Url = changelogUri };
@ -427,6 +429,10 @@ namespace AM2RLauncher
}
};
#endregion
#region NEWS PAGE
// [NEWS]
newsUri = new Uri("https://am2r-community-developers.github.io/DistributionCenter/news.html");
newsWebView = new WebView { Url = newsUri };
@ -476,6 +482,10 @@ namespace AM2RLauncher
};
}
#endregion
#region SETTINGS PAGE
// [LAUNCHER SETTINGS]
DynamicLayout settingsLayout = new DynamicLayout();
@ -634,8 +644,11 @@ namespace AM2RLauncher
Text = Language.Text.LauncherSettingsTab
};
// [MOD SETTINGS]
#endregion
#region MODSETTINGS PAGE
// [MOD SETTINGS]
DynamicLayout profileLayout = new DynamicLayout();
@ -753,6 +766,8 @@ namespace AM2RLauncher
#endregion
#endregion
Content = new TabControl
{
Pages =

Loading…
Cancel
Save