Sun Nov 14 02:53:54 GMT 1999

(gilbertt)

Added another animation to E-SD, "History Bar", its cooler.


SVN revision: 1305
This commit is contained in:
Tom Gilbert 1999-11-14 02:18:24 +00:00
parent 1483a268ec
commit 99e803c8d5
4 changed files with 35 additions and 0 deletions

View File

@ -571,3 +571,10 @@ Sun Nov 14 02:24:13 GMT 1999
Added new animation to E-SD, called history, it is responsive to sound, and
will hopefully keep StriderZ off my back for a day or two :P
-------------------------------------------------------------------------------
Sun Nov 14 02:53:54 GMT 1999
(gilbertt)
Added another animation to E-SD, "History Bar", its cooler.

View File

@ -157,6 +157,12 @@ cloak_draw (void *data)
Epplet_timer (cloak_draw, NULL, opt.draw_interval, "DRAW_TIMER");
break;
}
case 10:
{
draw_history_bar ();
Epplet_timer (cloak_draw, NULL, opt.draw_interval, "DRAW_TIMER");
break;
}
default:
{
blank_buf ();
@ -470,6 +476,8 @@ create_epplet_layout (void)
(void *) (&(cloak_anims[8])));
Epplet_add_popup_entry (p, "History", NULL, cb_cloak_anim,
(void *) (&(cloak_anims[9])));
Epplet_add_popup_entry (p, "History Bar", NULL, cb_cloak_anim,
(void *) (&(cloak_anims[10])));
ctimer_p = Epplet_create_popup ();
Epplet_add_popup_entry (ctimer_p, "Cloak Delay", NULL, NULL, NULL);

View File

@ -586,6 +586,25 @@ draw_history (void)
set_col_pixel (39, 39-((load_val*36)/100), 255, 115, 255, 165);
}
void
draw_history_bar (void)
{
static int setup = 0;
if (!setup)
{
blank_buf ();
setup = 1;
}
else
scroll_buf ();
aa_line (39, 39-((load_val*36)/100),39,39, 255, 80, 255, 125);
}
/* ************************* */
/* ************************* */
/* Utility drawing functions */
/* ************************* */

View File

@ -15,3 +15,4 @@ void draw_ball(void);
void draw_atoms(void);
void draw_text(void);
void draw_history(void);
void draw_history_bar(void);