Merge pull request #4559 from djrm/classref-edit
Documented LinkButton, some OS methods
This commit is contained in:
commit
1bbb970af8
1 changed files with 27 additions and 1 deletions
|
@ -17963,39 +17963,47 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
</class>
|
</class>
|
||||||
<class name="LinkButton" inherits="BaseButton" category="Core">
|
<class name="LinkButton" inherits="BaseButton" category="Core">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
|
Simple button used to represent a link to some resource
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
|
This kind of buttons are primarily used when the interaction with the button causes a context change (like linking to a web page).
|
||||||
</description>
|
</description>
|
||||||
<methods>
|
<methods>
|
||||||
<method name="set_text">
|
<method name="set_text">
|
||||||
<argument index="0" name="text" type="String">
|
<argument index="0" name="text" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Sets the text of the button.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_text" qualifiers="const">
|
<method name="get_text" qualifiers="const">
|
||||||
<return type="String">
|
<return type="String">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the text of the button.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_underline_mode">
|
<method name="set_underline_mode">
|
||||||
<argument index="0" name="underline_mode" type="int">
|
<argument index="0" name="underline_mode" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Sets the underline mode for this button, the argument must be one of the [LinkButton] constants (see constants section).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_underline_mode" qualifiers="const">
|
<method name="get_underline_mode" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the underline mode for this button.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
<constants>
|
<constants>
|
||||||
<constant name="UNDERLINE_MODE_ALWAYS" value="0">
|
<constant name="UNDERLINE_MODE_ALWAYS" value="0">
|
||||||
|
The LinkButton will always show an underline at the bottom of its text
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="UNDERLINE_MODE_ON_HOVER" value="1">
|
<constant name="UNDERLINE_MODE_ON_HOVER" value="1">
|
||||||
|
The LinkButton will show an underline at the bottom of its text when the mouse cursor is over it.
|
||||||
</constant>
|
</constant>
|
||||||
</constants>
|
</constants>
|
||||||
<theme_items>
|
<theme_items>
|
||||||
|
@ -20963,12 +20971,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the number of displays attached to the host machine
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_current_screen" qualifiers="const">
|
<method name="get_current_screen" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the current screen index (0 padded).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_current_screen">
|
<method name="set_current_screen">
|
||||||
|
@ -20991,54 +21001,63 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="screen" type="int" default="0">
|
<argument index="0" name="screen" type="int" default="0">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the dimensions in pixels of the specified screen.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_window_position" qualifiers="const">
|
<method name="get_window_position" qualifiers="const">
|
||||||
<return type="Vector2">
|
<return type="Vector2">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the window position relative to the screen, the origin is the top left corner, +Y axis goes to the bottom and +X axis goes to the right.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_window_position">
|
<method name="set_window_position">
|
||||||
<argument index="0" name="position" type="Vector2">
|
<argument index="0" name="position" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Sets the position of the window to the specified position (this function could be restricted by the window manager, meaning that there could be some unreachable areas of the screen).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_window_size" qualifiers="const">
|
<method name="get_window_size" qualifiers="const">
|
||||||
<return type="Vector2">
|
<return type="Vector2">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the size of the window (without counting window manager decorations).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_window_size">
|
<method name="set_window_size">
|
||||||
<argument index="0" name="size" type="Vector2">
|
<argument index="0" name="size" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Sets the window size to the specified size.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_window_fullscreen">
|
<method name="set_window_fullscreen">
|
||||||
<argument index="0" name="enabled" type="bool">
|
<argument index="0" name="enabled" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Sets window fullscreen mode to the [i]enabled[/i] argument, [i]enabled[/i] is a toggle for the fullscreen mode, calling the function with [i]enabled[/i] true when the screen is not on fullscreen mode will cause the screen to go to fullscreen mode, calling the function with [i]enabled[/i] false when the screen is in fullscreen mode will cause the window to exit the fullscreen mode.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_window_fullscreen" qualifiers="const">
|
<method name="is_window_fullscreen" qualifiers="const">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns whether the window is in fullscreen mode or not.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_window_resizable">
|
<method name="set_window_resizable">
|
||||||
<argument index="0" name="enabled" type="bool">
|
<argument index="0" name="enabled" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the window resizable state, if the window is not resizable it will preserve the dimensions specified in the project settings.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_window_resizable" qualifiers="const">
|
<method name="is_window_resizable" qualifiers="const">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns whether the window is resizable or not.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_window_minimized">
|
<method name="set_window_minimized">
|
||||||
|
@ -21081,12 +21100,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="orientation" type="int">
|
<argument index="0" name="orientation" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Sets the current screen orientation, the argument value must be one of the SCREEN_ORIENTATION constants in this class.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_screen_orientation" qualifiers="const">
|
<method name="get_screen_orientation" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the current screen orientation, the return value will be one of the SCREEN_ORIENTATION constants in this class.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_keep_screen_on">
|
<method name="set_keep_screen_on">
|
||||||
|
@ -21100,6 +21121,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns whether the screen is being kept on or not.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_iterations_per_second">
|
<method name="set_iterations_per_second">
|
||||||
|
@ -21151,6 +21173,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="title" type="String">
|
<argument index="0" name="title" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Sets the window title to the specified string.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_low_processor_usage_mode">
|
<method name="set_low_processor_usage_mode">
|
||||||
|
@ -21171,6 +21194,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the number of cores available in the host machine.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_executable_path" qualifiers="const">
|
<method name="get_executable_path" qualifiers="const">
|
||||||
|
@ -21201,7 +21225,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="pid" type="int">
|
<argument index="0" name="pid" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Kill a process ID.
|
Kill a process ID (this method can be used to kill processes that were not spawned by the game).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="shell_open">
|
<method name="shell_open">
|
||||||
|
@ -21216,6 +21240,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the game process ID
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_environment" qualifiers="const">
|
<method name="get_environment" qualifiers="const">
|
||||||
|
@ -21482,6 +21507,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<return type="float">
|
<return type="float">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns the frames per second of the running game.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="print_all_textures_by_size">
|
<method name="print_all_textures_by_size">
|
||||||
|
|
Loading…
Reference in a new issue