You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow image dimensions in RichTextLabel to be relative to font size
Use base font size
Added docs and compatibility methods
Fix compatibility methods maybe for real this time????
Please?
Make width/height use floats instead of ints, and then make 1em be the height of surrounding text
Fix documentation for floats instead of ints
Update compatibility
# Conflicts:
# misc/extension_api_validation/4.5-stable.expected
# Conflicts:
# misc/extension_api_validation/4.5-stable.expected
# Conflicts:
# misc/extension_api_validation/4.5-stable.expected
# Conflicts:
# misc/extension_api_validation/4.5-stable.expected
# Conflicts:
# misc/extension_api_validation/4.5-stable.expected
# Conflicts:
# misc/extension_api_validation/4.5-stable.expected
Add compatibility breakages file
# Conflicts:
# misc/extension_api_validation/4.5-stable_4.6-stable/GH-112617.txt
# Conflicts:
# scene/gui/rich_text_label.cpp
Adds an image's opening and closing tags to the tag stack, optionally providing a [param width] and [param height] to resize the image, a [param color] to tint the image and a [param region] to only use parts of the image.
50
50
If [param width] or [param height] is set to 0, the image size will be adjusted in order to keep the original aspect ratio.
51
51
If [param width] and [param height] are not set, but [param region] is, the region's rect will be used.
52
52
[param key] is an optional identifier, that can be used to modify the image via [method update_image].
53
53
If [param pad] is set, and the image is smaller than the size specified by [param width] and [param height], the image padding is added to match the size instead of upscaling.
54
-
If [param width_in_percent] is set, [param width] values are percentages of the control width instead of pixels.
55
-
If [param height_in_percent] is set, [param height] values are percentages of the control width instead of pixels.
54
+
Parameters [param width_unit] and [param height_unit] determine the units used to calculate the image width and height, respectively.
56
55
[param alt_text] is used as the image description for assistive apps.
Validate extension JSON: API was removed: classes/RichTextLabel/enums/ImageUpdateMask/values/UPDATE_WIDTH_IN_PERCENT
4
+
Validate extension JSON: Error: Field 'classes/RichTextLabel/methods/add_image/arguments/10': default_value changed value in new API, from "false" to "0".
5
+
Validate extension JSON: Error: Field 'classes/RichTextLabel/methods/add_image/arguments/10': type changed value in new API, from "bool" to "enum::RichTextLabel.ImageUnit".
6
+
Validate extension JSON: Error: Field 'classes/RichTextLabel/methods/add_image/arguments/9': default_value changed value in new API, from "false" to "0".
7
+
Validate extension JSON: Error: Field 'classes/RichTextLabel/methods/add_image/arguments/9': type changed value in new API, from "bool" to "enum::RichTextLabel.ImageUnit".
8
+
Validate extension JSON: Error: Field 'classes/RichTextLabel/methods/update_image/arguments/10': default_value changed value in new API, from "false" to "0".
9
+
Validate extension JSON: Error: Field 'classes/RichTextLabel/methods/update_image/arguments/10': type changed value in new API, from "bool" to "enum::RichTextLabel.ImageUnit".
10
+
Validate extension JSON: Error: Field 'classes/RichTextLabel/methods/update_image/arguments/11': default_value changed value in new API, from "false" to "0".
11
+
Validate extension JSON: Error: Field 'classes/RichTextLabel/methods/update_image/arguments/11': type changed value in new API, from "bool" to "enum::RichTextLabel.ImageUnit".
12
+
Validate extension JSON: Error: Field 'classes/RichTextLabel/methods/add_image/arguments/1': meta changed value in new API, from "int32" to "float".
13
+
Validate extension JSON: Error: Field 'classes/RichTextLabel/methods/add_image/arguments/1': type changed value in new API, from "int" to "float".
14
+
Validate extension JSON: Error: Field 'classes/RichTextLabel/methods/add_image/arguments/2': meta changed value in new API, from "int32" to "float".
15
+
Validate extension JSON: Error: Field 'classes/RichTextLabel/methods/add_image/arguments/2': type changed value in new API, from "int" to "float".
16
+
Validate extension JSON: Error: Field 'classes/RichTextLabel/methods/update_image/arguments/3': meta changed value in new API, from "int32" to "float".
17
+
Validate extension JSON: Error: Field 'classes/RichTextLabel/methods/update_image/arguments/3': type changed value in new API, from "int" to "float".
18
+
Validate extension JSON: Error: Field 'classes/RichTextLabel/methods/update_image/arguments/4': meta changed value in new API, from "int32" to "float".
19
+
Validate extension JSON: Error: Field 'classes/RichTextLabel/methods/update_image/arguments/4': type changed value in new API, from "int" to "float".
20
+
21
+
Arguments changed from bools to enums for a few methods. Compatibility methods registered.
0 commit comments