Esempio n. 1
0
        public override int Show(params Action[] guiAction)
        {
            if (TabPanel.ButtonStyle == null)
            {
                TabPanel.ButtonStyle = new GUIStyle(GUI.skin.button);

                TabPanel.ButtonStyle.onNormal.background
                    = XJGUILayout.Generate1x1Texture(Color.clear);
            }

            XJGUILayout.VerticalLayout((Action)(() =>
            {
                base.ShowTitle();

                base.Value = GUILayout.Toolbar(base.Value, this.Labels, TabPanel.ButtonStyle);

                guiAction[base.Value]();
            }));

            return(base.Value);
        }