mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-23 17:43:08 -05:00
Client: Fix text scaling from few commits ago
This commit is contained in:
parent
764fea65cb
commit
5c71517f1d
2 changed files with 5 additions and 14 deletions
|
@ -295,18 +295,9 @@ namespace ClassicalSharp.Gui.Screens {
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnResize( int width, int height ) {
|
public override void OnResize( int width, int height ) {
|
||||||
announcement.OnResize( width, height );
|
bool active = altText != null && altText.Active;
|
||||||
announcement.YOffset = -height / 4;
|
Recreate();
|
||||||
announcement.MoveTo( announcement.X, announcement.YOffset - announcement.Height / 2 );
|
altText.SetActive( active );
|
||||||
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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ResetChat() {
|
void ResetChat() {
|
||||||
|
|
|
@ -15,8 +15,8 @@ namespace ClassicalSharp.Gui.Screens {
|
||||||
|
|
||||||
widgets = new Widget[] {
|
widgets = new Widget[] {
|
||||||
// Column 1
|
// Column 1
|
||||||
MakeBool( -1, -100, "Simple arms anim", OptionsKey.SimpleArmsAnim,
|
MakeBool( -1, -100, "Classic arms anim", OptionsKey.SimpleArmsAnim,
|
||||||
OnWidgetClick, g => g.SimpleArmsAnim, (g, v) => g.SimpleArmsAnim = v ),
|
OnWidgetClick, g => !g.SimpleArmsAnim, (g, v) => g.SimpleArmsAnim = !v ),
|
||||||
MakeBool( -1, -50, "Classic gui textures", OptionsKey.UseClassicGui,
|
MakeBool( -1, -50, "Classic gui textures", OptionsKey.UseClassicGui,
|
||||||
OnWidgetClick, g => g.UseClassicGui, (g, v) => g.UseClassicGui = v ),
|
OnWidgetClick, g => g.UseClassicGui, (g, v) => g.UseClassicGui = v ),
|
||||||
MakeBool( -1, 0, "Classic player list", OptionsKey.UseClassicTabList,
|
MakeBool( -1, 0, "Classic player list", OptionsKey.UseClassicTabList,
|
||||||
|
|
Loading…
Add table
Reference in a new issue