![]() |
FirstModulAR 0.1.0
|
A container that widgets can be placed into, in a grid format. More...
Public Member Functions | |
| override WidgetContainer | Init (Widget widget, Vector2 size, bool disableCollidersOverride=false, float scaleFactor=-1, bool disableInitEvent=false) |
| Initializes the grid slot. | |
| override void | DetachWidget () |
| Detaches the widget from the grid slot and destroys the game object. | |
Public Member Functions inherited from FMAR.UI.Widgets.WidgetContainer | |
| void | UpdateSize (Vector2 size) |
| Sets the size of the widget container. | |
| void | ToggleLockedState () |
| Toggles the locked state of the widget container, which determines if the widget can be removed or added. | |
| bool | TryMove () |
| Tries to move the widget. | |
Public Attributes | |
| bool | acceptsMany |
Events | |
| static Action< GridSlot > | OnGridSlotInit |
| Event triggered when the grid slot is initialized. | |
Events inherited from FMAR.UI.Widgets.WidgetContainer | |
| static Action< WidgetContainer > | OnInit |
Additional Inherited Members | |
Protected Member Functions inherited from FMAR.UI.Widgets.WidgetContainer | |
| virtual void | Awake () |
| void | CreateBorder () |
| virtual void | Update () |
Protected Attributes inherited from FMAR.UI.Widgets.WidgetContainer | |
| Widget | widget |
| Vector2 | size = Vector2.one |
| Material | borderMaterial |
| LineRenderer | border |
| bool | locked |
Properties inherited from FMAR.UI.Widgets.WidgetContainer | |
| Widget | Widget [get] |
| Vector2 | Size [get] |
| float | ScaleFactor [get] |
| LineRenderer | Border [get] |
| bool | HoverLeft [get] |
| bool | HoverRight [get] |
| bool | Hover [get] |
| bool | Locked [get] |
A container that widgets can be placed into, in a grid format.
|
inlinevirtual |
Detaches the widget from the grid slot and destroys the game object.
Reimplemented from FMAR.UI.Widgets.WidgetContainer.
Reimplemented in FMAR.UI.Widgets.TabbedDisplaySlot.
|
inlinevirtual |
Initializes the grid slot.
| widget | The widget to place into the grid slot. |
| size | The size of the grid slot. |
| disableCollidersOverride | Whether to disable the colliders. |
| scaleFactor | The scale factor to use. |
| disableInitEvent | Whether to disable the init event. |
Reimplemented from FMAR.UI.Widgets.WidgetContainer.
Reimplemented in FMAR.UI.Widgets.TabbedDisplaySlot.
| bool FMAR.UI.Widgets.GridSlot.acceptsMany |
|
static |
Event triggered when the grid slot is initialized.