fix tutorial button positioning
This commit is contained in:
parent
1161fe551e
commit
f23e169bdc
4 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
BIN
run/screenshots/2023-12-05_18.27.52.png
Normal file
BIN
run/screenshots/2023-12-05_18.27.52.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 MiB |
|
@ -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])));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue