Added cat_info_min
This commit is contained in:
parent
89dc29e2bd
commit
1ffe11c47f
@ -20,6 +20,7 @@ void BeginCheatVisuals() {
|
|||||||
std::mutex drawing_mutex;
|
std::mutex drawing_mutex;
|
||||||
|
|
||||||
CatVar info_text(CV_SWITCH, "info", "1", "Show info", "Show cathook version in top left corner");
|
CatVar info_text(CV_SWITCH, "info", "1", "Show info", "Show cathook version in top left corner");
|
||||||
|
CatVar info_text_min(CV_SWITCH, "info_min", "0", "Show minimal info", "Only show cathook title in top left corner");
|
||||||
|
|
||||||
void DrawCheatVisuals() {
|
void DrawCheatVisuals() {
|
||||||
std::lock_guard<std::mutex> draw_lock(drawing_mutex);
|
std::lock_guard<std::mutex> draw_lock(drawing_mutex);
|
||||||
@ -33,6 +34,7 @@ void DrawCheatVisuals() {
|
|||||||
std::string name_s, reason_s;
|
std::string name_s, reason_s;
|
||||||
PROF_SECTION(PT_info_text);
|
PROF_SECTION(PT_info_text);
|
||||||
AddSideString("cathook by nullifiedcat", colors::RainbowCurrent());
|
AddSideString("cathook by nullifiedcat", colors::RainbowCurrent());
|
||||||
|
if (!info_text_min) {
|
||||||
AddSideString(hack::GetVersion(), GUIColor()); // github commit and date
|
AddSideString(hack::GetVersion(), GUIColor()); // github commit and date
|
||||||
AddSideString(hack::GetType(), GUIColor()); // Compile type
|
AddSideString(hack::GetType(), GUIColor()); // Compile type
|
||||||
#if ENABLE_GUI
|
#if ENABLE_GUI
|
||||||
@ -53,6 +55,7 @@ void DrawCheatVisuals() {
|
|||||||
AddSideString(format("Custom Disconnect Reason: ", reason_s), GUIColor());
|
AddSideString(format("Custom Disconnect Reason: ", reason_s), GUIColor());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (CE_GOOD(g_pLocalPlayer->entity) && !g_Settings.bInvalid) {
|
if (CE_GOOD(g_pLocalPlayer->entity) && !g_Settings.bInvalid) {
|
||||||
PROF_SECTION(PT_total_hacks);
|
PROF_SECTION(PT_total_hacks);
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user