We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52d2ce2 commit 39f7dcaCopy full SHA for 39f7dca
flixel/system/debug/watch/EditableTextField.hx
@@ -88,6 +88,8 @@ class EditableTextField extends TextField implements IFlxDestroyable
88
switch (expectedType)
89
{
90
case TInt | TFloat: cycleNumericValue(modifier);
91
+ case TBool if (text == "true"): text = "false";
92
+ case TBool: text = "true";
93
case _: setSelection(selection, selection);
94
}
95
@@ -115,9 +117,9 @@ class EditableTextField extends TextField implements IFlxDestroyable
115
117
#if neko
116
118
case TInt: Std.parseInt(text);
119
case TFloat: Std.parseFloat(text);
120
+ #end
121
case TBool if (text == "true"): true;
122
case TBool if (text == "false"): false;
- #end
123
case _: text;
124
125
0 commit comments