Subversion Repositories Kolibri OS

Rev

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

Rev 8981 Rev 9349
Line 112... Line 112...
112
//===================================================//
112
//===================================================//
113
 
113
 
Line 114... Line 114...
114
void Tip(int y, dword caption, id, arrow)
114
void Tip(int y, dword caption, id, arrow)
115
{
115
{
116
	DrawBar(17,y,160,1,col.list_bg);
116
	DrawBar(SB_BLOCKX,y,SB_BLOCKW,1,col.list_bg);
117
	DrawBar(17,y+1,1,16,sc.work_light);
117
	DrawBar(SB_BLOCKX,y+1,1,16,sc.work_light);
118
	DrawFilledBar(18, y+1, 160-1, 16);
118
	DrawFilledBar(SB_BLOCKX+1, y+1, SB_BLOCKW-1, 16);
119
	DrawBar(17,y+17,160,1,sc.work_graph);
119
	DrawBar(SB_BLOCKX,y+SB_BLOCKX,SB_BLOCKW,1,sc.work_graph);
120
	WriteText(25,y+5,0x80,col.list_gb_text,caption);
120
	WriteText(SB_BLOCKX+8,y+5,0x80,col.list_gb_text,caption);
121
	if (id) DefineButton(159,y+1,16,16,id+BT_HIDE+BT_NOFRAME,0); //arrow button
121
	if (id) DefineButton(159,y+1,16,16,id+BT_HIDE+BT_NOFRAME,0); //arrow button
122
	WriteText(165,y+5,0x80,col.list_gb_text,arrow); //arrow
122
	WriteText(165,y+5,0x80,col.list_gb_text,arrow); //arrow
123
}
123
}
Line 124... Line 124...
124
 
124
 
125
void ActionsDraw(int actions_y)
125
void ActionsDraw(int actions_y)
126
{
126
{
127
	int i;
127
	int i;
128
	Tip(actions_y-18, T_ACTIONS, 77, "");
128
	Tip(actions_y-18, T_ACTIONS, 77, "");
129
	for (i=0; actions[i*3]!=0; i++, actions_y+=DEV_H)
129
	for (i=0; actions[i*3]!=0; i++, actions_y+=DEV_H)
130
	{
130
	{
131
		DrawBar(17,actions_y,160,DEV_H,0xFFFFFF); //áåëîå
131
		DrawBar(SB_BLOCKX,actions_y,SB_BLOCKW,DEV_H,0xFFFFFF); //áåëîå
132
		DefineButton(17,actions_y,159,DEV_H,actions[i*3]+BT_HIDE,0xE4DFE1);
132
		DefineButton(SB_BLOCKX,actions_y,SB_BLOCKW-1,DEV_H,actions[i*3]+BT_HIDE,0xE4DFE1);
133
		WriteText(45,actions_y+4,0x80,0,actions[i*3+1]);
133
		WriteText(45,actions_y+4,0x80,0,actions[i*3+1]);
134
		WriteText(-strlen(actions[i*3+2])*6+170,actions_y+4,0x80,0x999999,actions[i*3+2]);
134
		WriteText(-strlen(actions[i*3+2])*6+SIDEBAR_W-SBPAD-7,actions_y+4,0x80,0x999999,actions[i*3+2]);
135
		_PutImage(23,actions_y+2, 14,13, i*14*13*3+#factions);
135
		_PutImage(23,actions_y+2, 14,13, i*14*13*3+#factions);
136
	}
136
	}
Line 137... Line 137...
137
}
137
}
138
 
138
 
139
void DrawLeftPanelBg(int actions_y)
139
void DrawLeftPanelBg(int actions_y)
140
{
140
{
141
	int start_y = actions_y+159;
141
	int start_y = actions_y+159;
142
	int area_h;
142
	int area_h;
143
	DrawBar(2,41,190,15,waves_pal[0]);    //above devices block
143
	DrawBar(2,41,SIDEBAR_W-2,SBPAD,waves_pal[0]);    //above devices block
144
	DrawBar(17,actions_y+75,160,15,EDX);  //below devices block
144
	DrawBar(SB_BLOCKX,actions_y+75,SB_BLOCKW,SBPAD,EDX);  //below devices block
145
	DrawBar(2,56,15,actions_y+103,EDX);   //on the left
145
	DrawBar(2,56,SBPAD,actions_y+103,EDX);   //on the left
146
	DrawBar(177,56,15,actions_y+103,EDX); //on the right
146
	DrawBar(SIDEBAR_W-SBPAD,56,SBPAD,actions_y+103,EDX); //on the right
147
	area_h = Form.cheight-start_y-2 - status_bar_h;
147
	area_h = Form.cheight-start_y-2 - status_bar_h;
148
	if (area_h < 268){
148
	if (area_h < 268){
149
		PutPaletteImage(#blue_hl, 190, area_h, 2, start_y, 8, #waves_pal);
149
		PutPaletteImage(#blue_hl, 190, area_h, 2, start_y, 8, #waves_pal);
150
	} else {
150
	} else {
151
		DrawBar(2,start_y,190, area_h-268, waves_pal[0]);
151
		DrawBar(2,start_y,SIDEBAR_W-2, area_h-268, waves_pal[0]);
152
		PutPaletteImage(#blue_hl, 190, 268, 2, Form.cheight-270-status_bar_h, 8, #waves_pal);
152
		PutPaletteImage(#blue_hl, 190, 268, 2, Form.cheight-270-status_bar_h, 8, #waves_pal);
153
	}
153
	}
154
	PutShadow(17,actions_y+75,160,1,1,3);
154
	PutShadow(SB_BLOCKX,actions_y+75,SB_BLOCKW,1,1,3);
155
	PutShadow(18,actions_y+75+1,158,1,1,1);
155
	PutShadow(SB_BLOCKX+1,actions_y+75+1,SB_BLOCKW-2,1,1,1);
156
	PutShadow(17,start_y,160,1,1,3);
156
	PutShadow(SB_BLOCKX,start_y,SB_BLOCKW,1,1,3);
Line 157... Line 157...
157
	PutShadow(18,start_y+1,158,1,1,1);
157
	PutShadow(SB_BLOCKX+1,start_y+1,SB_BLOCKW-2,1,1,1);
158
}
158
}
159
 
159