-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into masking-ssbo
- Loading branch information
Showing
203 changed files
with
3,302 additions
and
1,610 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="sh.ppy.osulazer" android:installLocation="auto"> | ||
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="31" /> | ||
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="33" /> | ||
<application android:allowBackup="true" android:supportsRtl="true" android:label="osu!" android:icon="@drawable/lazer" /> | ||
<!-- for editor usage --> | ||
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" /> | ||
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" /> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- using a different name because package name cannot contain 'catch' --> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="osu.Game.Rulesets.Catch_Tests.Android" android:installLocation="auto"> | ||
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="31" /> | ||
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="33" /> | ||
<application android:allowBackup="true" android:supportsRtl="true" android:label="osu!catch Test" /> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="osu.Game.Rulesets.Mania.Tests.Android" android:installLocation="auto"> | ||
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="31" /> | ||
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="33" /> | ||
<application android:allowBackup="true" android:supportsRtl="true" android:label="osu!mania Test" /> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,5 +33,6 @@ public enum ManiaSkinComponents | |
HitExplosion, | ||
StageBackground, | ||
StageForeground, | ||
BarLine | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using osu.Framework.Bindables; | ||
using osu.Game.Rulesets.Judgements; | ||
using osu.Game.Rulesets.Objects; | ||
|
||
namespace osu.Game.Rulesets.Mania.Objects | ||
{ | ||
public class BarLine : ManiaHitObject, IBarLine | ||
{ | ||
public bool Major { get; set; } | ||
private HitObjectProperty<bool> major; | ||
|
||
public Bindable<bool> MajorBindable => major.Bindable; | ||
|
||
public bool Major | ||
{ | ||
get => major.Value; | ||
set => major.Value = value; | ||
} | ||
|
||
public override Judgement CreateJudgement() => new IgnoreJudgement(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using osu.Framework.Allocation; | ||
using osu.Framework.Bindables; | ||
using osu.Framework.Graphics; | ||
using osu.Framework.Graphics.Shapes; | ||
using osuTK; | ||
using osu.Game.Rulesets.Mania.Skinning.Default; | ||
using osu.Game.Skinning; | ||
|
||
namespace osu.Game.Rulesets.Mania.Objects.Drawables | ||
{ | ||
|
@@ -13,45 +15,41 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables | |
/// </summary> | ||
public partial class DrawableBarLine : DrawableManiaHitObject<BarLine> | ||
{ | ||
public readonly Bindable<bool> Major = new Bindable<bool>(); | ||
|
||
public DrawableBarLine() | ||
: this(null!) | ||
{ | ||
} | ||
|
||
public DrawableBarLine(BarLine barLine) | ||
: base(barLine) | ||
{ | ||
RelativeSizeAxes = Axes.X; | ||
Height = barLine.Major ? 1.7f : 1.2f; | ||
} | ||
|
||
AddInternal(new Box | ||
[BackgroundDependencyLoader] | ||
private void load() | ||
{ | ||
AddInternal(new SkinnableDrawable(new ManiaSkinComponentLookup(ManiaSkinComponents.BarLine), _ => new DefaultBarLine()) | ||
{ | ||
Name = "Bar line", | ||
Anchor = Anchor.BottomCentre, | ||
Origin = Anchor.BottomCentre, | ||
RelativeSizeAxes = Axes.Both, | ||
Alpha = barLine.Major ? 0.5f : 0.2f | ||
Anchor = Anchor.Centre, | ||
Origin = Anchor.Centre, | ||
}); | ||
|
||
if (barLine.Major) | ||
{ | ||
Vector2 size = new Vector2(22, 6); | ||
const float line_offset = 4; | ||
|
||
AddInternal(new Circle | ||
{ | ||
Name = "Left line", | ||
Anchor = Anchor.CentreLeft, | ||
Origin = Anchor.CentreRight, | ||
|
||
Size = size, | ||
X = -line_offset, | ||
}); | ||
|
||
AddInternal(new Circle | ||
{ | ||
Name = "Right line", | ||
Anchor = Anchor.CentreRight, | ||
Origin = Anchor.CentreLeft, | ||
Size = size, | ||
X = line_offset, | ||
}); | ||
} | ||
Major.BindValueChanged(major => Height = major.NewValue ? 1.7f : 1.2f, true); | ||
} | ||
|
||
protected override void OnApply() | ||
{ | ||
base.OnApply(); | ||
Major.BindTo(HitObject.MajorBindable); | ||
} | ||
|
||
protected override void OnFree() | ||
{ | ||
base.OnFree(); | ||
Major.UnbindFrom(HitObject.MajorBindable); | ||
} | ||
|
||
protected override void UpdateStartTimeStateTransforms() => this.FadeOut(150); | ||
|
Oops, something went wrong.