package com.cherokeelessons.cll2ev1.views;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.utils.viewport.FitViewport;

import net.peakgames.libgdx.stagebuilder.core.AbstractGame;
import net.peakgames.libgdx.stagebuilder.core.AbstractScreen;

public abstract class CllScreen extends AbstractScreen {
	protected final String TAG = this.getClass().getSimpleName();
	protected void log(String message) {
		Gdx.app.log(TAG, message);
	}

	public CllScreen(AbstractGame game) {
		super(game, false);
	}
	
	@Override
	public boolean isResizable() {
		return false;
	}
	
	@Override
	public void resize(int newWidth, int newHeight) {
		super.resize(newWidth, newHeight);
		stage.getViewport().update(newWidth, newHeight, true);
	}
	
	@Override
	public void show() {
		super.show();
		stage.setViewport(new FitViewport(1280, 720));
		game.resize(1, 1);
		Gdx.app.postRunnable(new Runnable() {
			public void run() {
				game.resize(graphics.getWidth(), graphics.getHeight());
			}
		});
	}
}

@@ -117,16 +117,60 @@
 iewport;
+%0Aimport com.cherokeelessons.cll2ev1.CLL2EV1;
 %0A%0Aimport
@@ -783,24 +783,30 @@
 ide%0A%09public 
+final 
 void show() 
@@ -863,17 +863,48 @@
 ort(
-1280, 720
+CLL2EV1.worldSize.x, CLL2EV1.worldSize.y
 ));%0A

make hack non-override-able