summaryrefslogtreecommitdiff
path: root/Penguloon/StaticUIValues.cs
diff options
context:
space:
mode:
authoraldrikboy <aldrikboy@gmail.com>2017-12-11 22:02:13 +0100
committeraldrikboy <aldrikboy@gmail.com>2017-12-11 22:02:13 +0100
commitfd6fa4e5cebbe3edb65d50c78dcc8a97ce98ce64 (patch)
tree8950f6b9023e0b47e22e1cd4869ab76de0803f4c /Penguloon/StaticUIValues.cs
parentc4c0f3c887d627b6432551e96009c7aeecd4cdd8 (diff)
First commit
Diffstat (limited to 'Penguloon/StaticUIValues.cs')
-rw-r--r--Penguloon/StaticUIValues.cs64
1 files changed, 64 insertions, 0 deletions
diff --git a/Penguloon/StaticUIValues.cs b/Penguloon/StaticUIValues.cs
new file mode 100644
index 0000000..48ae696
--- /dev/null
+++ b/Penguloon/StaticUIValues.cs
@@ -0,0 +1,64 @@
+using Microsoft.Xna.Framework;
+using Microsoft.Xna.Framework.Graphics;
+
+namespace Penguloon
+{
+ public static class StaticUIValues
+ {
+ public static Vector2 ScreenViewport { get; private set; }
+
+ public static Vector2 LoadingProgressbarSize { get; set; }
+ public static Vector2 LoadingProgressbarPosition { get; set; }
+ public static Vector2 LoadingProgressbarValuePosition { get; set; }
+
+ public static int LevelSelectorHeight { get; set; }
+
+ public static Vector2 MenuButtonSize { get; set; }
+
+ public static int SnowflakeSize { get; set; }
+
+ public static string MenuFont { get; set; }
+
+ public static int IngameUIWidth { get; set; }
+
+ public static void Initialize(Main main)
+ {
+ ScreenViewport = main.GraphicsDevice.Viewport.Bounds.Size.ToVector2();
+
+ if(ScreenViewport.X >= 2440)
+ {
+ LevelSelectorHeight = 600;
+ LoadingProgressbarSize = new Vector2((int)(800 * 2), (int)(150 * 2));
+ MenuButtonSize = new Vector2(800, 150);
+ MenuFont = "Fonts/GWENT/72";
+ }
+ else if (ScreenViewport.X >= 1920)
+ {
+ LevelSelectorHeight = 600;
+ MenuButtonSize = new Vector2((int)(800 * 1), (int)(150 * 1));
+ LoadingProgressbarSize = new Vector2((int)(800 * 1.3), (int)(150 * 1.3));
+ MenuFont = "Fonts/GWENT/72";
+ }
+ else if (ScreenViewport.X >= 1280)
+ {
+ LevelSelectorHeight = 400;
+ MenuButtonSize = new Vector2((int)(800 * 0.7), (int)(150 * 0.7));
+ LoadingProgressbarSize = new Vector2((int)(800 * 1), (int)(150 * 1));
+ MenuFont = "Fonts/GWENT/48";
+ }
+ else
+ {
+ LevelSelectorHeight = 400;
+ MenuButtonSize = new Vector2((int)(800 * 0.7), (int)(150 * 0.7));
+ LoadingProgressbarSize = new Vector2((int)(800 * 0.7), (int)(150 * 0.7));
+ MenuFont = "Fonts/GWENT/48";
+ }
+
+ LoadingProgressbarPosition = new Vector2((ScreenViewport.X - LoadingProgressbarSize.X) / 2, ScreenViewport.Y - LoadingProgressbarSize.Y - 200);
+ LoadingProgressbarValuePosition = new Vector2(LoadingProgressbarPosition.X + 5, LoadingProgressbarPosition.Y + 5);
+
+ IngameUIWidth = 250;
+ SnowflakeSize = 100;
+ }
+ }
+} \ No newline at end of file