2002-03-16 20:22:01 +00:00
|
|
|
float time;
|
|
|
|
|
|
|
|
void (integer x, integer y) spinner =
|
|
|
|
{
|
|
|
|
Draw_Pic (x, y, dot[integer(time * 10) % 6]);
|
|
|
|
};
|
|
|
|
|
|
|
|
void (integer x, integer y, integer width, integer lines) text_box =
|
|
|
|
{
|
|
|
|
local integer cx, cy, n;
|
2002-04-09 21:38:41 +00:00
|
|
|
local qpic_t p;
|
2002-03-16 20:22:01 +00:00
|
|
|
|
|
|
|
cx = x;
|
|
|
|
cy = y;
|
2002-04-09 21:38:41 +00:00
|
|
|
Draw_Pic (cx, cy, box_tl_pic);
|
2002-03-16 20:22:01 +00:00
|
|
|
for (n = 0; n < lines; n++) {
|
|
|
|
cy += 8;
|
2002-04-09 21:38:41 +00:00
|
|
|
Draw_Pic (cx, cy, box_ml_pic);
|
2002-03-16 20:22:01 +00:00
|
|
|
}
|
2002-04-09 21:38:41 +00:00
|
|
|
Draw_Pic (cx, cy + 8, box_bl_pic);
|
2002-03-16 20:22:01 +00:00
|
|
|
|
|
|
|
cx += 8;
|
|
|
|
while (width > 0) {
|
|
|
|
cy = y;
|
2002-04-09 21:38:41 +00:00
|
|
|
Draw_Pic (cx, cy, box_tm_pic);
|
|
|
|
p = box_mm_pic;
|
2002-03-16 20:22:01 +00:00
|
|
|
for (n = 0; n < lines; n++) {
|
|
|
|
cy += 8;
|
|
|
|
if (n == 1)
|
2002-04-09 21:38:41 +00:00
|
|
|
p = box_mm2_pic;
|
2002-03-16 20:22:01 +00:00
|
|
|
Draw_Pic (cx, cy, p);
|
|
|
|
}
|
2002-04-09 21:38:41 +00:00
|
|
|
Draw_Pic (cx, cy + 8, box_bm_pic);
|
2002-03-16 20:22:01 +00:00
|
|
|
width -= 2;
|
|
|
|
cx += 16;
|
|
|
|
}
|
|
|
|
|
|
|
|
cy = y;
|
2002-04-09 21:38:41 +00:00
|
|
|
Draw_Pic (cx, cy, box_tr_pic);
|
2002-03-16 20:22:01 +00:00
|
|
|
for (n = 0; n < lines; n++) {
|
|
|
|
cy += 8;
|
2002-04-09 21:38:41 +00:00
|
|
|
Draw_Pic (cx, cy, box_mr_pic);
|
2002-03-16 20:22:01 +00:00
|
|
|
}
|
2002-04-09 21:38:41 +00:00
|
|
|
Draw_Pic (cx, cy + 8, box_br_pic);
|
2002-03-16 20:22:01 +00:00
|
|
|
};
|