summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorGilles Roudière <gilles.roudiere@gmail.com>2021-09-01 16:20:05 +0200
committerGitHub <noreply@github.com>2021-09-01 16:20:05 +0200
commitc97afc033f720a68b3ea8dabb2956d836d13613e (patch)
tree888cf5371512882854a6f7b98e80bc4aa1be9bcf /doc/classes
parent58c30b2626f4fcd00dece84de7778acfd2e9c6f8 (diff)
parente78ee616f7a83d361e4901e2271684d1d8c0afa0 (diff)
Merge pull request #38722 from KoBeWi/proposition
Add offset for TextureProgress progress texture
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/TextureProgressBar.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/TextureProgressBar.xml b/doc/classes/TextureProgressBar.xml
index 9da89ebe43..ee47557b39 100644
--- a/doc/classes/TextureProgressBar.xml
+++ b/doc/classes/TextureProgressBar.xml
@@ -60,6 +60,9 @@
[Texture2D] that clips based on the node's [code]value[/code] and [member fill_mode]. As [code]value[/code] increased, the texture fills up. It shows entirely when [code]value[/code] reaches [code]max_value[/code]. It doesn't show at all if [code]value[/code] is equal to [code]min_value[/code].
The [code]value[/code] property comes from [Range]. See [member Range.value], [member Range.min_value], [member Range.max_value].
</member>
+ <member name="texture_progress_offset" type="Vector2" setter="set_texture_progress_offset" getter="get_texture_progress_offset" default="Vector2(0, 0)">
+ The offset of [member texture_progress]. Useful for [member texture_over] and [member texture_under] with fancy borders, to avoid transparent margins in your progress texture.
+ </member>
<member name="texture_under" type="Texture2D" setter="set_under_texture" getter="get_under_texture">
[Texture2D] that draws under the progress bar. The bar's background.
</member>