mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* Eliminated all forms of concurrency for CConsole logger. * Used enum for determining which theme user loaded (DEFAULT, LEGACY, MODERN). * Fixed issue where browser panel doesn't have the same frame padding as the console for the modern theme. * Fixed issue where the history items count shows number higher than maximum until updated (updates vector before displaying, else this happens in g_pConsole->RunTask which is the operation that happens before we add new elements to the vector, thus showing the wrong count as this size is getting corrected the next frame after we painted, we don't update the summary each frame for performance reasons).
39 lines
692 B
C++
39 lines
692 B
C++
#pragma once
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Internals
|
|
int Stricmp(const char* s1, const char* s2);
|
|
int Strnicmp(const char* s1, const char* s2, int n);
|
|
char* Strdup(const char* s);
|
|
void Strtrim(char* s);
|
|
|
|
enum class ImGuiStyle_t
|
|
{
|
|
NONE = -1,
|
|
DEFAULT,
|
|
LEGACY,
|
|
MODERN
|
|
};
|
|
|
|
class ImGuiConfig
|
|
{
|
|
public:
|
|
struct
|
|
{
|
|
int m_nBind0 = VK_OEM_3;
|
|
int m_nBind1 = VK_INSERT;
|
|
} IConsole_Config;
|
|
|
|
struct
|
|
{
|
|
int m_nBind0 = VK_HOME;
|
|
int m_nBind1 = VK_F10;
|
|
} IBrowser_Config;
|
|
|
|
void Load();
|
|
void Save();
|
|
ImGuiStyle_t InitStyle() const;
|
|
};
|
|
|
|
extern ImGuiConfig* g_pImGuiConfig;
|