UITextBox muxh better

This commit is contained in:
lunarcleint
2023-07-19 21:17:45 -07:00
parent d359e5aa49
commit 4db9cf7cee
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -104,6 +104,8 @@ class UIState extends MusicBeatState {
if (FlxG.mouse.justReleased)
currentFocus = (hoveredSprite is IUIFocusable) ? (cast hoveredSprite) : null;
FlxG.sound.keysAllowed = currentFocus != null ? !(currentFocus is UITextBox) : true;
if (hoveredSprite != null) {
Mouse.cursor = hoveredSprite.cursor;
hoveredSprite = null;
+2
View File
@@ -30,6 +30,8 @@ class UITextBox extends UISliceSprite implements IUIFocusable {
members.push(caretSpr);
this.multiline = multiline;
position = text.length;
cursor = IBEAM;
}
var cacheRect:Rectangle = new Rectangle();