hide mouse when recording

This commit is contained in:
2023-09-14 14:06:57 -06:00
parent 3c541ded13
commit d23bb5c963
2 changed files with 10 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
# @install: lix --silent download "gh://github.com/kiss-lang/hollywoo#632872c664863519a211cf4a38f45b46b1802763" into hollywoo/0.0.0/github/632872c664863519a211cf4a38f45b46b1802763
# @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/632872c664863519a211cf4a38f45b46b1802763"
# @install: lix --silent download "gh://github.com/kiss-lang/hollywoo#847f2aea739488f5686e33394e649c6e44e44d8b" into hollywoo/0.0.0/github/847f2aea739488f5686e33394e649c6e44e44d8b
# @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/847f2aea739488f5686e33394e649c6e44e44d8b"
-lib kiss
-lib kiss-tools
-cp ${HAXE_LIBCACHE}/hollywoo/0.0.0/github/632872c664863519a211cf4a38f45b46b1802763/src/
-cp ${HAXE_LIBCACHE}/hollywoo/0.0.0/github/847f2aea739488f5686e33394e649c6e44e44d8b/src/
-D hollywoo=0.0.0

View File

@@ -96,7 +96,8 @@
(sound.resume))))
(method :Void resume []
(set FlxG.mouse.visible true)
(unless movie.promptedRecording
(set FlxG.mouse.visible true))
(FlxG.inputs.add actionManager)
(FlxG.state.forEach
->:Void child
@@ -823,7 +824,7 @@
(method scaleProp [:FlxSprite prop]
(let [propKey (_propKey prop)]
(unless (flxMovie.propScales.exists propKey)
(unless (Std.isOfType prop FlxText)
(unless (StringTools.contains propKey "anonProp")
// Set the initial scale so the thing fits on the screen, at least
(prop.setGraphicSize FlxG.width)
(prop.updateHitbox)
@@ -997,4 +998,7 @@
(FlxG.state.add inputIcon))
(method :Void hideInputIcon []
(FlxG.state.remove inputIcon true))
(FlxG.state.remove inputIcon true))
(method :Void prepareForRecording []
(set FlxG.mouse.visible false))