Component:ArcLayout: Difference between revisions

From Resonite Wiki
imported>Chemicalcrux
Creating the page (with a bot!)
 
Automated: update Fields
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<languages></languages>
<languages></languages>
<translate>
<translate>
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=ArcLayoutComponent.png
|Image=ArcLayoutComponent.png
Line 9: Line 7:


<!--T:2-->
<!--T:2-->
== Intoduction ==
The '''ArcLayout''' is a component primarily used in a [[User|user's]] [[Context menu|context menu]]. It requires a set of [[Slot|slots]] under the slot the component is attached to, and each slot needs an [[Component:OutlinedArc|OutlinedArc Component]] and an [[Component:ArcSegmentLayout|ArcSegmentLayout Component]].


<!--T:3-->
<!--T:3-->
== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Arc|Float|  
|Arc|Float| The amount of the circle in degrees to cover with the arc elements.
|Offset|Float|  
|Offset|Float| the amount to rotate the arc elements around the center in degrees from the default position.
|Separation|Float|  
|Separation|Float| how much to separate the elements from each other.
|CenterAtSeparation|Bool|  
|CenterAtSeparation|Bool|Centers the separation point of this layout.
|ProportionalSize|Bool|  
|ProportionalSize|Bool|Keep all segments of the arc proportional in size.
|ItemDirection|Direction|  
|ItemDirection|'''[[#Direction|ArcLayout.Direction]]'''|TypeAdv5=true| How to arrange the elements in order from the initial position.
}}
}}


<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==


<!--T:5-->
<!--T:5-->
Line 30: Line 28:
<!--T:6-->
<!--T:6-->
== Related Components ==
== Related Components ==
* [[Component:ArcSegmentLayout|ArcSegmentLayout]]
* [[Component:OutlinedArc{{#translation:}}|OutlinedArc]]
</translate>
</translate>
[[Category:Components{{#translation:}}|ArcLayout (Component){{#translation:}}]]
[[Category:Components:UIX:Layout{{#translation:}}|Arc Layout]]
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Arc Layout]]
[[Category:Components:UIX:Layout{{#translation:}}|ArcLayout (Component){{#translation:}}]]
[[Category:Components With Nested Enums{{#translation:}}|Arc Layout]]

Latest revision as of 05:58, 17 March 2025

Component image 
ArcLayout component as seen in the Scene Inspector

The ArcLayout is a component primarily used in a user's context menu. It requires a set of slots under the slot the component is attached to, and each slot needs an OutlinedArc Component and an ArcSegmentLayout Component.

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.
Arc Float The amount of the circle in degrees to cover with the arc elements.
Offset Float the amount to rotate the arc elements around the center in degrees from the default position.
Separation Float how much to separate the elements from each other.
CenterAtSeparation Bool Centers the separation point of this layout.
ProportionalSize Bool Keep all segments of the arc proportional in size.
ItemDirection ArcLayout.Direction How to arrange the elements in order from the initial position.

Usage

Examples

Related Components