Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit 1e9f199

Browse files
authored
Merge pull request #15155 from crowplexus/hit-window-changes
Decimal Hit Windows
2 parents 6b18f3f + 9710a61 commit 1e9f199

File tree

3 files changed

+24
-21
lines changed

3 files changed

+24
-21
lines changed

source/backend/ClientPrefs.hx

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ import states.TitleState;
6969

7070
public var comboOffset:Array<Int> = [0, 0, 0, 0];
7171
public var ratingOffset:Int = 0;
72-
public var sickWindow:Int = 45;
73-
public var goodWindow:Int = 90;
74-
public var badWindow:Int = 135;
75-
public var safeFrames:Float = 10;
72+
public var sickWindow:Float = 45.0;
73+
public var goodWindow:Float = 90.0;
74+
public var badWindow:Float = 135.0;
75+
public var safeFrames:Float = 10.0;
7676
public var guitarHeroSustains:Bool = true;
7777
public var discordRPC:Bool = true;
7878
public var loadingScreen:Bool = true;

source/backend/Rating.hx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Rating
66
{
77
public var name:String = '';
88
public var image:String = '';
9-
public var hitWindow:Null<Int> = 0; //ms
9+
public var hitWindow:Null<Float> = 0.0; //ms
1010
public var ratingMod:Float = 1;
1111
public var score:Int = 350;
1212
public var noteSplash:Bool = true;

source/options/GameplaySettingsSubState.hx

+19-16
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ class GameplaySettingsSubState extends BaseOptionsMenu
4545
BOOL);
4646
addOption(option);
4747

48+
var option:Option = new Option('Sustains as One Note',
49+
"If checked, Hold Notes can't be pressed if you miss,\nand count as a single Hit/Miss.\nUncheck this if you prefer the old Input System.",
50+
'guitarHeroSustains',
51+
BOOL);
52+
addOption(option);
53+
4854
var option:Option = new Option('Hitsound Volume',
4955
'Funny notes does \"Tick!\" when you hit them.',
5056
'hitsoundVolume',
@@ -70,31 +76,34 @@ class GameplaySettingsSubState extends BaseOptionsMenu
7076
var option:Option = new Option('Sick! Hit Window',
7177
'Changes the amount of time you have\nfor hitting a "Sick!" in milliseconds.',
7278
'sickWindow',
73-
INT);
79+
FLOAT);
7480
option.displayFormat = '%vms';
7581
option.scrollSpeed = 15;
76-
option.minValue = 15;
77-
option.maxValue = 45;
82+
option.minValue = 15.0;
83+
option.maxValue = 45.0;
84+
option.changeValue = 0.1;
7885
addOption(option);
7986

8087
var option:Option = new Option('Good Hit Window',
8188
'Changes the amount of time you have\nfor hitting a "Good" in milliseconds.',
8289
'goodWindow',
83-
INT);
90+
FLOAT);
8491
option.displayFormat = '%vms';
8592
option.scrollSpeed = 30;
86-
option.minValue = 15;
87-
option.maxValue = 90;
93+
option.minValue = 15.0;
94+
option.maxValue = 90.0;
95+
option.changeValue = 0.1;
8896
addOption(option);
8997

9098
var option:Option = new Option('Bad Hit Window',
9199
'Changes the amount of time you have\nfor hitting a "Bad" in milliseconds.',
92100
'badWindow',
93-
INT);
101+
FLOAT);
94102
option.displayFormat = '%vms';
95103
option.scrollSpeed = 60;
96-
option.minValue = 15;
97-
option.maxValue = 135;
104+
option.minValue = 15.0;
105+
option.maxValue = 135.0;
106+
option.changeValue = 0.1;
98107
addOption(option);
99108

100109
var option:Option = new Option('Safe Frames',
@@ -107,12 +116,6 @@ class GameplaySettingsSubState extends BaseOptionsMenu
107116
option.changeValue = 0.1;
108117
addOption(option);
109118

110-
var option:Option = new Option('Sustains as One Note',
111-
"If checked, Hold Notes can't be pressed if you miss,\nand count as a single Hit/Miss.\nUncheck this if you prefer the old Input System.",
112-
'guitarHeroSustains',
113-
BOOL);
114-
addOption(option);
115-
116119
super();
117120
}
118121

@@ -121,4 +124,4 @@ class GameplaySettingsSubState extends BaseOptionsMenu
121124

122125
function onChangeAutoPause()
123126
FlxG.autoPause = ClientPrefs.data.autoPause;
124-
}
127+
}

0 commit comments

Comments
 (0)