Update vtm-web modules (#240) #51

This commit is contained in:
Izumi Kawashima
2016-11-20 17:37:01 +09:00
committed by Emux
parent bfa5a095f0
commit 308497ffa6
16 changed files with 1410 additions and 752 deletions

View File

@@ -28,6 +28,8 @@ import org.timepedia.exporter.client.ExporterUtil;
public class GwtLauncher extends GwtApplication {
private ApplicationListener applicationListener;
@Override
public void onModuleLoad() {
//GWT.create(GwtGdxMap.class);
@@ -46,7 +48,6 @@ public class GwtLauncher extends GwtApplication {
cfg.canvasId = "map-canvas";
cfg.stencil = true;
cfg.fps = 120;
return cfg;
}
@@ -55,6 +56,14 @@ public class GwtLauncher extends GwtApplication {
public ApplicationListener getApplicationListener() {
Tile.SIZE = MapConfig.get().getTileSize();
if (applicationListener == null) {
applicationListener = createApplicationListener();
}
return applicationListener;
}
@Override
public ApplicationListener createApplicationListener() {
return new GwtMap();
}