2002-03-16 20:22:01 +00:00
|
|
|
float time;
|
|
|
|
|
|
|
|
void (integer x, integer y) spinner =
|
|
|
|
{
|
2002-04-10 06:56:25 +00:00
|
|
|
local integer i = integer(time * 10) % 6;
|
|
|
|
local qpic_t p = Draw_CachePic (dot_name[i], 1);
|
|
|
|
|
|
|
|
Draw_Pic (x, y, p);
|
2002-03-16 20:22:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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-10 06:56:25 +00:00
|
|
|
p = Draw_CachePic ("gfx/box_tl.lmp", 1);
|
|
|
|
Draw_Pic (cx, cy, p);
|
|
|
|
p = Draw_CachePic ("gfx/box_ml.lmp", 1);
|
2002-03-16 20:22:01 +00:00
|
|
|
for (n = 0; n < lines; n++) {
|
|
|
|
cy += 8;
|
2002-04-10 06:56:25 +00:00
|
|
|
Draw_Pic (cx, cy, p);
|
2002-03-16 20:22:01 +00:00
|
|
|
}
|
2002-04-10 06:56:25 +00:00
|
|
|
p = Draw_CachePic ("gfx/box_bl.lmp", 1);
|
|
|
|
Draw_Pic (cx, cy + 8, p);
|
2002-03-16 20:22:01 +00:00
|
|
|
|
|
|
|
cx += 8;
|
|
|
|
while (width > 0) {
|
|
|
|
cy = y;
|
2002-04-10 06:56:25 +00:00
|
|
|
p = Draw_CachePic ("gfx/box_tm.lmp", 1);
|
|
|
|
Draw_Pic (cx, cy, p);
|
|
|
|
p = Draw_CachePic ("gfx/box_mm.lmp", 1);
|
2002-03-16 20:22:01 +00:00
|
|
|
for (n = 0; n < lines; n++) {
|
|
|
|
cy += 8;
|
|
|
|
if (n == 1)
|
2002-04-10 06:56:25 +00:00
|
|
|
p = Draw_CachePic ("gfx/box_mm2.lmp", 1);
|
2002-03-16 20:22:01 +00:00
|
|
|
Draw_Pic (cx, cy, p);
|
|
|
|
}
|
2002-04-10 06:56:25 +00:00
|
|
|
p = Draw_CachePic ("gfx/box_bm.lmp", 1);
|
|
|
|
Draw_Pic (cx, cy + 8, p);
|
2002-03-16 20:22:01 +00:00
|
|
|
width -= 2;
|
|
|
|
cx += 16;
|
|
|
|
}
|
|
|
|
|
|
|
|
cy = y;
|
2002-04-10 06:56:25 +00:00
|
|
|
p = Draw_CachePic ("gfx/box_tr.lmp", 1);
|
|
|
|
Draw_Pic (cx, cy, p);
|
|
|
|
p = Draw_CachePic ("gfx/box_mr.lmp", 1);
|
2002-03-16 20:22:01 +00:00
|
|
|
for (n = 0; n < lines; n++) {
|
|
|
|
cy += 8;
|
2002-04-10 06:56:25 +00:00
|
|
|
Draw_Pic (cx, cy, p);
|
2002-03-16 20:22:01 +00:00
|
|
|
}
|
2002-04-10 06:56:25 +00:00
|
|
|
p = Draw_CachePic ("gfx/box_br.lmp", 1);
|
|
|
|
Draw_Pic (cx, cy + 8, p);
|
2002-03-16 20:22:01 +00:00
|
|
|
};
|