Class Tab
A tab owns a scenario. It displays the scenario within a canvas. It manages interaction with the scenario.
Inheritance
Focusable
Tab
Assembly: Xareus.Scenarios.Unity.Edition.dll
Syntax
public class Tab : VisualElement, IToolbarEntryData
Constructors
Tab()
Declaration
Properties
ButtonText
Declaration
public string ButtonText { get; }
Property Value
Canvas
Declaration
public CanvasUI Canvas { get; set; }
Property Value
ParentTab
Declaration
public Tab ParentTab { get; set; }
Property Value
ScenarioId
Declaration
public string ScenarioId { get; }
Property Value
ScenarioTabHandler
Declaration
public ScenarioTabHandler ScenarioTabHandler { get; }
Property Value
ScenarioWrapper
Declaration
public ScenarioWrapper ScenarioWrapper { get; set; }
Property Value
SubTab
Declaration
public Tab SubTab { get; set; }
Property Value
Methods
AddSubTab(Scenario)
Declaration
public void AddSubTab(Scenario subScenario)
Parameters
Type |
Name |
Description |
Scenario |
subScenario |
|
Bind()
Declaration
CreateLayerBar(bool)
Declaration
public VisualElement CreateLayerBar(bool isRoot = true)
Parameters
Type |
Name |
Description |
bool |
isRoot |
|
Returns
~Tab()
Declaration
Init(ScenarioTabHandler)
Declaration
public void Init(ScenarioTabHandler scenarioTabHandler)
Parameters
ReceiveScenarioDataChanged(object, ScenarioDataChangedEventArgs)
Declaration
public void ReceiveScenarioDataChanged(object sender, ScenarioDataChangedEventArgs args)
Parameters
RegisterToScenarioEngine()
Declaration
public void RegisterToScenarioEngine()
Reload()
Declaration
RemoveSubTab()
Declaration
public void RemoveSubTab()
StopPlaying()
Declaration
public void StopPlaying()
Update(bool)
Declaration
public void Update(bool force = false)
Parameters
Type |
Name |
Description |
bool |
force |
|
UpdateLayerBar()
Declaration
public void UpdateLayerBar()
Events
DeselectedAll
Signal emitted when nothing is selected
Declaration
public event EventHandler<DeselectedEventArgs> DeselectedAll
Event Type
OpenExternalScenario
Signal emitted when an external scenario is double clicked
Declaration
public event EventHandler<OpenExternalScenarioEventArgs> OpenExternalScenario
Event Type
ScenarioDataChanged
Signal emitted when a command is executed
Declaration
public event EventHandler<ScenarioDataChangedEventArgs> ScenarioDataChanged
Event Type
SelectionUpdated
Signal emitted when a the selection is updated
Declaration
public event EventHandler<List<AClickableElementUI>> SelectionUpdated
Event Type
Implements