|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
GET_PLAYER(pid, player,);
|
|
|
|
|
|
|
|
|
|
player->guiMessageBox.id = id;
|
|
|
|
|
player->guiMessageBox.label = label;
|
|
|
|
|
player->guiMessageBox.note = note;
|
|
|
|
|
player->guiMessageBox.type = Player::GUIMessageBox::InputDialog;
|
|
|
|
|
|
|
|
|
|
mwmp::Networking::get().getPlayerPacketController()->GetPacket(ID_GUI_MESSAGEBOX)->setPlayer(player);
|
|
|
|
|