SimpleWindow method to disable control
This commit is contained in:
@@ -574,6 +574,12 @@
|
||||
ftext))
|
||||
(redefineWithObjectArgs makeText &public makeTextV2 [text])
|
||||
|
||||
(method disableControl [:FlxSprite control]
|
||||
(_actions.remove control)
|
||||
(_altActions.remove control)
|
||||
(_onDeselectEvents.remove control)
|
||||
(_onSelectEvents.remove control))
|
||||
|
||||
(method makeWrappedText [:String _text &opt :FlxColor color :Bool skipScrollingCheck]
|
||||
(unless skipScrollingCheck (assert _useScrolling))
|
||||
(let [text (new FlxText nextControlX nextControlY 0 _text textSize)
|
||||
|
||||
Reference in New Issue
Block a user