Updated Editor menu layout

development
Simon Jackson 2023-01-01 11:45:02 +00:00
parent 2c5a7bb47f
commit 55489bd617
1 changed files with 142 additions and 143 deletions

View File

@ -220,7 +220,7 @@ namespace UnityEditor.UI
#region UI Extensions "Create" Menu items
#region Scroll Snap controls
[MenuItem("GameObject/UI/Extensions/Horizontal Scroll Snap", false)]
[MenuItem("GameObject/UI/Extensions/Layout/Horizontal Scroll Snap", false)]
static public void AddHorizontalScrollSnap(MenuCommand menuCommand)
{
GameObject horizontalScrollSnapRoot = CreateUIElementRoot("Horizontal Scroll Snap", menuCommand, s_ThickGUIElementSize);
@ -285,7 +285,7 @@ namespace UnityEditor.UI
Selection.activeGameObject = horizontalScrollSnapRoot;
}
[MenuItem("GameObject/UI/Extensions/Vertical Scroll Snap", false)]
[MenuItem("GameObject/UI/Extensions/Layout/Vertical Scroll Snap", false)]
static public void AddVerticallScrollSnap(MenuCommand menuCommand)
{
GameObject verticalScrollSnapRoot = CreateUIElementRoot("Vertical Scroll Snap", menuCommand, s_ThickGUIElementSize);
@ -482,7 +482,7 @@ namespace UnityEditor.UI
#endregion
#region ContentScrollSnapHorizontal
[MenuItem("GameObject/UI/Extensions/Content Scroll Snap Horizontal", false)]
[MenuItem("GameObject/UI/Extensions/Layout/Content Scroll Snap Horizontal", false)]
static public void AddContentScrollSnapHorizontal(MenuCommand menuCommand)
{
GameObject contentScrollSnapRoot = CreateUIElementRoot("Content Scroll Snap Horizontal", menuCommand, s_ThickGUIElementSize);
@ -591,7 +591,7 @@ namespace UnityEditor.UI
#endregion
#region UIVertical Scroller
[MenuItem("GameObject/UI/Extensions/UI Vertical Scroller", false)]
[MenuItem("GameObject/UI/Extensions/Layout/UI Vertical Scroller", false)]
static public void AddUIVerticallScroller(MenuCommand menuCommand)
{
GameObject uiVerticalScrollerRoot = CreateUIElementRoot("UI Vertical Scroller", menuCommand, s_ThickGUIElementSize);
@ -672,7 +672,7 @@ namespace UnityEditor.UI
#endregion
#region UI Button
[MenuItem("GameObject/UI/Extensions/UI Button", false)]
[MenuItem("GameObject/UI/Extensions/Controls/UI Button", false)]
static public void AddUIButton(MenuCommand menuCommand)
{
GameObject uiButtonRoot = CreateUIElementRoot("UI Button", menuCommand, s_ThickGUIElementSize);
@ -702,7 +702,7 @@ namespace UnityEditor.UI
#endregion
#region UI Flippable
[MenuItem("GameObject/UI/Extensions/UI Flippable", false)]
[MenuItem("GameObject/UI/Extensions/Controls/UI Flippable", false)]
static public void AddUIFlippableImage(MenuCommand menuCommand)
{
GameObject go = CreateUIElementRoot("UI Flippable", menuCommand, s_ImageGUIElementSize);
@ -713,7 +713,7 @@ namespace UnityEditor.UI
#endregion
#region UI WindowBase
[MenuItem("GameObject/UI/Extensions/UI Window Base", false)]
[MenuItem("GameObject/UI/Extensions/Controls/UI Window Base", false)]
static public void AddUIWindowBase(MenuCommand menuCommand)
{
GameObject go = CreateUIElementRoot("UI Window Base", menuCommand, s_ThickGUIElementSize);
@ -792,7 +792,7 @@ namespace UnityEditor.UI
#endregion
#region Drop Down controls
[MenuItem("GameObject/UI/Extensions/AutoComplete ComboBox", false)]
[MenuItem("GameObject/UI/Extensions/ComboBox/AutoComplete ComboBox", false)]
static public void AddAutoCompleteComboBox(MenuCommand menuCommand)
{
GameObject autoCompleteComboBoxRoot = CreateUIElementRoot("AutoCompleteComboBox", menuCommand, s_ThickGUIElementSize);
@ -889,7 +889,7 @@ namespace UnityEditor.UI
Selection.activeGameObject = autoCompleteComboBoxRoot;
}
[MenuItem("GameObject/UI/Extensions/ComboBox", false)]
[MenuItem("GameObject/UI/Extensions/ComboBox/ComboBox", false)]
static public void AddComboBox(MenuCommand menuCommand)
{
GameObject comboBoxRoot = CreateUIElementRoot("ComboBox", menuCommand, s_ThickGUIElementSize);
@ -986,7 +986,7 @@ namespace UnityEditor.UI
Selection.activeGameObject = comboBoxRoot;
}
[MenuItem("GameObject/UI/Extensions/DropDownList", false)]
[MenuItem("GameObject/UI/Extensions/ComboBox/DropDownList", false)]
static public void AddDropDownList(MenuCommand menuCommand)
{
GameObject dropDownListRoot = CreateUIElementRoot("DropDownList", menuCommand, s_ThickGUIElementSize);
@ -1205,7 +1205,7 @@ namespace UnityEditor.UI
#endregion
#region Progress bar
[MenuItem("GameObject/UI/Extensions/Progress Bar", false)]
[MenuItem("GameObject/UI/Extensions/Controls/Progress Bar", false)]
static public void AddSlider(MenuCommand menuCommand)
{
// Create GOs Hierarchy
@ -1829,7 +1829,7 @@ namespace UnityEditor.UI
#endregion
#region Segmented Control
[MenuItem("GameObject/UI/Extensions/Segmented Control", false)]
[MenuItem("GameObject/UI/Extensions/Controls/Segmented Control", false)]
static public void AddSegmentedControl(MenuCommand menuCommand)
{
GameObject go = CreateUIElementRoot("Segmented Control", menuCommand, s_ThickGUIElementSize);
@ -1883,7 +1883,7 @@ namespace UnityEditor.UI
#endregion
#region UI Knob
[MenuItem("GameObject/UI/Extensions/UI Knob", false)]
[MenuItem("GameObject/UI/Extensions/Controls/UI Knob", false)]
static public void AddUIKnob(MenuCommand menuCommand)
{
GameObject go = CreateUIElementRoot("UI Knob", menuCommand, s_ImageGUIElementSize);
@ -1894,7 +1894,7 @@ namespace UnityEditor.UI
#endregion
#region TextPic
[MenuItem("GameObject/UI/Extensions/TextPic", false)]
[MenuItem("GameObject/UI/Extensions/Controls/TextPic", false)]
static public void AddTextPic(MenuCommand menuCommand)
{
GameObject go = CreateUIElementRoot("TextPic", menuCommand, s_ImageGUIElementSize);
@ -1940,7 +1940,7 @@ namespace UnityEditor.UI
#endregion
#region Non Drawing Graphic options
[MenuItem("GameObject/UI/Extensions/NonDrawingGraphic", false)]
[MenuItem("GameObject/UI/Extensions/Controls/NonDrawingGraphic", false)]
static public void AddNonDrawingGraphic(MenuCommand menuCommand)
{
GameObject go = CreateUIElementRoot("NonDrawing Graphic", menuCommand, s_ImageGUIElementSize);
@ -1948,7 +1948,7 @@ namespace UnityEditor.UI
Selection.activeGameObject = go;
}
[MenuItem("GameObject/UI/Extensions/NonDrawingGraphicClickable", false)]
[MenuItem("GameObject/UI/Extensions/Controls/NonDrawingGraphicClickable", false)]
static public void AddClickableNonDrawingGraphic(MenuCommand menuCommand)
{
GameObject go = CreateUIElementRoot("NonDrawing Graphic-Clickable", menuCommand, s_ImageGUIElementSize);
@ -2303,6 +2303,5 @@ namespace UnityEditor.UI
}
#endregion
}
}