Subversion Repositories Kolibri OS

Rev

Rev 5401 | Rev 5481 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4042 leency 1
//Leency 2008-2013
2
 
3
#define BROWSER_PATH    "/sys/htmlv"
4
#define BROWSER_LINK    "http://kolibri-n.org/index.php"
5
 
6
#ifdef LANG_RUS
7
	?define INTRO_TEXT_1 "О Eolite"
8
	?define INTRO_TEXT_2 "Разработчики:"
9
	?define INTRO_TEXT_3 "Посетите"
10
	?define INTRO_TEXT_4 "Закрыть"
11
#elif LANG_EST
12
	?define INTRO_TEXT_1 "Programmis Eolite"
13
	?define INTRO_TEXT_2 "Arendajad:"
14
	?define INTRO_TEXT_3 "K№lasta"
15
	?define INTRO_TEXT_4 "Sulge"
16
#else
17
	?define INTRO_TEXT_1 "About Eolite"
18
	?define INTRO_TEXT_2 "Developers:"
19
	?define INTRO_TEXT_3 "Visit"
20
	?define INTRO_TEXT_4 "Close"
21
#endif
22
 
23
void about_dialog()
24
{
25
	byte id;
26
	IF (active_about) ExitProcess();
27
	active_about=1;
28
	loop() switch(WaitEvent())
29
	{
30
		case evButton:
31
				id=GetButtonID();
32
				IF (id==1) || (id==10)
33
				{
34
					active_about=0;
35
					ExitProcess();
36
				}
37
				IF (id==23) RunProgram(BROWSER_PATH, BROWSER_LINK);
38
				break;
39
 
40
		case evKey:
41
				IF (GetKey()==27)
42
				{
43
					active_about=0;
44
					ExitProcess();
45
				}
46
				break;
47
 
48
		case evReDraw:
4076 leency 49
				DefineAndDrawWindow(600,150,181,228+GetSkinHeight(),0x34,sc.work,INTRO_TEXT_1);
4042 leency 50
				DrawBar(0,0,172,50,0x8494C4);
51
				PutPaletteImage(#logo,85,85,43,7,8,#logo_pal);
52
				WriteTextB(46,100,0x90,0xBF40BF,ABOUT_TITLE);
53
				#ifdef LANG_RUS
54
				WriteText(50,120,0x80,0,INTRO_TEXT_2);
55
				#else
56
				WriteText(55,120,0x80,0,INTRO_TEXT_2);
57
				#endif
58
				WriteText(39,130,0x80,0,"Leency & Veliant");
59
				WriteText(45,140,0x80,0,"KolibriOS Team");
5401 leency 60
				WriteText(61,150,0x80,0,"2008-2015");
4042 leency 61
				#ifdef LANG_RUS
62
				WriteText(19,170,0x80,0,INTRO_TEXT_3);
63
				#else
64
				WriteText(29,170,0x80,0,INTRO_TEXT_3);
65
				#endif
66
				DrawLink(71,170,0x80,23, "kolibri-n.org");
67
				DrawFlatButton(85,190,70,22,10,0xE4DFE1, INTRO_TEXT_4);
68
	}
69
}