mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Change Opacity function to take in absolute map time rather than relative time
This commit is contained in:
@ -71,8 +71,11 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Preprocessing
|
||||
setDistances(clockRate);
|
||||
}
|
||||
|
||||
public double Opacity(double ms, bool hidden)
|
||||
public double Opacity(double T, bool hidden)
|
||||
{
|
||||
double ms = (BaseObject.StartTime - T) / clockRate;
|
||||
if (ms < 0)
|
||||
return 0.0;
|
||||
double preemptTime = BaseObject.TimePreempt / clockRate;
|
||||
double fadeInTime = BaseObject.TimeFadeIn / clockRate;
|
||||
|
||||
|
Reference in New Issue
Block a user