From 123c8f3489e34939f514a7b519d30fb7e75c3cad Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 8 Mar 2017 11:54:52 +0900 Subject: [PATCH] Add comment. --- osu.Game/Modes/UI/Playfield.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osu.Game/Modes/UI/Playfield.cs b/osu.Game/Modes/UI/Playfield.cs index 670ee2eea0..aa773323a5 100644 --- a/osu.Game/Modes/UI/Playfield.cs +++ b/osu.Game/Modes/UI/Playfield.cs @@ -53,8 +53,12 @@ namespace osu.Game.Modes.UI private class ScaledContainer : Container { + /// + /// A value (in game pixels that we should scale our content to match). + /// public float? CustomWidth; + //dividing by the customwidth will effectively scale our content to the required container size. protected override Vector2 DrawScale => CustomWidth.HasValue ? new Vector2(DrawSize.X / CustomWidth.Value) : base.DrawScale; public override bool Contains(Vector2 screenSpacePos) => true;