feat(ui): add GMTicketInfoRegisterScriptFunctions
Some checks are pending
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:cl compiler_name:MSVC cxx:cl os:windows-latest system_name:Windows test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:clang compiler_name:Clang cxx:clang++ os:macos-latest system_name:macOS test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:gcc compiler_name:GCC cxx:g++ os:ubuntu-latest system_name:Linux test_path:WhoaTest]) (push) Waiting to run

This commit is contained in:
fallenoak 2026-01-26 21:11:36 -06:00
parent a168c6fd41
commit 61b05eb366
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
3 changed files with 98 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#include "ui/FrameXML.hpp" #include "ui/FrameXML.hpp"
#include "ui/Key.hpp" #include "ui/Key.hpp"
#include "ui/game/CGWorldFrame.hpp" #include "ui/game/CGWorldFrame.hpp"
#include "ui/game/GMTicketInfoScript.hpp"
#include "ui/game/ScriptEvents.hpp" #include "ui/game/ScriptEvents.hpp"
#include "ui/simple/CSimpleTop.hpp" #include "ui/simple/CSimpleTop.hpp"
#include "util/CStatus.hpp" #include "util/CStatus.hpp"
@ -16,6 +17,10 @@ void LoadScriptFunctions() {
ScriptEventsRegisterFunctions(); ScriptEventsRegisterFunctions();
// TODO // TODO
GMTicketInfoRegisterScriptFunctions();
// TODO
} }
void CGGameUI::Initialize() { void CGGameUI::Initialize() {

View File

@ -0,0 +1,87 @@
#include "ui/game/GMTicketInfoScript.hpp"
#include "ui/FrameScript.hpp"
#include "util/Unimplemented.hpp"
int32_t Script_GetGMTicket(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
}
int32_t Script_NewGMTicket(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
}
int32_t Script_UpdateGMTicket(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
}
int32_t Script_DeleteGMTicket(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
}
int32_t Script_GMResponseNeedMoreHelp(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
}
int32_t Script_GMResponseResolve(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
}
int32_t Script_GetGMStatus(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
}
int32_t Script_GMSurveyQuestion(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
}
int32_t Script_GMSurveyNumAnswers(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
}
int32_t Script_GMSurveyAnswer(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
}
int32_t Script_GMSurveyAnswerSubmit(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
}
int32_t Script_GMSurveyCommentSubmit(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
}
int32_t Script_GMSurveySubmit(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
}
int32_t Script_GMReportLag(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
}
int32_t Script_RegisterStaticConstants(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
}
static FrameScript_Method s_ScriptFunctions[] = {
{ "GetGMTicket", &Script_GetGMTicket },
{ "NewGMTicket", &Script_NewGMTicket },
{ "UpdateGMTicket", &Script_UpdateGMTicket },
{ "DeleteGMTicket", &Script_DeleteGMTicket },
{ "GMResponseNeedMoreHelp", &Script_GMResponseNeedMoreHelp },
{ "GMResponseResolve", &Script_GMResponseResolve },
{ "GetGMStatus", &Script_GetGMStatus },
{ "GMSurveyQuestion", &Script_GMSurveyQuestion },
{ "GMSurveyNumAnswers", &Script_GMSurveyNumAnswers },
{ "GMSurveyAnswer", &Script_GMSurveyAnswer },
{ "GMSurveyAnswerSubmit", &Script_GMSurveyAnswerSubmit },
{ "GMSurveyCommentSubmit", &Script_GMSurveyCommentSubmit },
{ "GMSurveySubmit", &Script_GMSurveySubmit },
{ "GMReportLag", &Script_GMReportLag },
{ "RegisterStaticConstants", &Script_RegisterStaticConstants },
};
void GMTicketInfoRegisterScriptFunctions() {
for (auto& func : s_ScriptFunctions) {
FrameScript_RegisterFunction(func.name, func.method);
}
}

View File

@ -0,0 +1,6 @@
#ifndef UI_GAME_GM_TICKET_INFO_SCRIPT_HPP
#define UI_GAME_GM_TICKET_INFO_SCRIPT_HPP
void GMTicketInfoRegisterScriptFunctions();
#endif