-
Notifications
You must be signed in to change notification settings - Fork 7
/
main.html
181 lines (158 loc) · 5.35 KB
/
main.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<head>
<style>
.game-ui {
flex-direction: column;
justify-content: space-between;
align-items: stretch;
align-content: stretch;
}
.container {
justify-content: center;
align-items: center;
margin-top: 50px;
flex-grow: 1;
}
.panel-outer {
width: 300px;
height: 300px;
margin-top: 120px;
margin-left: 130px;
flex-direction: column;
align-items: center;
justify-content: center;
}
.panel-inner {
flex-direction: column;
align-items: center;
justify-content: center;
margin-top: 20px;
width: 245px;
height: 200px;
}
.gauge-container {
width: 180px;
height: 38px;
align-items: flex-start;
justify-content: flex-start;
flex-direction: column;
}
.gauge-container2 {
width: 180px;
height: 38px;
align-items: flex-start;
justify-content: flex-start;
flex-direction: column;
margin-top: 30px;
}
.gauge {
width: 180px;
height: 18px;
}
.buttons {
flex-direction: row;
align-items: center;
justify-content: center;
margin-top: 20px;
margin-bottom: 20px;
flex-grow: 1;
}
.button-inventory {
width: 190px;
height: 49px;
}
.button-ok {
width: 45px;
height: 49px;
margin-left: 10;
}
.bottom-buttons {
height: 140px;
width: 480px;
justify-content: center;
align-items: flex-end;
margin-bottom: 20px;
}
.gauge-text {
margin-bottom: 2px;
}
.bottom-button {
margin-top: 5px;
margin-bottom: 10px;
margin-left: 20px;
margin-right: 20px;
}
.close-button {
position: absolute;
left: 283px;
top: -15;
width: 35px;
height: 38px
}
.close-button-sprite {
position: absolute;
left: 18;
top: 17
}
.play-game-container {
position: absolute;
left: 20;
top: 52;
}
.play-game-panel {
width: 260px;
height: 140px;
flex-direction: column;
align-items: center;
justify-content: center;
}
.play-game-buttons {
width: 100;
height: 50;
flex-direction: row;
align-items: center;
justify-content: center;
}
</style>
</head>
<body>
<div class="game-ui">
<div class="container">
<panel class="panel-outer" sprite="panel_brown.png">
<panel class="panel-inner" sprite="panelInset_beige.png">
<div class="gauge-container">
<gauge-text class="gauge-text">Health</gauge-text>
<gauge class="gauge" color="Green"></gauge>
</div>
<div class="gauge-container2">
<gauge-text class="gauge-text">Mana</gauge-text>
<gauge class="gauge" color="Blue"></gauge>
</div>
</panel>
<div class="buttons">
<button sprite="buttonLong_blue.png" sprite_pressed="buttonLong_blue_pressed.png" class="button-inventory">Inventory</button>
<button sprite="buttonSquare_blue.png" sprite_pressed="buttonSquare_blue_pressed.png" class="button-ok">OK</button>
</div>
<button class="close-button" sprite="buttonRound_blue.png">
<sprite sprite="iconCross_beige.png" class="close-button-sprite"></sprite>
</button>
</panel>
</div>
<div class="bottom-buttons">
<bottom-button class="bottom-button" sprite="buttonSquare_brown.png" sprite_pressed="buttonSquare_brown_pressed.png">A</bottom-button>
<bottom-button class="bottom-button" sprite="buttonSquare_brown.png" sprite_pressed="buttonSquare_brown_pressed.png">B</bottom-button>
<bottom-button class="bottom-button" sprite="buttonSquare_brown.png" sprite_pressed="buttonSquare_brown_pressed.png">C</bottom-button>
<bottom-button class="bottom-button" sprite="buttonSquare_brown.png" sprite_pressed="buttonSquare_brown_pressed.png">D</bottom-button>
</div>
<div class="play-game-container">
<panel class="play-game-panel" sprite="glassPanel_corners.png">
<play-game-text id="play-game-text" style="margin-bottom: 20px; width: 55%;"></play-game-text>
<div class="play-game-buttons">
<panel-button sprite="glassPanel_projection.png">YES</panel-button>
<panel-button sprite="glassPanel_projection.png" style="margin-left: 20px;">NO</panel-button>
</div>
</panel>
</div>
</div>
</body>
</html>