Temporarily Disable Tutorial Button

This commit is contained in:
nelle 2023-09-29 02:42:09 -06:00
parent 7ead5ab7d5
commit ffc1188bdc

View file

@ -17,6 +17,7 @@ import static xyz.limepot.emb.EMB.MOD_VER;
@Mixin(TitleScreen.class)
public class TitleScreenMixin extends Screen {
/*Tutorial Button, Temprorarily disabled until I can figure out how to package the world with the mod and hijack the world loading process, oh and make a nice gui screen maybe?
@Inject(at = @At("RETURN"), method = "initWidgetsNormal")
private void addCustomButton(int spacingY, int par2, CallbackInfo ci) {
this.buttons.add(new ButtonWidget(13, this.width / 2 + 105, 108, 50, 20, I18n.translate("menu.tutorial", new Object[0])));
@ -26,6 +27,7 @@ public class TitleScreenMixin extends Screen {
private void CustomButtonClicked(ButtonWidget par1, CallbackInfo ci) {
if (par1.id == 13) this.client.setScreen(new SettingsScreen(this, this.client.options));
}
*/
@ModifyArg(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/screen/TitleScreen;drawWithShadow(Lnet/minecraft/client/font/TextRenderer;Ljava/lang/String;III)V"))
private String addEMBBranding(String text) {