Rev 5549 | Rev 5581 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5549 | Rev 5576 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | void about_dialog() |
23 | void about_dialog() |
24 | { |
24 | { |
25 | byte id; |
25 | byte id; |
26 | proc_info about_form; |
26 | proc_info about_form; |
Line 27... | Line 27... | ||
27 | 27 | ||
28 | IF (active_about) ExitProcess(); |
28 | IF (active_about){cmd_free = 2;ExitProcess();} |
29 | active_about=1; |
29 | active_about=1; |
30 | loop() switch(WaitEvent()) |
30 | loop() switch(WaitEvent()) |
31 | { |
31 | { |
32 | case evButton: |
32 | case evButton: |
33 | id=GetButtonID(); |
33 | id=GetButtonID(); |
34 | IF (id==1) || (id==10) |
34 | IF (id==1) || (id==10) |
35 | { |
35 | { |
- | 36 | active_about=0; |
|
36 | active_about=0; |
37 | cmd_free = 2; |
37 | ExitProcess(); |
38 | ExitProcess(); |
38 | } |
39 | } |
39 | IF (id==23) RunProgram(BROWSER_PATH, BROWSER_LINK); |
40 | IF (id==23) RunProgram(BROWSER_PATH, BROWSER_LINK); |
Line 40... | Line 41... | ||
40 | break; |
41 | break; |
41 | 42 | ||
42 | case evKey: |
43 | case evKey: |
43 | IF (GetKey()==27) |
44 | IF (GetKey()==27) |
- | 45 | { |
|
44 | { |
46 | active_about=0; |
45 | active_about=0; |
47 | cmd_free = 2; |
46 | ExitProcess(); |
48 | ExitProcess(); |
Line 47... | Line 49... | ||
47 | } |
49 | } |
48 | break; |
50 | break; |
49 | 51 | ||
50 | case evReDraw: |
52 | case evReDraw: |
51 | DefineAndDrawWindow(Form.left + 200,150,181,228+GetSkinHeight(),0x34,sc.work,INTRO_TEXT_1); |
53 | DefineAndDrawWindow(Form.left+Form.width/2,Form.top+Form.height/2-114,300,228+GetSkinHeight(),0x34,sc.work,INTRO_TEXT_1); |
52 | GetProcessInfo(#about_form, SelfInfo); |
54 | GetProcessInfo(#about_form, SelfInfo); |
53 | if (Form.status_window>2) break; |
55 | if (Form.status_window>2) break; |
54 | DrawBar(0,0,about_form.cwidth,50,0x8494C4); |
56 | DrawBar(0,0,about_form.cwidth,50,0x8494C4); |
55 | PutPaletteImage(#logo,85,85,43,7,8,#logo_pal); |
57 | PutPaletteImage(#logo,85,85,about_form.width/2-43,7,8,#logo_pal); |
56 | WriteTextB(46,100,0x90,0xBF40BF,ABOUT_TITLE); |
58 | WriteTextB(about_form.width/2-46,100,0x90,0xBF40BF,ABOUT_TITLE); |
57 | WriteTextCenter(0,120,about_form.cwidth,0,INTRO_TEXT_2); |
59 | WriteTextCenter(0,120,about_form.cwidth,0,INTRO_TEXT_2); |
58 | WriteTextCenter(0,130,about_form.cwidth,0,"Leency Veliant PunkJoker"); |
60 | WriteTextCenter(0,130,about_form.cwidth,0,"Leency Veliant PunkJoker Pavelyakov"); |
59 | WriteTextCenter(0,140,about_form.cwidth,0,"KolibriOS Team"); |
61 | WriteTextCenter(0,140,about_form.cwidth,0,"KolibriOS Team"); |
60 | WriteTextCenter(0,150,about_form.cwidth,0,"2008-2015"); |
62 | WriteTextCenter(0,150,about_form.cwidth,0,"2008-2015"); |
61 | WriteTextCenter(10,170,70,0,INTRO_TEXT_3); |
63 | WriteTextCenter(10,170,about_form.width-125,0,INTRO_TEXT_3); |
62 | DrawLink(71,170,0x80,23, "kolibri-n.org"); |
64 | DrawLink(about_form.width/2-15,170,0x80,23, "kolibri-n.org"); |
63 | DrawFlatButton(85,190,70,22,10,0xE4DFE1, INTRO_TEXT_4); |
65 | DrawFlatButton(about_form.width/2-35,about_form.height-60,70,22,10,0xE4DFE1, INTRO_TEXT_4); |