Class UIFragment
Specific ui fragments need to inherit this class. The subclass is then used in yaml to tell a main ui to use it as a ui fragment.
Inheritance
System.Object
UIFragment
Namespace: Content.Client.UserInterface.Fragments
Assembly: Content.Client.dll
Syntax
public abstract class UIFragment : object
Examples
This is an example from the yaml definition from the notekeeper ui
- type: CartridgeUi
ui: !type:NotekeeperUi
Methods
| Improve this Doc View SourceGetUIFragmentRoot()
Declaration
public abstract Control GetUIFragmentRoot()
Returns
Type | Description |
---|---|
Robust.Client.UserInterface.Control |
Setup(BoundUserInterface, Nullable<EntityUid>)
Declaration
public abstract void Setup(BoundUserInterface userInterface, EntityUid? fragmentOwner)
Parameters
Type | Name | Description |
---|---|---|
BoundUserInterface | userInterface | |
System.Nullable<EntityUid> | fragmentOwner |
UpdateState(BoundUserInterfaceState)
Declaration
public abstract void UpdateState(BoundUserInterfaceState state)
Parameters
Type | Name | Description |
---|---|---|
BoundUserInterfaceState | state |