mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 20:49:56 +00:00
26 lines
705 B
C++
26 lines
705 B
C++
#ifndef OPENMW_PROCESSORGUIMESSAGEBOX_HPP
|
|
#define OPENMW_PROCESSORGUIMESSAGEBOX_HPP
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorGUIMessageBox : public PlayerProcessor
|
|
{
|
|
public:
|
|
ProcessorGUIMessageBox()
|
|
{
|
|
BPP_INIT(ID_GUI_MESSAGEBOX)
|
|
}
|
|
|
|
void Do(PlayerPacket &packet, Player &player) override
|
|
{
|
|
DEBUG_PRINTF(strPacketID.c_str());
|
|
|
|
Script::Call<Script::CallbackIdentity("OnGUIAction")>(player.getId(), (int)player.guiMessageBox.id,
|
|
player.guiMessageBox.data.c_str());
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORGUIMESSAGEBOX_HPP
|