mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
IrrlichtMt: Add scrollbar support to CGUIEditBox
This commit is contained in:
@@ -188,6 +188,7 @@ protected:
|
||||
s32 MarkBegin;
|
||||
s32 MarkEnd;
|
||||
|
||||
video::SColor OverrideBgColor = 0;
|
||||
video::SColor OverrideColor;
|
||||
gui::IGUIFont *OverrideFont, *LastBreakFont;
|
||||
IOSOperator *Operator;
|
||||
@@ -203,7 +204,7 @@ protected:
|
||||
|
||||
bool WordWrap = false,
|
||||
MultiLine = false,
|
||||
AutoScroll = false,
|
||||
AutoScroll = true,
|
||||
PasswordBox = false,
|
||||
IsWritable = true;
|
||||
|
||||
|
@@ -52,6 +52,12 @@ public:
|
||||
//! sets the current position of the scrollbar
|
||||
virtual void setPos(s32 pos) = 0;
|
||||
|
||||
//! Smooth scroll: target position
|
||||
virtual s32 getTargetPos() const { return getPos(); }
|
||||
|
||||
//! Smooth scroll: move to position
|
||||
virtual void setPosInterpolated(s32 pos) { setPos(pos); }
|
||||
|
||||
//! For automatic thumb scaling
|
||||
/** Sets the full height (e.g. content to scroll), in pixels.
|
||||
Set to 0 to disable (default). */
|
||||
|
Reference in New Issue
Block a user