wavelength 1.0.0
Loading...
Searching...
No Matches
ovyremixsubpanel.h
Go to the documentation of this file.
1#pragma once
2
4#include "app/rampanimator.h"
5
12public:
14 static constexpr float kHiddenFrame = 240.0f;
15
17 static constexpr float kShownFrame = 360.0f;
18
31 OvyRemixSubPanel(int nType, char chHud, int nPlayer);
32
40
48 void Poll(float fDelta) override;
49
56 void Draw() override;
57
65 void Show(bool bShow);
66
75 bool IsType(int nType) const;
76
78 const RampAnimator &GetSlide() const {
79 return mSlide;
80 }
81
82private:
83 int mType;
84 RampAnimator mSlide;
85};
OvyRemixGenPanel()
Construct an empty panel.
void Show(bool bShow)
Slide the panel out or back.
static constexpr float kHiddenFrame
The frame of the slide at which the panel is hidden behind the main panel.
Definition ovyremixsubpanel.h:14
static constexpr float kShownFrame
The frame of the slide at which the panel is fully out.
Definition ovyremixsubpanel.h:17
const RampAnimator & GetSlide() const
Definition ovyremixsubpanel.h:78
void Draw() override
Draw the panel.
void Poll(float fDelta) override
Advance the slide, show the panel while it is out, and blink the cursor.
bool IsType(int nType) const
Report whether the panel is of a type.
~OvyRemixSubPanel() override
Destroy the panel.
OvyRemixSubPanel(int nType, char chHud, int nPlayer)
Construct a hidden panel of one type.
Value that moves toward a target along an interpolator, and poses an animation on the value.
Definition rampanimator.h:14