diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2020-01-22 19:09:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-22 19:09:11 +0100 |
commit | 1892ff3c0db23ccdf7b0f6dc83cb1bdf4579b4ec (patch) | |
tree | c49c16a69e9c555141960b4bca22a88df9b17a61 /src/gui/guiButton.cpp | |
parent | fab3f5f7c8ce0cbfc27e509f065e3f4cfe28c514 (diff) | |
download | hax-minetest-server-1892ff3c0db23ccdf7b0f6dc83cb1bdf4579b4ec.tar.gz hax-minetest-server-1892ff3c0db23ccdf7b0f6dc83cb1bdf4579b4ec.zip |
StaticText/EnrichedString: Styling support (#9187)
* StaticText/EnrichedString: Styling support
* Fix tooltip fg/bgcolor
* Fix default color for substr(), add unittests
Diffstat (limited to '')
-rw-r--r-- | src/gui/guiButton.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/guiButton.cpp b/src/gui/guiButton.cpp index ed79999cf..f7a0af2d9 100644 --- a/src/gui/guiButton.cpp +++ b/src/gui/guiButton.cpp @@ -53,7 +53,6 @@ GUIButton::GUIButton(IGUIEnvironment* environment, IGUIElement* parent, core::clamp<u32>(Colors[i].getGreen() * COLOR_PRESSED_MOD, 0, 255),
core::clamp<u32>(Colors[i].getBlue() * COLOR_PRESSED_MOD, 0, 255));
}
-
StaticText = gui::StaticText::add(Environment, Text.c_str(), core::rect<s32>(0,0,rectangle.getWidth(),rectangle.getHeight()), false, false, this, id);
StaticText->setTextAlignment(EGUIA_CENTER, EGUIA_CENTER);
// END PATCH
|