Subversion Repositories Kolibri OS

Rev

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

Rev 5526 Rev 5542
Line 63... Line 63...
63
		DrawRectangle(x+2, y+2, w-4, h-4, 0xffffff);
63
		DrawRectangle(x+2, y+2, w-4, h-4, 0xffffff);
64
		DrawBar(x+3, y+3, w-5, h-5, 0x888888);
64
		DrawBar(x+3, y+3, w-5, h-5, 0x888888);
65
	}
65
	}
66
}
66
}
Line 67... Line 67...
67
 
67
 
68
:void MoreLessBox(dword x,y,s, bt_id_more, bt_id_less, color_border, color_button, color_text, value, text)
68
:void MoreLessBox(dword x,y,s, bt_id_more, bt_id_less, colors_pointer, value, text)
69
{
69
{
-
 
70
	#define VALUE_FIELD_W 26;
-
 
71
	system_colors colors;
-
 
72
	ESI = colors_pointer;
-
 
73
	colors.work_graph = ESI.system_colors.work_graph;
-
 
74
	colors.work_text = ESI.system_colors.work_text;
-
 
75
	colors.work_button = ESI.system_colors.work_button;
-
 
76
	colors.work_button_text = ESI.system_colors.work_button_text;
70
	#define VALUE_FIELD_W 26;
77
 
71
	DrawRectangle(x, y, VALUE_FIELD_W, s, color_border);
78
	DrawRectangle(x, y, VALUE_FIELD_W, s, colors.work_graph);
72
	DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, s-2, 0xDDDddd, 0xffffff);
79
	DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, s-2, 0xDDDddd, 0xffffff);
73
	DrawBar(x+2, y+2, VALUE_FIELD_W-3, s-3, 0xffffff);
80
	DrawBar(x+2, y+2, VALUE_FIELD_W-3, s-3, 0xffffff);
Line 74... Line 81...
74
	WriteText(x+6, s / 2 + y -3, 0x80, 0x000000, itoa(value));
81
	WriteText(x+6, s / 2 + y -3, 0x80, 0x000000, itoa(value));
75
 
82
 
76
	DrawCaptButton(VALUE_FIELD_W + x + 1,     y, s, s, bt_id_more, color_button, color_text, "+");
83
	DrawCaptButton(VALUE_FIELD_W + x + 1,     y, s, s, bt_id_more, colors.work_button, colors.work_button_text, "+");
77
	DrawCaptButton(VALUE_FIELD_W + x + s + 2, y, s, s, bt_id_less, color_button, color_text, "-");
84
	DrawCaptButton(VALUE_FIELD_W + x + s + 2, y, s, s, bt_id_less, colors.work_button, colors.work_button_text, "-");
Line 78... Line 85...
78
	WriteText(x+VALUE_FIELD_W+s+s+10, s / 2 + y -3, 0x80, color_text, text);
85
	WriteText(x+VALUE_FIELD_W+s+s+10, s / 2 + y -3, 0x80, colors.work_text, text);
79
}
86
}
80
 
87