Create registry documentation |
→Theme: supported types |
||
Line 5: | Line 5: | ||
Each entry has a <code>Theme</code> [[Component:DynamicVariableSpace|Dynamic Variable Space]] and each child has the name (without namespace) of a key it defines or overrides. A key has the dynamic variables <code>Theme/<i>Key</i></code> of any of the supported types. | Each entry has a <code>Theme</code> [[Component:DynamicVariableSpace|Dynamic Variable Space]] and each child has the name (without namespace) of a key it defines or overrides. A key has the dynamic variables <code>Theme/<i>Key</i></code> of any of the supported types. | ||
* | * {{Template:TypeColorCard|IAssetProvider`1|IAssetProvider<Sprite>}} | ||
* {{Template:TypeColorCard|IAssetProvider`1|IAssetProvider<ITexture2D>}} | |||
* {{Template:TypeColorCard|IAssetProvider`1|IAssetProvider<Material>}} | |||
* {{Template:TypeColorCard|Rect}} | |||
* {{Template:TypeColorCard|float}} | |||
=== Events === | === Events === |
Revision as of 18:43, 5 August 2025
Theme
The theme registry is used by the Theming Module to generate Manager/Theme.Key
dynamic variables. It is used for styling the user interface as well as providing the default assets such as sprites or textures. When multiple entries define a key, the highest priority wins.
Each entry has a Theme
Dynamic Variable Space and each child has the name (without namespace) of a key it defines or overrides. A key has the dynamic variables Theme/Key
of any of the supported types.
IAssetProvider<Sprite>
IAssetProvider<ITexture2D>
IAssetProvider<Material>
Rect
float
Events
All events on a manager are defined as Dynamic Reference Variables of the data slot following the naming scheme Manager/EventData.EventName
.
OnBeforePrintCreated
All event data can be modified by events.
Name | Type | Purpose |
---|---|---|
Parent |
Slot |
The parent slot where it should be created. |
Position |
float3 |
The global position. |
Rotation |
floatQ |
The global rotation. |
Scale |
float3 |
The global scale. |
OnHideTabContent
Name | Type | Purpose |
---|---|---|
Tab |
Slot |
The tab whose content is about to be hidden. |
Intention |
String |
DeleteTab or null.
|
The intention can be used for optimization. When a tab is about to be deleted, some actions may be unnecessary.
OnPrintCreated
Name | Type | Purpose |
---|---|---|
Print |
Slot |
The new print. |
OnShowTabContent
Name | Type | Purpose |
---|---|---|
Tab |
Slot |
The tab whose content is about to be shown. |
Intention |
String |
or null.
|
OnSnap
Modify the result accordingly. Only the local transform should be changed, the object will be reparented (keeping the transform) based on the result.
Name | Type | Purpose |
---|---|---|
Print |
Slot |
The print onto which something is snapped. |
Target |
Slot |
The object to be snapped. |
Result |
String |
Default , Handled , Drop .
|