Subversion Repositories Kolibri OS

Rev

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

Rev 3081 Rev 3107
Line 176... Line 176...
176
{
176
{
177
	int i;
177
	int i;
178
	DrawBar(0,31, Form.width-9,Form.height-GetSkinHeight()-5-30, 0xFFFFFF);
178
	DrawBar(0,31, Form.width-9,Form.height-GetSkinHeight()-5-30, 0xFFFFFF);
179
	if (disk_num==0)
179
	if (disk_num==0)
180
	{
180
	{
181
		WriteText(17,45,    0x90, 0x777777, INTRO_TEXT_1, 0);
181
		WriteText(17,45,    0x90, 0x777777, INTRO_TEXT_1);
182
		WriteText(17,45+15, 0x90, 0x777777, INTRO_TEXT_2, 0);
182
		WriteText(17,45+15, 0x90, 0x777777, INTRO_TEXT_2);
183
		WriteText(17,45+42, 0x90, 0x777777, INTRO_TEXT_3, 0);
183
		WriteText(17,45+42, 0x90, 0x777777, INTRO_TEXT_3);
184
		return;
184
		return;
185
	};
185
	};
186
	if (selected>=disk_num) selected=disk_num-1; //âîññòàíàâëèâàåò âûäåëåíèå - õîðîøàÿ ôè÷à
186
	if (selected>=disk_num) selected=disk_num-1; //âîññòàíàâëèâàåò âûäåëåíèå - õîðîøàÿ ôè÷à
187
	for (i=0; i<10; i++) DeleteButton(20+i);
187
	for (i=0; i<10; i++) DeleteButton(20+i);
188
	for (i=0; i
188
	for (i=0; i
189
	{
189
	{
190
		DefineButton(disk_pos_x[i], disk_pos_y[i], 60, 20, 20+i, 0xFFFfff);
190
		DefineButton(disk_pos_x[i], disk_pos_y[i], 60, 20, 20+i, 0xFFFfff);
191
		WriteText(disk_pos_x[i]+25,disk_pos_y[i]+6, 0x90, 0, #disk_list[i].Item, 0);
191
		WriteText(disk_pos_x[i]+25,disk_pos_y[i]+6, 0x90, 0, #disk_list[i].Item);
192
		_PutImage(disk_pos_x[i]+5,disk_pos_y[i]+4, 14,14, 3*14*14*3+#icons);
192
		_PutImage(disk_pos_x[i]+5,disk_pos_y[i]+4, 14,14, 3*14*14*3+#icons);
193
		if (selected==i) DrawRectangle(disk_pos_x[i], disk_pos_y[i], 60-1, 20-1, 0x00459A);
193
		if (selected==i) DrawRectangle(disk_pos_x[i], disk_pos_y[i], 60-1, 20-1, 0x00459A);
194
	}
194
	}
195
}
195
}
Line 233... Line 233...
233
	x=6;
233
	x=6;
234
	for (i=0; i<2; i++)
234
	for (i=0; i<2; i++)
235
	{
235
	{
236
		DefineButton(x,5, strlen(but_text[i])*6+28,19, 10+i, sc.work_button);
236
		DefineButton(x,5, strlen(but_text[i])*6+28,19, 10+i, sc.work_button);
237
		_PutImage(x+3,8,  14,14,   i*14*14*3+#icons);
237
		_PutImage(x+3,8,  14,14,   i*14*14*3+#icons);
238
		WriteText(x+22,11, 0x80, sc.work_button_text, but_text[i], 0);
238
		WriteText(x+22,11, 0x80, sc.work_button_text, but_text[i]);
239
		x+=strlen(but_text[i])*6+37; 
239
		x+=strlen(but_text[i])*6+37; 
240
	}
240
	}
Line 241... Line 241...
241
	
241
	
242
	//ïîëó÷àåì ñïèñîê äîñòóïíûõ äèñêîâ
242
	//ïîëó÷àåì ñïèñîê äîñòóïíûõ äèñêîâ