Client: Fix text scaling from few commits ago

This commit is contained in:
UnknownShadow200 2016-10-18 10:00:32 +11:00
parent 764fea65cb
commit 5c71517f1d
2 changed files with 5 additions and 14 deletions

View file

@ -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() {

View file

@ -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,