commit
5ca6159617
@ -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,24 +34,26 @@ 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());
|
||||||
AddSideString(hack::GetVersion(), GUIColor()); // github commit and date
|
if (!info_text_min) {
|
||||||
AddSideString(hack::GetType(), GUIColor()); // Compile type
|
AddSideString(hack::GetVersion(), GUIColor()); // github commit and date
|
||||||
|
AddSideString(hack::GetType(), GUIColor()); // Compile type
|
||||||
#if ENABLE_GUI
|
#if ENABLE_GUI
|
||||||
AddSideString("Press 'INSERT' or 'F11' key to open/close cheat menu.", GUIColor());
|
AddSideString("Press 'INSERT' or 'F11' key to open/close cheat menu.", GUIColor());
|
||||||
AddSideString("Use mouse to navigate in menu.", GUIColor());
|
AddSideString("Use mouse to navigate in menu.", GUIColor());
|
||||||
#endif
|
#endif
|
||||||
if (!g_IEngine->IsInGame()
|
if (!g_IEngine->IsInGame()
|
||||||
#if ENABLE_GUI
|
#if ENABLE_GUI
|
||||||
|| g_pGUI->Visible()
|
|| g_pGUI->Visible()
|
||||||
#endif
|
#endif
|
||||||
) {
|
) {
|
||||||
name_s = force_name.GetString();
|
name_s = force_name.GetString();
|
||||||
if (name_s.length() < 3) name_s = "*Not Set*";
|
if (name_s.length() < 3) name_s = "*Not Set*";
|
||||||
reason_s = disconnect_reason.GetString();
|
reason_s = disconnect_reason.GetString();
|
||||||
if (reason_s.length() < 3) reason_s = "*Not Set*";
|
if (reason_s.length() < 3) reason_s = "*Not Set*";
|
||||||
AddSideString(""); // foolish
|
AddSideString(""); // foolish
|
||||||
AddSideString(format("Custom Name: ", name_s), GUIColor());
|
AddSideString(format("Custom Name: ", name_s), GUIColor());
|
||||||
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) {
|
||||||
|
Reference in New Issue
Block a user