mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 08:33:55 +09:00
Submodule osu-framework updated: ed33cc4899...4631a91f00
@ -75,7 +75,9 @@
|
|||||||
<Name>osu.Game.Resources</Name>
|
<Name>osu.Game.Resources</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup />
|
<ItemGroup>
|
||||||
|
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
|
||||||
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Beatmaps\IO\OszArchiveReaderTest.cs" />
|
<Compile Include="Beatmaps\IO\OszArchiveReaderTest.cs" />
|
||||||
<Compile Include="Beatmaps\IO\ImportBeatmapTest.cs" />
|
<Compile Include="Beatmaps\IO\ImportBeatmapTest.cs" />
|
||||||
@ -86,4 +88,4 @@
|
|||||||
<EmbeddedResource Include="Resources\Soleily - Renatus %28Gamu%29 [Insane].osu" />
|
<EmbeddedResource Include="Resources\Soleily - Renatus %28Gamu%29 [Insane].osu" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
@ -52,7 +52,7 @@ namespace osu.Game.Beatmaps.Objects
|
|||||||
if (AllowHit?.Invoke(this) == false)
|
if (AllowHit?.Invoke(this) == false)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
HitTime = Time;
|
HitTime = Time.Current;
|
||||||
|
|
||||||
State = ArmedState.Armed;
|
State = ArmedState.Armed;
|
||||||
return true;
|
return true;
|
||||||
@ -70,7 +70,7 @@ namespace osu.Game.Beatmaps.Objects
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
if (Time >= HitObject.EndTime && !counted)
|
if (Time.Current >= HitObject.EndTime && !counted)
|
||||||
{
|
{
|
||||||
counted = true;
|
counted = true;
|
||||||
if (state == ArmedState.Armed)
|
if (state == ArmedState.Armed)
|
||||||
|
@ -96,7 +96,7 @@ namespace osu.Game.Beatmaps.Objects.Osu.Drawable
|
|||||||
approachCircle.Transforms.Add(new TransformScale { StartTime = t - 1000, EndTime = t, StartValue = new Vector2(2f), EndValue = new Vector2(0.6f) });
|
approachCircle.Transforms.Add(new TransformScale { StartTime = t - 1000, EndTime = t, StartValue = new Vector2(2f), EndValue = new Vector2(0.6f) });
|
||||||
|
|
||||||
//set transform delay to t==hitTime
|
//set transform delay to t==hitTime
|
||||||
Delay(t - Time, true);
|
Delay(t - Time.Current, true);
|
||||||
|
|
||||||
approachCircle.FadeOut();
|
approachCircle.FadeOut();
|
||||||
glow.FadeOut(400);
|
glow.FadeOut(400);
|
||||||
@ -331,7 +331,7 @@ namespace osu.Game.Beatmaps.Objects.Osu.Drawable
|
|||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
foreach (Framework.Graphics.Drawable d in Children)
|
foreach (Framework.Graphics.Drawable d in Children)
|
||||||
d.Position -= new Vector2(0, (float)(d.Scale.X * (Clock.ElapsedFrameTime / 2880)));
|
d.Position -= new Vector2(0, (float)(d.Scale.X * (Time.Elapsed / 2880)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ namespace osu.Game.GameModes.Menu
|
|||||||
icon.ScaleTo(1, 500, EasingTypes.OutElasticHalf);
|
icon.ScaleTo(1, 500, EasingTypes.OutElasticHalf);
|
||||||
|
|
||||||
double offset = 0; //(1 - Game.Audio.SyncBeatProgress) * duration;
|
double offset = 0; //(1 - Game.Audio.SyncBeatProgress) * duration;
|
||||||
double startTime = Time + offset;
|
double startTime = Time.Current + offset;
|
||||||
|
|
||||||
icon.RotateTo(10, offset, EasingTypes.InOutSine);
|
icon.RotateTo(10, offset, EasingTypes.InOutSine);
|
||||||
icon.ScaleTo(new Vector2(1, 0.9f), offset, EasingTypes.Out);
|
icon.ScaleTo(new Vector2(1, 0.9f), offset, EasingTypes.Out);
|
||||||
|
@ -205,8 +205,13 @@ namespace osu.Game.GameModes.Play
|
|||||||
|
|
||||||
private void updateCount(ulong value, bool rolling = false)
|
private void updateCount(ulong value, bool rolling = false)
|
||||||
{
|
{
|
||||||
ulong prevCount = count;
|
|
||||||
count = value;
|
count = value;
|
||||||
|
|
||||||
|
if (!IsLoaded)
|
||||||
|
return;
|
||||||
|
|
||||||
|
ulong prevCount = count;
|
||||||
|
|
||||||
if (!rolling)
|
if (!rolling)
|
||||||
{
|
{
|
||||||
Flush(false, typeof(TransformComboRoll));
|
Flush(false, typeof(TransformComboRoll));
|
||||||
@ -229,17 +234,14 @@ namespace osu.Game.GameModes.Play
|
|||||||
{
|
{
|
||||||
Flush(false, typeof(TransformComboRoll));
|
Flush(false, typeof(TransformComboRoll));
|
||||||
|
|
||||||
if (Clock == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (RollingDuration < 1)
|
if (RollingDuration < 1)
|
||||||
{
|
{
|
||||||
DisplayedCount = Count;
|
DisplayedCount = Count;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
transform.StartTime = Time;
|
transform.StartTime = Time.Current;
|
||||||
transform.EndTime = Time + getProportionalDuration(currentValue, newValue);
|
transform.EndTime = Time.Current + getProportionalDuration(currentValue, newValue);
|
||||||
transform.StartValue = currentValue;
|
transform.StartValue = currentValue;
|
||||||
transform.EndValue = newValue;
|
transform.EndValue = newValue;
|
||||||
transform.Easing = RollingEasing;
|
transform.Easing = RollingEasing;
|
||||||
@ -253,7 +255,7 @@ namespace osu.Game.GameModes.Play
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
double time = CurrentTime ?? 0;
|
double time = Time?.Current ?? 0;
|
||||||
if (time < StartTime) return StartValue;
|
if (time < StartTime) return StartValue;
|
||||||
if (time >= EndTime) return EndValue;
|
if (time >= EndTime) return EndValue;
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ namespace osu.Game.GameModes.Play
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
double time = CurrentTime ?? 0;
|
double time = Time?.Current ?? 0;
|
||||||
if (time < StartTime) return StartValue;
|
if (time < StartTime) return StartValue;
|
||||||
if (time >= EndTime) return EndValue;
|
if (time >= EndTime) return EndValue;
|
||||||
|
|
||||||
|
@ -31,9 +31,9 @@ namespace osu.Game.GameModes.Play.Mania
|
|||||||
protected override float PopOutInitialAlpha => 1.0f;
|
protected override float PopOutInitialAlpha => 1.0f;
|
||||||
protected override double PopOutDuration => 300;
|
protected override double PopOutDuration => 300;
|
||||||
|
|
||||||
protected override void Load(BaseGame game)
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
base.Load(game);
|
base.LoadComplete();
|
||||||
|
|
||||||
PopOutSpriteText.Anchor = Anchor.BottomCentre;
|
PopOutSpriteText.Anchor = Anchor.BottomCentre;
|
||||||
PopOutSpriteText.Origin = Anchor.Centre;
|
PopOutSpriteText.Origin = Anchor.Centre;
|
||||||
|
@ -123,8 +123,6 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
base.Load(game);
|
base.Load(game);
|
||||||
|
|
||||||
Flush(false, TransformType);
|
|
||||||
|
|
||||||
DisplayedCount = Count;
|
DisplayedCount = Count;
|
||||||
|
|
||||||
DisplayedCountSpriteText.Text = FormatCount(count);
|
DisplayedCountSpriteText.Text = FormatCount(count);
|
||||||
@ -132,6 +130,13 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
DisplayedCountSpriteText.Origin = this.Origin;
|
DisplayedCountSpriteText.Origin = this.Origin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
|
||||||
|
Flush(false, TransformType);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sets count value, bypassing rollover animation.
|
/// Sets count value, bypassing rollover animation.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -211,9 +216,6 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
Flush(false, type);
|
Flush(false, type);
|
||||||
|
|
||||||
if (Clock == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (RollingDuration < 1)
|
if (RollingDuration < 1)
|
||||||
{
|
{
|
||||||
DisplayedCount = Count;
|
DisplayedCount = Count;
|
||||||
@ -225,8 +227,8 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
? GetProportionalDuration(currentValue, newValue)
|
? GetProportionalDuration(currentValue, newValue)
|
||||||
: RollingDuration;
|
: RollingDuration;
|
||||||
|
|
||||||
transform.StartTime = Time;
|
transform.StartTime = Time.Current;
|
||||||
transform.EndTime = Time + rollingTotalDuration;
|
transform.EndTime = Time.Current + rollingTotalDuration;
|
||||||
transform.StartValue = currentValue;
|
transform.StartValue = currentValue;
|
||||||
transform.EndValue = newValue;
|
transform.EndValue = newValue;
|
||||||
transform.Easing = RollingEasing;
|
transform.Easing = RollingEasing;
|
||||||
|
@ -60,7 +60,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
double time = CurrentTime ?? 0;
|
double time = Time?.Current ?? 0;
|
||||||
if (time < StartTime) return StartValue;
|
if (time < StartTime) return StartValue;
|
||||||
if (time >= EndTime) return EndValue;
|
if (time >= EndTime) return EndValue;
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
double elapsedTime = Time - transformStartTime;
|
double elapsedTime = Time.Current - transformStartTime;
|
||||||
double expectedElapsedTime = Math.Abs(prevCount - count) * animationDelay;
|
double expectedElapsedTime = Math.Abs(prevCount - count) * animationDelay;
|
||||||
if (elapsedTime >= expectedElapsedTime)
|
if (elapsedTime >= expectedElapsedTime)
|
||||||
return count;
|
return count;
|
||||||
@ -70,14 +70,16 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
prevCount = VisibleValue;
|
|
||||||
count = value;
|
|
||||||
if (IsLoaded)
|
if (IsLoaded)
|
||||||
{
|
{
|
||||||
transformCount(prevCount, count);
|
prevCount = VisibleValue;
|
||||||
|
transformCount(prevCount, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
count = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -149,7 +151,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
public void StopAnimation()
|
public void StopAnimation()
|
||||||
{
|
{
|
||||||
prevCount = count;
|
prevCount = count;
|
||||||
transformStartTime = Time;
|
transformStartTime = Time.Current;
|
||||||
|
|
||||||
for (int i = 0; i < MaxStars; i++)
|
for (int i = 0; i < MaxStars; i++)
|
||||||
transformStarQuick(i, count);
|
transformStarQuick(i, count);
|
||||||
@ -188,7 +190,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
transformStar(i, newValue);
|
transformStar(i, newValue);
|
||||||
stars[i].DelayReset();
|
stars[i].DelayReset();
|
||||||
}
|
}
|
||||||
transformStartTime = Time;
|
transformStartTime = Time.Current;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,21 +67,12 @@ namespace osu.Game.Graphics.UserInterface.Volume
|
|||||||
base.Dispose(isDisposing);
|
base.Dispose(isDisposing);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnWheelDown(InputState state)
|
protected override bool OnWheel(InputState state)
|
||||||
{
|
{
|
||||||
if (!IsVisible)
|
if (!IsVisible)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
volumeMeterMaster.TriggerWheelDown(state);
|
volumeMeterMaster.TriggerWheel(state);
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override bool OnWheelUp(InputState state)
|
|
||||||
{
|
|
||||||
if (!IsVisible)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
volumeMeterMaster.TriggerWheelUp(state);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,13 +14,7 @@ namespace osu.Game.Graphics.UserInterface.Volume
|
|||||||
{
|
{
|
||||||
public Action ActivateRequested;
|
public Action ActivateRequested;
|
||||||
|
|
||||||
protected override bool OnWheelDown(InputState state)
|
protected override bool OnWheel(InputState state)
|
||||||
{
|
|
||||||
ActivateRequested?.Invoke();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override bool OnWheelUp(InputState state)
|
|
||||||
{
|
{
|
||||||
ActivateRequested?.Invoke();
|
ActivateRequested?.Invoke();
|
||||||
return true;
|
return true;
|
||||||
|
@ -57,9 +57,9 @@ namespace osu.Game.Graphics.UserInterface.Volume
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Load(BaseGame game)
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
base.Load(game);
|
base.LoadComplete();
|
||||||
updateFill();
|
updateFill();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,15 +73,9 @@ namespace osu.Game.Graphics.UserInterface.Volume
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnWheelUp(InputState state)
|
protected override bool OnWheel(InputState state)
|
||||||
{
|
{
|
||||||
Volume += 0.05f;
|
Volume += 0.05f * state.Mouse.WheelDiff;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override bool OnWheelDown(InputState state)
|
|
||||||
{
|
|
||||||
Volume -= 0.05f;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,11 +101,13 @@ namespace osu.Game.Overlays
|
|||||||
protected override void PopIn()
|
protected override void PopIn()
|
||||||
{
|
{
|
||||||
MoveToX(0, 300, EasingTypes.Out);
|
MoveToX(0, 300, EasingTypes.Out);
|
||||||
|
FadeTo(1, 300);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void PopOut()
|
protected override void PopOut()
|
||||||
{
|
{
|
||||||
MoveToX(-width, 300, EasingTypes.Out);
|
MoveToX(-width, 300, EasingTypes.Out);
|
||||||
|
FadeTo(0, 300);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user