r5sdk/r5dev/thirdparty/imgui/include/imgui_utility.h
Amos a1f96797c0 Console and Browser UX improvements
* Log warnings
* Improve style
* Vector size is now controlled by ConVar instead
* Keep current item in view when console is cleaning up the vector. This doesn't work ideally as its hard to keep track of the current item, and the scroll is a float. In the future it might be better to grab the first vertex of the center line on the console and track that perhaps.
2022-01-22 15:51:09 +01:00

30 lines
575 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);
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();
};
extern ImGuiConfig* g_pImGuiConfig;