/// <inheritdoc/>
        protected override void DoGUI()
        {
            s_SelectedTab = Mathf.Clamp(RotorzEditorGUI.TabSelector(s_SelectedTab, this.tabContent), 0, this.tabs.Count - 1);

            GUILayout.Space(4);

            GUILayout.Label(this.tabs[s_SelectedTab].Description, EditorStyles.wordWrappedLabel);

            GUILayout.Space(5);

            EditorGUIUtility.labelWidth = 70;
            GUILayout.BeginHorizontal();

            this.DrawFlagFields(0, 7);
            GUILayout.Space(5);
            this.DrawFlagFields(8, 15);

            GUILayout.EndHorizontal();

            GUILayout.FlexibleSpace();

            ExtraEditorGUI.Separator(marginTop: 0);

            this.OnGUI_Buttons();
            GUILayout.Space(5);
        }
Exemplo n.º 2
0
        private void DrawLayoutSelectionGUI()
        {
            Rect r = EditorGUILayout.BeginHorizontal();

            {
                GUILayout.Space(-11f);

                EditorGUI.BeginChangeCheck();
                {
                    s_SelectedTabIndex       = RotorzEditorGUI.TabSelector(s_SelectedTabIndex, s_TabLabels);
                    s_SelectedAutotileLayout = s_TabValues[s_SelectedTabIndex];
                }
                if (EditorGUI.EndChangeCheck())
                {
                    this.RecalculateTileSize();
                }

                GUILayout.Space(-10f);
            }
            EditorGUILayout.EndHorizontal();

            // Draw selected icon at top-right of window.
            GUI.DrawTexture(new Rect(r.x + r.width - 45f, r.y - 32f, 40f, 53f), s_SelectedAutotileLayout == AutotileLayout.Extended ? RotorzEditorStyles.Skin.AutotileExtendedIcon : RotorzEditorStyles.Skin.AutotileBasicIcon);
        }