Rev 8013 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8013 | Rev 8278 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | #define T_COMPLETE "Install complete" |
35 | #define T_COMPLETE "Install complete" |
36 | #define T_EXIT "Exit" |
36 | #define T_EXIT "Exit" |
37 | #endif |
37 | #endif |
Line 38... | Line 38... | ||
38 | 38 | ||
- | 39 | #define B_INSTALL 10 |
|
Line 39... | Line 40... | ||
39 | #define B_INSTALL 10 |
40 | #define B_EXIT 11 |
Line 40... | Line 41... | ||
40 | 41 | ||
41 | bool install_complete = false; |
42 | bool install_complete = false; |
Line 48... | Line 49... | ||
48 | load_dll(libimg, #libimg_init,1); |
49 | load_dll(libimg, #libimg_init,1); |
49 | loop() switch(WaitEventTimeout(300) & 0xFF) |
50 | loop() switch(WaitEventTimeout(300) & 0xFF) |
50 | { |
51 | { |
51 | case evButton: |
52 | case evButton: |
52 | btn = GetButtonID(); |
53 | btn = GetButtonID(); |
53 | if (btn == 1) ExitProcess(); |
54 | if (btn == 1) || (B_EXIT == btn) ExitProcess(); |
54 | if (btn == B_INSTALL) EventInstall(); |
55 | if (B_INSTALL == btn) EventInstall(); |
55 | break; |
56 | break; |
Line 56... | Line 57... | ||
56 | 57 | ||
57 | case evKey: |
58 | case evKey: |
58 | GetKeys(); |
59 | GetKeys(); |
Line 94... | Line 95... | ||
94 | 95 | ||
95 | void DrawInstallComplete() |
96 | void DrawInstallComplete() |
96 | { |
97 | { |
97 | DrawIcon32(WINW-32/2, 140, sc.work, 49); |
98 | DrawIcon32(WINW-32/2, 140, sc.work, 49); |
98 | WriteTextCenter(0,185, WINW, sc.work_text, T_COMPLETE); |
99 | WriteTextCenter(0,185, WINW, sc.work_text, T_COMPLETE); |
99 | DrawCaptButton(WINW-110/2, WINH-70, 110, 28, CLOSE_BTN, |
100 | DrawCaptButton(WINW-110/2, WINH-70, 110, 28, B_EXIT, |
100 | 0x0092D8, 0xFFFfff, T_EXIT); |
101 | 0x0092D8, 0xFFFfff, T_EXIT); |
Line 101... | Line 102... | ||
101 | } |
102 | } |
102 | 103 |