feat(GUI): Show help text on startup

This commit is contained in:
Yimura 2021-05-20 20:27:07 +02:00
parent 0c732158d9
commit 1f2076a344
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682
2 changed files with 10 additions and 0 deletions

View File

@ -14,6 +14,7 @@
#include <imgui.h>
#include "gui/gui_main.hpp"
#include "util/notify.hpp"
namespace big
{
@ -113,6 +114,8 @@ namespace big
{
gta_util::defuse_event(RockstarEvent::REPORT_CASH_SPAWN_EVENT, true);
gta_util::defuse_event(RockstarEvent::REPORT_MYSELF_EVENT, true);
notify::display_help_text("Press INSERT on your keyboard to open Yim's Mod Menu.");
}
void gui::script_on_tick()

View File

@ -10,4 +10,11 @@ namespace big::notify
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text);
HUD::END_TEXT_COMMAND_THEFEED_POST_TICKER(false, false);
}
inline void display_help_text(const char* text)
{
HUD::BEGIN_TEXT_COMMAND_DISPLAY_HELP("STRING");
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text);
HUD::END_TEXT_COMMAND_DISPLAY_HELP(0, 0, 1, -1);
}
}