2013-03-20 23:35:57 +01:00
|
|
|
|
|
2013-08-04 01:35:59 +02:00
|
|
|
|
#ifdef LANG_RUS
|
2013-11-14 01:22:55 +01:00
|
|
|
|
?define T_DEVICES "<EFBFBD><EFBFBD><EFBFBD>ன<EFBFBD>⢠"
|
|
|
|
|
?define T_ACTIONS "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>⢨<EFBFBD>"
|
|
|
|
|
char *actions[] = {
|
2021-06-13 02:15:19 +02:00
|
|
|
|
59, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<>", "F9",
|
|
|
|
|
57, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>", "F7",
|
2013-11-14 01:22:55 +01:00
|
|
|
|
60, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ன<EFBFBD><EFBFBD>", "F10",
|
|
|
|
|
0,0,0
|
|
|
|
|
};
|
2015-07-16 03:44:30 +02:00
|
|
|
|
?define T_PROG "<EFBFBD>ணࠬ<EFBFBD><EFBFBD> "
|
|
|
|
|
?define T_SYS "<EFBFBD><EFBFBD><EFBFBD>⥬<EFBFBD> "
|
|
|
|
|
?define T_UNC "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⭮ "
|
|
|
|
|
?define T_CD "CD-ROM "
|
|
|
|
|
?define T_FD "<EFBFBD><EFBFBD>᪥<EFBFBD><EFBFBD> "
|
|
|
|
|
?define T_HD "<EFBFBD><EFBFBD><EFBFBD>⪨<EFBFBD> <20><><EFBFBD><EFBFBD> "
|
|
|
|
|
?define T_SATA "SATA <20><><EFBFBD><EFBFBD> "
|
|
|
|
|
?define T_USB "USB <20><><EFBFBD><EFBFBD> "
|
|
|
|
|
?define T_RAM "RAM <20><><EFBFBD><EFBFBD> "
|
2013-08-04 01:35:59 +02:00
|
|
|
|
#else
|
2013-11-14 01:22:55 +01:00
|
|
|
|
?define T_DEVICES "Devices"
|
|
|
|
|
?define T_ACTIONS "Actions"
|
|
|
|
|
char *actions[] = {
|
2021-06-13 02:15:19 +02:00
|
|
|
|
59, "New file", "F9",
|
|
|
|
|
57, "New folder", "F7",
|
2015-02-19 08:42:42 +01:00
|
|
|
|
60, "Settings", "F10",
|
2013-11-14 01:22:55 +01:00
|
|
|
|
0,0,0
|
|
|
|
|
};
|
2015-07-16 03:44:30 +02:00
|
|
|
|
?define T_PROG "Programs "
|
|
|
|
|
?define T_SYS "System "
|
|
|
|
|
?define T_UNC "Unknown "
|
|
|
|
|
?define T_CD "CD-ROM "
|
|
|
|
|
?define T_FD "Floppy disk "
|
|
|
|
|
?define T_HD "Hard disk "
|
2018-03-26 16:31:26 +02:00
|
|
|
|
?define T_SATA "SATA disk "
|
|
|
|
|
?define T_USB "USB disk "
|
|
|
|
|
?define T_RAM "RAM disk "
|
2013-08-04 01:35:59 +02:00
|
|
|
|
#endif
|
|
|
|
|
|
2016-01-06 21:50:19 +01:00
|
|
|
|
struct _SystemDiscs
|
2013-03-11 19:16:24 +01:00
|
|
|
|
{
|
2016-01-06 21:50:19 +01:00
|
|
|
|
collection list;
|
2018-10-01 18:41:14 +02:00
|
|
|
|
int dev_num;
|
|
|
|
|
void Get();
|
2016-01-06 21:50:19 +01:00
|
|
|
|
void Draw();
|
2021-06-15 01:33:54 +02:00
|
|
|
|
void DrawSelect();
|
|
|
|
|
void DrawOptions();
|
2016-01-06 21:50:19 +01:00
|
|
|
|
void Click();
|
2020-05-23 13:26:58 +02:00
|
|
|
|
} SystemDiscs=0;
|
2013-03-11 19:16:24 +01:00
|
|
|
|
|
2020-05-26 17:07:13 +02:00
|
|
|
|
#define DEV_H 17
|
2021-06-15 01:33:54 +02:00
|
|
|
|
#define DEV_H_HOR 20
|
2013-03-11 19:16:24 +01:00
|
|
|
|
|
2016-01-06 21:50:19 +01:00
|
|
|
|
void GetDiskIconAndName(char disk_first_letter, dword dev_icon, disc_name)
|
|
|
|
|
{
|
|
|
|
|
switch(disk_first_letter)
|
|
|
|
|
{
|
|
|
|
|
case 'r':
|
|
|
|
|
ESBYTE[dev_icon]=0;
|
|
|
|
|
strcpy(disc_name, T_SYS);
|
|
|
|
|
break;
|
2020-05-26 17:07:13 +02:00
|
|
|
|
case 'k':
|
2016-01-06 21:50:19 +01:00
|
|
|
|
ESBYTE[dev_icon]=1;
|
2020-05-26 17:07:13 +02:00
|
|
|
|
strcpy(disc_name, T_PROG);
|
2016-01-06 21:50:19 +01:00
|
|
|
|
break;
|
|
|
|
|
case 'f':
|
|
|
|
|
ESBYTE[dev_icon]=2;
|
|
|
|
|
strcpy(disc_name, T_FD);
|
|
|
|
|
break;
|
2020-05-26 17:07:13 +02:00
|
|
|
|
case 'c':
|
|
|
|
|
ESBYTE[dev_icon]=3;
|
|
|
|
|
strcpy(disc_name, T_CD);
|
|
|
|
|
break;
|
2016-01-06 21:50:19 +01:00
|
|
|
|
case 'h':
|
|
|
|
|
case 'b':
|
2020-05-26 17:07:13 +02:00
|
|
|
|
ESBYTE[dev_icon]=4;
|
2016-01-06 21:50:19 +01:00
|
|
|
|
strcpy(disc_name, T_HD);
|
|
|
|
|
break;
|
|
|
|
|
case 's':
|
2020-05-26 17:07:13 +02:00
|
|
|
|
ESBYTE[dev_icon]=4;
|
2016-01-06 21:50:19 +01:00
|
|
|
|
strcpy(disc_name, T_SATA);
|
|
|
|
|
break;
|
|
|
|
|
case 't':
|
2020-05-26 17:07:13 +02:00
|
|
|
|
ESBYTE[dev_icon]=5;
|
2016-01-06 21:50:19 +01:00
|
|
|
|
strcpy(disc_name, T_RAM);
|
|
|
|
|
break;
|
2020-05-26 17:07:13 +02:00
|
|
|
|
case 'u':
|
|
|
|
|
ESBYTE[dev_icon]=6;
|
|
|
|
|
strcpy(disc_name, T_USB);
|
|
|
|
|
break;
|
2016-01-06 21:50:19 +01:00
|
|
|
|
default:
|
2020-05-26 17:07:13 +02:00
|
|
|
|
ESBYTE[dev_icon]=5;
|
2016-01-06 21:50:19 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
2018-10-01 18:41:14 +02:00
|
|
|
|
|
|
|
|
|
void _SystemDiscs::Get()
|
2013-03-11 19:16:24 +01:00
|
|
|
|
{
|
2018-10-02 22:13:25 +02:00
|
|
|
|
bool kolibrios_exists=false;
|
2014-10-31 00:20:36 +01:00
|
|
|
|
char dev_name[10], sys_discs[10];
|
2018-10-01 18:41:14 +02:00
|
|
|
|
int i1, j1, dev_num_i, dev_disc_num;
|
2021-06-17 23:29:58 +02:00
|
|
|
|
dword devbuf, diskbuf;
|
2015-08-17 15:45:24 +02:00
|
|
|
|
|
2016-01-06 21:50:19 +01:00
|
|
|
|
list.drop();
|
2015-12-13 14:52:19 +01:00
|
|
|
|
devbuf = malloc(10000);
|
2013-03-11 19:16:24 +01:00
|
|
|
|
ReadDir(19, devbuf, "/");
|
2018-10-01 18:41:14 +02:00
|
|
|
|
dev_num = dev_num_i = EBX;
|
|
|
|
|
for (i1=0; i1<dev_num_i; i1++)
|
2013-03-11 19:16:24 +01:00
|
|
|
|
{
|
2016-10-30 20:17:46 +01:00
|
|
|
|
sprintf(#dev_name,"/%s",i1*304+ devbuf+72);
|
2021-06-17 23:29:58 +02:00
|
|
|
|
GetDir(#diskbuf, #dev_disc_num, #dev_name, DIRS_NOROOT);
|
2013-03-11 19:16:24 +01:00
|
|
|
|
for (j1=0; j1<dev_disc_num; j1++;)
|
|
|
|
|
{
|
2021-06-17 23:29:58 +02:00
|
|
|
|
sprintf(#sys_discs,"%s/%s",#dev_name,j1*304+ diskbuf+72);
|
2020-05-27 18:08:11 +02:00
|
|
|
|
if (sys_discs[1]=='c') || (dir_exists(#sys_discs)) list.add(#sys_discs);
|
2013-03-11 19:16:24 +01:00
|
|
|
|
}
|
2016-10-30 20:17:46 +01:00
|
|
|
|
if (!strcmp(#sys_discs, "/rd/1"))
|
2013-09-30 22:44:45 +02:00
|
|
|
|
{
|
2018-10-02 22:13:25 +02:00
|
|
|
|
if (dir_exists("/kolibrios")) && (!kolibrios_exists) {
|
|
|
|
|
kolibrios_exists=true;
|
2018-10-01 18:41:14 +02:00
|
|
|
|
list.add("/kolibrios");
|
|
|
|
|
dev_num++;
|
|
|
|
|
}
|
2013-11-14 01:22:55 +01:00
|
|
|
|
}
|
2013-03-11 19:16:24 +01:00
|
|
|
|
}
|
2015-12-13 14:52:19 +01:00
|
|
|
|
free(devbuf);
|
2021-06-17 23:29:58 +02:00
|
|
|
|
free(diskbuf);
|
2013-03-11 19:16:24 +01:00
|
|
|
|
}
|
|
|
|
|
|
2021-06-15 01:33:54 +02:00
|
|
|
|
#define DDW 120
|
|
|
|
|
|
2016-01-06 21:50:19 +01:00
|
|
|
|
void _SystemDiscs::Draw()
|
2013-03-11 19:16:24 +01:00
|
|
|
|
{
|
2021-06-17 11:29:39 +02:00
|
|
|
|
char dev_name[15], disc_name[100], i, dev_icon, is_active=0;
|
2020-05-26 17:07:13 +02:00
|
|
|
|
int draw_y, draw_x;
|
2013-03-11 19:16:24 +01:00
|
|
|
|
|
2015-12-13 14:52:19 +01:00
|
|
|
|
for (i=0; i<30; i++) DeleteButton(100+i);
|
2016-01-06 21:50:19 +01:00
|
|
|
|
|
2021-06-15 01:33:54 +02:00
|
|
|
|
if (efm) {
|
|
|
|
|
if (active_panel==1) {
|
|
|
|
|
DrawSelect(Form.cwidth/2-DDW, 10, #path, KFM_DEV_DROPDOWN_1);
|
|
|
|
|
DrawSelect(Form.cwidth-DDW-2, 10, #inactive_path, KFM_DEV_DROPDOWN_2);
|
|
|
|
|
} else {
|
|
|
|
|
DrawSelect(Form.cwidth/2-DDW, 10, #inactive_path, KFM_DEV_DROPDOWN_1);
|
|
|
|
|
DrawSelect(Form.cwidth-DDW-2, 10, #path, KFM_DEV_DROPDOWN_2);
|
2013-03-11 19:16:24 +01:00
|
|
|
|
}
|
2021-06-15 01:33:54 +02:00
|
|
|
|
files.y = 40 + 17;
|
|
|
|
|
} else {
|
|
|
|
|
draw_y = 74;
|
|
|
|
|
draw_x = 17;
|
|
|
|
|
for (i=0;i<list.count;i++) {
|
|
|
|
|
strcpy(#dev_name, list.get(i));
|
|
|
|
|
GetDiskIconAndName(dev_name[1], #dev_icon, #disc_name);
|
2021-06-22 01:50:32 +02:00
|
|
|
|
if (strstr(#path, #dev_name)==#path) is_active=true; else is_active=false;
|
2021-06-15 01:33:54 +02:00
|
|
|
|
|
2020-05-26 17:07:13 +02:00
|
|
|
|
DrawBar(draw_x,draw_y,6,DEV_H+1,0xFFFFFF);
|
|
|
|
|
DrawBar(draw_x+6+18,draw_y,160-6-18,DEV_H+1,0xFFFFFF);
|
2016-01-06 21:50:19 +01:00
|
|
|
|
DefineButton(draw_x,draw_y,159,16,100+i+BT_HIDE,0xFFFFFF);
|
2018-04-19 22:12:07 +02:00
|
|
|
|
if (show_dev_name.checked)
|
2015-08-09 21:08:57 +02:00
|
|
|
|
{
|
|
|
|
|
strcat(#disc_name, #dev_name);
|
2016-01-06 21:50:19 +01:00
|
|
|
|
if (is_active) WriteText(draw_x+30,draw_y+5,0x80,0x555555,#disc_name);
|
2020-04-18 01:52:24 +02:00
|
|
|
|
WriteText(draw_x+29,draw_y+5,0x80,0,#disc_name);
|
2021-06-15 01:33:54 +02:00
|
|
|
|
//if (is_active) kfont.bold = true;
|
|
|
|
|
//kfont.WriteIntoWindow(draw_x + 29, draw_y+2, 0xFFFfff, 0x000000, kfont.size.pt, #disc_name);
|
|
|
|
|
//kfont.bold = false;
|
2020-04-18 01:52:24 +02:00
|
|
|
|
} else {
|
2016-01-06 21:50:19 +01:00
|
|
|
|
if (is_active) WriteText(draw_x+30,draw_y+5,0x80,0x555555,#dev_name);
|
|
|
|
|
WriteText(draw_x+29,draw_y+5,0x80,0,#dev_name);
|
2015-08-09 21:08:57 +02:00
|
|
|
|
}
|
2020-05-26 17:07:13 +02:00
|
|
|
|
_PutImage(draw_x+6,draw_y, 18,17, is_active*7+dev_icon*17*18*3+#devices);
|
2021-06-15 01:33:54 +02:00
|
|
|
|
draw_y += DEV_H;
|
2015-07-31 01:11:23 +02:00
|
|
|
|
}
|
2020-05-26 17:07:13 +02:00
|
|
|
|
DrawBar(draw_x+6, draw_y, 18, 1, 0xFFFfff);
|
2015-08-10 00:26:14 +02:00
|
|
|
|
}
|
2013-03-11 19:16:24 +01:00
|
|
|
|
}
|
|
|
|
|
|
2021-06-15 01:33:54 +02:00
|
|
|
|
void _SystemDiscs::DrawSelect(int draw_x, draw_y, path1, btid)
|
|
|
|
|
{
|
|
|
|
|
char dev_name[15], disc_name[100], i, dev_icon, is_active=0;
|
|
|
|
|
if (ESBYTE[path1+1]=='\0') {
|
|
|
|
|
strcpy(#dev_name, "/root");
|
|
|
|
|
dev_icon = 0;
|
|
|
|
|
} else if (chrnum(path1, '/')==1) {
|
|
|
|
|
strcpy(#dev_name, path1);
|
|
|
|
|
GetDiskIconAndName(dev_name[1], #dev_icon, #disc_name);
|
|
|
|
|
} else for (i=0;i<list.count;i++) {
|
|
|
|
|
strcpy(#dev_name, list.get(i));
|
|
|
|
|
GetDiskIconAndName(dev_name[1], #dev_icon, #disc_name);
|
|
|
|
|
if (strstr(path1, #dev_name)-path1==0) break;
|
|
|
|
|
}
|
|
|
|
|
DrawRectangle(draw_x-1, draw_y-1, DDW+2-DEV_H_HOR, DEV_H_HOR+1, sc.work_graph);
|
|
|
|
|
DrawBar(draw_x, draw_y, DDW+1-DEV_H_HOR, DEV_H_HOR, 0xFFFFFF);
|
|
|
|
|
_PutImage(draw_x + 5, draw_y+2, 18,17, is_active*7+dev_icon*17*18*3+#devices);
|
|
|
|
|
kfont.WriteIntoWindow(draw_x + 24, draw_y+2, 0xFFFfff, 0x000000, kfont.size.pt, #dev_name+1);
|
2021-06-17 11:29:39 +02:00
|
|
|
|
DefineButton(draw_x, draw_y, DDW-1, DEV_H_HOR-1, btid+1+BT_HIDE,0xFFFFFF);
|
2021-06-15 01:33:54 +02:00
|
|
|
|
DrawFlatButtonSmall(draw_x+DDW-DEV_H_HOR+1, draw_y-1, DEV_H_HOR-1, DEV_H_HOR+1, btid, "\x19");
|
|
|
|
|
|
|
|
|
|
draw_x += DDW + 1;
|
|
|
|
|
//DrawBar(draw_x, draw_y, Form.cwidth - draw_x - 2, DEV_H_HOR, sc.work);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void _SystemDiscs::DrawOptions(int draw_x, draw_y)
|
|
|
|
|
{
|
|
|
|
|
char dev_name[15], disc_name[100], i, dev_icon, is_active=0;
|
|
|
|
|
|
|
|
|
|
for (i=0; i<30; i++) DeleteButton(100+i);
|
|
|
|
|
|
|
|
|
|
DrawPopup(draw_x, draw_y, DDW, list.count*DEV_H_HOR, 1, -1, sc.work_graph);
|
|
|
|
|
|
|
|
|
|
for (i=0;i<list.count;i++) {
|
|
|
|
|
strcpy(#dev_name, list.get(i));
|
|
|
|
|
GetDiskIconAndName(dev_name[1], #dev_icon, #disc_name);
|
|
|
|
|
if (strstr(#path, #dev_name)!=0) is_active=true; else is_active=false;
|
|
|
|
|
|
|
|
|
|
DrawBar(draw_x, draw_y, DDW, DEV_H_HOR, 0xFFFFFF);
|
|
|
|
|
DefineButton(draw_x, draw_y, DDW, DEV_H_HOR-1, 100+i+BT_HIDE,0xFFFFFF);
|
|
|
|
|
_PutImage(draw_x + 5, draw_y+2, 18,17, is_active*7+dev_icon*17*18*3+#devices);
|
|
|
|
|
if (is_active) kfont.bold = true;
|
|
|
|
|
kfont.WriteIntoWindow(draw_x + 24, draw_y+2, 0xFFFfff, 0x000000, kfont.size.pt, #dev_name+1);
|
|
|
|
|
kfont.bold = false;
|
|
|
|
|
draw_y += DEV_H_HOR;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-06 21:50:19 +01:00
|
|
|
|
void _SystemDiscs::Click(int n)
|
|
|
|
|
{
|
|
|
|
|
strcpy(#path, list.get(n));
|
|
|
|
|
files.KeyHome();
|
|
|
|
|
Open_Dir(#path,WITH_REDRAW);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void DrawDeviceAndActionsLeftPanel()
|
|
|
|
|
{
|
|
|
|
|
Tip(56, T_DEVICES, 55, "=");
|
|
|
|
|
SystemDiscs.Draw();
|
|
|
|
|
ActionsDraw();
|
|
|
|
|
DrawLeftPanelBg();
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-14 12:47:23 +02:00
|
|
|
|
dword col_palette_inner[14] = {0xD2D3D3,0xD4D4D4,0xD6D5D6,0xD8D7D8,0xDAD8D9,0xDCDADB,
|
|
|
|
|
0xDFDCDD,0xE1DDDE,0xE2DEE0,0xE4DFE1,0xE3DFE1,0xE3DFE1,0xE3DFE1,0xE3DFE1,0xE3DFE1};
|
|
|
|
|
void DrawFilledBarInner(dword x, y, w, h)
|
|
|
|
|
{
|
|
|
|
|
int i, fill_h;
|
|
|
|
|
if (h <= 14) fill_h = h; else fill_h = 14;
|
|
|
|
|
for (i=0; i<fill_h; i++) DrawBar(x, y+i, w, 1, col_palette_inner[14-i]);
|
|
|
|
|
DrawBar(x, y+i, w, h-fill_h, col_palette_inner[14-i]);
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-06 21:50:19 +01:00
|
|
|
|
void Tip(int y, dword caption, id, arrow)
|
|
|
|
|
{
|
2019-05-10 14:51:47 +02:00
|
|
|
|
if (col.def) {
|
|
|
|
|
DrawBar(17,y,160,1,0xEFEDEE);
|
|
|
|
|
DrawFilledBarInner(17, y+1, 160, 16);
|
|
|
|
|
DrawBar(17,y+17,160,1,0x7E87A3);
|
|
|
|
|
} else {
|
2020-04-18 01:52:24 +02:00
|
|
|
|
DrawBar(17,y,160,1,sc.work_graph);
|
2019-05-10 14:51:47 +02:00
|
|
|
|
DrawBar(17,y+1,160,16,col.list_bg);
|
2020-04-18 01:52:24 +02:00
|
|
|
|
DrawBar(17,y+17,160,1,sc.work_graph);
|
2019-05-10 14:51:47 +02:00
|
|
|
|
}
|
|
|
|
|
WriteText(25,y+5,0x80,col.list_gb_text,caption);
|
2016-01-06 21:50:19 +01:00
|
|
|
|
if (id) DefineButton(159,y+1,16,16,id+BT_HIDE+BT_NOFRAME,0); //arrow button
|
2019-05-10 14:51:47 +02:00
|
|
|
|
WriteText(165,y+5,0x80,col.list_gb_text,arrow); //arrow
|
2016-01-06 21:50:19 +01:00
|
|
|
|
}
|
2015-08-09 21:08:57 +02:00
|
|
|
|
|
2013-03-31 22:25:54 +02:00
|
|
|
|
void ActionsDraw()
|
2013-03-11 19:16:24 +01:00
|
|
|
|
{
|
2018-10-01 18:41:14 +02:00
|
|
|
|
int i;
|
2020-05-26 17:07:13 +02:00
|
|
|
|
int actions_y= SystemDiscs.list.count*DEV_H+108;
|
2020-11-23 14:31:55 +01:00
|
|
|
|
Tip(actions_y-18, T_ACTIONS, 77, "");
|
2020-05-26 17:07:13 +02:00
|
|
|
|
for (i=0; actions[i*3]!=0; i++, actions_y+=DEV_H)
|
2013-03-11 19:16:24 +01:00
|
|
|
|
{
|
2020-05-26 17:07:13 +02:00
|
|
|
|
DrawBar(17,actions_y,160,DEV_H,0xFFFFFF); //<2F><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
DefineButton(17,actions_y,159,DEV_H,actions[i*3]+BT_HIDE,0xE4DFE1);
|
2013-03-31 22:25:54 +02:00
|
|
|
|
WriteText(45,actions_y+4,0x80,0,actions[i*3+1]);
|
|
|
|
|
WriteText(-strlen(actions[i*3+2])*6+170,actions_y+4,0x80,0x999999,actions[i*3+2]);
|
2014-10-29 22:59:44 +01:00
|
|
|
|
_PutImage(23,actions_y+2, 14,13, i*14*13*3+#factions);
|
2013-03-11 19:16:24 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-21 13:24:30 +01:00
|
|
|
|
void DrawLeftPanelBg()
|
2013-03-11 19:16:24 +01:00
|
|
|
|
{
|
2020-05-26 17:07:13 +02:00
|
|
|
|
int actions_y = SystemDiscs.list.count*DEV_H;
|
|
|
|
|
int start_y = actions_y+159;
|
2017-09-18 10:12:27 +02:00
|
|
|
|
int area_h;
|
2020-11-23 14:31:55 +01:00
|
|
|
|
DrawBar(2,41,190,15,waves_pal[0]); //above devices block
|
|
|
|
|
DrawBar(17,actions_y+75,160,15,waves_pal[0]); //below devices block
|
2013-08-31 20:33:48 +02:00
|
|
|
|
PutShadow(17,actions_y+75,160,1,1,3);
|
2013-03-31 22:25:54 +02:00
|
|
|
|
PutShadow(18,actions_y+75+1,158,1,1,1);
|
2020-11-23 14:31:55 +01:00
|
|
|
|
DrawBar(2,56,15,actions_y+103,waves_pal[0]); //on the left
|
|
|
|
|
DrawBar(177,56,15,actions_y+103,waves_pal[0]); //on the right
|
2017-09-18 10:12:27 +02:00
|
|
|
|
area_h = Form.cheight-start_y-2 - status_bar_h;
|
2020-11-23 14:31:55 +01:00
|
|
|
|
if (area_h < 268){
|
|
|
|
|
PutPaletteImage(#blue_hl, 190, area_h, 2, start_y, 8, #waves_pal);
|
|
|
|
|
} else {
|
|
|
|
|
DrawBar(2,start_y,190, area_h-268, waves_pal[0]);
|
|
|
|
|
PutPaletteImage(#blue_hl, 190, 268, 2, Form.cheight-270-status_bar_h, 8, #waves_pal);
|
2013-03-11 19:16:24 +01:00
|
|
|
|
}
|
2013-08-31 20:33:48 +02:00
|
|
|
|
PutShadow(17,start_y,160,1,1,3);
|
2013-03-31 22:25:54 +02:00
|
|
|
|
PutShadow(18,start_y+1,158,1,1,1);
|
2015-08-09 21:08:57 +02:00
|
|
|
|
}
|