1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 15:27:26 +08:00

Add comment.

This commit is contained in:
Dean Herbert 2017-03-08 11:54:52 +09:00
parent 02cab41d34
commit 123c8f3489
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -53,8 +53,12 @@ namespace osu.Game.Modes.UI
private class ScaledContainer : Container
{
/// <summary>
/// A value (in game pixels that we should scale our content to match).
/// </summary>
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;