Add further xmldoc

This commit is contained in:
Dean Herbert 2019-08-07 18:45:56 +09:00
parent 38df49995c
commit ec13143ab3
1 changed files with 7 additions and 1 deletions

View File

@ -20,6 +20,7 @@
using osu.Game.Graphics.Sprites;
using osu.Game.Rulesets.Objects.Drawables;
using osu.Game.Rulesets.Objects.Types;
using osu.Game.Rulesets.UI;
using osuTK;
using osuTK.Graphics;
@ -360,6 +361,10 @@ private void updateState(ValueChangedEvent<ArmedState> state)
}
}
/// <summary>
/// A sprite which is displayed within the playfield, but historically was not considered part of the playfield.
/// Performs scale adjustment to undo the scale applied by <see cref="PlayfieldAdjustmentContainer"/> (osu! ruleset specifically).
/// </summary>
private class NonPlayfieldSprite : Sprite
{
public override Texture Texture
@ -368,7 +373,8 @@ public override Texture Texture
set
{
if (value != null)
value.ScaleAdjust *= 2f;
// stable "magic ratio". see OsuPlayfieldAdjustmentContainer for full explanation.
value.ScaleAdjust *= 1.6f;
base.Texture = value;
}
}