Subversion Repositories Kolibri OS

Rev

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

Rev 3052 Rev 3123
Line 1... Line 1...
1
void Tip(int y, dword caption, id, arrow)
1
void Tip(int y, dword caption, id, arrow)
2
{
2
{
-
 
3
	int i;
3
	DrawBar(17,y,160,1,0xEFEDEE);
4
	DrawBar(17,y,160,1,0xEFEDEE);
4
	DrawBar(17,y+1,160,16,0xE4DFE1); //ñåðîå ñâåðõó
5
	DrawFilledBar(17, y+1, 160, 16);
5
	WriteText(25,y+5,0x80,0,caption,0);
6
	WriteText(25,y+5,0x80,0,caption,0);
6
	IF (id<>0) DefineButton(159,y+1,16,16,id+BT_HIDE+BT_NOFRAME,0xE4DFE1); //êíîïà äëÿ ñòðåëêè
7
	IF (id<>0) DefineButton(159,y+1,16,16,id+BT_HIDE+BT_NOFRAME,0xE4DFE1); //êíîïà äëÿ ñòðåëêè
7
	WriteText(165,y+5,0x80,0,arrow,0); //ñòðåëêà âíèç
8
	WriteText(165,y+5,0x80,0,arrow,0); //ñòðåëêà âíèç
8
	DrawBar(17,y+17,160,1,0x94AECE);		//ïîä÷¸ðêèâàíèå
9
	DrawBar(17,y+17,160,1,0x94AECE);		//ïîä÷¸ðêèâàíèå
9
}
10
}
Line 132... Line 133...
132
 
133
 
133
void LeftPanelBackground()
134
void LeftPanelBackground()
134
{
135
{
135
	int actions_y=disc_num*16;
136
	int actions_y=disc_num*16;
136
	int start_y = show_actions*51+actions_y+108;
137
	int start_y = show_actions*51+actions_y+108;
137
	DrawBar(2,41,190,15,lpanel_col);		      //ñèíèé ïðÿìîóãîëüíèê - íàä äåâàéñàìè
138
	DrawBar(2,41,190,15,col_lpanel);		      //ñèíèé ïðÿìîóãîëüíèê - íàä äåâàéñàìè
138
	DrawBar(17,actions_y+75,160,15,lpanel_col); //ñèíèé ïðÿìîóãîëüíèê - ïîä äåâàéñàìè
139
	DrawBar(17,actions_y+75,160,15,col_lpanel); //ñèíèé ïðÿìîóãîëüíèê - ïîä äåâàéñàìè
139
	DrawBar(2,56,15,actions_y+103,lpanel_col);	          //ñèíèé ïðÿìîóãîëüíèê - ñëåâà       
140
	DrawBar(2,56,15,actions_y+103,col_lpanel);	          //ñèíèé ïðÿìîóãîëüíèê - ñëåâà       
140
	DrawBar(177,56,15,actions_y+103,lpanel_col);            //ñèíèé ïðÿìîóãîëüíèê - ñïðàâà
141
	DrawBar(177,56,15,actions_y+103,col_lpanel);            //ñèíèé ïðÿìîóãîëüíèê - ñïðàâà
141
	if (onTop(start_y, 6) < 268)
142
	if (onTop(start_y, 6) < 268)
142
		PutPaletteImage(#blue_hl, 190, onTop(start_y, 6), 2, start_y, #blue_hl_pal);
143
		PutPaletteImage(#blue_hl, 190, onTop(start_y, 6), 2, start_y, #blue_hl_pal);
143
	else
144
	else
144
	{
145
	{
145
		DrawBar(2,start_y,190,onTop(start_y,6+268),lpanel_col);
146
		DrawBar(2,start_y,190,onTop(start_y,6+268),col_lpanel);
146
		PutPaletteImage(#blue_hl, 190, 268, 2, onTop(268,6), #blue_hl_pal);
147
		PutPaletteImage(#blue_hl, 190, 268, 2, onTop(268,6), #blue_hl_pal);
147
	}
148
	}