Component:ArcSegmentLayout: Difference between revisions

From Resonite Wiki
Automated: update Fields, Categories
Added a description, added field descriptions, added a usage description.
 
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=ArcSegmentLayoutComponent.png
|Image=ArcSegmentLayoutComponent.png
Line 9: Line 8:


<!--T:2-->
<!--T:2-->
== Intoduction ==
The '''ArcSegmentLayout''' component is used with [[Component:ArcLayout|ArcLayout]], and separates the arc layout into equal segments defined in that component. When using this component, it will be very resistant to change as it is listening on the [[Component:ArcLayout|ArcLayout]] for the art amount, size, and ratios.
Used with [[Component:ArcLayout|ArcLayout (Component)]].


<!--T:3-->
<!--T:3-->
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|Nested|'''[[Component:RectTransform|RectTransform]]'''|TypeAdv0=true|
|Nested|'''[[Component:RectTransform|RectTransform]]'''|TypeAdv0=true|The rect transform to hold the segments of the arc layout.
|NestedSizeRatio|Float|
|NestedSizeRatio|Float|The size ratio for this arc segment.
|Label|'''[[Component:Text|Text]]'''|TypeAdv2=true|
|Label|'''[[Component:Text|Text]]'''|TypeAdv2=true|The label text for the arc segment.
|LabelSize|Float2|
|LabelSize|Float2|The label text size for the arc segment.
|LabelDistance|Float|
|LabelDistance|Float|The label text distance from the arc segment.
}}
}}


<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==
This is used for the individual arc segment selection of the [[Context menu|context menu]].


<!--T:5-->
<!--T:5-->
Line 32: Line 30:
</translate>
</translate>
[[Category:Components{{#translation:}}|Arc Segment Layout]]
[[Category:Components{{#translation:}}|Arc Segment Layout]]
[[Category:ComponentStubs]]
[[Category:Components:UIX:Layout{{#translation:}}|Arc Segment Layout]]
[[Category:Components:UIX:Layout{{#translation:}}|Arc Segment Layout]]

Latest revision as of 10:45, 28 July 2024

Component image 
ArcSegmentLayout component as seen in the Scene Inspector


The ArcSegmentLayout component is used with ArcLayout, and separates the arc layout into equal segments defined in that component. When using this component, it will be very resistant to change as it is listening on the ArcLayout for the art amount, size, and ratios.

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.
Nested RectTransform The rect transform to hold the segments of the arc layout.
NestedSizeRatio Float The size ratio for this arc segment.
Label Text The label text for the arc segment.
LabelSize Float2 The label text size for the arc segment.
LabelDistance Float The label text distance from the arc segment.

Usage

This is used for the individual arc segment selection of the context menu.

Examples

Related Components