2013-03-21 02:35:57 +04:00
|
|
|
|
//Leency 2008-2013
|
2013-03-11 22:16:24 +04:00
|
|
|
|
|
|
|
|
|
#define EDITOR_PATH "/sys/tinypad"
|
|
|
|
|
#define BROWSER_PATH "/sys/htmlv"
|
|
|
|
|
#define BROWSER_LINK "http://kolibri-n.org/index.php"
|
|
|
|
|
|
2013-08-04 03:35:59 +04:00
|
|
|
|
#ifdef LANG_RUS
|
|
|
|
|
?define INTRO_TEXT_1 "<EFBFBD> Eolite"
|
|
|
|
|
?define INTRO_TEXT_2 "<EFBFBD><EFBFBD><EFBFBD>ࠡ<EFBFBD><EFBFBD>稪<EFBFBD>:"
|
|
|
|
|
?define INTRO_TEXT_3 "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
?define INTRO_TEXT_4 "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
2013-09-24 22:50:05 +04:00
|
|
|
|
#elif LANG_EST
|
|
|
|
|
?define INTRO_TEXT_1 "Programmis Eolite"
|
|
|
|
|
?define INTRO_TEXT_2 "Arendajad:"
|
|
|
|
|
?define INTRO_TEXT_3 "K<EFBFBD>lasta"
|
|
|
|
|
?define INTRO_TEXT_4 "Sulge"
|
2013-08-04 03:35:59 +04:00
|
|
|
|
#else
|
|
|
|
|
?define INTRO_TEXT_1 "About Eolite"
|
|
|
|
|
?define INTRO_TEXT_2 "Developers:"
|
|
|
|
|
?define INTRO_TEXT_3 "Visit"
|
|
|
|
|
?define INTRO_TEXT_4 "Close"
|
|
|
|
|
#endif
|
2013-03-11 22:16:24 +04:00
|
|
|
|
|
|
|
|
|
void about_dialog()
|
|
|
|
|
{
|
|
|
|
|
byte id;
|
2013-10-17 01:03:17 +04:00
|
|
|
|
IF (active_about) ExitProcess();
|
|
|
|
|
active_about=1;
|
2013-03-11 22:16:24 +04:00
|
|
|
|
loop() switch(WaitEvent())
|
|
|
|
|
{
|
|
|
|
|
case evButton:
|
|
|
|
|
id=GetButtonID();
|
2013-10-17 01:03:17 +04:00
|
|
|
|
IF (id==1) || (id==10)
|
|
|
|
|
{
|
|
|
|
|
active_about=0;
|
|
|
|
|
ExitProcess();
|
|
|
|
|
}
|
2013-03-11 22:16:24 +04:00
|
|
|
|
IF (id==23) RunProgram(BROWSER_PATH, BROWSER_LINK);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case evKey:
|
2013-10-17 01:03:17 +04:00
|
|
|
|
IF (GetKey()==27)
|
|
|
|
|
{
|
|
|
|
|
active_about=0;
|
|
|
|
|
ExitProcess();
|
|
|
|
|
}
|
2013-03-11 22:16:24 +04:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case evReDraw:
|
2013-10-23 21:55:07 +04:00
|
|
|
|
DefineAndDrawWindow(600,150,181,228+GetSkinHeight(),0x34,sc.work,INTRO_TEXT_1);
|
2013-03-11 22:16:24 +04:00
|
|
|
|
DrawBar(0,0,172,50,0x8494C4);
|
|
|
|
|
PutPaletteImage(#logo,85,85,43,7,8,#logo_pal);
|
2013-03-26 02:50:35 +04:00
|
|
|
|
WriteTextB(46,100,0x90,0xBF40BF,ABOUT_TITLE);
|
2013-08-04 03:35:59 +04:00
|
|
|
|
#ifdef LANG_RUS
|
|
|
|
|
WriteText(50,120,0x80,0,INTRO_TEXT_2);
|
|
|
|
|
#else
|
|
|
|
|
WriteText(55,120,0x80,0,INTRO_TEXT_2);
|
|
|
|
|
#endif
|
2013-03-11 22:16:24 +04:00
|
|
|
|
WriteText(39,130,0x80,0,"Leency & Veliant");
|
|
|
|
|
WriteText(45,140,0x80,0,"KolibriOS Team");
|
2015-02-14 01:54:42 +03:00
|
|
|
|
WriteText(61,150,0x80,0,"2008-2015");
|
2013-08-04 03:35:59 +04:00
|
|
|
|
#ifdef LANG_RUS
|
|
|
|
|
WriteText(19,170,0x80,0,INTRO_TEXT_3);
|
|
|
|
|
#else
|
|
|
|
|
WriteText(29,170,0x80,0,INTRO_TEXT_3);
|
|
|
|
|
#endif
|
|
|
|
|
DrawLink(71,170,0x80,23, "kolibri-n.org");
|
|
|
|
|
DrawFlatButton(85,190,70,22,10,0xE4DFE1, INTRO_TEXT_4);
|
2013-03-11 22:16:24 +04:00
|
|
|
|
}
|
|
|
|
|
}
|