From 5c71517f1d34a85593695cccc5bdb6bb4a151ba5 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Tue, 18 Oct 2016 10:00:32 +1100 Subject: [PATCH] Client: Fix text scaling from few commits ago --- ClassicalSharp/2D/Screens/ChatScreen.cs | 15 +++------------ ClassicalSharp/2D/Screens/Menu/NostalgiaScreen.cs | 4 ++-- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/ClassicalSharp/2D/Screens/ChatScreen.cs b/ClassicalSharp/2D/Screens/ChatScreen.cs index 82e291814..d58c17fd9 100644 --- a/ClassicalSharp/2D/Screens/ChatScreen.cs +++ b/ClassicalSharp/2D/Screens/ChatScreen.cs @@ -295,18 +295,9 @@ namespace ClassicalSharp.Gui.Screens { } public override void OnResize( int width, int height ) { - announcement.OnResize( width, height ); - announcement.YOffset = -height / 4; - announcement.MoveTo( announcement.X, announcement.YOffset - announcement.Height / 2 ); - textInput.YOffset = 5; - bottomRight.YOffset = hud.BottomOffset * 3 / 2; - - int inputY = game.Height - textInput.Height - textInput.YOffset; - textInput.MoveTo( textInput.X, inputY ); - status.OnResize( width, height ); - bottomRight.OnResize( width, height ); - UpdateChatYOffset( true ); - UpdateAltTextY(); + bool active = altText != null && altText.Active; + Recreate(); + altText.SetActive( active ); } void ResetChat() { diff --git a/ClassicalSharp/2D/Screens/Menu/NostalgiaScreen.cs b/ClassicalSharp/2D/Screens/Menu/NostalgiaScreen.cs index b83883d78..30c7f6e6a 100644 --- a/ClassicalSharp/2D/Screens/Menu/NostalgiaScreen.cs +++ b/ClassicalSharp/2D/Screens/Menu/NostalgiaScreen.cs @@ -15,8 +15,8 @@ namespace ClassicalSharp.Gui.Screens { widgets = new Widget[] { // Column 1 - MakeBool( -1, -100, "Simple arms anim", OptionsKey.SimpleArmsAnim, - OnWidgetClick, g => g.SimpleArmsAnim, (g, v) => g.SimpleArmsAnim = v ), + MakeBool( -1, -100, "Classic arms anim", OptionsKey.SimpleArmsAnim, + OnWidgetClick, g => !g.SimpleArmsAnim, (g, v) => g.SimpleArmsAnim = !v ), MakeBool( -1, -50, "Classic gui textures", OptionsKey.UseClassicGui, OnWidgetClick, g => g.UseClassicGui, (g, v) => g.UseClassicGui = v ), MakeBool( -1, 0, "Classic player list", OptionsKey.UseClassicTabList,