2016-08-30 04:19:49 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 30.08.16.
|
|
|
|
//
|
|
|
|
|
2017-04-09 09:28:38 +00:00
|
|
|
#ifndef OPENMW_GUIAPI_HPP
|
|
|
|
#define OPENMW_GUIAPI_HPP
|
2016-08-30 04:19:49 +00:00
|
|
|
|
2017-03-04 12:11:00 +00:00
|
|
|
#define GUIAPI \
|
2016-08-30 05:05:00 +00:00
|
|
|
{"MessageBox", GUIFunctions::_MessageBox},\
|
2016-08-30 04:19:49 +00:00
|
|
|
{"CustomMessageBox", GUIFunctions::CustomMessageBox},\
|
|
|
|
{"InputDialog", GUIFunctions::InputDialog},\
|
2016-11-03 16:21:41 +00:00
|
|
|
{"ListBox", GUIFunctions::ListBox},\
|
2016-08-30 04:19:49 +00:00
|
|
|
{"SetMapVisibility", GUIFunctions::SetMapVisibility},\
|
2016-11-03 18:59:39 +00:00
|
|
|
{"SetMapVisibilityAll", GUIFunctions::SetMapVisibilityAll},\
|
|
|
|
{"SetConsoleAllow", GUIFunctions::SetConsoleAllow}\
|
2016-08-30 04:19:49 +00:00
|
|
|
|
|
|
|
class GUIFunctions
|
|
|
|
{
|
|
|
|
public:
|
2016-08-30 05:13:08 +00:00
|
|
|
/* 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;
|
|
|
|
|
2016-11-03 16:21:41 +00:00
|
|
|
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;
|
2016-11-03 18:59:39 +00:00
|
|
|
|
2017-02-01 05:44:25 +00:00
|
|
|
static void SetConsoleAllow(unsigned short pid, bool state);
|
2016-08-30 04:19:49 +00:00
|
|
|
};
|
|
|
|
|
2017-04-09 09:28:38 +00:00
|
|
|
#endif //OPENMW_GUIAPI_HPP
|