feat(GUI): Show help text on startup
This commit is contained in:
parent
0c732158d9
commit
1f2076a344
@ -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()
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user