From 30eb4515bcb940087690ff1ac3389132732d266d Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 7 Oct 2024 18:03:35 +0200 Subject: [PATCH] Improve Element.Transform documentation --- MLEM.Ui/Elements/Element.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/MLEM.Ui/Elements/Element.cs b/MLEM.Ui/Elements/Element.cs index 38d0d6c..74f85b8 100644 --- a/MLEM.Ui/Elements/Element.cs +++ b/MLEM.Ui/Elements/Element.cs @@ -197,9 +197,10 @@ namespace MLEM.Ui.Elements { } } /// - /// This element's transform matrix. - /// Can easily be scaled using . - /// Note that, when this is non-null, a new SpriteBatch.Begin call is used for this element. + /// This element's transform matrix, which is used for drawing and mouse/touch interaction. All children and grandchildren of this element will have this transform applied to them, along with their own transforms. This can be useful for briefly changing the visuals of an element when using a . + /// This matrix has no bearing on this element's permanent or , as it is only applied "on the fly" in and . + /// When this is anything other than , a new SpriteBatch.Begin call is used for this element when drawing. + /// This matrix can easily be scaled relative to its center or an arbitrary point using . /// public Matrix Transform = Matrix.Identity; /// @@ -1194,6 +1195,7 @@ namespace MLEM.Ui.Elements { /// /// Scales this element's matrix based on the given scale and origin. + /// Please note the documentation for for in-depth information about how this matrix is used. /// /// The scale to use /// The origin to use for scaling, or null to use this element's center point