-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sprites in blinds mod & gameplay improvements
There are now skinnable actual blinds (shoji screen panels) The black overlay is still behind them to avoid cheating with skins The blinds don't open linearly anymore, they are health squared now When easy mod is on, there is always a little gap open
- Loading branch information
1 parent
040a44d
commit 5f3c054
Showing
4 changed files
with
101 additions
and
5 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
26 changes: 26 additions & 0 deletions
26
osu.Game.Rulesets.Osu/Objects/Drawables/Pieces/ModBlindsPanelSprite.cs
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. | ||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE | ||
|
||
using osu.Framework.Graphics; | ||
using osu.Framework.Graphics.Sprites; | ||
|
||
namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces | ||
{ | ||
public class ModBlindsPanelSprite : Sprite | ||
{ | ||
public ModBlindsPanelSprite() | ||
{ | ||
RelativeSizeAxes = Axes.None; | ||
Anchor = Anchor.TopLeft; | ||
} | ||
|
||
protected override void Update() | ||
{ | ||
Height = Parent?.DrawHeight ?? 0; | ||
if (Height == 0 || Texture is null) | ||
Width = 0; | ||
else | ||
Width = Texture.Width / (float)Texture.Height * Height; | ||
} | ||
} | ||
} |
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