41 void Show(
bool bShow)
override;
HideablePanel(const char *pszAnim, const char *pszDrawable, bool bShown)
Construct a panel and find its animation and drawable.
Straight-line interpolator.
Definition interpolator.h:99
void Show(bool bShow) override
Slide the bar in or out.
static float sWarningBlinkTime
The half period of the warning's blink, juice_dying_blink_time.
Definition ovyjuice.h:93
void SetWarning(bool bWarn)
Start or stop the blinking warning.
~OvyJuice() override=default
Destroy the bar.
void Poll(float fDelta)
Advance the slide, the warning, the ghost, and the blink of a low bar.
static float sBlinkLeft
The part of the current blink of a low bar still to run.
Definition ovyjuice.h:109
OvyJuice()
Construct a hidden, full bar from HUD1 energy.tnm and HUD energy.view.
static float sGhostFadeTime
The time the ghost of a dropped level takes to fade, juice_ghost_fade_time.
Definition ovyjuice.h:85
void SetLevel(float fLevel, int nColor)
Set the level of the bar, leaving a fading ghost when it drops.
void Reset()
Empty the bar, hide the warning and the ghost, and settle the display.
void SetHideBar(int nHideBar)
Definition ovyjuice.h:112
static LinearInterpolator sBlinkRate
The blinks per unit of time of a low bar against its level, from juice_blink_range and juice_blink_fr...
Definition ovyjuice.h:101
Mix-in for an object driven by a frame.
Definition rndanimatable.h:16
Mix-in for an object that draws itself and then a list of other drawables.
Definition rnddrawable.h:16
View that shows the children of another view, its children owner, under its own transform and frame.
Definition rndview.h:27