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
1 changed files with 4 additions and 0 deletions

View File

@ -53,8 +53,12 @@ public virtual void PostProcess()
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;