[C++] Subtitles not working
-
Ok, so, I decided to update my natives.h and nativeCaller.h, and after renaming the functions in my code everything except the subtitles and the help text works.
Before, I had
void SCREEN::ShowSubtitle(const char* text, int time) { UI::_SET_TEXT_ENTRY_2((char*)"STRING"); UI::_ADD_TEXT_COMPONENT_STRING((char*)text); UI::_DRAW_SUBTITLE_TIMED(time, true); }
and it worked. After updating the natives.h and nativeCaller.h, I have
void SCREEN::ShowSubtitle(const char* text, int time) { HUD::BEGIN_TEXT_COMMAND_PRINT("STRING"); HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text); HUD::END_TEXT_COMMAND_PRINT(time, true); }
And it doesn't work. Can someone tell me why is it not working? These functions only got renamed so I don't understand why would they stop working DD:
-
nvm, I tried again a few hours ago and subtitles started working. I guess I just needed to restart the game.