Moduprint/API/Methods: Difference between revisions

From Resonite Wiki
< Moduprint‎ | API
Create methods page
 
NewTab, NewActiveTab, NewTabWithContent
Line 1: Line 1:
All methods listed here are accessible through slot [[Component:DynamicReferenceVariable|Dynamic Reference Variables]] named <code>Manager/Method.<i>name</i></code>.
All methods listed here are accessible through slot [[Component:DynamicReferenceVariable|Dynamic Reference Variables]] named <code>Manager/Method.<i>name</i></code>.
=== NewTab, NewActiveTab ===
{| class="wikitable"
|+Context
|-
! Name !! Type !! !! Purpose
|-
| <code>Print</code> || {{Template:TypeColorCard|Slot}} || Required || The print to create a new tab on.
|}
{| class="wikitable"
|+Result
|-
! Name !! Type !! Purpose
|-
| <code>Manager/Local.Result</code> || {{Template:TypeColorCard|Slot}} || The created tab.
|}
=== NewTabWithContent ===
The tab content holder is created directly under the provided pack target slot.
{| class="wikitable"
|+Context
|-
! Name !! Type !! !! Purpose
|-
| <code>Print</code> || {{Template:TypeColorCard|Slot}} || Required || The print to create a new tab on.
|-
| <code>Content</code> || {{Template:TypeColorCard|Slot}} || Required || The content slot of the tab.
|-
| <code>PackTarget</code> || {{Template:TypeColorCard|Slot}} || Optional || Where the tab is parented to.
|}
{| class="wikitable"
|+Result
|-
! Name !! Type !! Purpose
|-
| <code>Manager/Local.Result</code> || {{Template:TypeColorCard|Slot}} || The created tab.
|}


=== Snap ===
=== Snap ===

Revision as of 16:01, 4 August 2025

All methods listed here are accessible through slot Dynamic Reference Variables named Manager/Method.name.

NewTab, NewActiveTab

Context
Name Type Purpose
Print Slot Required The print to create a new tab on.
Result
Name Type Purpose
Manager/Local.Result Slot The created tab.


NewTabWithContent

The tab content holder is created directly under the provided pack target slot.

Context
Name Type Purpose
Print Slot Required The print to create a new tab on.
Content Slot Required The content slot of the tab.
PackTarget Slot Optional Where the tab is parented to.
Result
Name Type Purpose
Manager/Local.Result Slot The created tab.

Snap

Context
Name Type Purpose
Print Slot Required The print to snap to.
Target Slot Required Object to snap to the print.
Result
Name Type Purpose
Manager/Local.Result String Default, Drop, Handled.