Added a warning stating that you need to have something or this component will not work. Fixed a field description. |
this is not a component stub |
||
Line 29: | Line 29: | ||
<!--T:4--> | <!--T:4--> | ||
== Usage == | == Usage == | ||
<!--T:5--> | <!--T:5--> | ||
== Examples == | == Examples == | ||
This can be used as a way to make an image and give it a tint color. | |||
<!--T:6--> | <!--T:6--> | ||
Line 38: | Line 39: | ||
</translate> | </translate> | ||
[[Category:Components{{#translation:}}|Dual Color Image]] | [[Category:Components{{#translation:}}|Dual Color Image]] | ||
[[Category:Components:UIX:Graphics{{#translation:}}|Dual Color Image]] | [[Category:Components:UIX:Graphics{{#translation:}}|Dual Color Image]] |
Latest revision as of 16:52, 29 October 2024
Component image
The DualColorImage component takes in a SpriteProvider or Material and controls the tint and secondary tint of a UIX image. There are optional placement parameters allowing the user to adjust the offset of this image using FillRect
.
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. |
Sprite
|
Sprite | The sprite to use as the image. |
Material
|
Material | The Material to use as the image. |
PreserveAspect
|
Bool | Preserves the aspect ratio of this image provided. |
NineSliceSizing
|
NineSliceSizing | Tells how the image gets 9-sliced on this UIX. |
FlipHorizontally
|
Bool | Flips the image horizontally. |
FlipVertically
|
Bool | Flips the image vertically. |
InteractionTarget
|
Bool | Makes this image as the interaction target for this UIX. |
FillRect
|
Rect | The filling rect for this image. |
__legacyZWrite
|
Bool | The legacy Z writing for this image. |
Tint
|
ColorX | The primary tint color for this image. |
SecondaryTint
|
ColorX | The secondary tint color for this image. |
Usage
Examples
This can be used as a way to make an image and give it a tint color.