0.2.0-dev Download ZIP
22 lines ·1.5 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="ResourceImporterBitMap" inherits="ResourceImporter" api_type="editor" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Imports a [BitMap] resource (2D array of boolean values). |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | [BitMap] resources are typically used as click masks in [TextureButton] and [TouchScreenButton]. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | <link title="Importing images">$DOCS_URL/tutorials/assets_pipeline/importing_images.html</link> |
| 11 | </tutorials> |
| 12 | <members> |
| 13 | <member name="create_from" type="int" setter="" getter="" default="0"> |
| 14 | The data source to use for generating the bitmap. |
| 15 | [b]Black & White:[/b] Pixels whose HSV value is greater than the [member threshold] will be considered as "enabled" (bit is [code]true[/code]). If the pixel is lower than or equal to the threshold, it will be considered as "disabled" (bit is [code]false[/code]). |
| 16 | [b]Alpha:[/b] Pixels whose alpha value is greater than the [member threshold] will be considered as "enabled" (bit is [code]true[/code]). If the pixel is lower than or equal to the threshold, it will be considered as "disabled" (bit is [code]false[/code]). |
| 17 | </member> |
| 18 | <member name="threshold" type="float" setter="" getter="" default="0.5"> |
| 19 | The threshold to use to determine which bits should be considered enabled or disabled. See also [member create_from]. |
| 20 | </member> |
| 21 | </members> |
| 22 | </class> |