1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00

IrrlichtMt: import scrollbar changes

This commit is contained in:
SmallJoker 2025-09-09 20:04:40 +02:00 committed by SmallJoker
parent 70fbef112c
commit ecabcb5c58
4 changed files with 64 additions and 0 deletions

View file

@ -10,6 +10,9 @@
namespace gui
{
class IGUIScrollBar;
class CGUIEditBox : public IGUIEditBox
{
public:
@ -157,6 +160,8 @@ protected:
void sendGuiEvent(EGUI_EVENT_TYPE type);
//! set text markers
void setTextMarkers(s32 begin, s32 end);
//! update the vertical scrollBar (visibilty & position)
void updateVScrollBar();
bool processKey(const SEvent &event);
//! KEY_LEFT / KEY_RIGHT inputs
@ -193,6 +198,8 @@ protected:
s32 CursorPos;
s32 HScrollPos, VScrollPos; // scroll position in characters
u32 Max;
u32 VScrollBarWidth = 0;
IGUIScrollBar *VScrollBar = nullptr;
bool WordWrap = false,
MultiLine = false,