From be6f00d0e9b068dfcaa713958feda9a02ea17449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Mon, 29 May 2017 23:01:50 +0200 Subject: [PATCH] Fixed missing drone sprite image --- out/loot.html | 51 ++++++++++++++++++++++++++++++------- src/ui/battle/ArenaDrone.ts | 2 +- 2 files changed, 43 insertions(+), 10 deletions(-) diff --git a/out/loot.html b/out/loot.html index 34c45ff..ce8bbc8 100644 --- a/out/loot.html +++ b/out/loot.html @@ -9,20 +9,43 @@ * { margin: 0; } - + body { background-color: #111; color: #eee; } - + h1 { font-size: 30px; } - + h2 { font-size: 22px; margin-top: 12px; } + + input[type="range"] { + position: relative; + margin-left: 1em; + width: 300px; + } + + input[type="range"]:after, + input[type="range"]:before { + position: absolute; + top: 20px; + color: #aaa; + } + + input[type="range"]:before { + left: 0em; + content: attr(min); + } + + input[type="range"]:after { + right: 0em; + content: attr(max); + } @@ -32,26 +55,36 @@

SpaceTac - Loot Generator Samples

+ +
diff --git a/src/ui/battle/ArenaDrone.ts b/src/ui/battle/ArenaDrone.ts index 8028b0c..ae50605 100644 --- a/src/ui/battle/ArenaDrone.ts +++ b/src/ui/battle/ArenaDrone.ts @@ -45,7 +45,7 @@ module TS.SpaceTac.UI { this.activation.visible = false; this.add(this.activation); - this.sprite = new Phaser.Button(this.game, 0, 0, `battle-actions-deploy-${drone.code}`); + this.sprite = new Phaser.Button(this.game, 0, 0, battleview.getImage(`equipment-${drone.code}`, `battle-actions-deploy-${drone.code}`)); this.sprite.anchor.set(0.5, 0.5); this.sprite.scale.set(0.1, 0.1); this.add(this.sprite);