feat(console): animate console open and close

This commit is contained in:
fallenoak 2023-04-17 22:44:44 -05:00 committed by GitHub
parent 56092c6700
commit df1ab32267
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 55 additions and 2 deletions

View file

@ -3,6 +3,7 @@
static int32_t s_active;
static int32_t s_consoleAccessEnabled;
static KEY s_consoleKey = KEY_TILDE;
static CONSOLERESIZESTATE s_consoleResizeState = CS_NONE;
int32_t ConsoleAccessGetEnabled() {
return s_consoleAccessEnabled;
@ -20,6 +21,10 @@ KEY ConsoleGetHotKey() {
return s_consoleKey;
}
CONSOLERESIZESTATE ConsoleGetResizeState() {
return s_consoleResizeState;
}
void ConsoleSetActive(int32_t active) {
s_active = active;
}
@ -27,3 +32,7 @@ void ConsoleSetActive(int32_t active) {
void ConsoleSetHotKey(KEY hotkey) {
s_consoleKey = hotkey;
}
void ConsoleSetResizeState(CONSOLERESIZESTATE state) {
s_consoleResizeState = state;
}