|
|
@@ -6,7 +6,6 @@ var UI = Atomic.UI;
|
|
|
var UIWindow = Atomic.UIWindow;
|
|
|
|
|
|
var window;
|
|
|
-var network;
|
|
|
|
|
|
function closeWindow() {
|
|
|
|
|
|
@@ -38,26 +37,19 @@ exports.init = function() {
|
|
|
|
|
|
closeWindow();
|
|
|
|
|
|
- game.createScene2D();
|
|
|
+ var node = game.scene.createChild("SpaceGame");
|
|
|
+ node.createJSComponent("Components/SpaceGame.js");
|
|
|
|
|
|
- var node = game.scene.createChild("SpaceGame");
|
|
|
- node.createJSComponent("Components/SpaceGame.js");
|
|
|
}
|
|
|
|
|
|
window.getWidget("about").onClick = function () {
|
|
|
|
|
|
- closeWindow();
|
|
|
-
|
|
|
// disable ourselves until ok is clicked on about
|
|
|
- //window.setState(UI.WIDGET_STATE_DISABLED, true);
|
|
|
-
|
|
|
- //var ui = require("./ui");
|
|
|
- //ui.showAbout(function() {window.setState(UI.WIDGET_STATE_DISABLED, false);});
|
|
|
+ window.setState(UI.WIDGET_STATE_DISABLED, true);
|
|
|
|
|
|
- game.createScene2D();
|
|
|
+ var ui = require("./ui");
|
|
|
+ ui.showAbout(function() {window.setState(UI.WIDGET_STATE_DISABLED, false);});
|
|
|
|
|
|
- network = new Atomic.Network();
|
|
|
- network.connectSimple('127.0.0.1', 27000, game.scene);
|
|
|
}
|
|
|
|
|
|
window.getWidget("options").onClick = function () {
|