|
|
|
|
|
|
VisualElement m_SettingsContainer; |
|
|
|
bool m_ShowSettings = false; |
|
|
|
VisualElement m_SettingsButton; |
|
|
|
VisualElement m_SettingsDivider; |
|
|
|
// Remove this after updated to the correct API call has landed in trunk. ------------
|
|
|
|
VisualElement m_TitleContainer; |
|
|
|
VisualElement m_ButtonContainer; |
|
|
|
// -----------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
public void Initialize(AbstractMaterialNode inNode, PreviewManager previewManager, IEdgeConnectorListener connectorListener) |
|
|
|
{ |
|
|
|
|
|
|
m_CollapseButton = this.Q("collapse-button"); |
|
|
|
|
|
|
|
// Remove this after updated to the correct API call has landed in trunk. ------------
|
|
|
|
VisualElement m_TitleContainer; |
|
|
|
VisualElement m_ButtonContainer; |
|
|
|
m_TitleContainer = this.Q("title"); |
|
|
|
// -----------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
m_SettingsButton = new VisualElement {name = "settings-button"}; |
|
|
|
m_SettingsButton.Add(new VisualElement { name = "icon" }); |
|
|
|
|
|
|
|
m_Settings = settings.CreateSettingsElement(); |
|
|
|
|
|
|
|
UpdateSettingsExpandedState(settings); |
|
|
|
UpdateSettingsExpandedState(); |
|
|
|
})); |
|
|
|
|
|
|
|
// Remove this after updated to the correct API call has landed in trunk. ------------
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void UpdateSettingsExpandedState(IHasSettings settings) |
|
|
|
void UpdateSettingsExpandedState() |
|
|
|
m_Settings = settings.CreateSettingsElement(); |
|
|
|
m_NodeSettingsView.Add(m_Settings); |
|
|
|
m_NodeSettingsView.visible = true; |
|
|
|
|
|
|
|