mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 08:12:44 +03:00
feat(console): add HIGHLIGHTSTATE enum
This commit is contained in:
parent
0861448de9
commit
d30d5c49dc
@ -21,7 +21,7 @@ static float s_consoleLines = 10.0f;
|
|||||||
static float s_fontHeight = 0.02f;
|
static float s_fontHeight = 0.02f;
|
||||||
static float s_consoleHeight = s_consoleLines * s_fontHeight;
|
static float s_consoleHeight = s_consoleLines * s_fontHeight;
|
||||||
static char s_fontName[STORM_MAX_PATH];
|
static char s_fontName[STORM_MAX_PATH];
|
||||||
static int32_t s_highlightState;
|
static HIGHLIGHTSTATE s_highlightState;
|
||||||
static HLAYER s_layerBackground;
|
static HLAYER s_layerBackground;
|
||||||
static HLAYER s_layerText;
|
static HLAYER s_layerText;
|
||||||
static RECTF s_rect = { 0.0f, 1.0f, 1.0f, 1.0f };
|
static RECTF s_rect = { 0.0f, 1.0f, 1.0f, 1.0f };
|
||||||
@ -77,7 +77,7 @@ void PaintBackground(void* param, const RECTF* rect, const RECTF* visible, float
|
|||||||
if (s_rect.bottom < 1.0f) {
|
if (s_rect.bottom < 1.0f) {
|
||||||
DrawBackground();
|
DrawBackground();
|
||||||
|
|
||||||
if (s_highlightState) {
|
if (s_highlightState != HS_NONE) {
|
||||||
DrawHighLight();
|
DrawHighLight();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,4 +34,11 @@ enum CONSOLERESIZESTATE {
|
|||||||
NUM_CONSOLERESIZESTATES,
|
NUM_CONSOLERESIZESTATES,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum HIGHLIGHTSTATE {
|
||||||
|
HS_NONE,
|
||||||
|
HS_HIGHLIGHTING,
|
||||||
|
HS_ENDHIGHLIGHT,
|
||||||
|
NUM_HIGHLIGHTSTATES
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user