void OnGUI() { #pragma warning disable 0219 GUILayout.Label("Press [Return] to show/hide window."); this.window.Show(() => { this.tabPanel.Show (new TabPanel.Func("Basic", () => { this.boolValue = this.boolGUI.Show(); this.stringValue = this.stringGUI.Show(); this.intValue = this.intGUI.Show(); this.floatValue = this.floatGUI.Show(); }), new TabPanel.Func("Vector & Matrix", () => { this.foldoutPanel.Show(() => { this.vector2Value = this.vector2GUI.Show(); this.vector3Value = this.vector3GUI.Show(); this.vector4Value = this.vector4GUI.Show(); }); this.vector2IntValue = this.vector2IntGUI.Show(); this.vector3IntValue = this.vector3IntGUI.Show(); this.matrixValue = this.matrixGUI.Show(); }), new TabPanel.Func("Others", () => { this.colorValue = this.colorGUI.Show(); this.ipv4Value = this.ipv4GUI.Show(); this.enumValue = this.enumGUI.Show(); this.scrollPanel.Show(() => { GUILayout.Box("BOX", GUILayout.Width(300), GUILayout.Height(300)); XJGUILayout.Label("Long Text, Long Text, Long Text, Long Text, Long Text, Long Text" + "Long Text, Long Text, Long Text, Long Text, Long Text, Long Text" + "Long Text, Long Text, Long Text, Long Text, Long Text, Long Text", XJGUILayout.LabelOption.NoWrap | XJGUILayout.LabelOption.Bold); }); })); }); #pragma warning restore 0219 }
public override int Show(int value) { XJGUILayout.Label("UnSupported : " + base.Title); return(-1); }