示例#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();
 }