Add Screen Text Lua functions

Committer: Drew C. <drewcav96@gmail.com>
This commit is contained in:
Drew Cavanaugh
2026-03-09 19:54:41 -05:00
parent b16f6b8ee1
commit cce3245e4b
8 changed files with 127 additions and 0 deletions

15
rvas.h
View File

@@ -21,6 +21,11 @@ struct LuaRVAs {
uintptr_t get_script_from_state; // LuaScriptClass::Get_Script_From_State (static)
uintptr_t map_var_to_lua; // LuaScriptClass::Map_Var_To_Lua (member)
// --- Screen Text ---
uintptr_t command_bar; // TheCommandBar global object (data, not a function)
uintptr_t add_tutorial_text; // CommandBarClass::Add_Tutorial_Text (inner overload: wstring*, char*, float, uint, bool, RGBAClass*)
uintptr_t remove_tutorial_text; // CommandBarClass::Remove_Tutorial_Text(char*)
// --- Debug ---
uintptr_t debug_print; // Debug_Print(char*)
};
@@ -46,6 +51,11 @@ constexpr LuaRVAs RVAs_StarWarsI = {
0x0537BB0, // LuaScriptClass::Get_Script_From_State
0x0536FE0, // LuaScriptClass::Map_Var_To_Lua
// --- Screen Text ---
0x1916b80, // TheCommandBar global object
0x003c83a, // CommandBarClass::Add_Tutorial_Text inner
0x006e1eb, // CommandBarClass::Remove_Tutorial_Text
// --- Debug ---
0x0476AE0, // Debug_Print
};
@@ -71,6 +81,11 @@ constexpr LuaRVAs RVAs_StarWarsG = {
0x0245790, // LuaScriptClass::Get_Script_From_State (TODO)
0x0247700, // LuaScriptClass::Map_Var_To_Lua (TODO)
// --- Screen Text ---
0, // TheCommandBar (TODO)
0, // CommandBarClass::Add_Tutorial_Text inner (TODO)
0, // CommandBarClass::Remove_Tutorial_Text (TODO)
// --- Debug ---
0, // Debug_Print (TODO)
};