Merge pull request #30412 from Larpon/docs/string-hex_to_int-improve

Improve hex_to_int documentation
This commit is contained in:
Rémi Verschelde 2019-07-08 08:12:04 +02:00 committed by GitHub
commit 6d4850b8b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 18 deletions

View file

@ -182,7 +182,7 @@
</signals> </signals>
<constants> <constants>
<constant name="NOTIFICATION_EDITOR_SETTINGS_CHANGED" value="10000"> <constant name="NOTIFICATION_EDITOR_SETTINGS_CHANGED" value="10000">
Emitted when editor settings change. It used by various editor plugins to update their visuals on theme changes or logic on configuration changes. Emitted when editor settings change. It used by various editor plugins to update their visuals on theme changes or logic on configuration changes.
</constant> </constant>
</constants> </constants>
</class> </class>

View file

@ -385,7 +385,10 @@
<return type="int"> <return type="int">
</return> </return>
<description> <description>
Converts a string containing a hexadecimal number into an integer. Converts a string containing a hexadecimal number into an integer. Hexadecimal strings are expected to be prefixed with "[code]0x[/code]" otherwise [code]0[/code] is returned.
[codeblock]
print("0xff".hex_to_int()) # Print "255"
[/codeblock]
</description> </description>
</method> </method>
<method name="http_escape"> <method name="http_escape">

View file

@ -141,13 +141,6 @@
Returns [code]true[/code] if the size override is enabled. See [method set_size_override]. Returns [code]true[/code] if the size override is enabled. See [method set_size_override].
</description> </description>
</method> </method>
<method name="is_size_override_stretch_enabled" qualifiers="const">
<return type="bool">
</return>
<description>
Returns [code]true[/code] if the size stretch override is enabled. See [method set_size_override_stretch].
</description>
</method>
<method name="set_attach_to_screen_rect"> <method name="set_attach_to_screen_rect">
<return type="void"> <return type="void">
</return> </return>
@ -175,15 +168,6 @@
Sets the size override of the viewport. If the [code]enable[/code] parameter is [code]true[/code] the override is used, otherwise it uses the default size. If the size parameter is [code](-1, -1)[/code], it won't update the size. Sets the size override of the viewport. If the [code]enable[/code] parameter is [code]true[/code] the override is used, otherwise it uses the default size. If the size parameter is [code](-1, -1)[/code], it won't update the size.
</description> </description>
</method> </method>
<method name="set_size_override_stretch">
<return type="void">
</return>
<argument index="0" name="enabled" type="bool">
</argument>
<description>
If [code]true[/code], the size override affects stretch as well.
</description>
</method>
<method name="unhandled_input"> <method name="unhandled_input">
<return type="void"> <return type="void">
</return> </return>