Component:ConfirmationHandler: Difference between revisions

From Resonite Wiki
imported>Mysticporo
Created page with "<languages></languages> <translate> <!--T:1--> {{stub}} {{Infobox Component |Image=ConfirmationHandlerComponent.png |Name=Confirmation Handler }} <!--T:2--> == Fields == {{Ta..."
 
add beginning sentence
 
(3 intermediate revisions by 3 users not shown)
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=ConfirmationHandlerComponent.png
|Image=ConfirmationHandlerComponent.png
|Name=Confirmation Handler
|Name=Confirmation Handler
}}
}}
The '''ConfirmationHandler''' component is used to handle confirming an action. (what the actions are is currently not documented)


<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Label|IField`1|TypeString0=IField<string>|
|Label|'''[[Type:IField`1|IField`1]]&lt;[[Type:String|String]]&gt;'''|TypeAdv0=true| The message of the Confirmation box
|Color|IField`1|TypeString1=IField<color>|
|Color|'''[[Type:IField`1|IField`1]]&lt;[[Type:ColorX|ColorX]]&gt;'''|TypeAdv1=true| The color of the button before confirming is allowed.
|OriginalLabel|String|
|OriginalLabel|String| The original label of the conformation before allowing the user to continue.
|OriginalColor|Color|
|OriginalColor|ColorX| The original color of the Confirmation before allowing the user to continue.
|RevertTime|SyncTime|  
|RevertTime|{{RootFieldType|SyncTime}}|TypeAdv4=true| The time to allow the user to click the button.
}}
}}


<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
{{stub}}


<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
{{stub}}


<!--T:5-->
<!--T:5-->
== Related Components ==
== See Also ==
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Confirmation Handler]]
[[Category:Components{{#translation:}}|Confirmation Handler]]
[[Category:Components:Common UI:Utility{{#translation:}}|Confirmation Handler]]
[[Category:Components:Common UI:Utility{{#translation:}}|Confirmation Handler]]

Latest revision as of 22:59, 18 March 2025

Component image 
File:ConfirmationHandlerComponent.png
Confirmation Handler component as seen in the Scene Inspector

The ConfirmationHandler component is used to handle confirming an action. (what the actions are is currently not documented)

Fields

Fields
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. Some components stop their functionality when this field is disabled, but some don't.
Label IField`1<String> The message of the Confirmation box
Color IField`1<ColorX> The color of the button before confirming is allowed.
OriginalLabel String The original label of the conformation before allowing the user to continue.
OriginalColor ColorX The original color of the Confirmation before allowing the user to continue.
RevertTime direct SyncTime The time to allow the user to click the button.

Usage

This article or section is a Stub. You can help the Resonite Wiki by expanding it.

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.

See Also