Added cat_info_min
This commit is contained in:
parent
89dc29e2bd
commit
1ffe11c47f
@ -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,24 +34,26 @@ void DrawCheatVisuals() {
|
||||
std::string name_s, reason_s;
|
||||
PROF_SECTION(PT_info_text);
|
||||
AddSideString("cathook by nullifiedcat", colors::RainbowCurrent());
|
||||
AddSideString(hack::GetVersion(), GUIColor()); // github commit and date
|
||||
AddSideString(hack::GetType(), GUIColor()); // Compile type
|
||||
if (!info_text_min) {
|
||||
AddSideString(hack::GetVersion(), GUIColor()); // github commit and date
|
||||
AddSideString(hack::GetType(), GUIColor()); // Compile type
|
||||
#if ENABLE_GUI
|
||||
AddSideString("Press 'INSERT' or 'F11' key to open/close cheat menu.", GUIColor());
|
||||
AddSideString("Use mouse to navigate in menu.", GUIColor());
|
||||
AddSideString("Press 'INSERT' or 'F11' key to open/close cheat menu.", GUIColor());
|
||||
AddSideString("Use mouse to navigate in menu.", GUIColor());
|
||||
#endif
|
||||
if (!g_IEngine->IsInGame()
|
||||
if (!g_IEngine->IsInGame()
|
||||
#if ENABLE_GUI
|
||||
|| g_pGUI->Visible()
|
||||
|| g_pGUI->Visible()
|
||||
#endif
|
||||
) {
|
||||
name_s = force_name.GetString();
|
||||
if (name_s.length() < 3) name_s = "*Not Set*";
|
||||
reason_s = disconnect_reason.GetString();
|
||||
if (reason_s.length() < 3) reason_s = "*Not Set*";
|
||||
AddSideString(""); // foolish
|
||||
AddSideString(format("Custom Name: ", name_s), GUIColor());
|
||||
AddSideString(format("Custom Disconnect Reason: ", reason_s), GUIColor());
|
||||
) {
|
||||
name_s = force_name.GetString();
|
||||
if (name_s.length() < 3) name_s = "*Not Set*";
|
||||
reason_s = disconnect_reason.GetString();
|
||||
if (reason_s.length() < 3) reason_s = "*Not Set*";
|
||||
AddSideString(""); // foolish
|
||||
AddSideString(format("Custom Name: ", name_s), GUIColor());
|
||||
AddSideString(format("Custom Disconnect Reason: ", reason_s), GUIColor());
|
||||
}
|
||||
}
|
||||
}
|
||||
if (CE_GOOD(g_pLocalPlayer->entity) && !g_Settings.bInvalid) {
|
||||
|
Reference in New Issue
Block a user