Merge pull request #647 from NeeEoo/flashing-distraction-lua

Added flashing and distractions as variables in modcharts
This commit is contained in:
Kade M 2021-06-15 11:22:41 -07:00 committed by GitHub
commit c1bab29234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -174,6 +174,8 @@ Kade Engine provides a list of global variables to be used in the lua scripting
| scrollSpeed | Int | The current scrollspeed |
| mustHit | Bool | If the current section is a must hit section |
| strumLineY | Float | The current Strum Line Y Position |
| distractions | Bool | Whether the player has distractions enabled |
| flashing | Bool | Whether the player has flashing lights enabled |
## Functions

View File

@ -382,6 +382,8 @@ class ModchartState
setVar("scrollspeed", FlxG.save.data.scrollSpeed != 1 ? FlxG.save.data.scrollSpeed : PlayState.SONG.speed);
setVar("fpsCap", FlxG.save.data.fpsCap);
setVar("downscroll", FlxG.save.data.downscroll);
setVar("flashing", FlxG.save.data.flashing);
setVar("distractions", FlxG.save.data.distractions);
setVar("curStep", 0);
setVar("curBeat", 0);