Documentation for Canvas Modulate, ColorPicker, ColorPickerButton

This commit is contained in:
Daniel J. Ramirez 2016-04-28 16:45:47 -05:00 committed by Rémi Verschelde
parent 0fa588a830
commit faf21b81e8

View File

@ -7015,20 +7015,24 @@
</class> </class>
<class name="CanvasModulate" inherits="Node2D" category="Core"> <class name="CanvasModulate" inherits="Node2D" category="Core">
<brief_description> <brief_description>
Tint the entire canvas
</brief_description> </brief_description>
<description> <description>
CanvasModulate tints the canvas elements using its asigned color
</description> </description>
<methods> <methods>
<method name="set_color"> <method name="set_color">
<argument index="0" name="color" type="Color"> <argument index="0" name="color" type="Color">
</argument> </argument>
<description> <description>
Sets the canvas tint color
</description> </description>
</method> </method>
<method name="get_color" qualifiers="const"> <method name="get_color" qualifiers="const">
<return type="Color"> <return type="Color">
</return> </return>
<description> <description>
Gets the canvas tint color
</description> </description>
</method> </method>
</methods> </methods>
@ -8001,30 +8005,35 @@
<argument index="0" name="mode" type="bool"> <argument index="0" name="mode" type="bool">
</argument> </argument>
<description> <description>
When set to true, every color channel will be represented as a value from 0 to 1, insetead of 0, 255.
</description> </description>
</method> </method>
<method name="is_raw_mode" qualifiers="const"> <method name="is_raw_mode" qualifiers="const">
<return type="bool"> <return type="bool">
</return> </return>
<description> <description>
Returns whether this color picker is in raw mode or not
</description> </description>
</method> </method>
<method name="set_edit_alpha"> <method name="set_edit_alpha">
<argument index="0" name="show" type="bool"> <argument index="0" name="show" type="bool">
</argument> </argument>
<description> <description>
Set true if you want the color to have an alpha channel (transparency), or false if you want a solid color.
</description> </description>
</method> </method>
<method name="is_editing_alpha" qualifiers="const"> <method name="is_editing_alpha" qualifiers="const">
<return type="bool"> <return type="bool">
</return> </return>
<description> <description>
Returns whether the color has transparency or not.
</description> </description>
</method> </method>
<method name="add_preset"> <method name="add_preset">
<argument index="0" name="arg0" type="Color"> <argument index="0" name="arg0" type="Color">
</argument> </argument>
<description> <description>
Adds the current selected to color to a list of colors (presets), the presets will be displayed in the color picker and the user will be able to select them, notice that the presets list is only for this color picker.
</description> </description>
</method> </method>
</methods> </methods>
@ -8033,7 +8042,7 @@
<argument index="0" name="color" type="Color"> <argument index="0" name="color" type="Color">
</argument> </argument>
<description> <description>
Emitted when the color changes. Emitted when the color is changed.
</description> </description>
</signal> </signal>
</signals> </signals>
@ -8058,32 +8067,38 @@
</class> </class>
<class name="ColorPickerButton" inherits="Button" category="Core"> <class name="ColorPickerButton" inherits="Button" category="Core">
<brief_description> <brief_description>
Button that pops out a [ColorPicker]
</brief_description> </brief_description>
<description> <description>
Encapsulates a [ColorPicker] making it accesible by pressing a button, pressing the button will toggle the [ColorPicker] visibility
</description> </description>
<methods> <methods>
<method name="set_color"> <method name="set_color">
<argument index="0" name="color" type="Color"> <argument index="0" name="color" type="Color">
</argument> </argument>
<description> <description>
Sets the current color
</description> </description>
</method> </method>
<method name="get_color" qualifiers="const"> <method name="get_color" qualifiers="const">
<return type="Color"> <return type="Color">
</return> </return>
<description> <description>
Gets the current color
</description> </description>
</method> </method>
<method name="set_edit_alpha"> <method name="set_edit_alpha">
<argument index="0" name="show" type="bool"> <argument index="0" name="show" type="bool">
</argument> </argument>
<description> <description>
See [method ColorPicker.set_edit_alpha]
</description> </description>
</method> </method>
<method name="is_editing_alpha" qualifiers="const"> <method name="is_editing_alpha" qualifiers="const">
<return type="bool"> <return type="bool">
</return> </return>
<description> <description>
See [method ColorPicker.is_edit_alpha]
</description> </description>
</method> </method>
</methods> </methods>
@ -8092,6 +8107,7 @@
<argument index="0" name="color" type="Color"> <argument index="0" name="color" type="Color">
</argument> </argument>
<description> <description>
Emitted when the color is changed.
</description> </description>
</signal> </signal>
</signals> </signals>