コード例 #1
0
        public override void OnBodyHeaderGUI()
        {
            EditorGUILayout.BeginHorizontal();
            {
                EditorGUILayout.LabelField("Prefix Settings");
                GUIHelper.SerializedArraySelection(prefixes, ref prefixIndex, UpdateNames, UpdateNames);
            }
            EditorGUILayout.EndHorizontal();

            prefixIndex = GUILayout.SelectionGrid(prefixIndex, prefixNames.ToArray(), 3, EditorStyles.centeredGreyMiniLabel);
        }
コード例 #2
0
ファイル: StyleTab.cs プロジェクト: WooshiiDev/The-Last-Day
        public override void OnTitleContentGUI()
        {
            EditorGUILayout.Space();
            GUIHelper.LineSpacer();
            EditorGUILayout.Space();

            EditorGUILayout.BeginHorizontal();
            {
                EditorGUILayout.LabelField("Style Settings");
                GUIHelper.SerializedArraySelection(styles, ref styleIndex, UpdateNames, UpdateNames);
            }
            EditorGUILayout.EndHorizontal();


            styleIndex = GUILayout.SelectionGrid(styleIndex, styleNames.ToArray(), 4, EditorStyles.centeredGreyMiniLabel);
        }