Skip to content

Commit dacbb5d

Browse files
committed
Add 2025 sim modal files
1 parent 18c69ee commit dacbb5d

File tree

3 files changed

+86
-2
lines changed

3 files changed

+86
-2
lines changed

public/javascripts/sim_editor/sim_editor.2025.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2595,7 +2595,7 @@ app.controller('SimEditorController', ['$scope', '$uibModal', '$log', '$http','$
25952595
if ($scope.selectRoom == -1) {
25962596
var modalInstance = $uibModal.open({
25972597
animation: true,
2598-
templateUrl: '/templates/sim_editor/sim_editor_modal.2024.html',
2598+
templateUrl: '/templates/sim_editor/sim_editor_modal.2025.html',
25992599
controller: 'ModalInstanceCtrl',
26002600
size: 'lg',
26012601
scope: $scope,
@@ -2734,7 +2734,7 @@ app.controller('SimEditorController', ['$scope', '$uibModal', '$log', '$http','$
27342734

27352735
var modalInstance = $uibModal.open({
27362736
animation: true,
2737-
templateUrl: '/templates/sim_editor/custom_room_4_modal.html',
2737+
templateUrl: '/templates/sim_editor/custom_room_4_modal.2025.html',
27382738
controller: 'CustomRoom4ModalCtrl',
27392739
size: 'lg',
27402740
scope: $scope,
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<div style="display: flex; flex-direction: column; align-items: center">
2+
<div id="test"></div>
3+
<h1 style="margin: 10px">Custom Room 4 Creator</h1>
4+
<canvas
5+
id="room4Canvas"
6+
style="
7+
border-color: black;
8+
border-style: solid;
9+
border-width: 1px;
10+
margin: 10px;
11+
"
12+
drawing
13+
>
14+
</canvas>
15+
<button style="margin: 7px" ng-click="clearCanvas()">Clear Canvas</button>
16+
<div style="display: flex; flex-direction: row">
17+
<input type="checkbox" id="drawWall" checked /><label
18+
class="checkbox"
19+
for="drawWall"
20+
>Draw Walls (Black)</label
21+
>
22+
<input type="checkbox" id="drawVic" /><label class="checkbox" for="drawVic"
23+
>Draw Victims (Red)</label
24+
>
25+
<input type="checkbox" id="erase" /><label class="checkbox" for="erase"
26+
>Erase</label
27+
>
28+
</div>
29+
<div
30+
style="
31+
display: flex;
32+
flex-direction: row;
33+
width: 100%;
34+
justify-content: center;
35+
border-color: black;
36+
border-style: solid;
37+
border-width: 1px;
38+
"
39+
>
40+
<div style="margin-top: 7px; margin-bottom: 7px">Import Room 4 Picture to Canvas:</div>
41+
<input
42+
type="file"
43+
id="importCanvas"
44+
accept="image/png, image/jpeg"
45+
style="margin-left: 10px; margin-top: 7px; margin-bottom: 7px"
46+
onclick="this.value=null;"
47+
/>
48+
</div>
49+
<div
50+
style="
51+
display: flex;
52+
flex-direction: row;
53+
width: 100%;
54+
justify-content: center;
55+
border-color: black;
56+
border-style: solid;
57+
border-width: 1px;
58+
"
59+
>
60+
<button style="margin: 7px" ng-click="downloadCanvas()">
61+
Download Custom Room 4
62+
</button>
63+
</div>
64+
<button
65+
style="
66+
margin: 5px;
67+
padding-right: 15px;
68+
padding-left: 15px;
69+
padding-top: 10px;
70+
padding-bottom: 10px;
71+
background-color: blue;
72+
color: white;
73+
border-color: white;
74+
border-style: solid;
75+
border-width: 1px;
76+
border-radius: 20%;
77+
"
78+
ng-click="closeRoom4()"
79+
>
80+
OK
81+
</button>
82+
</div>

public/templates/sim_editor/sim_editor_modal.2023.html renamed to public/templates/sim_editor/sim_editor_modal.2025.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ <h3 class="modal-title">{{"admin.simMapEditor.item" | translate}}</h3>
3030
<option value="#4d1a99">Purple (Room 2 ←→ Room 3)</option>
3131
<option value="#e71a1a">Red (Room 3 ←→ Room 4)</option>
3232
<option value="#08D508">Green (Room 1 ←→ Room 4)</option>
33+
<option value="#e7991a">Orange (Room 2 ←→ Room 4)</option>
34+
<option value="#e7e71a">Yellow (Room 1 ←→ Room 3)</option>
3335
</select>
3436
</li>
3537
</ul>

0 commit comments

Comments
 (0)