Merge pull request #290 from hkva/master

Added cat_info_min
This commit is contained in:
nullifiedcat 2017-08-19 12:43:19 +03:00 committed by GitHub
commit 5ca6159617

View File

@ -20,6 +20,7 @@ void BeginCheatVisuals() {
std::mutex drawing_mutex;
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() {
std::lock_guard<std::mutex> draw_lock(drawing_mutex);
@ -33,6 +34,7 @@ void DrawCheatVisuals() {
std::string name_s, reason_s;
PROF_SECTION(PT_info_text);
AddSideString("cathook by nullifiedcat", colors::RainbowCurrent());
if (!info_text_min) {
AddSideString(hack::GetVersion(), GUIColor()); // github commit and date
AddSideString(hack::GetType(), GUIColor()); // Compile type
#if ENABLE_GUI
@ -53,6 +55,7 @@ void DrawCheatVisuals() {
AddSideString(format("Custom Disconnect Reason: ", reason_s), GUIColor());
}
}
}
if (CE_GOOD(g_pLocalPlayer->entity) && !g_Settings.bInvalid) {
PROF_SECTION(PT_total_hacks);
{