├── compile.hxml
├── gc.code-workspace
├── haxeui-heaps.properties
├── readme.md
├── res
├── base
│ ├── fnt
│ │ ├── Avdira.fnt
│ │ └── Avdira.png
│ ├── main-view.xml
│ ├── main.css
│ └── test.xml
├── fonts
│ ├── Arial.cfg
│ ├── Arial.fnt
│ ├── Arial.png
│ ├── Avdira.fnt
│ ├── Avdira.png
│ └── arial.ttf
└── gui
│ ├── hud.xml
│ ├── hud_orig.xml
│ ├── indButton.xml
│ ├── init.xml
│ ├── loadGame.xml
│ ├── myTheme
│ ├── fonts
│ │ ├── Arial.fnt
│ │ ├── Arial.png
│ │ ├── Avdira.fnt
│ │ └── Avdira.png
│ ├── images
│ │ ├── Button.png
│ │ ├── flw_corp.png
│ │ ├── haxe_logo.png
│ │ ├── haxeui.png
│ │ ├── heaps_logo.png
│ │ ├── heaps_logo.svg
│ │ ├── icons
│ │ │ └── gc
│ │ │ │ ├── arrow.png
│ │ │ │ ├── folder.png
│ │ │ │ ├── gc_camper.png
│ │ │ │ ├── gc_fun.png
│ │ │ │ ├── gc_lot.png
│ │ │ │ ├── gc_money.png
│ │ │ │ ├── gc_options.png
│ │ │ │ ├── gc_plus.png
│ │ │ │ ├── gc_restroom.png
│ │ │ │ ├── gc_rv.png
│ │ │ │ ├── gc_shower.png
│ │ │ │ ├── gc_swim.png
│ │ │ │ ├── gc_swings.png
│ │ │ │ └── gc_tent.png
│ │ ├── parchment.png
│ │ ├── tent3.png
│ │ ├── white_tent.xcf
│ │ ├── wood_border.png
│ │ └── woodplank.png
│ ├── sounds
│ │ └── cherokee_shuffle.wav
│ └── styles
│ │ ├── buttons.css
│ │ ├── dialog.css
│ │ └── main.css
│ ├── newGame.xml
│ ├── options.xml
│ ├── splash.xml
│ └── start.xml
├── simplescreenrecorder.mp4
└── src
├── Main.hx
├── gui
├── GcFunButton.hx
├── GcLotButton.hx
├── Gui.hx
├── Hud.hx
├── LoadScreen.hx
├── NewScreen.hx
├── OptionsScreen.hx
└── StartMenu.hx
├── module.xml
└── template.hx
/compile.hxml:
--------------------------------------------------------------------------------
1 | -cp src
2 |
3 | -lib heaps
4 | -lib hlsdl
5 | -lib haxeui-core
6 | -lib haxeui-heaps
7 |
8 | -D linux
9 | -D windowSize=1024x768
10 | -D debug
11 | -hl gc.hl
12 | -main Main
13 | --debug
--------------------------------------------------------------------------------
/gc.code-workspace:
--------------------------------------------------------------------------------
1 | {
2 | "folders": [
3 | {
4 | "path": "."
5 | }
6 | ],
7 | "settings": {}
8 | }
--------------------------------------------------------------------------------
/haxeui-heaps.properties:
--------------------------------------------------------------------------------
1 | haxe.ui.heaps.background.color=0x000000
2 | haxe.ui.theme=myTheme
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | # A HaxeUI Basic Gui
2 |
3 | This project is an example of an actual basic gui that I am using in my projects. It is currently targeted for Heaps HashLink but certainly can be easily modified for any other HaxeUI Target.
4 |
5 | ## Features
6 | 1. Animated Initialization screen with logos and music to load shared system items (eg: assets, music, gui items)
7 | 2. Custom Components (HaxeUI)
8 | 3. Directory/File loading example
9 | 4. Options settings
10 | 5. HUD
11 | 6. Themed Styles
12 |
13 | ## Info
14 |
15 | As you look at the scenes hx code, you will see an "@:build". This macro will build the screen for you and has the additional feature of making any component with a defined "id" a variable to be used in the code. No need to do a "findComponent".
16 |
17 | The "custom components" along with the "theme" is defined in the module.xml file. Note: it is important to have the parent theme define unless you are going to define a style for every component used.
18 |
19 | The HUD screen has some additional custom components for indicators used on the expanding menus.
20 |
21 | ## Acknowledgement
22 |
23 | I can not express enough thanks to Ian Harrigan for being patient with me trying to learn HaxeUI. I hope that whatever project you use his library in, you would give him credit for such a great resource to provide the building blocks to our UIs.
--------------------------------------------------------------------------------
/res/base/fnt/Avdira.fnt:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/res/base/fnt/Avdira.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/base/fnt/Avdira.png
--------------------------------------------------------------------------------
/res/base/main-view.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/res/base/main.css:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | ** Main styles
3 | *************************************************/
4 | .component {
5 |
6 | }
7 |
8 | .custom-component {
9 | width: auto;
10 | height: auto;
11 | }
12 |
13 |
14 |
15 | .default-background {
16 | background-color: #61da10;
17 | }
18 |
19 | /*************************************************
20 | ** Container Styles
21 | *************************************************/
22 | .box .hbox .vbox {
23 | width: auto;
24 | height: auto;
25 | padding: 5px 5px;
26 | background-color: #61da10;
27 | }
28 |
29 | /*************************************************
30 | ** Label Styles
31 | *************************************************/
32 | .label {
33 | width: auto;
34 | height: auto;
35 | font-size: 48px;
36 | font-family: Arial, Helvetica, sans-serif;
37 | font-name: "fonts/Avdira.ttf";
38 | color: white;
39 | /* text-align: center; */
40 | }
41 |
42 | /*************************************************
43 | ** Image Styles
44 | *************************************************/
45 | .image {
46 | width: auto;
47 | height: auto;
48 | }
49 |
50 | /*************************************************
51 | ** Specific
52 | *************************************************/
53 |
54 |
55 | #buttonBox {
56 | /* background-color: green;*/
57 | background-image: "images/parchment.png";
58 | background-image-repeat: stretch;
59 | background-color: #61da10;
60 | }
61 |
62 | #splash {
63 | background-image: "../myTheme/images/hong_kong.jpg";
64 | background-image-repeat: stretch;
65 | background-color: #61da10;
66 | }
67 |
68 | #haxelogo {
69 | opacity: 0;
70 | }
71 |
72 | #haxeui {
73 | opacity: 0;
74 | }
75 |
76 | /*************************************************
77 | ** Animations
78 | *************************************************/
79 | @keyframes fade {
80 | 0% {
81 | opacity: 0;
82 | }
83 | 100% {
84 | opacity: 1;
85 | }
86 | }
87 |
88 | .fadeIn {
89 | animation: fade 5s ease 0s 1;
90 | }
91 |
92 | .fadeOut {
93 | animation: fade 2s ease 0s 1 reverse backwards;
94 | }
95 |
96 |
--------------------------------------------------------------------------------
/res/base/test.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/res/fonts/Arial.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "opt": {
3 | "version": "msdf-bmfont-xml v2.5.4",
4 | "outputType": "xml",
5 | "filename": "Arial",
6 | "fontSize": 42,
7 | "textureSize": [
8 | 512,
9 | 256
10 | ],
11 | "texturePadding": 1,
12 | "border": 0,
13 | "distanceRange": 3,
14 | "fieldType": "sdf",
15 | "roundDecimal": 0,
16 | "vector": false,
17 | "smartSize": false,
18 | "pot": false,
19 | "square": false,
20 | "rot": false,
21 | "rtl": false,
22 | "fontFile": "arial.ttf",
23 | "fontSpacing": [
24 | 0,
25 | 0
26 | ],
27 | "fontPadding": [
28 | 1,
29 | 1,
30 | 1,
31 | 1
32 | ],
33 | "textureWidth": 512,
34 | "textureHeight": 256,
35 | "tolerance": 0,
36 | "charset": [
37 | " ",
38 | "!",
39 | "\"",
40 | "#",
41 | "$",
42 | "%",
43 | "&",
44 | "'",
45 | "(",
46 | ")",
47 | "*",
48 | "+",
49 | ",",
50 | "-",
51 | ".",
52 | "/",
53 | "0",
54 | "1",
55 | "2",
56 | "3",
57 | "4",
58 | "5",
59 | "6",
60 | "7",
61 | "8",
62 | "9",
63 | ":",
64 | ";",
65 | "<",
66 | "=",
67 | ">",
68 | "?",
69 | "@",
70 | "A",
71 | "B",
72 | "C",
73 | "D",
74 | "E",
75 | "F",
76 | "G",
77 | "H",
78 | "I",
79 | "J",
80 | "K",
81 | "L",
82 | "M",
83 | "N",
84 | "O",
85 | "P",
86 | "Q",
87 | "R",
88 | "S",
89 | "T",
90 | "U",
91 | "V",
92 | "W",
93 | "X",
94 | "Y",
95 | "Z",
96 | "[",
97 | "\\",
98 | "]",
99 | "^",
100 | "_",
101 | "`",
102 | "a",
103 | "b",
104 | "c",
105 | "d",
106 | "e",
107 | "f",
108 | "g",
109 | "h",
110 | "i",
111 | "j",
112 | "k",
113 | "l",
114 | "m",
115 | "n",
116 | "o",
117 | "p",
118 | "q",
119 | "r",
120 | "s",
121 | "t",
122 | "u",
123 | "v",
124 | "w",
125 | "x",
126 | "y",
127 | "z",
128 | "{",
129 | "|",
130 | "}",
131 | "~"
132 | ]
133 | },
134 | "pages": [
135 | "Arial.png"
136 | ],
137 | "packer": {
138 | "bins": [
139 | {
140 | "width": 512,
141 | "height": 256,
142 | "maxWidth": 512,
143 | "maxHeight": 256,
144 | "freeRects": [
145 | {
146 | "x": 15,
147 | "y": 162,
148 | "width": 19,
149 | "height": 6
150 | },
151 | {
152 | "x": 42,
153 | "y": 109,
154 | "width": 5,
155 | "height": 17
156 | },
157 | {
158 | "x": 34,
159 | "y": 196,
160 | "width": 12,
161 | "height": 12
162 | },
163 | {
164 | "x": 47,
165 | "y": 143,
166 | "width": 12,
167 | "height": 19
168 | },
169 | {
170 | "x": 55,
171 | "y": 0,
172 | "width": 5,
173 | "height": 33
174 | },
175 | {
176 | "x": 59,
177 | "y": 177,
178 | "width": 10,
179 | "height": 19
180 | },
181 | {
182 | "x": 82,
183 | "y": 170,
184 | "width": 2,
185 | "height": 7
186 | },
187 | {
188 | "x": 130,
189 | "y": 67,
190 | "width": 17,
191 | "height": 1
192 | },
193 | {
194 | "x": 141,
195 | "y": 33,
196 | "width": 11,
197 | "height": 1
198 | },
199 | {
200 | "x": 152,
201 | "y": 66,
202 | "width": 21,
203 | "height": 1
204 | },
205 | {
206 | "x": 106,
207 | "y": 203,
208 | "width": 3,
209 | "height": 1
210 | },
211 | {
212 | "x": 126,
213 | "y": 169,
214 | "width": 3,
215 | "height": 1
216 | },
217 | {
218 | "x": 144,
219 | "y": 135,
220 | "width": 4,
221 | "height": 1
222 | },
223 | {
224 | "x": 129,
225 | "y": 202,
226 | "width": 2,
227 | "height": 1
228 | },
229 | {
230 | "x": 148,
231 | "y": 168,
232 | "width": 13,
233 | "height": 1
234 | },
235 | {
236 | "x": 161,
237 | "y": 201,
238 | "width": 25,
239 | "height": 1
240 | },
241 | {
242 | "x": 147,
243 | "y": 100,
244 | "width": 28,
245 | "height": 2
246 | },
247 | {
248 | "x": 173,
249 | "y": 99,
250 | "width": 2,
251 | "height": 3
252 | },
253 | {
254 | "x": 175,
255 | "y": 165,
256 | "width": 13,
257 | "height": 3
258 | },
259 | {
260 | "x": 206,
261 | "y": 124,
262 | "width": 11,
263 | "height": 8
264 | },
265 | {
266 | "x": 245,
267 | "y": 26,
268 | "width": 268,
269 | "height": 7
270 | },
271 | {
272 | "x": 188,
273 | "y": 198,
274 | "width": 29,
275 | "height": 3
276 | },
277 | {
278 | "x": 195,
279 | "y": 190,
280 | "width": 22,
281 | "height": 11
282 | },
283 | {
284 | "x": 268,
285 | "y": 0,
286 | "width": 245,
287 | "height": 200
288 | },
289 | {
290 | "x": 262,
291 | "y": 26,
292 | "width": 251,
293 | "height": 174
294 | },
295 | {
296 | "x": 239,
297 | "y": 200,
298 | "width": 22,
299 | "height": 15
300 | },
301 | {
302 | "x": 131,
303 | "y": 235,
304 | "width": 55,
305 | "height": 22
306 | },
307 | {
308 | "x": 283,
309 | "y": 0,
310 | "width": 230,
311 | "height": 225
312 | },
313 | {
314 | "x": 284,
315 | "y": 0,
316 | "width": 229,
317 | "height": 257
318 | },
319 | {
320 | "x": 209,
321 | "y": 234,
322 | "width": 8,
323 | "height": 6
324 | },
325 | {
326 | "x": 209,
327 | "y": 256,
328 | "width": 304,
329 | "height": 1
330 | },
331 | {
332 | "x": 227,
333 | "y": 97,
334 | "width": 12,
335 | "height": 2
336 | },
337 | {
338 | "x": 234,
339 | "y": 85,
340 | "width": 5,
341 | "height": 14
342 | },
343 | {
344 | "x": 239,
345 | "y": 108,
346 | "width": 274,
347 | "height": 42
348 | },
349 | {
350 | "x": 257,
351 | "y": 26,
352 | "width": 256,
353 | "height": 59
354 | },
355 | {
356 | "x": 255,
357 | "y": 59,
358 | "width": 258,
359 | "height": 26
360 | },
361 | {
362 | "x": 249,
363 | "y": 108,
364 | "width": 264,
365 | "height": 67
366 | },
367 | {
368 | "x": 109,
369 | "y": 236,
370 | "width": 77,
371 | "height": 1
372 | },
373 | {
374 | "x": 113,
375 | "y": 236,
376 | "width": 73,
377 | "height": 21
378 | },
379 | {
380 | "x": 69,
381 | "y": 255,
382 | "width": 24,
383 | "height": 2
384 | },
385 | {
386 | "x": 85,
387 | "y": 237,
388 | "width": 8,
389 | "height": 8
390 | },
391 | {
392 | "x": 249,
393 | "y": 248,
394 | "width": 264,
395 | "height": 9
396 | },
397 | {
398 | "x": 249,
399 | "y": 240,
400 | "width": 12,
401 | "height": 17
402 | },
403 | {
404 | "x": 11,
405 | "y": 243,
406 | "width": 16,
407 | "height": 7
408 | },
409 | {
410 | "x": 41,
411 | "y": 243,
412 | "width": 5,
413 | "height": 14
414 | },
415 | {
416 | "x": 0,
417 | "y": 256,
418 | "width": 27,
419 | "height": 1
420 | },
421 | {
422 | "x": 41,
423 | "y": 256,
424 | "width": 145,
425 | "height": 1
426 | },
427 | {
428 | "x": 217,
429 | "y": 164,
430 | "width": 11,
431 | "height": 1
432 | },
433 | {
434 | "x": 224,
435 | "y": 150,
436 | "width": 4,
437 | "height": 15
438 | },
439 | {
440 | "x": 45,
441 | "y": 67,
442 | "width": 15,
443 | "height": 1
444 | },
445 | {
446 | "x": 59,
447 | "y": 67,
448 | "width": 1,
449 | "height": 8
450 | },
451 | {
452 | "x": 59,
453 | "y": 68,
454 | "width": 11,
455 | "height": 7
456 | },
457 | {
458 | "x": 228,
459 | "y": 188,
460 | "width": 11,
461 | "height": 2
462 | },
463 | {
464 | "x": 235,
465 | "y": 175,
466 | "width": 4,
467 | "height": 15
468 | },
469 | {
470 | "x": 24,
471 | "y": 75,
472 | "width": 18,
473 | "height": 9
474 | },
475 | {
476 | "x": 77,
477 | "y": 136,
478 | "width": 5,
479 | "height": 7
480 | },
481 | {
482 | "x": 84,
483 | "y": 205,
484 | "width": 1,
485 | "height": 6
486 | }
487 | ],
488 | "rects": [],
489 | "options": {
490 | "smart": false,
491 | "pot": false,
492 | "square": false,
493 | "allowRotation": false,
494 | "tag": false,
495 | "exclusiveTag": true,
496 | "border": 0,
497 | "logic": 1
498 | }
499 | }
500 | ]
501 | }
502 | }
--------------------------------------------------------------------------------
/res/fonts/Arial.fnt:
--------------------------------------------------------------------------------
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 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
--------------------------------------------------------------------------------
/res/fonts/Arial.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/fonts/Arial.png
--------------------------------------------------------------------------------
/res/fonts/Avdira.fnt:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/res/fonts/Avdira.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/fonts/Avdira.png
--------------------------------------------------------------------------------
/res/fonts/arial.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/fonts/arial.ttf
--------------------------------------------------------------------------------
/res/gui/hud.xml:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/res/gui/hud_orig.xml:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/res/gui/indButton.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/res/gui/init.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/res/gui/loadGame.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/res/gui/myTheme/fonts/Arial.fnt:
--------------------------------------------------------------------------------
1 | info face="Arial" size=32 bold=0 italic=0 charset="" unicode=0 stretchH=100 smooth=1 aa=1 padding=1,1,1,1 spacing=0,0
2 | common lineHeight=40 base=30 scaleW=512 scaleH=512 pages=1 packed=0
3 | page id=0 file="Arial.png"
4 | chars count=191
5 | char id=0 x=35 y=143 width=19 height=24 xoffset=3 yoffset=7 xadvance=26 page=0 chnl=0
6 | char id=10 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=2 page=0 chnl=0
7 | char id=32 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=11 page=0 chnl=0
8 | char id=33 x=183 y=91 width=6 height=26 xoffset=3 yoffset=5 xadvance=13 page=0 chnl=0
9 | char id=34 x=123 y=168 width=12 height=11 xoffset=0 yoffset=5 xadvance=13 page=0 chnl=0
10 | char id=35 x=259 y=91 width=20 height=26 xoffset=-1 yoffset=5 xadvance=20 page=0 chnl=0
11 | char id=36 x=223 y=33 width=19 height=30 xoffset=0 yoffset=4 xadvance=20 page=0 chnl=0
12 | char id=37 x=232 y=91 width=27 height=26 xoffset=1 yoffset=5 xadvance=30 page=0 chnl=0
13 | char id=38 x=436 y=117 width=21 height=25 xoffset=0 yoffset=6 xadvance=23 page=0 chnl=0
14 | char id=39 x=503 y=143 width=6 height=11 xoffset=0 yoffset=5 xadvance=8 page=0 chnl=0
15 | char id=40 x=94 y=0 width=10 height=32 xoffset=1 yoffset=5 xadvance=13 page=0 chnl=0
16 | char id=41 x=104 y=0 width=11 height=32 xoffset=0 yoffset=5 xadvance=13 page=0 chnl=0
17 | char id=42 x=81 y=168 width=12 height=13 xoffset=0 yoffset=5 xadvance=14 page=0 chnl=0
18 | char id=43 x=356 y=143 width=18 height=18 xoffset=1 yoffset=9 xadvance=21 page=0 chnl=0
19 | char id=44 x=135 y=168 width=6 height=11 xoffset=2 yoffset=25 xadvance=11 page=0 chnl=0
20 | char id=45 x=190 y=168 width=12 height=6 xoffset=0 yoffset=18 xadvance=13 page=0 chnl=0
21 | char id=46 x=184 y=168 width=6 height=6 xoffset=2 yoffset=25 xadvance=11 page=0 chnl=0
22 | char id=47 x=208 y=91 width=12 height=26 xoffset=-1 yoffset=5 xadvance=11 page=0 chnl=0
23 | char id=48 x=164 y=91 width=19 height=26 xoffset=0 yoffset=5 xadvance=20 page=0 chnl=0
24 | char id=49 x=496 y=65 width=12 height=26 xoffset=2 yoffset=5 xadvance=20 page=0 chnl=0
25 | char id=50 x=34 y=91 width=18 height=26 xoffset=0 yoffset=5 xadvance=20 page=0 chnl=0
26 | char id=51 x=52 y=91 width=19 height=26 xoffset=0 yoffset=5 xadvance=20 page=0 chnl=0
27 | char id=52 x=71 y=91 width=19 height=26 xoffset=0 yoffset=5 xadvance=20 page=0 chnl=0
28 | char id=53 x=90 y=91 width=18 height=26 xoffset=0 yoffset=5 xadvance=20 page=0 chnl=0
29 | char id=54 x=108 y=91 width=19 height=26 xoffset=0 yoffset=5 xadvance=20 page=0 chnl=0
30 | char id=55 x=127 y=91 width=18 height=26 xoffset=1 yoffset=5 xadvance=20 page=0 chnl=0
31 | char id=56 x=145 y=91 width=19 height=26 xoffset=0 yoffset=5 xadvance=20 page=0 chnl=0
32 | char id=57 x=411 y=117 width=19 height=25 xoffset=0 yoffset=6 xadvance=20 page=0 chnl=0
33 | char id=58 x=504 y=117 width=6 height=20 xoffset=2 yoffset=11 xadvance=11 page=0 chnl=0
34 | char id=59 x=430 y=117 width=6 height=25 xoffset=2 yoffset=11 xadvance=11 page=0 chnl=0
35 | char id=60 x=374 y=143 width=18 height=17 xoffset=1 yoffset=10 xadvance=21 page=0 chnl=0
36 | char id=61 x=63 y=168 width=18 height=13 xoffset=1 yoffset=11 xadvance=21 page=0 chnl=0
37 | char id=62 x=392 y=143 width=18 height=17 xoffset=1 yoffset=10 xadvance=21 page=0 chnl=0
38 | char id=63 x=189 y=91 width=19 height=26 xoffset=0 yoffset=5 xadvance=20 page=0 chnl=0
39 | char id=64 x=5 y=0 width=32 height=33 xoffset=1 yoffset=5 xadvance=34 page=0 chnl=0
40 | char id=65 x=349 y=33 width=23 height=26 xoffset=-1 yoffset=5 xadvance=23 page=0 chnl=0
41 | char id=66 x=372 y=33 width=20 height=26 xoffset=2 yoffset=5 xadvance=23 page=0 chnl=0
42 | char id=67 x=392 y=33 width=23 height=26 xoffset=0 yoffset=5 xadvance=25 page=0 chnl=0
43 | char id=68 x=415 y=33 width=22 height=26 xoffset=2 yoffset=5 xadvance=25 page=0 chnl=0
44 | char id=69 x=437 y=33 width=19 height=26 xoffset=2 yoffset=5 xadvance=23 page=0 chnl=0
45 | char id=70 x=456 y=33 width=19 height=26 xoffset=2 yoffset=5 xadvance=22 page=0 chnl=0
46 | char id=71 x=475 y=33 width=25 height=26 xoffset=0 yoffset=5 xadvance=27 page=0 chnl=0
47 | char id=72 x=0 y=65 width=20 height=26 xoffset=2 yoffset=5 xadvance=25 page=0 chnl=0
48 | char id=73 x=500 y=33 width=6 height=26 xoffset=2 yoffset=5 xadvance=11 page=0 chnl=0
49 | char id=74 x=20 y=65 width=15 height=26 xoffset=0 yoffset=5 xadvance=18 page=0 chnl=0
50 | char id=75 x=35 y=65 width=21 height=26 xoffset=2 yoffset=5 xadvance=23 page=0 chnl=0
51 | char id=76 x=56 y=65 width=17 height=26 xoffset=2 yoffset=5 xadvance=20 page=0 chnl=0
52 | char id=77 x=73 y=65 width=24 height=26 xoffset=2 yoffset=5 xadvance=29 page=0 chnl=0
53 | char id=78 x=97 y=65 width=20 height=26 xoffset=2 yoffset=5 xadvance=25 page=0 chnl=0
54 | char id=79 x=117 y=65 width=26 height=26 xoffset=0 yoffset=5 xadvance=27 page=0 chnl=0
55 | char id=80 x=143 y=65 width=20 height=26 xoffset=2 yoffset=5 xadvance=23 page=0 chnl=0
56 | char id=81 x=265 y=33 width=25 height=28 xoffset=0 yoffset=5 xadvance=27 page=0 chnl=0
57 | char id=82 x=163 y=65 width=21 height=26 xoffset=2 yoffset=5 xadvance=25 page=0 chnl=0
58 | char id=83 x=184 y=65 width=20 height=26 xoffset=0 yoffset=5 xadvance=23 page=0 chnl=0
59 | char id=84 x=204 y=65 width=22 height=26 xoffset=-1 yoffset=5 xadvance=21 page=0 chnl=0
60 | char id=85 x=226 y=65 width=20 height=26 xoffset=2 yoffset=5 xadvance=25 page=0 chnl=0
61 | char id=86 x=246 y=65 width=24 height=26 xoffset=-1 yoffset=5 xadvance=23 page=0 chnl=0
62 | char id=87 x=270 y=65 width=33 height=26 xoffset=-1 yoffset=5 xadvance=34 page=0 chnl=0
63 | char id=88 x=303 y=65 width=23 height=26 xoffset=-1 yoffset=5 xadvance=23 page=0 chnl=0
64 | char id=89 x=326 y=65 width=23 height=26 xoffset=-1 yoffset=5 xadvance=23 page=0 chnl=0
65 | char id=90 x=349 y=65 width=22 height=26 xoffset=-1 yoffset=5 xadvance=22 page=0 chnl=0
66 | char id=91 x=115 y=0 width=9 height=32 xoffset=1 yoffset=5 xadvance=11 page=0 chnl=0
67 | char id=92 x=220 y=91 width=12 height=26 xoffset=-1 yoffset=5 xadvance=11 page=0 chnl=0
68 | char id=93 x=124 y=0 width=9 height=32 xoffset=0 yoffset=5 xadvance=11 page=0 chnl=0
69 | char id=94 x=477 y=143 width=14 height=15 xoffset=0 yoffset=5 xadvance=16 page=0 chnl=0
70 | char id=95 x=202 y=168 width=22 height=6 xoffset=-2 yoffset=31 xadvance=20 page=0 chnl=0
71 | char id=96 x=168 y=168 width=8 height=7 xoffset=0 yoffset=5 xadvance=13 page=0 chnl=0
72 | char id=97 x=92 y=143 width=17 height=20 xoffset=0 yoffset=11 xadvance=19 page=0 chnl=0
73 | char id=98 x=371 y=65 width=17 height=26 xoffset=1 yoffset=5 xadvance=19 page=0 chnl=0
74 | char id=99 x=109 y=143 width=16 height=20 xoffset=0 yoffset=11 xadvance=18 page=0 chnl=0
75 | char id=100 x=388 y=65 width=17 height=26 xoffset=0 yoffset=5 xadvance=19 page=0 chnl=0
76 | char id=101 x=125 y=143 width=18 height=20 xoffset=0 yoffset=11 xadvance=19 page=0 chnl=0
77 | char id=102 x=405 y=65 width=12 height=26 xoffset=0 yoffset=5 xadvance=12 page=0 chnl=0
78 | char id=103 x=417 y=65 width=17 height=26 xoffset=0 yoffset=11 xadvance=19 page=0 chnl=0
79 | char id=104 x=434 y=65 width=17 height=26 xoffset=1 yoffset=5 xadvance=20 page=0 chnl=0
80 | char id=105 x=451 y=65 width=6 height=26 xoffset=1 yoffset=5 xadvance=9 page=0 chnl=0
81 | char id=106 x=83 y=0 width=11 height=32 xoffset=-3 yoffset=5 xadvance=9 page=0 chnl=0
82 | char id=107 x=457 y=65 width=16 height=26 xoffset=1 yoffset=5 xadvance=18 page=0 chnl=0
83 | char id=108 x=473 y=65 width=6 height=26 xoffset=1 yoffset=5 xadvance=9 page=0 chnl=0
84 | char id=109 x=143 y=143 width=26 height=20 xoffset=1 yoffset=11 xadvance=29 page=0 chnl=0
85 | char id=110 x=169 y=143 width=17 height=20 xoffset=1 yoffset=11 xadvance=20 page=0 chnl=0
86 | char id=111 x=186 y=143 width=18 height=20 xoffset=0 yoffset=11 xadvance=19 page=0 chnl=0
87 | char id=112 x=479 y=65 width=17 height=26 xoffset=1 yoffset=11 xadvance=19 page=0 chnl=0
88 | char id=113 x=0 y=91 width=17 height=26 xoffset=0 yoffset=11 xadvance=19 page=0 chnl=0
89 | char id=114 x=204 y=143 width=11 height=20 xoffset=1 yoffset=11 xadvance=13 page=0 chnl=0
90 | char id=115 x=215 y=143 width=17 height=20 xoffset=0 yoffset=11 xadvance=18 page=0 chnl=0
91 | char id=116 x=400 y=117 width=11 height=25 xoffset=-1 yoffset=6 xadvance=11 page=0 chnl=0
92 | char id=117 x=232 y=143 width=17 height=20 xoffset=1 yoffset=11 xadvance=20 page=0 chnl=0
93 | char id=118 x=249 y=143 width=17 height=20 xoffset=-1 yoffset=11 xadvance=17 page=0 chnl=0
94 | char id=119 x=266 y=143 width=27 height=20 xoffset=-2 yoffset=11 xadvance=25 page=0 chnl=0
95 | char id=120 x=293 y=143 width=17 height=20 xoffset=-1 yoffset=11 xadvance=16 page=0 chnl=0
96 | char id=121 x=17 y=91 width=17 height=26 xoffset=-1 yoffset=11 xadvance=17 page=0 chnl=0
97 | char id=122 x=310 y=143 width=17 height=20 xoffset=-1 yoffset=11 xadvance=17 page=0 chnl=0
98 | char id=123 x=133 y=0 width=12 height=32 xoffset=0 yoffset=5 xadvance=13 page=0 chnl=0
99 | char id=124 x=0 y=0 width=5 height=33 xoffset=2 yoffset=5 xadvance=10 page=0 chnl=0
100 | char id=125 x=145 y=0 width=12 height=32 xoffset=0 yoffset=5 xadvance=13 page=0 chnl=0
101 | char id=126 x=149 y=168 width=19 height=8 xoffset=0 yoffset=15 xadvance=21 page=0 chnl=0
102 | char id=161 x=279 y=91 width=6 height=26 xoffset=3 yoffset=11 xadvance=13 page=0 chnl=0
103 | char id=162 x=157 y=0 width=17 height=32 xoffset=0 yoffset=6 xadvance=20 page=0 chnl=0
104 | char id=163 x=285 y=91 width=19 height=26 xoffset=-1 yoffset=5 xadvance=20 page=0 chnl=0
105 | char id=164 x=410 y=143 width=17 height=17 xoffset=0 yoffset=11 xadvance=20 page=0 chnl=0
106 | char id=165 x=304 y=91 width=19 height=26 xoffset=-1 yoffset=5 xadvance=20 page=0 chnl=0
107 | char id=166 x=37 y=0 width=5 height=33 xoffset=2 yoffset=5 xadvance=10 page=0 chnl=0
108 | char id=167 x=42 y=0 width=18 height=33 xoffset=0 yoffset=5 xadvance=20 page=0 chnl=0
109 | char id=168 x=224 y=168 width=12 height=6 xoffset=0 yoffset=5 xadvance=13 page=0 chnl=0
110 | char id=169 x=323 y=91 width=27 height=26 xoffset=-1 yoffset=5 xadvance=26 page=0 chnl=0
111 | char id=170 x=491 y=143 width=12 height=15 xoffset=0 yoffset=5 xadvance=14 page=0 chnl=0
112 | char id=171 x=427 y=143 width=16 height=17 xoffset=1 yoffset=13 xadvance=20 page=0 chnl=0
113 | char id=172 x=93 y=168 width=18 height=12 xoffset=1 yoffset=12 xadvance=21 page=0 chnl=0
114 | char id=174 x=350 y=91 width=27 height=26 xoffset=-1 yoffset=5 xadvance=26 page=0 chnl=0
115 | char id=175 x=236 y=168 width=22 height=6 xoffset=-2 yoffset=1 xadvance=20 page=0 chnl=0
116 | char id=176 x=111 y=168 width=12 height=12 xoffset=1 yoffset=5 xadvance=15 page=0 chnl=0
117 | char id=177 x=54 y=143 width=18 height=22 xoffset=0 yoffset=9 xadvance=20 page=0 chnl=0
118 | char id=178 x=0 y=168 width=13 height=15 xoffset=-1 yoffset=5 xadvance=13 page=0 chnl=0
119 | char id=179 x=13 y=168 width=12 height=15 xoffset=-1 yoffset=5 xadvance=13 page=0 chnl=0
120 | char id=180 x=176 y=168 width=8 height=7 xoffset=3 yoffset=5 xadvance=13 page=0 chnl=0
121 | char id=181 x=377 y=91 width=17 height=26 xoffset=1 yoffset=11 xadvance=20 page=0 chnl=0
122 | char id=182 x=174 y=0 width=20 height=32 xoffset=-1 yoffset=5 xadvance=19 page=0 chnl=0
123 | char id=183 x=258 y=168 width=6 height=6 xoffset=3 yoffset=15 xadvance=13 page=0 chnl=0
124 | char id=184 x=141 y=168 width=8 height=10 xoffset=1 yoffset=28 xadvance=13 page=0 chnl=0
125 | char id=185 x=25 y=168 width=10 height=15 xoffset=1 yoffset=5 xadvance=13 page=0 chnl=0
126 | char id=186 x=50 y=168 width=13 height=14 xoffset=0 yoffset=6 xadvance=14 page=0 chnl=0
127 | char id=187 x=443 y=143 width=16 height=17 xoffset=1 yoffset=13 xadvance=20 page=0 chnl=0
128 | char id=188 x=394 y=91 width=29 height=26 xoffset=0 yoffset=5 xadvance=29 page=0 chnl=0
129 | char id=189 x=423 y=91 width=28 height=26 xoffset=0 yoffset=5 xadvance=29 page=0 chnl=0
130 | char id=190 x=451 y=91 width=29 height=26 xoffset=0 yoffset=5 xadvance=29 page=0 chnl=0
131 | char id=191 x=480 y=91 width=18 height=26 xoffset=1 yoffset=11 xadvance=22 page=0 chnl=0
132 | char id=192 x=194 y=0 width=23 height=32 xoffset=-1 yoffset=-1 xadvance=23 page=0 chnl=0
133 | char id=193 x=217 y=0 width=23 height=32 xoffset=-1 yoffset=-1 xadvance=23 page=0 chnl=0
134 | char id=194 x=240 y=0 width=23 height=32 xoffset=-1 yoffset=-1 xadvance=23 page=0 chnl=0
135 | char id=195 x=263 y=0 width=23 height=32 xoffset=-1 yoffset=-1 xadvance=23 page=0 chnl=0
136 | char id=196 x=118 y=33 width=23 height=31 xoffset=-1 yoffset=0 xadvance=23 page=0 chnl=0
137 | char id=197 x=242 y=33 width=23 height=30 xoffset=-1 yoffset=1 xadvance=23 page=0 chnl=0
138 | char id=198 x=0 y=117 width=34 height=26 xoffset=-2 yoffset=5 xadvance=34 page=0 chnl=0
139 | char id=199 x=60 y=0 width=23 height=33 xoffset=0 yoffset=5 xadvance=25 page=0 chnl=0
140 | char id=200 x=286 y=0 width=19 height=32 xoffset=2 yoffset=-1 xadvance=23 page=0 chnl=0
141 | char id=201 x=305 y=0 width=19 height=32 xoffset=2 yoffset=-1 xadvance=23 page=0 chnl=0
142 | char id=202 x=324 y=0 width=19 height=32 xoffset=2 yoffset=-1 xadvance=23 page=0 chnl=0
143 | char id=203 x=141 y=33 width=19 height=31 xoffset=2 yoffset=0 xadvance=23 page=0 chnl=0
144 | char id=204 x=343 y=0 width=8 height=32 xoffset=0 yoffset=-1 xadvance=11 page=0 chnl=0
145 | char id=205 x=351 y=0 width=8 height=32 xoffset=1 yoffset=-1 xadvance=11 page=0 chnl=0
146 | char id=206 x=359 y=0 width=14 height=32 xoffset=-2 yoffset=-1 xadvance=11 page=0 chnl=0
147 | char id=207 x=497 y=0 width=12 height=31 xoffset=-1 yoffset=0 xadvance=11 page=0 chnl=0
148 | char id=208 x=34 y=117 width=24 height=26 xoffset=-1 yoffset=5 xadvance=25 page=0 chnl=0
149 | char id=209 x=373 y=0 width=20 height=32 xoffset=2 yoffset=-1 xadvance=25 page=0 chnl=0
150 | char id=210 x=393 y=0 width=26 height=32 xoffset=0 yoffset=-1 xadvance=27 page=0 chnl=0
151 | char id=211 x=419 y=0 width=26 height=32 xoffset=0 yoffset=-1 xadvance=27 page=0 chnl=0
152 | char id=212 x=445 y=0 width=26 height=32 xoffset=0 yoffset=-1 xadvance=27 page=0 chnl=0
153 | char id=213 x=471 y=0 width=26 height=32 xoffset=0 yoffset=-1 xadvance=27 page=0 chnl=0
154 | char id=214 x=160 y=33 width=26 height=31 xoffset=0 yoffset=0 xadvance=27 page=0 chnl=0
155 | char id=215 x=35 y=168 width=15 height=15 xoffset=1 yoffset=12 xadvance=21 page=0 chnl=0
156 | char id=216 x=290 y=33 width=26 height=28 xoffset=0 yoffset=5 xadvance=27 page=0 chnl=0
157 | char id=217 x=0 y=33 width=20 height=32 xoffset=2 yoffset=-1 xadvance=25 page=0 chnl=0
158 | char id=218 x=20 y=33 width=20 height=32 xoffset=2 yoffset=-1 xadvance=25 page=0 chnl=0
159 | char id=219 x=40 y=33 width=20 height=32 xoffset=2 yoffset=-1 xadvance=25 page=0 chnl=0
160 | char id=220 x=186 y=33 width=20 height=31 xoffset=2 yoffset=0 xadvance=25 page=0 chnl=0
161 | char id=221 x=60 y=33 width=23 height=32 xoffset=-1 yoffset=-1 xadvance=23 page=0 chnl=0
162 | char id=222 x=58 y=117 width=20 height=26 xoffset=2 yoffset=5 xadvance=23 page=0 chnl=0
163 | char id=223 x=78 y=117 width=19 height=26 xoffset=1 yoffset=5 xadvance=22 page=0 chnl=0
164 | char id=224 x=97 y=117 width=17 height=26 xoffset=0 yoffset=5 xadvance=19 page=0 chnl=0
165 | char id=225 x=114 y=117 width=17 height=26 xoffset=0 yoffset=5 xadvance=19 page=0 chnl=0
166 | char id=226 x=131 y=117 width=17 height=26 xoffset=0 yoffset=5 xadvance=19 page=0 chnl=0
167 | char id=227 x=148 y=117 width=17 height=26 xoffset=0 yoffset=5 xadvance=19 page=0 chnl=0
168 | char id=228 x=457 y=117 width=17 height=25 xoffset=0 yoffset=6 xadvance=19 page=0 chnl=0
169 | char id=229 x=316 y=33 width=17 height=27 xoffset=0 yoffset=4 xadvance=19 page=0 chnl=0
170 | char id=230 x=327 y=143 width=29 height=20 xoffset=0 yoffset=11 xadvance=30 page=0 chnl=0
171 | char id=231 x=333 y=33 width=16 height=27 xoffset=0 yoffset=11 xadvance=18 page=0 chnl=0
172 | char id=232 x=165 y=117 width=18 height=26 xoffset=0 yoffset=5 xadvance=19 page=0 chnl=0
173 | char id=233 x=183 y=117 width=18 height=26 xoffset=0 yoffset=5 xadvance=19 page=0 chnl=0
174 | char id=234 x=201 y=117 width=18 height=26 xoffset=0 yoffset=5 xadvance=19 page=0 chnl=0
175 | char id=235 x=474 y=117 width=18 height=25 xoffset=0 yoffset=6 xadvance=19 page=0 chnl=0
176 | char id=236 x=498 y=91 width=8 height=26 xoffset=0 yoffset=5 xadvance=11 page=0 chnl=0
177 | char id=237 x=219 y=117 width=8 height=26 xoffset=1 yoffset=5 xadvance=11 page=0 chnl=0
178 | char id=238 x=227 y=117 width=14 height=26 xoffset=-2 yoffset=5 xadvance=11 page=0 chnl=0
179 | char id=239 x=492 y=117 width=12 height=25 xoffset=-1 yoffset=6 xadvance=11 page=0 chnl=0
180 | char id=240 x=241 y=117 width=19 height=26 xoffset=0 yoffset=5 xadvance=20 page=0 chnl=0
181 | char id=241 x=260 y=117 width=17 height=26 xoffset=1 yoffset=5 xadvance=20 page=0 chnl=0
182 | char id=242 x=277 y=117 width=18 height=26 xoffset=0 yoffset=5 xadvance=19 page=0 chnl=0
183 | char id=243 x=295 y=117 width=18 height=26 xoffset=0 yoffset=5 xadvance=19 page=0 chnl=0
184 | char id=244 x=313 y=117 width=18 height=26 xoffset=0 yoffset=5 xadvance=19 page=0 chnl=0
185 | char id=245 x=331 y=117 width=18 height=26 xoffset=0 yoffset=5 xadvance=19 page=0 chnl=0
186 | char id=246 x=0 y=143 width=18 height=25 xoffset=0 yoffset=6 xadvance=19 page=0 chnl=0
187 | char id=247 x=459 y=143 width=18 height=16 xoffset=0 yoffset=10 xadvance=20 page=0 chnl=0
188 | char id=248 x=72 y=143 width=20 height=22 xoffset=0 yoffset=10 xadvance=22 page=0 chnl=0
189 | char id=249 x=349 y=117 width=17 height=26 xoffset=1 yoffset=5 xadvance=20 page=0 chnl=0
190 | char id=250 x=366 y=117 width=17 height=26 xoffset=1 yoffset=5 xadvance=20 page=0 chnl=0
191 | char id=251 x=383 y=117 width=17 height=26 xoffset=1 yoffset=5 xadvance=20 page=0 chnl=0
192 | char id=252 x=18 y=143 width=17 height=25 xoffset=1 yoffset=6 xadvance=20 page=0 chnl=0
193 | char id=253 x=83 y=33 width=17 height=32 xoffset=-1 yoffset=5 xadvance=17 page=0 chnl=0
194 | char id=254 x=100 y=33 width=18 height=32 xoffset=1 yoffset=5 xadvance=20 page=0 chnl=0
195 | char id=255 x=206 y=33 width=17 height=31 xoffset=-1 yoffset=6 xadvance=17 page=0 chnl=0
196 | kernings count=95
197 | kerning first=87 second=58 amount=-1
198 | kerning first=49 second=49 amount=-2
199 | kerning first=89 second=65 amount=-2
200 | kerning first=84 second=79 amount=-1
201 | kerning first=65 second=84 amount=-2
202 | kerning first=82 second=86 amount=-1
203 | kerning first=76 second=87 amount=-2
204 | kerning first=87 second=97 amount=-1
205 | kerning first=84 second=99 amount=-4
206 | kerning first=86 second=101 amount=-2
207 | kerning first=102 second=102 amount=-1
208 | kerning first=84 second=105 amount=-1
209 | kerning first=89 second=111 amount=-3
210 | kerning first=89 second=112 amount=-2
211 | kerning first=89 second=113 amount=-3
212 | kerning first=84 second=115 amount=-4
213 | kerning first=87 second=117 amount=-1
214 | kerning first=89 second=118 amount=-2
215 | kerning first=65 second=119 amount=-1
216 | kerning first=84 second=121 amount=-2
217 | kerning first=119 second=44 amount=-2
218 | kerning first=84 second=117 amount=-1
219 | kerning first=119 second=46 amount=-2
220 | kerning first=87 second=59 amount=-1
221 | kerning first=84 second=114 amount=-1
222 | kerning first=80 second=65 amount=-2
223 | kerning first=86 second=46 amount=-3
224 | kerning first=65 second=89 amount=-2
225 | kerning first=65 second=87 amount=-1
226 | kerning first=89 second=46 amount=-4
227 | kerning first=86 second=105 amount=-1
228 | kerning first=65 second=86 amount=-2
229 | kerning first=84 second=111 amount=-4
230 | kerning first=80 second=44 amount=-4
231 | kerning first=87 second=114 amount=-1
232 | kerning first=65 second=121 amount=-1
233 | kerning first=65 second=118 amount=-1
234 | kerning first=114 second=44 amount=-2
235 | kerning first=86 second=111 amount=-2
236 | kerning first=114 second=46 amount=-2
237 | kerning first=76 second=121 amount=-1
238 | kerning first=70 second=46 amount=-4
239 | kerning first=87 second=101 amount=-1
240 | kerning first=84 second=32 amount=-1
241 | kerning first=87 second=46 amount=-2
242 | kerning first=86 second=114 amount=-1
243 | kerning first=89 second=101 amount=-3
244 | kerning first=84 second=46 amount=-4
245 | kerning first=84 second=58 amount=-4
246 | kerning first=76 second=32 amount=-1
247 | kerning first=32 second=89 amount=-1
248 | kerning first=86 second=58 amount=-1
249 | kerning first=65 second=32 amount=-2
250 | kerning first=86 second=65 amount=-2
251 | kerning first=76 second=86 amount=-2
252 | kerning first=84 second=45 amount=-2
253 | kerning first=89 second=44 amount=-4
254 | kerning first=82 second=89 amount=-1
255 | kerning first=70 second=44 amount=-4
256 | kerning first=86 second=45 amount=-2
257 | kerning first=76 second=89 amount=-2
258 | kerning first=89 second=58 amount=-2
259 | kerning first=89 second=105 amount=-1
260 | kerning first=86 second=117 amount=-1
261 | kerning first=84 second=101 amount=-4
262 | kerning first=89 second=97 amount=-2
263 | kerning first=86 second=121 amount=-1
264 | kerning first=89 second=59 amount=-2
265 | kerning first=84 second=44 amount=-4
266 | kerning first=70 second=65 amount=-2
267 | kerning first=86 second=59 amount=-1
268 | kerning first=84 second=65 amount=-2
269 | kerning first=86 second=44 amount=-3
270 | kerning first=87 second=44 amount=-2
271 | kerning first=121 second=46 amount=-2
272 | kerning first=82 second=84 amount=-1
273 | kerning first=118 second=46 amount=-2
274 | kerning first=82 second=87 amount=-1
275 | kerning first=87 second=65 amount=-1
276 | kerning first=87 second=111 amount=-1
277 | kerning first=89 second=45 amount=-3
278 | kerning first=121 second=44 amount=-2
279 | kerning first=32 second=84 amount=-1
280 | kerning first=89 second=32 amount=-1
281 | kerning first=76 second=84 amount=-2
282 | kerning first=80 second=46 amount=-4
283 | kerning first=84 second=97 amount=-4
284 | kerning first=32 second=65 amount=-2
285 | kerning first=84 second=119 amount=-2
286 | kerning first=84 second=59 amount=-4
287 | kerning first=80 second=32 amount=-1
288 | kerning first=89 second=117 amount=-2
289 | kerning first=118 second=44 amount=-2
290 | kerning first=87 second=45 amount=-1
291 | kerning first=86 second=97 amount=-2
292 |
--------------------------------------------------------------------------------
/res/gui/myTheme/fonts/Arial.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/fonts/Arial.png
--------------------------------------------------------------------------------
/res/gui/myTheme/fonts/Avdira.fnt:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/res/gui/myTheme/fonts/Avdira.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/fonts/Avdira.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/Button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/Button.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/flw_corp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/flw_corp.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/haxe_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/haxe_logo.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/haxeui.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/haxeui.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/heaps_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/heaps_logo.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/heaps_logo.svg:
--------------------------------------------------------------------------------
1 |
2 |
101 |
--------------------------------------------------------------------------------
/res/gui/myTheme/images/icons/gc/arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/icons/gc/arrow.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/icons/gc/folder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/icons/gc/folder.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/icons/gc/gc_camper.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/icons/gc/gc_camper.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/icons/gc/gc_fun.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/icons/gc/gc_fun.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/icons/gc/gc_lot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/icons/gc/gc_lot.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/icons/gc/gc_money.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/icons/gc/gc_money.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/icons/gc/gc_options.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/icons/gc/gc_options.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/icons/gc/gc_plus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/icons/gc/gc_plus.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/icons/gc/gc_restroom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/icons/gc/gc_restroom.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/icons/gc/gc_rv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/icons/gc/gc_rv.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/icons/gc/gc_shower.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/icons/gc/gc_shower.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/icons/gc/gc_swim.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/icons/gc/gc_swim.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/icons/gc/gc_swings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/icons/gc/gc_swings.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/icons/gc/gc_tent.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/icons/gc/gc_tent.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/parchment.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/parchment.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/tent3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/tent3.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/white_tent.xcf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/white_tent.xcf
--------------------------------------------------------------------------------
/res/gui/myTheme/images/wood_border.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/wood_border.png
--------------------------------------------------------------------------------
/res/gui/myTheme/images/woodplank.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/images/woodplank.png
--------------------------------------------------------------------------------
/res/gui/myTheme/sounds/cherokee_shuffle.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/res/gui/myTheme/sounds/cherokee_shuffle.wav
--------------------------------------------------------------------------------
/res/gui/myTheme/styles/buttons.css:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | ** Button Styles
3 | *************************************************/
4 | .menu {
5 | cursor: pointer;
6 | width: auto;
7 | height: auto;
8 | padding: 12px 30px;
9 | color: none;
10 | background: none;
11 | border: none;
12 | /* top/left bottom/right */
13 | background-image-clip: 0px 0px 59px 201px;
14 | background-image-slice: 8px 22px 52px 176px;
15 | background-image: "images/woodplank.png";
16 | }
17 |
18 | .menu .label {
19 | /* margin: 5px 5px 5px 5px; */
20 | padding: 5px 15px;
21 | font-name: "fonts/Avdira.fnt";
22 | /* border: 4px none #bd9158; */
23 |
24 | }
25 |
26 | .menu .image {
27 | margin: 5px 5px;
28 |
29 | }
30 |
31 | .menu:down .label {
32 | border: 4px solid #bd9158;
33 | }
34 |
35 | .ui {
36 | padding: 0;
37 | margin: 0;
38 | width: auto;
39 | height: auto;
40 | }
41 |
42 | .ui .icon {
43 | width: 32px;
44 | height: 32px;
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/res/gui/myTheme/styles/dialog.css:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | ** Dialog Styles
3 | *************************************************/
4 |
5 | .dialog-title-label {
6 | color: black;
7 | font-size: 14px;
8 | }
9 |
10 | .dialog-content .label {
11 | color: black;
12 | font-size: 20px;
13 | }
14 |
15 | .dialog .button {
16 | background-image: none;
17 | background: none;
18 | padding: 10px;
19 | }
20 |
21 | .dialog .button .label {
22 | color: black;
23 | font-size: 20px;
24 | }
25 |
26 | .dialog-close-button {
27 | horizontal-align: right;
28 | }
29 |
--------------------------------------------------------------------------------
/res/gui/myTheme/styles/main.css:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | ** Main styles
3 | *************************************************/
4 | .component {
5 |
6 | }
7 |
8 | .custom-component {
9 | width: auto;
10 | height: auto;
11 | }
12 |
13 |
14 |
15 | .default-background {
16 | background-color: #fff9a1;
17 | }
18 |
19 | /*************************************************
20 | ** Container Styles
21 | *************************************************/
22 |
23 | /*************************************************
24 | ** Label Styles
25 | *************************************************/
26 | .label {
27 | width: auto;
28 | height: auto;
29 | font-size: 48px;
30 | font-family: Arial, Helvetica, sans-serif;
31 | font-name: "fonts/Avdira.fnt";
32 | color: white;
33 | /* text-align: center; */
34 | }
35 |
36 | /*************************************************
37 | ** Image Styles
38 | *************************************************/
39 | /*.image {
40 | width: auto;
41 | height: auto;
42 | }
43 | */
44 | /*************************************************
45 | ** Specific
46 | *************************************************
47 | * Splash Screen
48 | *************************************************/
49 | #splash {
50 | background-color: #fff9af;
51 | }
52 | #haxelogo {
53 | opacity: 0;
54 | }
55 | #haxeui {
56 | opacity: 0;
57 | }
58 | #heaps {
59 | opacity: 0;
60 | }
61 |
62 | /*************************************************
63 | * Start Menu
64 | *************************************************/
65 | #buttonBox {
66 | /* background-color: green;*/
67 | background-image: "images/wood_border.png";
68 | /* top/left bottom/right */
69 | background-image-clip: 0px 0px 335px 440px;
70 | background-image-slice: 50px 65px 275px 375px;
71 | opacity: 0.75;
72 | }
73 | #start {
74 | background-image: "images/tent3.png";
75 | background-image-repeat: stretch;
76 | background-color: #10dada;
77 | padding: 100px;
78 | opacity: 0;
79 | }
80 |
81 | /*************************************************
82 | * Options Screen
83 | *************************************************/
84 | #opts_box .label {
85 | font-size: 24;
86 | }
87 | #vol_box {
88 | margin-top: 30;
89 | padding: 20;
90 | border: 1 px solid grey;
91 | }
92 | #res_box {
93 | margin-top: 40;
94 | padding: 20 10 10 10;
95 | border: 1 px solid grey;
96 | }
97 | #res_sel{
98 | horizontal-spacing: 10;
99 | }
100 | #save_box {
101 | margin-top: 40;
102 | padding: 20 10 10 10;
103 | border: 1 px solid grey;
104 | }
105 | #save_box .label {
106 | font-size: 16;
107 | }
108 | #but_box {
109 | margin-top: 40;
110 | padding-top: 20;
111 | horizontal-spacing: 30;
112 | }
113 | /*************************************************
114 | * Loading Screen
115 | *************************************************/
116 | #load_box .label{
117 | font-size: 16;
118 | }
119 | #lv1 .label {
120 | color: black;
121 | }
122 | /*************************************************
123 | * Hud Screen
124 | *************************************************/
125 | #hudStatus .label {
126 | font-size: 14;
127 | color: yellow;
128 | font-name: "fonts/Arial.fnt";
129 | padding: 5 8 8 3;
130 | border-right: 3px solid red;
131 | }
132 | #hudStatus {
133 | background-color: black;
134 | }
135 |
136 | /*************************************************
137 | ** Animations
138 | *************************************************/
139 | @keyframes fade {
140 | 0% {
141 | opacity: 0;
142 | }
143 | 100% {
144 | opacity: 1;
145 | }
146 | }
147 |
148 | .fadeIn {
149 | animation: fade 5s ease 0s 1;
150 | }
151 |
152 | .fadeOut {
153 | animation: fade 2s ease 0s 1 reverse backwards;
154 | }
155 |
--------------------------------------------------------------------------------
/res/gui/newGame.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/res/gui/options.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
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 |
--------------------------------------------------------------------------------
/res/gui/splash.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
9 |
10 |
11 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/res/gui/start.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/simplescreenrecorder.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fredlangva/HaxeUI_Base/af6448289bd911e2623a30e84579d8da6f29a108/simplescreenrecorder.mp4
--------------------------------------------------------------------------------
/src/Main.hx:
--------------------------------------------------------------------------------
1 | /* --------------------------------------------------------
2 | GC
3 | */
4 | // Imports ------------------------------------------------
5 | import hxd.fs.LocalFileSystem;
6 | import hxd.*;
7 | import hxd.res.Sound;
8 | import gui.Gui;
9 |
10 | enum GameState {
11 | mainMenu;
12 | pause;
13 | play;
14 | options;
15 | newGame;
16 | loadGame;
17 | }
18 |
19 |
20 | // Class --------------------------------------------------
21 | class Main extends hxd.App {
22 | // Variables ----------------------------------------------
23 | public static var instance:Main;
24 | public static var gameState:GameState;
25 |
26 | // Functions ----------------------------------------------
27 | static function main() {
28 | new Main();
29 | }
30 | public function new() {
31 | instance = this;
32 | super();
33 | }
34 |
35 | override function init() {
36 | hxd.Res.initLocal();
37 | var loader:hxd.res.Loader = new hxd.res.Loader(new hxd.fs.LocalFileSystem("res/gui", "" ));
38 | trace('Main init');
39 | engine.backgroundColor = 0xfff9af;
40 | super.init();
41 | var iniMusic:Sound = Res.gui.myTheme.sounds.cherokee_shuffle;
42 | iniMusic.play(true);
43 | // Init Gui
44 | var gui = new Gui(s2d);
45 | trace("after GUI Init called ");
46 | // Init Asset Mgr
47 | // Init Threading Job system?
48 |
49 | // set to main menu screen
50 | trace("ready for main menu");
51 | // trace(sys.FileSystem.fullPath('.'));
52 | }
53 |
54 | override function update(dt:Float){
55 |
56 | }
57 |
58 | }
--------------------------------------------------------------------------------
/src/gui/GcFunButton.hx:
--------------------------------------------------------------------------------
1 | package gui;
2 |
3 | import haxe.ui.containers.HBox;
4 | import haxe.ui.events.MouseEvent;
5 |
6 | @:build(haxe.ui.macros.ComponentMacros.build("res/gui/indButton.xml",
7 | {id: "gc_fun", icon: "images/icons/gc/gc_fun.png"} ))
8 | class GcFunButton extends HBox {
9 | public function new() {
10 | super();
11 | }
12 | }
--------------------------------------------------------------------------------
/src/gui/GcLotButton.hx:
--------------------------------------------------------------------------------
1 | package gui;
2 |
3 | import haxe.ui.containers.HBox;
4 | import haxe.ui.events.MouseEvent;
5 |
6 | @:build(haxe.ui.macros.ComponentMacros.build("res/gui/indButton.xml",
7 | {id: "gc_lot", icon: "images/icons/gc/gc_lot.png"} ))
8 | class GcLotButton extends HBox {
9 | public function new() {
10 | super();
11 | }
12 | }
--------------------------------------------------------------------------------
/src/gui/Gui.hx:
--------------------------------------------------------------------------------
1 | package gui;
2 | /* --------------------------------------------------------
3 | Gui - module to handle the user interface
4 | This module initializes all the 'scenes' used in
5 | the GUI and runs the initialization animations
6 |
7 | v1: 3/19/21
8 | */
9 | // Imports ------------------------------------------------
10 | import h2d.Scene;
11 | import haxe.ui.*;
12 | import haxe.ui.macros.ComponentMacros;
13 | import haxe.ui.core.Component;
14 | import haxe.ui.events.AnimationEvent;
15 | import haxe.ui.core.Screen;
16 |
17 |
18 | // Class --------------------------------------------------
19 | class Gui extends Scene {
20 | // Variables ----------------------------------------------
21 | public static var hud:Component;
22 | public static var startScr:Component;
23 | public static var newScr:Component;
24 | public static var loadScr:Component;
25 | public static var optScr:Component;
26 |
27 | // Functions ----------------------------------------------
28 | public function new(defScene:h2d.Scene) {
29 | // defScene is for Heaps only
30 | trace("init the GUI");
31 | super();
32 |
33 | Toolkit.theme = "myTheme"; // A HaxeUI Custom Theme
34 | Toolkit.init({root: defScene}); // the root is Heaps specific
35 |
36 | startScr = new StartMenu();
37 | Screen.instance.addComponent(startScr);
38 | newScr = new NewScreen();
39 | Screen.instance.addComponent(newScr);
40 | loadScr = new LoadScreen();
41 | Screen.instance.addComponent(loadScr);
42 | optScr = new OptionsScreen();
43 | Screen.instance.addComponent(optScr);
44 | hud = new Hud();
45 | Screen.instance.addComponent(hud);
46 |
47 | // Start the SPLASH Scene
48 | var initScr:Component = ComponentMacros.buildComponent("res/gui/splash.xml");
49 | Screen.instance.addComponent(initScr);
50 | // gather the logos to animate
51 | var img1 = initScr.findComponent('haxelogo', haxe.ui.components.Image, true);
52 | var img2 = initScr.findComponent('haxeui', haxe.ui.components.Image, true);
53 | var img3 = initScr.findComponent('heaps', haxe.ui.components.Image, true);
54 | // start the sequence
55 |
56 | img1.addClass('fadeIn');
57 | img1.registerEvent(AnimationEvent.END, function(_){
58 | trace("img1 done");
59 | img2.addClass('fadeIn');
60 | img2.registerEvent(AnimationEvent.END, function(_){
61 | trace("img2 done");
62 | img3.addClass('fadeIn');
63 | img3.registerEvent(AnimationEvent.END, function(_){
64 | trace("img3 done");
65 | // Great now, switch the scene and change the mode
66 | startScr.show();
67 | initScr.addClass('fadeOut');
68 | initScr.registerEvent(AnimationEvent.START, function (_) {
69 | startScr.addClass('fadeIn');
70 | });
71 | initScr.registerEvent(AnimationEvent.END, function (_) {
72 | Screen.instance.removeComponent(initScr);
73 | });
74 | });
75 | });
76 | });
77 | };
78 | }
--------------------------------------------------------------------------------
/src/gui/Hud.hx:
--------------------------------------------------------------------------------
1 | package gui;
2 | /* --------------------------------------------------------
3 |
4 | */
5 | // Imports ------------------------------------------------
6 | import haxe.ui.components.Button;
7 | import haxe.ui.containers.VBox;
8 |
9 | // Class --------------------------------------------------
10 | @:build(haxe.ui.macros.ComponentMacros.build("res/gui/hud.xml"))
11 | class Hud extends VBox {
12 | // Variables ----------------------------------------------
13 | var lot_clicked:Bool = false;
14 | var fun_clicked:Bool = false;
15 |
16 | // Functions ----------------------------------------------
17 | public function new() {
18 | trace("hud new");
19 | super();
20 | this.hide();
21 | lotSize.hide();
22 | funStuff.hide();
23 | gc_lot.indicator.hide();
24 | gc_fun.indicator.hide();
25 | gc_lot.onClick = function(e) {
26 | trace("gc_lot Button clicked ");
27 | if (lot_clicked) {
28 | lot_clicked = false;
29 | gc_lot.indicator.hide();
30 | lotSize.hide();
31 | } else {
32 | lot_clicked = true;
33 | gc_lot.indicator.show();
34 | lotSize.show();
35 | }
36 | };
37 | gc_fun.onClick = function(e) {
38 | trace("clickef");
39 | if (fun_clicked) {
40 | fun_clicked = false;
41 | gc_fun.indicator.hide();
42 | funStuff.hide();
43 | } else {
44 | fun_clicked = true;
45 | gc_fun.indicator.show();
46 | funStuff.show();
47 | }
48 | }
49 |
50 | gc_money.onClick = function(e) {
51 | trace("gc_money Button clicked");
52 | };
53 | gc_opts.onClick = function(e) {
54 | trace("gc_opts Button clicked");
55 | };
56 | }
57 | }
--------------------------------------------------------------------------------
/src/gui/LoadScreen.hx:
--------------------------------------------------------------------------------
1 | package gui;
2 | /* --------------------------------------------------------
3 |
4 | */
5 | // Imports ------------------------------------------------
6 | import haxe.ui.containers.Box;
7 |
8 | // Class --------------------------------------------------
9 | @:build(haxe.ui.macros.ComponentMacros.build("res/gui/loadGame.xml"))
10 | class LoadScreen extends Box {
11 | // Variables ----------------------------------------------
12 |
13 | // Functions ----------------------------------------------
14 | public function new() {
15 | super();
16 | this.hide();
17 | trace("loadScr added");
18 | var directory = sys.FileSystem.fullPath(".");
19 | loadView(directory);
20 |
21 |
22 | cont.onClick = function(e) {
23 | trace("cont clicked");
24 | Gui.loadScr.hide();
25 | Gui.startScr.hide();
26 | Gui.hud.show();
27 | }
28 | }
29 |
30 | private function loadView(directory:String) {
31 | trace ("Load view");
32 | lv1.dataSource.allowCallbacks = false;
33 | for (file in sys.FileSystem.readDirectory(directory)) {
34 | trace(" > " + file);
35 | if (sys.FileSystem.isDirectory(file)) {
36 | lv1.dataSource.add({
37 | image: "images/icons/gc/folder.png",
38 | item: file
39 | });
40 | } else {
41 | lv1.dataSource.add({
42 | image: null,
43 | item: file
44 | });
45 | }
46 | }
47 | lv1.dataSource.allowCallbacks = true;
48 |
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/src/gui/NewScreen.hx:
--------------------------------------------------------------------------------
1 | package gui;
2 | /* --------------------------------------------------------
3 |
4 | */
5 | // Imports ------------------------------------------------
6 | import haxe.ui.containers.Box;
7 |
8 | // Class --------------------------------------------------
9 | @:build(haxe.ui.macros.ComponentMacros.build("res/gui/newGame.xml"))
10 | class NewScreen extends Box {
11 | // Variables ----------------------------------------------
12 |
13 |
14 | // Functions ----------------------------------------------
15 | public function new() {
16 | super();
17 | this.hide();
18 | trace("newScr added");
19 | cont.onClick = function(e) {
20 | trace("cont clicked");
21 | Gui.newScr.hide();
22 | Gui.startScr.hide();
23 | Gui.hud.show();
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/gui/OptionsScreen.hx:
--------------------------------------------------------------------------------
1 | package gui;
2 | /* --------------------------------------------------------
3 |
4 | */
5 | // Imports ------------------------------------------------
6 | import haxe.ui.containers.Box;
7 |
8 | // Class --------------------------------------------------
9 | @:build(haxe.ui.macros.ComponentMacros.build("res/gui/options.xml"))
10 | class OptionsScreen extends Box {
11 | // Variables ----------------------------------------------
12 |
13 | // Functions ----------------------------------------------
14 | public function new() {
15 | trace("optScr added");
16 | super();
17 | this.hide();
18 | ok.onClick = function(e) {
19 | trace("ok clicked");
20 | this.hide();
21 | Gui.startScr.removeClass('halftone');
22 | }
23 | cancel.onClick = function(e) {
24 | trace("cancel clicked");
25 | this.hide();
26 | Gui.startScr.removeClass('halftone');
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/gui/StartMenu.hx:
--------------------------------------------------------------------------------
1 | package gui;
2 | /* --------------------------------------------------------
3 | Start Menu
4 | */
5 | // Imports ------------------------------------------------
6 | import haxe.ui.containers.Box;
7 |
8 | // Class --------------------------------------------------
9 | @:build(haxe.ui.macros.ComponentMacros.build("res/gui/start.xml"))
10 | class StartMenu extends Box {
11 | // Variables ----------------------------------------------
12 |
13 |
14 | // Functions ----------------------------------------------
15 | public function new() {
16 | trace("startScr added");
17 | super();
18 | this.hide();
19 | newgame.onClick = function(e) {
20 | trace ("new Game clicked");
21 | // Toolkit.messageBox("Opening new Game - may want to make this custom for name",MessageBoxType.TYPE_INFO,true);
22 | Gui.startScr.addClass('halftone');
23 | Gui.newScr.show();
24 | };
25 | loadgame.onClick = function(e) {
26 | trace ("load Game clicked");
27 | Gui.startScr.addClass('halftone');
28 | Gui.loadScr.show();
29 | };
30 | options.onClick = function(e) {
31 | trace ("options clicked");
32 | Gui.startScr.addClass('halftone');
33 | Gui.optScr.show();
34 | };
35 | exit.onClick = function(e) {
36 | trace("exit stuff here");
37 | hxd.System.exit();
38 | };
39 | }
40 | }
41 |
42 |
43 |
--------------------------------------------------------------------------------
/src/module.xml:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/src/template.hx:
--------------------------------------------------------------------------------
1 | package;
2 | /* --------------------------------------------------------
3 |
4 | */
5 | // Imports ------------------------------------------------
6 |
7 |
8 | // Class --------------------------------------------------
9 | class {
10 | // Variables ----------------------------------------------
11 |
12 |
13 | // Functions ----------------------------------------------
14 | public static function init() {
15 | }
16 | }
17 |
--------------------------------------------------------------------------------