diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/main.js | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/scripts/main.js b/scripts/main.js index b8de9e4..5483adf 100644 --- a/scripts/main.js +++ b/scripts/main.js | |||
@@ -108,8 +108,8 @@ ${cell_y * (CELL_SIZE + 1) + 1})`}, ASSET_WHITE_BG, TILES[idx].inner_svg); | |||
108 | 108 | ||
109 | function PlanView({plan, mouse_state}) | 109 | function PlanView({plan, mouse_state}) |
110 | { | 110 | { |
111 | console.debug("Looking at plan ", plan); | 111 | return h("div", {"id": "PlanView"}, |
112 | return h("div", {}, | 112 | h("div", {"id": "EntryIndicator"}, "⬇️"), |
113 | h(PlanGridView, {content: plan, mouse_state: mouse_state})); | 113 | h(PlanGridView, {content: plan, mouse_state: mouse_state})); |
114 | } | 114 | } |
115 | 115 | ||
@@ -190,13 +190,17 @@ function App({initial_state}) | |||
190 | } | 190 | } |
191 | 191 | ||
192 | return h("div", {}, | 192 | return h("div", {}, |
193 | h(FloorSelector, {floor: state.floor + 1, | 193 | h("div", {"class": "MainWrapper"}, |
194 | on_floor_change: onFloorChange}), | 194 | h("aside", {}, |
195 | h(AssetsView, {on_drag_begin: onDragAssetBegin, | 195 | h(FloorSelector, {floor: state.floor + 1, |
196 | on_drag_end: onDragAssetEnd}), | 196 | on_floor_change: onFloorChange}), |
197 | h("div", {"class": "LabeledPanel"}, | ||
198 | h("h2", {}, "Rooms"), | ||
199 | h(AssetsView, {on_drag_begin: onDragAssetBegin, | ||
200 | on_drag_end: onDragAssetEnd}))), | ||
201 | h(PlanView, {plan: state.plan[state.floor], | ||
202 | mouse_state: state.mouse_state})), | ||
197 | h("hr", {}), | 203 | h("hr", {}), |
198 | h(PlanView, {plan: state.plan[state.floor], | ||
199 | mouse_state: state.mouse_state}), | ||
200 | h("div", {}, | 204 | h("div", {}, |
201 | h("textarea", {readonly: true}, state.plan_code)), | 205 | h("textarea", {readonly: true}, state.plan_code)), |
202 | h("div", {"class": "ButtonRow"}, | 206 | h("div", {"class": "ButtonRow"}, |