Subversion Repositories Kolibri OS

Rev

Rev 6176 | Rev 6193 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6176 Rev 6191
Line 79... Line 79...
79
		DrawBar(x+2, y+2, w-3, h-3, 0xffffff);
79
		DrawBar(x+2, y+2, w-3, h-3, 0xffffff);
80
	} 
80
	} 
81
	else if (is_checked == 1)
81
	else if (is_checked == 1)
82
	{
82
	{
83
		DrawWideRectangle(x+1, y+1, w-1, h-1, 2, 0xffffff);
83
		DrawWideRectangle(x+1, y+1, w-1, h-1, 2, 0xffffff);
84
		DrawBar(x+3, y+3, w-5, h-5, system.color.work_button); //0x13A113
84
		DrawBar(x+3, y+3, w-5, h-5, 0x00C000); //0x13A113
85
	}
85
	}
86
	else if (is_checked == 2) //not active
86
	else if (is_checked == 2) //not active
87
	{
87
	{
88
		DrawWideRectangle(x+1, y+1, w-1, h-1, 2, 0xffffff);
88
		DrawWideRectangle(x+1, y+1, w-1, h-1, 2, 0xffffff);
89
		DrawBar(x+3, y+3, w-5, h-5, 0x888888);
89
		DrawBar(x+3, y+3, w-5, h-5, 0x888888);
90
	}
90
	}
-
 
91
	DrawRectangle3D(x-1,y-1,w+2,h+2,system.color.work_dark,system.color.work_light);
91
}
92
}
Line 92... Line 93...
92
 
93
 
93
:void MoreLessBox(dword x,y, bt_id_more, bt_id_less, value, text)
94
:void MoreLessBox(dword x,y, bt_id_more, bt_id_less, value, text)
94
{
95
{
Line 98... Line 99...
98
	DrawRectangle(x, y, VALUE_FIELD_W, SIZE, system.color.work_graph);
99
	DrawRectangle(x, y, VALUE_FIELD_W, SIZE, system.color.work_graph);
99
	DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xDDDddd, 0xffffff);
100
	DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xDDDddd, 0xffffff);
100
	DrawBar(x+2, y+2, VALUE_FIELD_W-3, SIZE-3, 0xffffff);
101
	DrawBar(x+2, y+2, VALUE_FIELD_W-3, SIZE-3, 0xffffff);
101
	WriteText(x+6, SIZE / 2 + y -3, 0x80, 0x000000, itoa(value));
102
	WriteText(x+6, SIZE / 2 + y -3, 0x80, 0x000000, itoa(value));
Line 102... Line 103...
102
 
103
 
103
	DrawCaptButton(VALUE_FIELD_W + x + 1,     y, SIZE, SIZE, bt_id_more, system.color.work_button, system.color.work_button_text, "+");
104
	DrawCaptButton(VALUE_FIELD_W + x,     y, SIZE, SIZE, bt_id_more, system.color.work_button, system.color.work_button_text, "+");
104
	DrawCaptButton(VALUE_FIELD_W + x + SIZE + 2, y, SIZE, SIZE, bt_id_less, system.color.work_button, system.color.work_button_text, "-");
105
	DrawCaptButton(VALUE_FIELD_W + x + SIZE, y, SIZE, SIZE, bt_id_less, system.color.work_button, system.color.work_button_text, "-");
-
 
106
	WriteText(x+VALUE_FIELD_W+SIZE+SIZE+10, SIZE / 2 + y -3, 0x80, system.color.work_text, text);
105
	WriteText(x+VALUE_FIELD_W+SIZE+SIZE+10, SIZE / 2 + y -3, 0x80, system.color.work_text, text);
107
	DrawRectangle3D(x-1,y-1,VALUE_FIELD_W+SIZE+SIZE+2,SIZE+2,system.color.work_dark,system.color.work_light);
Line 106... Line 108...
106
}
108
}
107
 
109
 
108
:void DrawProgressBar(dword st_x, st_y, st_w, st_h, col_fon, col_border, col_fill, col_text, progress_percent)
110
:void DrawProgressBar(dword st_x, st_y, st_w, st_h, col_fon, col_border, col_fill, col_text, progress_percent)