mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-18 13:41:06 +03:00
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
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:
parent
a168c6fd41
commit
61b05eb366
@ -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() {
|
||||||
|
|||||||
87
src/ui/game/GMTicketInfoScript.cpp
Normal file
87
src/ui/game/GMTicketInfoScript.cpp
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/ui/game/GMTicketInfoScript.hpp
Normal file
6
src/ui/game/GMTicketInfoScript.hpp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#ifndef UI_GAME_GM_TICKET_INFO_SCRIPT_HPP
|
||||||
|
#define UI_GAME_GM_TICKET_INFO_SCRIPT_HPP
|
||||||
|
|
||||||
|
void GMTicketInfoRegisterScriptFunctions();
|
||||||
|
|
||||||
|
#endif
|
||||||
Loading…
Reference in New Issue
Block a user