|
14 | 14 | ugfx.clear(ugfx.WHITE)
|
15 | 15 | ugfx.flush()
|
16 | 16 |
|
17 |
| -ugfx.string_box(148,22,148,26, "STILL", "Roboto_BlackItalic24", ugfx.BLACK, ugfx.justifyCenter) |
18 |
| -ugfx.string_box(148,45,148,23, "Hacking", "PermanentMarker22", ugfx.BLACK, ugfx.justifyCenter) |
19 |
| -ugfx.string_box(148,70,148,26, "Anyway", "Roboto_BlackItalic24", ugfx.BLACK, ugfx.justifyCenter) |
| 17 | +ugfx.string_box(148,0,148,26, "STILL", "Roboto_BlackItalic24", ugfx.BLACK, ugfx.justifyCenter) |
| 18 | +ugfx.string_box(148,23,148,23, "Hacking", "PermanentMarker22", ugfx.BLACK, ugfx.justifyCenter) |
| 19 | +ugfx.string_box(148,48,148,26, "Anyway", "Roboto_BlackItalic24", ugfx.BLACK, ugfx.justifyCenter) |
20 | 20 |
|
21 | 21 | #the line under the text
|
22 | 22 | str_len = ugfx.get_string_width("Hacking","PermanentMarker22")
|
23 | 23 | line_begin = 148 + int((148-str_len)/2)
|
24 | 24 | line_end = str_len+line_begin
|
25 |
| -ugfx.line(line_begin, 68, line_end, 68, ugfx.BLACK) |
| 25 | +ugfx.line(line_begin, 46, line_end, 46, ugfx.BLACK) |
26 | 26 |
|
27 | 27 | #the cursor past the text
|
28 | 28 | cursor_pos = line_end+5
|
29 |
| -ugfx.line(cursor_pos, 46, cursor_pos, 66, ugfx.BLACK) |
| 29 | +ugfx.line(cursor_pos, 22, cursor_pos, 44, ugfx.BLACK) |
30 | 30 |
|
31 |
| -ugfx.string_box(148,110,148,18, version.name,"Roboto_Regular12",ugfx.BLACK, ugfx.justifyLeft) |
32 |
| -ugfx.flush() |
| 31 | +# Instructions |
| 32 | +ugfx.line(148, 78, 296, 78, ugfx.BLACK) |
| 33 | +ugfx.string_box(148,78,148,18, " A: Run", "Roboto_Regular12", ugfx.BLACK, ugfx.justifyLeft) |
| 34 | +ugfx.string_box(148,78,148,18, " B: Uninstall", "Roboto_Regular12", ugfx.BLACK, ugfx.justifyRight) |
| 35 | +ugfx.string_box(148,92,148,18, " START: Return to home", "Roboto_Regular12", ugfx.BLACK, ugfx.justifyLeft) |
| 36 | +ugfx.line(148, 110, 296, 110, ugfx.BLACK) |
| 37 | +ugfx.string_box(148,110,148,18, " " + version.name, "Roboto_Regular12", ugfx.BLACK, ugfx.justifyLeft) |
| 38 | + |
| 39 | +# ugfx.flush() |
33 | 40 | options = None
|
34 | 41 | install_path = None
|
35 | 42 |
|
@@ -107,6 +114,8 @@ def perform_uninstall(ok):
|
107 | 114 | ugfx.input_attach(ugfx.JOY_UP, lambda pushed: ugfx.flush() if pushed else 0)
|
108 | 115 | ugfx.input_attach(ugfx.JOY_DOWN, lambda pushed: ugfx.flush() if pushed else 0)
|
109 | 116 |
|
| 117 | +ugfx.input_attach(ugfx.BTN_START, lambda pushed: appglue.start_app("") if pushed else 0) |
| 118 | + |
110 | 119 | ugfx.set_lut(ugfx.LUT_FULL)
|
111 | 120 | ugfx.flush()
|
112 | 121 | ugfx.set_lut(ugfx.LUT_FASTER)
|
0 commit comments