You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
747 B
C++
31 lines
747 B
C++
//
|
|
// Created by koncord on 01.04.17.
|
|
//
|
|
|
|
#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
|