diff --git a/programs/cmm/rb/@rb b/programs/cmm/rb/@rb deleted file mode 100644 index 4e6dd7f37e..0000000000 Binary files a/programs/cmm/rb/@rb and /dev/null differ diff --git a/programs/cmm/rb/compile.bat b/programs/cmm/rb/compile.bat deleted file mode 100644 index 22660eb02e..0000000000 --- a/programs/cmm/rb/compile.bat +++ /dev/null @@ -1,7 +0,0 @@ -del @rb -..\C--\C-- rb -..\C--\kpack rb.com -rename rb.com @rb -del warning.txt -del rb.com -pause \ No newline at end of file diff --git a/programs/cmm/rb/compile_eng.bat b/programs/cmm/rb/compile_eng.bat new file mode 100644 index 0000000000..189e366dd6 --- /dev/null +++ b/programs/cmm/rb/compile_eng.bat @@ -0,0 +1,9 @@ +del lang.h-- +echo #define LANG_ENG 1 >lang.h-- +..\C--\C-- rb.c +del @rb +del warning.txt +del lang.h-- +rename rb.com @rb +..\C--\kpack @rb +pause \ No newline at end of file diff --git a/programs/cmm/rb/compile_rus.bat b/programs/cmm/rb/compile_rus.bat new file mode 100644 index 0000000000..9dbdd8c64c --- /dev/null +++ b/programs/cmm/rb/compile_rus.bat @@ -0,0 +1,9 @@ +del lang.h-- +echo #define LANG_RUS 1 >lang.h-- +..\C--\C-- rb.c +del @rb +del warning.txt +del lang.h-- +rename rb.com @rb +..\C--\kpack @rb +pause \ No newline at end of file diff --git a/programs/cmm/rb/rb.c b/programs/cmm/rb/rb.c index 7ee32ac7f5..dc49828303 100644 --- a/programs/cmm/rb/rb.c +++ b/programs/cmm/rb/rb.c @@ -1,21 +1,34 @@ -//@RB - v0.5 +//@RB - v0.6 #include "..\lib\kolibri.h" #include "..\lib\figures.h" #include "..\lib\file_system.h" +#include "lang.h--" -#define ITEM_HEIGHT 18 -#define ITEM_WIDTH 138 - -char *ITEMS_LIST[]={ -"╤ьхэшЄ№ Єхьє юъюэ "w, "/sys/SKINSEL", 0, -"┬√сЁрЄ№ ЎтхЄ Їюэр "w, "/sys/media/palitra", 0, -"╙яЁртыхэшх шъюэърьш "w, "/sys/ICON", 0, -"═рёЄЁющър єёЄЁющёЄт "w, "/sys/SETUP", 0, -"╬сэютшЄ№ ёЄюы "w, "/sys/REFRSCRN", 0, -"╧ЁюЎхёё√ "w, "/sys/CPU", 0, -0}; +#ifdef LANG_RUS + #define ITEM_HEIGHT 18 + #define ITEM_WIDTH 138 + char *ITEMS_LIST[]={ + "Сменить тему окон ", "/sys/SKINSEL", 0, + "Выбрать цвет фона ", "/sys/media/palitra", 0, + "Управление иконками ", "/sys/ICON", 0, + "Настройка устройств ", "/sys/SETUP", 0, + "Обновить стол ", "/sys/REFRSCRN", 0, + "Процессы ", "/sys/CPU", 0, + 0}; +#else + #define ITEM_HEIGHT 18 + #define ITEM_WIDTH 122 + char *ITEMS_LIST[]={ + "Window skin ", "/sys/SKINSEL", 0, + "Background ", "/sys/media/palitra", 0, + "Icon manager ", "/sys/ICON", 0, + "Device setup ", "/sys/SETUP", 0, + "Refresh desktop ", "/sys/REFRSCRN", 0, + "Processes ", "/sys/CPU", 0, + 0}; +#endif dword stak[100]; @@ -66,7 +79,7 @@ void window() //feel clicking DrawBar(1, items_cur*ITEM_HEIGHT+2, ITEM_WIDTH-1, ITEM_HEIGHT-2, sc.work_graph); WriteText(8,items_cur*ITEM_HEIGHT+6,0x80,sc.work_button_text,ITEMS_LIST[items_cur*3],0); - Pause(4); + pause(4); ItemProcess(items_cur); }