mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-03-22 21:06:19 -04:00
inputOffset + audioVisualOffset in Save class
This commit is contained in:
parent
5d0c1521d5
commit
d9a6bead77
3 changed files with 28 additions and 2 deletions
|
@ -127,7 +127,7 @@
|
|||
<haxeflag name="-w" value="-WDeprecated" />
|
||||
|
||||
<!-- Haxe 4.3.0+: Enable pretty syntax errors and stuff. -->
|
||||
<haxedef name="message-reporting" value="pretty" />
|
||||
<haxedef name="message.reporting" value="pretty" />
|
||||
|
||||
<!-- _________________________________ Custom _______________________________ -->
|
||||
<!-- Disable trace() calls in release builds to bump up performance. -->
|
||||
|
|
|
@ -15,7 +15,7 @@ import thx.semver.Version;
|
|||
abstract Save(RawSaveData)
|
||||
{
|
||||
// Version 2.0.1 adds attributes to `optionsChartEditor`, that should return default values if they are null.
|
||||
public static final SAVE_DATA_VERSION:thx.semver.Version = "2.0.1";
|
||||
public static final SAVE_DATA_VERSION:thx.semver.Version = "2.0.2";
|
||||
public static final SAVE_DATA_VERSION_RULE:thx.semver.VersionRule = "2.0.x";
|
||||
|
||||
// We load this version's saves from a new save path, to maintain SOME level of backwards compatibility.
|
||||
|
@ -72,6 +72,8 @@ abstract Save(RawSaveData)
|
|||
zoomCamera: true,
|
||||
debugDisplay: false,
|
||||
autoPause: true,
|
||||
inputOffset: 0,
|
||||
audioVisualOffset: 0,
|
||||
|
||||
controls:
|
||||
{
|
||||
|
@ -828,6 +830,18 @@ typedef SaveDataOptions =
|
|||
*/
|
||||
var autoPause:Bool;
|
||||
|
||||
/**
|
||||
* Offset the users inputs by this many ms.
|
||||
* @default `0`
|
||||
*/
|
||||
var inputOffset:Int;
|
||||
|
||||
/**
|
||||
* Affects the delay between the audio and the visuals during gameplay
|
||||
* @default `0`
|
||||
*/
|
||||
var audioVisualOffset:Int;
|
||||
|
||||
var controls:
|
||||
{
|
||||
var p1:
|
||||
|
|
12
source/funkin/save/changelog.md
Normal file
12
source/funkin/save/changelog.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
|
||||
## [2.0.3] - 2024-01-09
|
||||
### Added
|
||||
- `inputOffset:Float` to `SongDataOptions`
|
||||
- `audioVisualOffset:Float` to `SongDataOptions`
|
Loading…
Reference in a new issue