1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 09:19:58 +00:00
openmw-tes3mp/apps/openmw-mp/Script/Functions/GUI.hpp

36 lines
1.3 KiB
C++
Raw Normal View History

2016-08-30 04:19:49 +00:00
//
// Created by koncord on 30.08.16.
//
#ifndef OPENMW_GUIAPI_HPP
#define OPENMW_GUIAPI_HPP
2016-08-30 04:19:49 +00:00
#define GUIAPI \
{"MessageBox", GUIFunctions::_MessageBox},\
2016-08-30 04:19:49 +00:00
{"CustomMessageBox", GUIFunctions::CustomMessageBox},\
{"InputDialog", GUIFunctions::InputDialog},\
{"ListBox", GUIFunctions::ListBox},\
2016-08-30 04:19:49 +00:00
{"SetMapVisibility", GUIFunctions::SetMapVisibility},\
{"SetMapVisibilityAll", GUIFunctions::SetMapVisibilityAll},\
{"SetConsoleAllow", GUIFunctions::SetConsoleAllow}\
2016-08-30 04:19:49 +00:00
class GUIFunctions
{
public:
/* Do not rename into MessageBox to not conflict with WINAPI's MessageBox */
2016-08-30 05:01:34 +00:00
static void _MessageBox(unsigned short pid, int id, const char *label) noexcept;
2016-11-21 21:40:50 +00:00
2016-08-30 04:19:49 +00:00
static void CustomMessageBox(unsigned short pid, int id, const char *label, const char *buttons) noexcept;
static void InputDialog(unsigned short pid, int id, const char *label) noexcept;
static void ListBox(unsigned short pid, int id, const char *label, const char *items);
2016-08-30 04:19:49 +00:00
//state 0 - disallow, 1 - allow
static void SetMapVisibility(unsigned short targetPID, unsigned short affectedPID, unsigned short state) noexcept;
static void SetMapVisibilityAll(unsigned short targetPID, unsigned short state) noexcept;
static void SetConsoleAllow(unsigned short pid, bool state);
2016-08-30 04:19:49 +00:00
};
#endif //OPENMW_GUIAPI_HPP