1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-24 13:25: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:
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

@@ -14,6 +14,8 @@ the arrow buttons where there is insufficient space.
#include "irrlichttypes_extrabloated.h"
class ISimpleTextureSource;
using namespace irr;
using namespace gui;
@@ -21,7 +23,8 @@ class GUIScrollBar : public IGUIElement
{
public:
GUIScrollBar(IGUIEnvironment *environment, IGUIElement *parent, s32 id,
core::rect<s32> rectangle, bool horizontal, bool auto_scale);
core::rect<s32> rectangle, bool horizontal, bool auto_scale,
ISimpleTextureSource *tsrc);
enum ArrowVisibility
{
@@ -74,4 +77,6 @@ private:
core::rect<s32> slider_rect;
video::SColor current_icon_color;
ISimpleTextureSource *m_tsrc;
};