]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/gui/guiConfirmRegistration.cpp
Add more visual feedback for button states (#8916)
[dragonfireclient.git] / src / gui / guiConfirmRegistration.cpp
index 6fe2a4fc4cdf4793935ec472dc55d42f5b97155e..49b81b01d55da391c49618c7f931ea17bb460b8c 100644 (file)
@@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include "guiConfirmRegistration.h"
 #include "client/client.h"
+#include "guiButton.h"
 #include <IGUICheckBox.h>
 #include <IGUIButton.h>
 #include <IGUIStaticText.h>
@@ -128,14 +129,14 @@ void GUIConfirmRegistration::regenerateGui(v2u32 screensize)
                core::rect<s32> rect2(0, 0, 230 * s, 35 * s);
                rect2 = rect2 + v2s32(size.X / 2 - 220 * s, ypos);
                text = wgettext("Register and Join");
-               Environment->addButton(rect2, this, ID_confirm, text);
+               GUIButton::addButton(Environment, rect2, this, ID_confirm, text);
                delete[] text;
        }
        {
                core::rect<s32> rect2(0, 0, 120 * s, 35 * s);
                rect2 = rect2 + v2s32(size.X / 2 + 70 * s, ypos);
                text = wgettext("Cancel");
-               Environment->addButton(rect2, this, ID_cancel, text);
+               GUIButton::addButton(Environment, rect2, this, ID_cancel, text);
                delete[] text;
        }
        {