|
|
@ -36,13 +36,14 @@ void GUIFunctions::CustomMessageBox(unsigned short pid, int id, const char *labe
|
|
|
|
mwmp::Networking::get().getPlayerPacketController()->GetPacket(ID_GUI_MESSAGEBOX)->Send(false);
|
|
|
|
mwmp::Networking::get().getPlayerPacketController()->GetPacket(ID_GUI_MESSAGEBOX)->Send(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GUIFunctions::InputDialog(unsigned short pid, int id, const char *label) noexcept
|
|
|
|
void GUIFunctions::InputDialog(unsigned short pid, int id, const char *label, const char *note) noexcept
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Player *player;
|
|
|
|
Player *player;
|
|
|
|
GET_PLAYER(pid, player,);
|
|
|
|
GET_PLAYER(pid, player,);
|
|
|
|
|
|
|
|
|
|
|
|
player->guiMessageBox.id = id;
|
|
|
|
player->guiMessageBox.id = id;
|
|
|
|
player->guiMessageBox.label = label;
|
|
|
|
player->guiMessageBox.label = label;
|
|
|
|
|
|
|
|
player->guiMessageBox.note = note;
|
|
|
|
player->guiMessageBox.type = Player::GUIMessageBox::InputDialog;
|
|
|
|
player->guiMessageBox.type = Player::GUIMessageBox::InputDialog;
|
|
|
|
|
|
|
|
|
|
|
|
mwmp::Networking::get().getPlayerPacketController()->GetPacket(ID_GUI_MESSAGEBOX)->setPlayer(player);
|
|
|
|
mwmp::Networking::get().getPlayerPacketController()->GetPacket(ID_GUI_MESSAGEBOX)->setPlayer(player);
|
|
|
|