From 37a07821341d69eff940467991b2c306e4cf5c16 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 28 Jun 2020 19:08:11 +0200 Subject: [PATCH] fixed the gdpr screen having the wrong textures --- TouchyTickets/Ui.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TouchyTickets/Ui.cs b/TouchyTickets/Ui.cs index 8393abe..ba1d635 100644 --- a/TouchyTickets/Ui.cs +++ b/TouchyTickets/Ui.cs @@ -32,8 +32,6 @@ namespace TouchyTickets { public Ui(UiSystem uiSystem) { this.uiSystem = uiSystem; - this.uiSystem.Style.PanelTexture = this.uiSystem.Style.ScrollBarBackground = new NinePatch(Texture[2, 1], 4); - this.uiSystem.Style.ButtonTexture = this.uiSystem.Style.ScrollBarScrollerTexture = new NinePatch(Texture[3, 1], 4); this.uiSystem.Style.ActionSound = new SoundEffectInfo(MlemGame.LoadContent("Sounds/Click"), 0.5F); this.uiSystem.TextFormatter.AddImage("ticket", Texture[2, 0]); this.uiSystem.TextFormatter.AddImage("star", Texture[3, 0]); @@ -452,6 +450,8 @@ namespace TouchyTickets { uiSystem.AutoScaleWithScreen = true; uiSystem.AutoScaleReferenceSize = new Point(720, 1280); uiSystem.Style.Font = new GenericSpriteFont(MlemGame.LoadContent("Fonts/Regular")); + uiSystem.Style.PanelTexture = uiSystem.Style.ScrollBarBackground = new NinePatch(Texture[2, 1], 4); + uiSystem.Style.ButtonTexture = uiSystem.Style.ScrollBarScrollerTexture = new NinePatch(Texture[3, 1], 4); uiSystem.Style.TextScale = 0.1F; }