Show / Hide Table of Contents

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
CrewManifestUi
NetProbeUi
NewsReadUi
NotekeeperUi
MechGrabberUi
MechSoundboardUi
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 Source

GetUIFragmentRoot()

Declaration
public abstract Control GetUIFragmentRoot()
Returns
Type Description
Robust.Client.UserInterface.Control
| Improve this Doc View Source

Setup(BoundUserInterface, Nullable<EntityUid>)

Declaration
public abstract void Setup(BoundUserInterface userInterface, EntityUid? fragmentOwner)
Parameters
Type Name Description
BoundUserInterface userInterface
System.Nullable<EntityUid> fragmentOwner
| Improve this Doc View Source

UpdateState(BoundUserInterfaceState)

Declaration
public abstract void UpdateState(BoundUserInterfaceState state)
Parameters
Type Name Description
BoundUserInterfaceState state
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾