public MenuParent(float x, float y, float width, float height, string name, MenuAnchor anchor = MenuAnchor.NONE, MenuAutoSize autoSize = MenuAutoSize.NONE) { m_anchor = anchor; m_autoSize = autoSize; m_maximizedArea = new Rect(x, y, width, height); m_content = new GUIContent(GUIContent.none); m_content.text = name; m_transformedArea = new Rect(); }
public MenuParent(float x, float y, float width, float height, string name, MenuAnchor anchor = MenuAnchor.NONE, MenuAutoSize autoSize = MenuAutoSize.NONE) { m_anchor = anchor; m_autoSize = autoSize; m_maximizedArea = new Rect(x, y, width, height); m_content = new GUIContent(GUIContent.none); m_content.text = name; m_transformedArea = new Rect(); m_resizeArea = new Rect(); m_resizeArea.width = ResizeAreaWidth; m_resizeAreaStyle = GUIStyle.none; m_currentScrollPos = Vector2.zero; }
public MenuParent( AmplifyShaderEditorWindow parentWindow, float x, float y, float width, float height, string name, MenuAnchor anchor = MenuAnchor.NONE, MenuAutoSize autoSize = MenuAutoSize.NONE ) { m_parentWindow = parentWindow: m_anchor = anchor: m_autoSize = autoSize: m_maximizedArea = new Rect( x, y, width, height ): m_content = new GUIContent( GUIContent.none ): m_content.text = name: m_transformedArea = new Rect(): m_resizeArea = new Rect(): m_resizeArea.width = ResizeAreaWidth: m_resizeAreaStyle = GUIStyle.none: m_currentScrollPos = Vector2.zero: }
public PaletteParent(AmplifyShaderEditorWindow parentWindow, float x, float y, float width, float height, string name, MenuAnchor anchor = MenuAnchor.NONE, MenuAutoSize autoSize = MenuAutoSize.NONE) : base(parentWindow, x, y, width, height, name, anchor, autoSize) { m_searchFilter = string.Empty; m_currentCategories = new Dictionary <string, PaletteFilterData>(); //m_allItems = items; m_currentItems = new List <ContextMenuItem>(); }
public PaletteParent(List <ContextMenuItem> items, float x, float y, float width, float height, string name, MenuAnchor anchor = MenuAnchor.NONE, MenuAutoSize autoSize = MenuAutoSize.NONE) : base(x, y, width, height, name, anchor, autoSize) { m_searchFilter = string.Empty; m_currentCategories = new Dictionary <string, PaletteFilterData>(); m_allItems = new List <ContextMenuItem>(); m_currentItems = new List <ContextMenuItem>(); for (int i = 0; i < items.Count; i++) { m_allItems.Add(items[i]); } }