Skip to content

Commit a92777a

Browse files
authored
Deprecate FlxInputText and fix CI in #3593
1 parent e1ed2f3 commit a92777a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

flixel/addons/ui/FlxInputText.hx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import openfl.geom.Rectangle;
2828
* License: Creative Commons Attribution 3.0 United States
2929
* @link http://creativecommons.org/licenses/by/3.0/us/
3030
*/
31+
@:deprecated("flixel.addons.ui.FlxInputText is deprecated, use flixel.text.FlxInputText, instead")
3132
class FlxInputText extends FlxText
3233
{
3334
public static inline var NO_FILTER:Int = 0;
@@ -770,6 +771,8 @@ class FlxInputText extends FlxText
770771
caret.pixels.fillRect(r, caretC); // draw caret
771772
// we need to offset caret's drawing position since the caret is now larger than normal
772773
caret.offset.x = caret.offset.y = absSize;
774+
default:
775+
// Fix for https://github.com/HaxeFlixel/flixel/pull/3593
773776
}
774777
// Update width/height so caret's dimensions match its pixels
775778
caret.width = cw;

0 commit comments

Comments
 (0)