Increase size of popup, text was truncated at least in french

This commit is contained in:
Marianne Gagnon 2015-06-23 18:46:36 -04:00
parent 64adbb4238
commit be81a7fd11
3 changed files with 5 additions and 4 deletions

View File

@ -1228,7 +1228,7 @@ void askForInternetPermission()
"'User Interface', and edit \"Connect to the "
"Internet\" and \"Send anonymous HW statistics\")."),
MessageDialog::MESSAGE_DIALOG_YESNO,
new ConfirmServer(), true, true);
new ConfirmServer(), true, true, 0.7f, 0.7f);
GUIEngine::DialogQueue::get()->pushDialog(dialog, false);
} // askForInternetPermission

View File

@ -40,8 +40,9 @@ using namespace GUIEngine;
MessageDialog::MessageDialog(const irr::core::stringw &msg,
MessageDialogType type,
IConfirmDialogListener* listener,
bool own_listener, bool from_queue)
: ModalDialog(0.6f, 0.6f)
bool own_listener, bool from_queue,
float width, float height)
: ModalDialog(width, height)
{
m_msg = msg;
m_type = type;

View File

@ -83,7 +83,7 @@ public:
*/
MessageDialog(const irr::core::stringw &msg, MessageDialogType type,
IConfirmDialogListener* listener, bool delete_listener,
bool from_queue=false);
bool from_queue = false, float width = 0.6f, float height = 0.6f);
/**
* Variant of MessageDialog where cancelling is not possible (i.e. just shows a message box with OK)