Added a description, added field descriptions, added a usage description.
(2 intermediate revisions by 2 users not shown)
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.
<!--T:3-->
<!--T:3-->
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|Nested|RectTransform|
|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|Text|
|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]].
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.