(One intermediate revision by one other user not shown)
Line 9:
Line 9:
<!--T:2-->
<!--T:2-->
The '''DualColorImage''' component takes in a [[Component:SpriteProvider|SpriteProvider]] or [[Material]] and controls the tint and secondary tint of a [[UIX]] image. There are optional placement parameters allowing the [[User|user]] to adjust the offset of this image using <code>FillRect</code>.
The '''DualColorImage''' component takes in a [[Component:SpriteProvider|SpriteProvider]] or [[Material]] and controls the tint and secondary tint of a [[UIX]] image. There are optional placement parameters allowing the [[User|user]] to adjust the offset of this image using <code>FillRect</code>.
{{Note|You must have an image that it can register and use, else it will just use the secondary tint color only and fill in the entire area.|warning}}
<!--T:3-->
<!--T:3-->
Line 21:
Line 23:
|FillRect|Rect|The filling rect for this image.
|FillRect|Rect|The filling rect for this image.
|__legacyZWrite|Bool|The legacy Z writing for this image.
|__legacyZWrite|Bool|The legacy Z writing for this image.
|Tint|ColorX| The tint color for this image (broken?).
|Tint|ColorX| The primary tint color for this image.
|SecondaryTint|ColorX|The secondary tint color for this image.
|SecondaryTint|ColorX|The secondary tint color for this image.
}}
}}
Line 27:
Line 29:
<!--T:4-->
<!--T:4-->
== Usage ==
== Usage ==
This can be used as a way to make an image and give it a tint color.
<!--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 36:
Line 39:
</translate>
</translate>
[[Category:Components{{#translation:}}|Dual Color Image]]
[[Category:Components{{#translation:}}|Dual Color Image]]
[[Category:ComponentStubs]]
[[Category:Components:UIX:Graphics{{#translation:}}|Dual Color Image]]
[[Category:Components:UIX:Graphics{{#translation:}}|Dual Color 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.
You must have an image that it can register and use, else it will just use the secondary tint color only and fill in the entire area.