diff options
author | rubenwardy <rw@rubenwardy.com> | 2019-03-15 18:39:23 +0000 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-08-03 19:36:30 +0100 |
commit | d1a1c5cbf055e7eacbc4aeaa53174749d4c64d87 (patch) | |
tree | 3cbc94b9dd827f01b33575acd0faa58ea7f44dd3 /src/gui/guiFormSpecMenu.cpp | |
parent | 41ad0f4f202b47daab0841a56bf27c3990670344 (diff) | |
download | minetest-d1a1c5cbf055e7eacbc4aeaa53174749d4c64d87.tar.gz minetest-d1a1c5cbf055e7eacbc4aeaa53174749d4c64d87.tar.bz2 minetest-d1a1c5cbf055e7eacbc4aeaa53174749d4c64d87.zip |
Add custom colorable GUIButton implementation
Diffstat (limited to 'src/gui/guiFormSpecMenu.cpp')
-rw-r--r-- | src/gui/guiFormSpecMenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index 4d3409f3b..382fbbd54 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <iterator> #include <sstream> #include <limits> +#include "guiButton.h" #include "guiFormSpecMenu.h" #include "guiTable.h" #include "constants.h" @@ -698,9 +699,8 @@ void GUIFormSpecMenu::parseButton(parserData* data, const std::string &element, spec.ftype = f_Button; if(type == "button_exit") spec.is_exit = true; - gui::IGUIButton* e = Environment->addButton(rect, this, spec.fid, - spec.flabel.c_str()); + GUIButton *e = GUIButton::addButton(Environment, rect, this, spec.fid, spec.flabel.c_str()); if (spec.fname == data->focused_fieldname) { Environment->setFocus(e); } |