Fixed bootstrap and coding style
This commit is contained in:
parent
7695540a77
commit
c77056ac4c
|
@ -140,9 +140,13 @@ def bootstrap_buildout(venv_dir, bootstrap_path):
|
||||||
else:
|
else:
|
||||||
fp.close()
|
fp.close()
|
||||||
|
|
||||||
print("Bootstrapping Buildout using: %s %s install..." % (
|
print("Bootstrapping Buildout using: %s %s..." % (
|
||||||
python_bin, bootstrap_path))
|
python_bin, bootstrap_path))
|
||||||
subprocess.check_call([python_bin, bootstrap_path, "install"])
|
subprocess.check_call([python_bin, bootstrap_path])
|
||||||
|
|
||||||
|
print("Invoking bootstrapped buildout...")
|
||||||
|
buildout_bin = os.path.join(os.path.dirname(bootstrap_path), "bin", "buildout")
|
||||||
|
subprocess.check_call([buildout_bin])
|
||||||
|
|
||||||
|
|
||||||
if len(sys.argv) == 2:
|
if len(sys.argv) == 2:
|
||||||
|
|
|
@ -26,7 +26,7 @@ module SpaceTac.View {
|
||||||
var background = new Phaser.Button(battleview.game, 0, 0, "ui-arena-background");
|
var background = new Phaser.Button(battleview.game, 0, 0, "ui-arena-background");
|
||||||
var expected_width = this.stage.width - 252;
|
var expected_width = this.stage.width - 252;
|
||||||
var expected_height = this.stage.height - 100;
|
var expected_height = this.stage.height - 100;
|
||||||
background.scale.set(expected_width/ background.width, expected_height / background.height);
|
background.scale.set(expected_width / background.width, expected_height / background.height);
|
||||||
this.background = background;
|
this.background = background;
|
||||||
|
|
||||||
// Capture clicks on background
|
// Capture clicks on background
|
||||||
|
|
|
@ -19,7 +19,7 @@ module SpaceTac.View {
|
||||||
super(battleview.game);
|
super(battleview.game);
|
||||||
|
|
||||||
// Add hover effect
|
// Add hover effect
|
||||||
this.hover = new Phaser.Image(battleview.game, 0, 0, "ui-battle-shipspritehover");
|
this.hover = new Phaser.Image(battleview.game, 0, 0, "ui-battle-shipspritehover", 0);
|
||||||
this.hover.scale.set(0.4, 0.4);
|
this.hover.scale.set(0.4, 0.4);
|
||||||
this.hover.anchor.set(0.5, 0.5);
|
this.hover.anchor.set(0.5, 0.5);
|
||||||
this.hover.visible = false;
|
this.hover.visible = false;
|
||||||
|
|
Loading…
Reference in a new issue