1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-18 10:45:27 +02:00

IrrlichtMt: Implement double- and triple-click text selection (#16559)

This commit is contained in:
SmallJoker
2025-10-15 00:20:46 +02:00
committed by GitHub
parent 7ca5f3baa0
commit 6ff4a2a3d2
2 changed files with 63 additions and 4 deletions

View File

@@ -185,6 +185,7 @@ protected:
bool Border;
bool Background;
bool OverrideColorEnabled;
bool InhibitLeftMouseUpOnce = false;
s32 MarkBegin;
s32 MarkEnd;
@@ -196,6 +197,7 @@ protected:
u32 BlinkStartTime;
u32 CursorBlinkTime;
core::stringw CursorChar; // IGUIFont::draw needs stringw instead of wchar_t
//! Text insertion position. Is `Text.size()` when appending (rightmost position).
s32 CursorPos;
s32 HScrollPos, VScrollPos; // scroll position in characters
u32 Max;