UITextBox muxh better
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user