fix tutorial button positioning

This commit is contained in:
nelle 2024-01-06 22:17:52 -07:00
parent 1161fe551e
commit f23e169bdc
4 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ org.gradle.jvmargs=-Xmx1G
# More versions available at: https://grayray75.github.io/LegacyFabric-Versions/ # More versions available at: https://grayray75.github.io/LegacyFabric-Versions/
minecraft_version = 1.7.10 minecraft_version = 1.7.10
yarn_build = 533 yarn_build = 533
loader_version = 0.14.24 loader_version = 0.15.3
# Legacy Fabric API # Legacy Fabric API
# Also available for mc 1.7.10, 1.8, 1.9.4, 1.10.2, 1.11.2 and 1.12.2 # Also available for mc 1.7.10, 1.8, 1.9.4, 1.10.2, 1.11.2 and 1.12.2

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

View file

@ -23,7 +23,7 @@ public class TitleScreenMixin extends Screen {
@Inject(at = @At("RETURN"), method = "initWidgetsNormal") @Inject(at = @At("RETURN"), method = "initWidgetsNormal")
private void addCustomButton(int spacingY, int par2, CallbackInfo ci) { private void addCustomButton(int spacingY, int par2, CallbackInfo ci) {
if(TUTORIAL_BUTTON_TOGGLE) { if(TUTORIAL_BUTTON_TOGGLE) {
this.buttons.add(new ButtonWidget(13, this.width / 2 + 105, 108, 50, 20, I18n.translate("menu.tutorial", new Object[0]))); this.buttons.add(new ButtonWidget(13, this.width / 2 + 105, spacingY, 50, 20, I18n.translate("menu.tutorial", new Object[0])));
} }
} }