props use scene camera
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# @install: lix --silent download "gh://github.com/kiss-lang/hollywoo#02f4ec5e68758f409a084d57173975518475cbc1" into hollywoo/0.0.0/github/02f4ec5e68758f409a084d57173975518475cbc1
|
||||
# @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/02f4ec5e68758f409a084d57173975518475cbc1"
|
||||
# @install: lix --silent download "gh://github.com/kiss-lang/hollywoo#128bb88c9c8a62421cadd459d54c6981ad7f51b2" into hollywoo/0.0.0/github/128bb88c9c8a62421cadd459d54c6981ad7f51b2
|
||||
# @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/128bb88c9c8a62421cadd459d54c6981ad7f51b2"
|
||||
-lib kiss
|
||||
-lib kiss-tools
|
||||
-cp ${HAXE_LIBCACHE}/hollywoo/0.0.0/github/02f4ec5e68758f409a084d57173975518475cbc1/src/
|
||||
-cp ${HAXE_LIBCACHE}/hollywoo/0.0.0/github/128bb88c9c8a62421cadd459d54c6981ad7f51b2/src/
|
||||
-D hollywoo=0.0.0
|
@@ -521,8 +521,8 @@
|
||||
|
||||
(prop &mut :Bool autoPlaceProps true)
|
||||
|
||||
(method :Void showProp [:FlxSprite prop :StagePosition position :Appearance appearance :Continuation cc]
|
||||
(set prop.cameras [flxMovie.screenCamera])
|
||||
(method :Void showProp [:FlxSprite prop :StagePosition position :Appearance appearance :FlxCamera camera :Continuation cc]
|
||||
(set prop.cameras [camera])
|
||||
(let [width (min (max prop.width PROP_MIN_WIDTH) PROP_MAX_WIDTH)]
|
||||
(whenLet [FirstAppearance appearance]
|
||||
(prop.setGraphicSize width)
|
||||
@@ -554,7 +554,7 @@
|
||||
(.add (nth spriteLayers ~(+ 1 (Std.int layerNum))) prop)))
|
||||
(cc))
|
||||
|
||||
(method :Void hideProp [:FlxSprite prop cc]
|
||||
(method :Void hideProp [:FlxSprite prop :FlxCamera camera cc]
|
||||
(FlxG.state.remove prop true)
|
||||
(doFor layer spriteLayers
|
||||
(layer.remove prop true))
|
||||
|
Reference in New Issue
Block a user