1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Use our GUIButton in our GUIScrollBar

Note that GUIScrollBar needs an ISimpleTextureSource now due to button styling.
This commit is contained in:
Desour 2023-08-09 01:08:16 +02:00 committed by sfan5
parent 9d62abbe46
commit 91c0439922
8 changed files with 43 additions and 25 deletions

View file

@ -7,6 +7,8 @@
#include "guiEditBox.h"
class ISimpleTextureSource;
class GUIEditBoxWithScrollBar : public GUIEditBox
{
public:
@ -14,7 +16,7 @@ public:
//! constructor
GUIEditBoxWithScrollBar(const wchar_t* text, bool border, IGUIEnvironment* environment,
IGUIElement* parent, s32 id, const core::rect<s32>& rectangle,
bool writable = true, bool has_vscrollbar = true);
ISimpleTextureSource *tsrc, bool writable = true, bool has_vscrollbar = true);
//! destructor
virtual ~GUIEditBoxWithScrollBar() {}
@ -56,6 +58,8 @@ protected:
bool m_bg_color_used;
video::SColor m_bg_color;
ISimpleTextureSource *m_tsrc;
};