Subversion Repositories Kolibri OS

Rev

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

Rev 7795 Rev 7806
Line 126... Line 126...
126
 
126
 
127
void Draw_IntroWindow()
127
void Draw_IntroWindow()
128
{
128
{
129
	incn y;
129
	incn y;
130
	y.n = Form.cheight/2 - 80;
130
	y.n = Form.cheight/2 - 80;
131
	WriteTextB(30+2,y.n+2,0x81,MixColors(system.color.work, 0xB92234,220),T_CAUTION_TITLE);
131
	WriteTextB(30+2,y.n+2,0x81,MixColors(sc.work, 0xB92234,220),T_CAUTION_TITLE);
132
	WriteTextB(30,y.n,0x81,0xB92234,T_CAUTION_TITLE);
132
	WriteTextB(30,y.n,0x81,0xB92234,T_CAUTION_TITLE);
133
	y.n = DrawTextViewArea(30, y.inc(30), Form.cwidth-60, Form.cheight-140, 
133
	y.n = DrawTextViewArea(30, y.inc(30), Form.cwidth-60, Form.cheight-140, 
134
		T_CAUTION_PARAGRAPH, -1, system.color.work_text);
134
		T_CAUTION_PARAGRAPH, -1, sc.work_text);
135
	active_button_id = BUTTON_ID_ASSEPT_RISK;
135
	active_button_id = BUTTON_ID_ASSEPT_RISK;
136
	DrawStandartCaptButton(30, y.inc(10), BUTTON_ID_ASSEPT_RISK, T_ASSEPT_RISK);
136
	DrawStandartCaptButton(30, y.inc(10), BUTTON_ID_ASSEPT_RISK, T_ASSEPT_RISK);
Line 151... Line 151...
151
		false);
151
		false);
152
	SelectList_Draw();
152
	SelectList_Draw();
153
	SelectList_DrawBorder();
153
	SelectList_DrawBorder();
154
	//RIGHT FRAME
154
	//RIGHT FRAME
155
	GetCurrentSectionData();
155
	GetCurrentSectionData();
156
	DrawBar(right_frame_x, PADDING+3, Form.cwidth - right_frame_x - PADDING, 80, system.color.work);
156
	DrawBar(right_frame_x, PADDING+3, Form.cwidth - right_frame_x - PADDING, 80, sc.work);
157
	if (streq(#cur_type, "disk")) icon_n = 50;
157
	if (streq(#cur_type, "disk")) icon_n = 50;
158
	DrawIcon32(right_frame_x, PADDING, system.color.work, icon_n);	
158
	DrawIcon32(right_frame_x, PADDING, sc.work, icon_n);	
159
	WriteTextB(right_frame_x+44, PADDING+3, 0x81, system.color.work_text, ini_sections.get(select_list.cur_y));
159
	WriteTextB(right_frame_x+44, PADDING+3, 0x81, sc.work_text, ini_sections.get(select_list.cur_y));
160
	WriteText(right_frame_x+44, PADDING+23, 0x80, system.color.work_text, #cur_version);
160
	WriteText(right_frame_x+44, PADDING+23, 0x80, sc.work_text, #cur_version);
161
	if(cur_readme_path[0]) readme_w = DrawStandartCaptButton(right_frame_x, PADDING+45, BUTTON_ID_README, T_README);
161
	if(cur_readme_path[0]) readme_w = DrawStandartCaptButton(right_frame_x, PADDING+45, BUTTON_ID_README, T_README);
162
	DrawStandartCaptButton(right_frame_x + readme_w, PADDING+45, BUTTON_ID_INSTALL, T_INSTALL);
162
	DrawStandartCaptButton(right_frame_x + readme_w, PADDING+45, BUTTON_ID_INSTALL, T_INSTALL);
163
	DrawTextViewArea(right_frame_x-2, PADDING+83, Form.cwidth - right_frame_x - PADDING, Form.cheight-PADDING-PADDING, 
163
	DrawTextViewArea(right_frame_x-2, PADDING+83, Form.cwidth - right_frame_x - PADDING, Form.cheight-PADDING-PADDING, 
164
		#cur_description, system.color.work, system.color.work_text);
164
		#cur_description, sc.work, sc.work_text);
165
}
165
}
Line 166... Line 166...
166
 
166
 
167
void SelectList_DrawLine(dword i)
167
void SelectList_DrawLine(dword i)
168
{
168
{
Line 169... Line 169...
169
	int yyy, list_last;
169
	int yyy, list_last;
Line 170... Line 170...
170
 
170
 
171
	yyy = i*select_list.item_h+select_list.y;
171
	yyy = i*select_list.item_h+select_list.y;
172
	
172
	
173
	if (select_list.cur_y-select_list.first==i)
173
	if (select_list.cur_y-select_list.first==i)
174
	{
174
	{
175
		DrawBar(select_list.x, yyy, select_list.w, select_list.item_h, system.color.work_button);
175
		DrawBar(select_list.x, yyy, select_list.w, select_list.item_h, sc.button);
176
		WriteText(select_list.x+12,yyy+select_list.text_y,select_list.font_type,system.color.work_button_text, ini_sections.get(i));
176
		WriteText(select_list.x+12,yyy+select_list.text_y,select_list.font_type,sc.button_text, ini_sections.get(i));
177
	}
177
	}
178
	else
178
	else
Line 212... Line 212...
212
	if (id==BUTTON_ID_INSTALL) Event_RunInstall();
212
	if (id==BUTTON_ID_INSTALL) Event_RunInstall();
213
}
213
}
Line 214... Line 214...
214
 
214
 
215
void Event_DrawWindow() 
215
void Event_DrawWindow() 
216
{
216
{
217
	system.color.get();
217
	sc.get();
218
	DefineAndDrawWindow(215, 100, 600, 400, 0x33, system.color.work, WINDOW_TITLE,0);
218
	DefineAndDrawWindow(215, 100, 600, 400, 0x33, sc.work, WINDOW_TITLE,0);
219
	GetProcessInfo(#Form, SelfInfo);
219
	GetProcessInfo(#Form, SelfInfo);
220
	if (Form.status_window>2) return;
220
	if (Form.status_window>2) return;
221
	if (Form.width  < 450) { MoveSize(OLD,OLD,450,OLD); return; }
221
	if (Form.width  < 450) { MoveSize(OLD,OLD,450,OLD); return; }
222
	if (Form.height < 250) { MoveSize(OLD,OLD,OLD,250); return; }
222
	if (Form.height < 250) { MoveSize(OLD,OLD,OLD,250); return; }