summaryrefslogtreecommitdiffstats
path: root/modules/mono
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-09-26 13:44:46 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-09-26 13:44:46 +0200
commitca8b229e1c7dcf1123ae0d24f331860b789df86c (patch)
tree8d4a9e4de1b3d81fb9e2295304797c5e41123bcb /modules/mono
parent3ec673085b161c6d0b134df11d2a63874066553d (diff)
parentbc6585a5a7380c39d182944e47592587f8b97231 (diff)
downloadredot-engine-ca8b229e1c7dcf1123ae0d24f331860b789df86c.tar.gz
Merge pull request #80410 from bruvzg/rtl_img_features
[RTL] Add support for image dynamic updating, padding, tooltips and size in percent.
Diffstat (limited to 'modules/mono')
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Compat.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Compat.cs b/modules/mono/glue/GodotSharp/GodotSharp/Compat.cs
index 48b47b166a..dd0affdb75 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Compat.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Compat.cs
@@ -83,6 +83,13 @@ partial class RenderingDevice
partial class RichTextLabel
{
+ /// <inheritdoc cref="AddImage(Texture2D, int, int, Nullable{Color}, InlineAlignment, Nullable{Rect2}, Variant, bool, string, bool)"/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void AddImage(Texture2D image, int width, int height, Nullable<Color> color, InlineAlignment inlineAlign, Nullable<Rect2> region)
+ {
+ AddImage(image, width, height, color, inlineAlign, region, key: default, pad: false, tooltip: "", sizeInPercent: false);
+ }
+
/// <inheritdoc cref="PushList(int, ListType, bool, string)"/>
[EditorBrowsable(EditorBrowsableState.Never)]
public void PushList(int level, ListType type, bool capitalize)