diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index 0028ccb7cc..33083d7f50 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -233,9 +233,9 @@ void main() break; } - if (mouse.x>=Form.width-26) && (mouse.x<=Form.width-6) && (mouse.y>40) && (mouse.y=files.x+files.w) && (mouse.x<=files.x+files.w+16) && (mouse.y>files.y-17) && (mouse.y0) { pause(8); @@ -243,12 +243,12 @@ void main() List_ReDraw(); mouse.get(); } - DrawRectangle3D(Form.cwidth - 17,41,14,14,0xFFFFFF,0xC7C7C7); + DrawRectangle3D(files.x+files.w+1,files.y-16,14,14,0xFFFFFF,0xC7C7C7); } - if (mouse.x>=Form.width-26) && (mouse.x<=Form.width-6) && (mouse.y>onTop(22,0)+1) && (mouse.y=files.x+files.w) && (mouse.x<=files.x+files.w+16) && (mouse.y>files.y+files.h-16) && (mouse.y=files.x+files.w) && (mouse.x<=files.x+files.w+18) && (mouse.y>files.y) && (mouse.y=files.x+files.w) && (mouse.x<=files.x+files.w+18) && (mouse.y>files.y) && (mouse.ymouse.y) || (mouse.y<0) || (mouse.y>4000) mouse.y=sc_slider_h/2+files.y; //anee eo?ni? iaa ieiii - id=files.first; - j= sc_slider_h/2; - files.first = mouse.y -j -files.y * files.count; - files.first /= onTop(22,files.y); + id = files.first; + files.first = -sc_slider_h / 2 + mouse.y -j -files.y * files.count; + files.first /= Form.cheight - 18 - files.y; if (files.visible+files.first>files.count) files.first=files.count-files.visible; if (id!=files.first) List_ReDraw(); break; @@ -281,13 +280,7 @@ void main() if (active_panel!=1) { active_panel = 1; - active_current = inactive_current; - inactive_current = files.current; - active_first = inactive_first; - inactive_first = files.first; - strcpy(#active_path, #inactive_path); - strcpy(#inactive_path, #path); - draw_window(); + goto __SET_VALS_AND_DRAW; } } else @@ -295,13 +288,14 @@ void main() if (active_panel!=2) { active_panel = 2; + __SET_VALS_AND_DRAW: active_current = inactive_current; inactive_current = files.current; active_first = inactive_first; inactive_first = files.first; strcpy(#active_path, #inactive_path); strcpy(#inactive_path, #path); - draw_window(); + DrawFilePanels(); } } } @@ -397,8 +391,11 @@ void main() key_scancode -= 59; if (key_scancode2) break; DrawBar(0,0,about_form.cwidth,50,0x8494C4); PutPaletteImage(#logo,85,85,about_form.cwidth/2-43,7,8,#logo_pal); - WriteTextB(about_form.cwidth/2-66,100,0x81,0xBF40BF,ABOUT_TITLE); + WriteTextB(-strlen(ABOUT_TITLE)*12+about_form.cwidth/2,100,0x81,0xBF40BF,ABOUT_TITLE); WriteTextCenter(0,130,about_form.cwidth,0,INTRO_TEXT_2); WriteTextCenter(0,143,about_form.cwidth,0,"Leency Veliant PunkJoker Pavelyakov"); WriteTextCenter(0,156,about_form.cwidth,0,"KolibriOS Team"); diff --git a/programs/cmm/eolite/include/left_panel.h b/programs/cmm/eolite/include/left_panel.h index 26f29c746d..585fc51da0 100644 --- a/programs/cmm/eolite/include/left_panel.h +++ b/programs/cmm/eolite/include/left_panel.h @@ -181,11 +181,11 @@ void DrawSystemDiscs() else { pos_y = 43; - DrawBar(pos_x, pos_y, strlen(#dev_name)*6 + 37, 17, 0xFFFFFF); - DefineButton(pos_x+2, pos_y, strlen(#dev_name)*6 + 33, 16, 100+i+BT_HIDE,0xFFFFFF); + DrawBar(pos_x, pos_y, strlen(#dev_name)*6 + 29, 17, 0xFFFFFF); + DefineButton(pos_x+2, pos_y, strlen(#dev_name)*6 + 25, 16, 100+i+BT_HIDE,0xFFFFFF); _PutImage(pos_x + 5, pos_y, 18,17, is_active*6+dev_icon*17*18*3+#devices); WriteText(pos_x + 24, pos_y+5, 0x80, 0, #dev_name); - pos_x += strlen(#dev_name)*6 + 37; + pos_x += strlen(#dev_name)*6 + 29; } } if (two_panels) @@ -193,6 +193,8 @@ void DrawSystemDiscs() DrawBar(pos_x, pos_y, Form.cwidth - pos_x - 2, 17, 0xFFFFFF); DrawBar(2, pos_y-2, Form.cwidth - 4, 2, 0xFFFFFF); DrawBar(2, pos_y+17, Form.cwidth - 4, 2, 0xFFFFFF); + DefineButton(Form.cwidth - 23, pos_y, 17,16, 60+BT_HIDE, 0xCCCccc); + _PutImage(Form.cwidth - 21, pos_y+2, 14,13, 2*14*13*3+#factions); } } @@ -234,7 +236,7 @@ void DrawLeftPanelBg() } -void DrawLeftPanel() +void DrawDeviceAndActionsLeftPanel() { Tip(56, T_DEVICES, 55, "="); DrawSystemDiscs(); diff --git a/programs/cmm/eolite/include/menu.h b/programs/cmm/eolite/include/menu.h index d31c2fa2fa..183dbee1d7 100644 --- a/programs/cmm/eolite/include/menu.h +++ b/programs/cmm/eolite/include/menu.h @@ -54,6 +54,7 @@ void FileMenu() int index; menu.ClearList(); + menu.SetFont(6, 9, 0x80); menu.SetSizes(0,0,10,0,18); for (index=0; file_captions[index]!=0; index+=3) { @@ -62,8 +63,8 @@ void FileMenu() menu.count++; menu.visible++; } - menu.w = menu.w + 3 * 6 + 50; - menu.h = menu.count*menu.line_h; + menu.w = menu.w + 3 * menu.font_w + 50; + menu.h = menu.count * menu.line_h; SetEventMask(100111b); goto _MENU_DRAW; @@ -110,10 +111,10 @@ void MenuListRedraw() else { DrawBar(2,start_y+2,menu.w-1,menu.line_h,system.color.work); - WriteText(8,start_y+menu.text_y+3,0x80,0xf2f2f2,file_captions[index*3]); + WriteText(8,start_y+menu.text_y+4,menu.font_type,0xf2f2f2,file_captions[index*3]); } - WriteText(7,start_y+menu.text_y+2,0x80,system.color.work_text,file_captions[index*3]); - WriteText(-strlen(file_captions[index*3+1])*6-6+menu.w,start_y+menu.text_y+2,0x80,0x888888,file_captions[index*3+1]); + WriteText(7, start_y + menu.text_y + 3, menu.font_type, system.color.work_text, file_captions[index*3]); + WriteText(-strlen(file_captions[index*3+1])-1*menu.font_w + menu.w, start_y + menu.text_y + 3, menu.font_type, 0x888888, file_captions[index*3+1]); start_y+=menu.line_h; } } \ No newline at end of file diff --git a/programs/cmm/eolite/include/translations.h b/programs/cmm/eolite/include/translations.h index 3fbf285837..00a20675ae 100644 --- a/programs/cmm/eolite/include/translations.h +++ b/programs/cmm/eolite/include/translations.h @@ -1,5 +1,5 @@ -#define TITLE "Eolite File Manager v3.0 RC1" -#define ABOUT_TITLE "Eolite 3.0 RC1" +#define TITLE "Eolite File Manager v3.0 RC2" +#define ABOUT_TITLE "Eolite 3.0 RC2" #ifdef LANG_RUS ?define T_FILE "” ©«"