1
0
Fork 0

Fixed bootstrap and coding style

This commit is contained in:
Michaël Lemaire 2015-01-21 01:00:00 +01:00
parent 7695540a77
commit c77056ac4c
3 changed files with 8 additions and 4 deletions

View file

@ -140,9 +140,13 @@ def bootstrap_buildout(venv_dir, bootstrap_path):
else:
fp.close()
print("Bootstrapping Buildout using: %s %s install..." % (
print("Bootstrapping Buildout using: %s %s..." % (
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:

View file

@ -26,7 +26,7 @@ module SpaceTac.View {
var background = new Phaser.Button(battleview.game, 0, 0, "ui-arena-background");
var expected_width = this.stage.width - 252;
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;
// Capture clicks on background

View file

@ -19,7 +19,7 @@ module SpaceTac.View {
super(battleview.game);
// 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.anchor.set(0.5, 0.5);
this.hover.visible = false;