Rev 9597 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9597 | Rev 9602 | ||
---|---|---|---|
1 | #define BROWSER_PATH "/sys/network/webview" |
1 | #define BROWSER_PATH "/sys/network/webview" |
2 | #define BROWSER_LINK "http://kolibri-n.org/inf/eolite/eolite_p1" |
2 | #define BROWSER_LINK "http://kolibri-n.org/inf/eolite/eolite_p1" |
3 | 3 | ||
4 | 4 | ||
5 | void about_dialog() |
5 | void about_dialog() |
6 | { |
6 | { |
7 | int id; |
7 | int id; |
8 | proc_info about_form; |
8 | proc_info about_form; |
9 | int about_x; |
9 | int about_x; |
10 | 10 | ||
11 | if (active_about) {cmd_free=2;ExitProcess();} else active_about=1; |
11 | if (active_about) {cmd_free=2;ExitProcess();} else active_about=1; |
12 | loop() switch(WaitEvent()) |
12 | loop() switch(WaitEvent()) |
13 | { |
13 | { |
14 | case evButton: |
14 | case evButton: |
15 | id=GetButtonID(); |
15 | id=GetButtonID(); |
16 | IF (id==1) |
16 | IF (id==1) |
17 | { |
17 | { |
18 | active_about=0; |
18 | active_about=0; |
19 | cmd_free = 2; |
19 | cmd_free = 2; |
20 | ExitProcess(); |
20 | ExitProcess(); |
21 | } |
21 | } |
22 | IF (id==11) RunProgram(BROWSER_PATH, BROWSER_LINK); |
22 | IF (id==11) RunProgram(BROWSER_PATH, BROWSER_LINK); |
23 | break; |
23 | break; |
24 | 24 | ||
25 | case evKey: |
25 | case evKey: |
26 | GetKeys(); |
26 | GetKeys(); |
27 | IF (key_scancode == SCAN_CODE_ESC) |
27 | IF (key_scancode == SCAN_CODE_ESC) |
28 | { |
28 | { |
29 | active_about=0; |
29 | active_about=0; |
30 | cmd_free = 2; |
30 | cmd_free = 2; |
31 | ExitProcess(); |
31 | ExitProcess(); |
32 | } |
32 | } |
33 | break; |
33 | break; |
34 | 34 | ||
35 | case evReDraw: |
35 | case evReDraw: |
36 | DefineAndDrawWindow(Form.left+Form.width/2,Form.top+Form.height/2-114,300,300+skin_h,0x34,sc.work,T_ABOUT,0); |
36 | DefineAndDrawWindow(Form.left+Form.width/2,Form.top+Form.height/2-114,300,300+skin_h,0x34,sc.work,T_ABOUT,0); |
37 | GetProcessInfo(#about_form, SelfInfo); |
37 | GetProcessInfo(#about_form, SelfInfo); |
38 | if (about_form.status_window>2) break; |
38 | if (about_form.status_window>2) break; |
39 | logo_pal[0] = sc.work; |
39 | logo_pal[0] = sc.work; |
40 | ESDWORD[#logo_pal+16] = sc.work_dark; |
40 | ESDWORD[#logo_pal+16] = sc.dark; |
41 | PutPaletteImage(#logo,86,86,about_form.cwidth-86/2,10,8,#logo_pal); |
41 | PutPaletteImage(#logo,86,86,about_form.cwidth-86/2,10,8,#logo_pal); |
42 | about_x = -strlen(ABOUT_TITLE)*18+about_form.cwidth/2; |
42 | about_x = -strlen(ABOUT_TITLE)*18+about_form.cwidth/2; |
43 | WriteTextB(about_x+2,107,0x82,0xD49CD2,ABOUT_TITLE); |
43 | WriteTextB(about_x+2,107,0x82,0xD49CD2,ABOUT_TITLE); |
44 | WriteTextB(about_x,105,0x82,0x9D129D,ABOUT_TITLE); |
44 | WriteTextB(about_x,105,0x82,0x9D129D,ABOUT_TITLE); |
45 | WriteTextLines(73,163,0x90,sc.work_text," By Leency\nand KolibriOS Team\n 2008-2021",20); |
45 | WriteTextLines(73,163,0x90,sc.work_text," By Leency\nand KolibriOS Team\n 2008-2021",20); |
46 | #ifdef LANG_RUS |
46 | #ifdef LANG_RUS |
47 | DrawStandartCaptButton(60,about_form.cheight-38,11,"áâ®à¨ï à §à ¡®âª¨"); |
47 | DrawStandartCaptButton(60,about_form.cheight-38,11,"áâ®à¨ï à §à ¡®âª¨"); |
48 | #endif |
48 | #endif |
49 | } |
49 | } |
50 | } |
50 | } |