Esempio n. 1
0
 @Override
 public void onGuiClosed() {
   super.onGuiClosed();
   if (this.prevSize != -1) {
     this.mc.gameSettings.guiScale = this.prevSize;
   }
 }
Esempio n. 2
0
 @Override
 public void updateScreen() {
   super.updateScreen();
   if (this.prevSize == -1) {
     this.prevSize = this.mc.gameSettings.guiScale;
     this.mc.gameSettings.guiScale = 3;
     ScaledResolution resolution = new ScaledResolution(this.mc);
     this.setWorldAndResolution(
         this.mc, resolution.getScaledWidth(), resolution.getScaledHeight());
   }
 }
Esempio n. 3
0
 @Override
 public void initGui() {
   super.initGui();
 }