Rev 3046 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3046 | Rev 3050 | ||
---|---|---|---|
1 | //Leency - 2012 |
1 | //Leency - 2012 |
2 | 2 | ||
3 | #include "imgs\logo.txt" |
3 | #include "imgs\logo.txt" |
4 | 4 | ||
5 | #define EDITOR_PATH "/sys/tinypad" |
5 | #define EDITOR_PATH "/sys/tinypad" |
6 | #define BROWSER_PATH "/sys/htmlv" |
6 | #define BROWSER_PATH "/sys/htmlv" |
7 | #define BROWSER_LINK "http://kolibri-os.narod.ru" |
7 | #define BROWSER_LINK "http://kolibri-os.narod.ru" |
8 | 8 | ||
9 | 9 | ||
10 | void about_dialog() |
10 | void about_dialog() |
11 | { |
11 | { |
12 | mouse mm; |
12 | mouse mm; |
13 | byte id, letitclose=0; |
13 | byte id, letitclose=0; |
14 | SetEventMask(100111b); |
14 | SetEventMask(100111b); |
15 | loop() switch(WaitEvent()) |
15 | loop() switch(WaitEvent()) |
16 | { |
16 | { |
17 | case evMouse: |
17 | case evMouse: |
18 | mm.get(); |
18 | mm.get(); |
19 | //êóëüíî |
19 | //êóëüíî |
20 | IF (mm.x>85) && (mm.x<155) && (mm.y>190) && (mm.y<190+22) |
20 | IF (mm.x>85) && (mm.x<155) && (mm.y>190) && (mm.y<190+22) |
21 | IF (mm.lkm) {DrawRegion_3D(86,191,68,20,0xC7C7C7,0xFFFFFF); letitclose=1;} |
21 | IF (mm.lkm) {DrawRegion_3D(86,191,68,20,0xC7C7C7,0xFFFFFF); letitclose=1;} |
22 | ELSE {IF (letitclose) {DrawRegion_3D(86,191,68,20,0xFFFFFF,0xC7C7C7); Pause(7); ExitProcess();}} |
22 | ELSE {IF (letitclose) {DrawRegion_3D(86,191,68,20,0xFFFFFF,0xC7C7C7); Pause(7); ExitProcess();}} |
23 | ELSE IF (letitclose) {letitclose=0; DrawRegion_3D(86,191,68,20,0xFFFFFF,0xC7C7C7);} |
23 | ELSE IF (letitclose) {letitclose=0; DrawRegion_3D(86,191,68,20,0xFFFFFF,0xC7C7C7);} |
24 | break; |
24 | break; |
25 | 25 | ||
26 | case evButton: |
26 | case evButton: |
27 | id=GetButtonID(); |
27 | id=GetButtonID(); |
28 | IF (id==1) ExitProcess(); |
28 | IF (id==1) ExitProcess(); |
29 | IF (id==23) RunProgram(BROWSER_PATH, BROWSER_LINK); |
29 | IF (id==23) RunProgram(BROWSER_PATH, BROWSER_LINK); |
30 | IF (id==33) RunProgram(EDITOR_PATH, #program_path); |
30 | IF (id==33) RunProgram(EDITOR_PATH, #program_path); |
31 | break; |
31 | break; |
32 | 32 | ||
33 | case evKey: |
33 | case evKey: |
34 | IF (GetKey()==27) ExitProcess(); |
34 | IF (GetKey()==27) ExitProcess(); |
35 | break; |
35 | break; |
36 | 36 | ||
37 | case evReDraw: |
37 | case evReDraw: |
38 | DefineAndDrawWindow(600,150,181,256,0x34,0x10EFEBEF,"About Eolite"); |
38 | DefineAndDrawWindow(600,150,181,256,0x34,0x10EFEBEF,"About Eolite"); |
39 | DrawBar(0,0,172,50,0x8494C4); //ãîëóáîå ñçàäè |
39 | DrawBar(0,0,172,50,0x8494C4); //ãîëóáîå ñçàäè |
40 | PutPaletteImage(#logo,85,85,43,7,#logo_pal); |
40 | PutPaletteImage(#logo,85,85,43,7,#logo_pal); |
41 | WriteText(46,100,0x90,0xBF40BF,"Eolite v1.38",0); |
41 | WriteText(49,100,0x90,0xBF40BF,"Eolite v1.4",0); |
42 | $add ebx, 1<<16 |
42 | $add ebx, 1<<16 |
43 | $int 0x40 |
43 | $int 0x40 |
44 | WriteText(55,120,0x80,0,"Developers:",0); |
44 | WriteText(55,120,0x80,0,"Developers:",0); |
45 | WriteText(39,130,0x80,0,"Leency & Veliant",0); |
45 | WriteText(39,130,0x80,0,"Leency & Veliant",0); |
46 | WriteText(45,140,0x80,0,"KolibriOS Team",0); |
46 | WriteText(45,140,0x80,0,"KolibriOS Team",0); |
47 | WriteText(61,150,0x80,0,"2008-2012",0); |
47 | WriteText(61,150,0x80,0,"2008-2012",0); |
48 | WriteText(12,170,0x80,0,"Visit",0); |
48 | WriteText(12,170,0x80,0,"Visit",0); |
49 | DrawLink(48,170,23, "kolibri-os.narod.ru"); //ññûëêa |
49 | DrawLink(48,170,23, "kolibri-os.narod.ru"); //ññûëêa |
50 | DrawFlatButton(85,190,70,22,0,0xE4DFE1, "Close"); |
50 | DrawFlatButton(85,190,70,22,0,0xE4DFE1, "Close"); |
51 | 51 | ||
52 | DefineButton(20-1,195-1, 16+1,15+1, 33+BT_HIDE, 0); |
52 | DefineButton(20-1,195-1, 16+1,15+1, 33+BT_HIDE, 0); |
53 | PutPaletteImage(8*16*15+#ficons,16,15,20,195,#ficons_pal); |
53 | PutPaletteImage(8*16*15+#ficons,16,15,20,195,#ficons_pal); |
54 | } |
54 | } |
55 | } |
55 | } |
56 | 56 | ||
57 | void DrawLink(dword x,y,btn_id, inscription) |
57 | void DrawLink(dword x,y,btn_id, inscription) |
58 | { |
58 | { |
59 | WriteText(x,y,0x80,0x4E00E7,inscription,0); |
59 | WriteText(x,y,0x80,0x4E00E7,inscription,0); |
60 | DrawBar(x,y+8,strlen(inscription)*6,1,0x4E00E7); //ïîä÷åðêíóòü ññûëêó |
60 | DrawBar(x,y+8,strlen(inscription)*6,1,0x4E00E7); //ïîä÷åðêíóòü ññûëêó |
61 | DefineButton(x-1,y-1,strlen(inscription)*6,10,btn_id+BT_HIDE,0); |
61 | DefineButton(x-1,y-1,strlen(inscription)*6,10,btn_id+BT_HIDE,0); |
62 | }16 |
62 | }16 |
63 | ><16 |
63 | ><16 |
64 | >190+22) |
64 | >190+22) |
65 | >155)> |
65 | >155)> |