Added flashing and distractions as variables in modcharts

This commit is contained in:
NeeEoo 2021-05-31 15:08:31 +02:00
parent b2af14e752
commit ee48eab1e3
No known key found for this signature in database
GPG Key ID: 3F30D4573260F7A6
2 changed files with 4 additions and 0 deletions

View File

@ -150,6 +150,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

@ -332,6 +332,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);