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
|
# @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/02f4ec5e68758f409a084d57173975518475cbc1"
|
# @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/128bb88c9c8a62421cadd459d54c6981ad7f51b2"
|
||||||
-lib kiss
|
-lib kiss
|
||||||
-lib kiss-tools
|
-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
|
-D hollywoo=0.0.0
|
||||||
@@ -521,8 +521,8 @@
|
|||||||
|
|
||||||
(prop &mut :Bool autoPlaceProps true)
|
(prop &mut :Bool autoPlaceProps true)
|
||||||
|
|
||||||
(method :Void showProp [:FlxSprite prop :StagePosition position :Appearance appearance :Continuation cc]
|
(method :Void showProp [:FlxSprite prop :StagePosition position :Appearance appearance :FlxCamera camera :Continuation cc]
|
||||||
(set prop.cameras [flxMovie.screenCamera])
|
(set prop.cameras [camera])
|
||||||
(let [width (min (max prop.width PROP_MIN_WIDTH) PROP_MAX_WIDTH)]
|
(let [width (min (max prop.width PROP_MIN_WIDTH) PROP_MAX_WIDTH)]
|
||||||
(whenLet [FirstAppearance appearance]
|
(whenLet [FirstAppearance appearance]
|
||||||
(prop.setGraphicSize width)
|
(prop.setGraphicSize width)
|
||||||
@@ -554,7 +554,7 @@
|
|||||||
(.add (nth spriteLayers ~(+ 1 (Std.int layerNum))) prop)))
|
(.add (nth spriteLayers ~(+ 1 (Std.int layerNum))) prop)))
|
||||||
(cc))
|
(cc))
|
||||||
|
|
||||||
(method :Void hideProp [:FlxSprite prop cc]
|
(method :Void hideProp [:FlxSprite prop :FlxCamera camera cc]
|
||||||
(FlxG.state.remove prop true)
|
(FlxG.state.remove prop true)
|
||||||
(doFor layer spriteLayers
|
(doFor layer spriteLayers
|
||||||
(layer.remove prop true))
|
(layer.remove prop true))
|
||||||
|
|||||||
Reference in New Issue
Block a user