Начинающий
- Статус
- Оффлайн
- Регистрация
- 24 Апр 2019
- Сообщения
- 29
- Реакции
- 2

interfaces.cpp:
m_legacy_game_ui = get_interface<i_legacy_game_ui>(&g_modules->m_modules.client_dll, xorstr_("LegacyGameUI001"));
interfaces.hpp:
i_legacy_game_ui* m_legacy_game_ui;
i_legacy_game_ui.hpp:
class i_legacy_game_ui {
public:
void show_message_box(const char* title, const char* message, bool show_ok = true, bool show_cancel = false, const char* ok_command = nullptr, const char* cancel_command = nullptr, const char* closed_command = nullptr, const char* legend = nullptr, const char* unknown = nullptr) {
vmt::call_virtual<void>(this, 28, title, message, show_ok,show_cancel, ok_command, cancel_command, closed_command, legend,unknown);
}
};
ussage:
entry.cpp:
g_interfaces->m_legacy_game_ui->show_message_box("Title", "Context");
Последнее редактирование: