summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/ui
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-08-21 12:55:44 -0400
committerJules Laplace <jules@okfoc.us>2015-08-21 12:55:44 -0400
commit62c899384b0cf4aab6288f662e12f11321de95df (patch)
tree1eb1963e5bf5e24e6f89b0e0ddc8ce0d48144de2 /public/assets/javascripts/ui
parentca76295998fb75e9ab9c83ee9a1a694b9e0656c1 (diff)
getting full coverage with rooms
Diffstat (limited to 'public/assets/javascripts/ui')
-rw-r--r--public/assets/javascripts/ui/blueprint/BlueprintEditor.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/public/assets/javascripts/ui/blueprint/BlueprintEditor.js b/public/assets/javascripts/ui/blueprint/BlueprintEditor.js
index 7ec1352..cf9dea6 100644
--- a/public/assets/javascripts/ui/blueprint/BlueprintEditor.js
+++ b/public/assets/javascripts/ui/blueprint/BlueprintEditor.js
@@ -116,9 +116,14 @@ var BlueprintEditor = View.extend(AnimatedView.prototype).extend({
map.draw.mouse(map.ui.mouse.cursor)
map.draw.camera(scene.camera)
- this.rooms.segments.forEach(function(seg,i){
- map.draw.ctx.fillStyle = "#f00"
- map.draw.ctx.fillRect( seg.x.a, seg.y.a, seg.width()+1, seg.height()+1 )
+ this.rooms.open_segments.forEach(function(seg,i){
+ map.draw.ctx.fillStyle = "#00f"
+ 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.fillRect( seg.x.a, seg.y.a, seg.width()+10, seg.height() )
})
this.rooms.rooms.forEach(function(room,i){