Пример #1
0
 @Override
 public void onGuiClosed() {
   super.onGuiClosed();
   if (this.prevSize != -1) {
     this.mc.gameSettings.guiScale = this.prevSize;
   }
 }
Пример #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());
   }
 }
Пример #3
0
 @Override
 public void initGui() {
   super.initGui();
 }