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 @@ class GUIEditBoxWithScrollBar : public GUIEditBox
|
||||
//! 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 @@ class GUIEditBoxWithScrollBar : public GUIEditBox
|
||||
|
||||
bool m_bg_color_used;
|
||||
video::SColor m_bg_color;
|
||||
|
||||
ISimpleTextureSource *m_tsrc;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user