summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/ui/blueprint/BlueprintEditor.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/javascripts/ui/blueprint/BlueprintEditor.js')
-rw-r--r--public/assets/javascripts/ui/blueprint/BlueprintEditor.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/public/assets/javascripts/ui/blueprint/BlueprintEditor.js b/public/assets/javascripts/ui/blueprint/BlueprintEditor.js
index cf9dea6..0b27d0c 100644
--- a/public/assets/javascripts/ui/blueprint/BlueprintEditor.js
+++ b/public/assets/javascripts/ui/blueprint/BlueprintEditor.js
@@ -108,7 +108,7 @@ var BlueprintEditor = View.extend(AnimatedView.prototype).extend({
}
shapes.forEach(function(shape){
- shape.draw(map.draw.ctx)
+// shape.draw(map.draw.ctx)
})
map.draw.ctx.strokeStyle = "#f00";
@@ -117,14 +117,16 @@ var BlueprintEditor = View.extend(AnimatedView.prototype).extend({
map.draw.camera(scene.camera)
this.rooms.open_segments.forEach(function(seg,i){
- map.draw.ctx.fillStyle = "#00f"
+ map.draw.ctx.fillStyle = "rgba(0,0,255,0.2)"
map.draw.ctx.fillRect( seg.x.a, seg.y.a, seg.width()+10, seg.height() )
})
this.rooms.closed_segments.forEach(function(seg,i){
- map.draw.ctx.fillStyle = "#0ff"
+ map.draw.ctx.fillStyle = "rgba(0,255,0,0.2)"
map.draw.ctx.fillRect( seg.x.a, seg.y.a, seg.width()+10, seg.height() )
})
+
+ var colors = ["rgba(0,0,0,0.1)"]
this.rooms.rooms.forEach(function(room,i){
map.draw.ctx.fillStyle = colors[i % colors.length]