Bring back FullControl, but size-aware
This commit is contained in:
@@ -111,6 +111,11 @@
|
||||
(_canvas.makeGraphic FlxG.width FlxG.height FlxColor.BLACK))
|
||||
_canvas)
|
||||
|
||||
(method :StagePosition FullControl [:FlxSprite s :Int layer :RelativePosition rpos]
|
||||
(assert (<= 0 layer FlxDirector.LAYER_MAX) "Layer $layer is out of range 0-$FlxDirector.LAYER_MAX")
|
||||
(let [[x y] (SpriteTools.positionOn s (canvas) rpos)]
|
||||
(new StagePosition x y layer)))
|
||||
|
||||
(method namePlates [:Array<String> names :Dynamic delayLength :Bool delayWhileShown :Void->Void cc]
|
||||
(let [plates
|
||||
(for name names
|
||||
|
Reference in New Issue
Block a user