Pārlūkot izejas kodu

Merge pull request #11113 from cbscribe/kcc_texturerect_doc

Update TextureRect class ref
Poommetee Ketson 8 gadi atpakaļ
vecāks
revīzija
a1007cceb0
1 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. 5 2
      doc/base/classes.xml

+ 5 - 2
doc/base/classes.xml

@@ -51904,10 +51904,10 @@
 </class>
 <class name="TextureRect" inherits="Control" category="Core">
 	<brief_description>
-		Control Frame that draws a texture.
+		Control that draws a texture.
 	</brief_description>
 	<description>
-		Control frame that simply draws an assigned texture. It can stretch or not. It's a simple way to just show an image in a UI.
+		Control that draws a texture.
 	</description>
 	<methods>
 		<method name="get_stretch_mode" qualifiers="const">
@@ -51955,10 +51955,13 @@
 	</methods>
 	<members>
 		<member name="expand" type="bool" setter="set_expand" getter="has_expand" brief="">
+			If [code]true[/code] texture will expand to fit. Default value: [code]false[/code].
 		</member>
 		<member name="stretch_mode" type="int" setter="set_stretch_mode" getter="get_stretch_mode" brief="" enum="TextureRect.StretchMode">
+			Stretch mode of the texture. Use STRETCH_* constants as value.
 		</member>
 		<member name="texture" type="Texture" setter="set_texture" getter="get_texture" brief="">
+			The [Texture] resource for the node.
 		</member>
 	</members>
 	<constants>