hide cursor when loading
This commit is contained in:
@@ -52,6 +52,7 @@
|
|||||||
(sound.resume))))
|
(sound.resume))))
|
||||||
|
|
||||||
(method :Void resume []
|
(method :Void resume []
|
||||||
|
(set FlxG.mouse.visible true)
|
||||||
(FlxG.inputs.add actionManager)
|
(FlxG.inputs.add actionManager)
|
||||||
(FlxG.state.forEach
|
(FlxG.state.forEach
|
||||||
->:Void child
|
->:Void child
|
||||||
@@ -302,6 +303,7 @@
|
|||||||
(cc))
|
(cc))
|
||||||
|
|
||||||
(method :Void doLoading [:Array<Void->Void> _load :Continuation cc]
|
(method :Void doLoading [:Array<Void->Void> _load :Continuation cc]
|
||||||
|
(set FlxG.mouse.visible false)
|
||||||
(let [doneFuncs []
|
(let [doneFuncs []
|
||||||
bar (new FlxBar 0 0 LEFT_TO_RIGHT (iThird FlxG.width) SimpleWindow.textSize doneFuncs "length" 0 _load.length true)
|
bar (new FlxBar 0 0 LEFT_TO_RIGHT (iThird FlxG.width) SimpleWindow.textSize doneFuncs "length" 0 _load.length true)
|
||||||
loop (new flixel.addons.util.FlxAsyncLoop (+ 1 _load.length)
|
loop (new flixel.addons.util.FlxAsyncLoop (+ 1 _load.length)
|
||||||
@@ -312,6 +314,7 @@
|
|||||||
(doneFuncs.push nextLoad)
|
(doneFuncs.push nextLoad)
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
(set FlxG.mouse.visible true)
|
||||||
(FlxG.state.remove bar)
|
(FlxG.state.remove bar)
|
||||||
(cc)
|
(cc)
|
||||||
}) 1)]
|
}) 1)]
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package hollywoo_flixel;
|
package hollywoo_flixel;
|
||||||
|
|
||||||
|
import flixel.FlxG;
|
||||||
import flixel.FlxState;
|
import flixel.FlxState;
|
||||||
import kiss.Prelude;
|
import kiss.Prelude;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user