mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-20 11:35:21 +02:00
Use our GUIButton in our GUIScrollBar
Note that GUIScrollBar needs an ISimpleTextureSource now due to button styling.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user