]> git.lizzy.rs Git - minetest.git/blobdiff - src/guiMessageMenu.cpp
Disable word wrap in vertical texts in main menu
[minetest.git] / src / guiMessageMenu.cpp
index e4e582ab176f35dcfa31041d1a145e04330fc908..ff9316b8979b239332766be6e61993025ea618a4 100644 (file)
@@ -21,6 +21,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "debug.h"
 #include "serialization.h"
 #include <string>
+#include <IGUICheckBox.h>
+#include <IGUIEditBox.h>
+#include <IGUIButton.h>
+#include <IGUIStaticText.h>
+#include <IGUIFont.h>
 
 #include "gettext.h"
 
@@ -80,18 +85,21 @@ void GUIMessageMenu::regenerateGui(v2u32 screensize)
                Add stuff
        */
        {
-               core::rect<s32> rect(0, 0, 400, 50);
+               core::rect<s32> rect(0, 0, 400, 70);
                rect = rect + v2s32(size.X/2-400/2, size.Y/2-50/2-25);
                Environment->addStaticText(m_message_text.c_str(), rect, false,
                                true, this, 256);
        }
+       changeCtype("");
        {
                core::rect<s32> rect(0, 0, 140, 30);
-               rect = rect + v2s32(size.X/2-140/2, size.Y/2-30/2+25);
+               rect = rect + v2s32(size.X/2-140/2, size.Y/2-30/2+45);
                gui::IGUIElement *e = 
-               Environment->addButton(rect, this, 257, chartowchar_t(gettext("Proceed")));
+               Environment->addButton(rect, this, 257,
+                       wgettext("Proceed"));
                Environment->setFocus(e);
        }
+       changeCtype("C");
 }
 
 void GUIMessageMenu::drawMenu()