Esempio n. 1
0
    void Start()
    {
        this.flexibleWindow           = new FlexibleWindow();
        this.flexibleWindow.MaxHeight = 200;

        this.tabPanel = new TabPanel()
        {
            Labels = new string[] { "Basic", "Vectors", "Others" }
        };

        this.foldoutPanel = new FoldoutPanel()
        {
            Title = "Vectors"
        };

        this.scrollPanel = new ScrollPanel()
        {
            MinWidth  = 500,
            MinHeight = 150,
        };

        this.intGUI = new IntGUI()
        {
            Title = "Int Value"
        };
        this.floatGUI = new FloatGUI()
        {
            Title = "Float Value"
        };
        this.stringGUI = new StringGUI()
        {
            Title = "String Value"
        };
        this.boolGUI = new BoolGUI()
        {
            Title = "Bool Value"
        };

        this.vector2GUI = new Vector2GUI()
        {
            Title = "Vector2 Value"
        };
        this.vector3GUI = new Vector3GUI()
        {
            Title = "Vector3 Value"
        };
        this.vector4GUI = new Vector4GUI()
        {
            Title = "Vector4 Value"
        };

        this.ipv4GUI = new IPv4GUI()
        {
            Title = "IPv4 Value"
        };
        this.colorGUI = new ColorGUI()
        {
            Title = "Color Value"
        };
    }
Esempio n. 2
0
    void Start()
    {
        this.flexibleWindow = new FlexibleWindow();

        this.colorGUI = new ColorGUI()
        {
            Title = "Color Value",
            Value = this.colorValue,
        };

        this.colorGUIHSV = new ColorGUI()
        {
            Title = "Color Value HSV",
            Value = this.colorValue,
            HSV   = true
        };

        this.enumGUI = new EnumGUI<CameraType>()
        {
            Title = "Enum Value",
            Value = this.enumValue
        };

        this.ipv4GUI = new IPv4GUI()
        {
            Title = "IPv4 Value",
            Value = this.ipv4Value,
        };
    }
Esempio n. 3
0
    void Start()
    {
        this.flexibleWindow = new FlexibleWindow();

        this.intGUI = new IntGUI()
        {
            Title = "Int Value"
        };
        this.floatGUI = new FloatGUI()
        {
            Title = "Float Value"
        };
        this.boolGUI = new BoolGUI()
        {
            Title = "Bool Value"
        };
        this.stringGUI = new StringGUI()
        {
            Title = "String Value", Value = "aiueo"
        };

        this.vector2GUI = new Vector2GUI()
        {
            Title = "Vector2 Value"
        };
        this.vector3GUI = new Vector3GUI()
        {
            Title = "Vector3 Value", Decimals = 3
        };
        this.vector4GUI = new Vector4GUI()
        {
            Title = "Vector4 Value", WithSlider = false
        };
    }
    void Start()
    {
        // NOTE:
        // There are many default settings in XJGUILayout.
        // You can set the default values before you generate XJGUI.
        // It helps you when define each GUIs settings.

        XJGUILayout.DefaultValueInt    = 50;
        XJGUILayout.DefaultMaxValueInt = 100;

        this.flexibleWindow = new FlexibleWindow()
        {
            Title = "Sample02"
        };

        this.intGUI1 = new IntGUI()
        {
            Title = "Int Value 1"
        };

        // NOTE:
        // You can override default settings.

        this.intGUI2 = new IntGUI()
        {
            Title    = "Int Value 2",
            MaxValue = 10,
            MinValue = 0,
        };
    }
Esempio n. 5
0
    void Start()
    {
        this.flexibleWindow = new FlexibleWindow();

        this.currentEnum = CameraType.Game;
        this.toolbarEnum = new Toolbar <CameraType>()
        {
            Title  = "Toolbar Enum",
            Value  = this.currentEnum,
            Values = this.enumValues,
        };

        this.currentObject = this.objectValues[2];
        this.toolbarObject = new Toolbar <SampleClass>()
        {
            Title  = "Toolbar Sample Class",
            Value  = this.currentObject,
            Values = this.objectValues
        };

        this.currentInt = this.intValues[1];
        this.toolbarInt = new Toolbar <int>()
        {
            Title   = "Toolbar Int",
            Value   = this.currentInt,
            Values  = this.intValues,
            GridX   = 4,
            Foldout = true
        };
    }
Esempio n. 6
0
    void Start()
    {
        // NOTE:
        // Any other settings.
        // this.flexibleWindow.IsVisible
        // this.flexibleWindow.IsDraggable
        // this.flexibleWindow.MinHeight/MaxHeight
        // this.flexibleWindow.MinWidth/MaxWidth

        this.flexibleWindow       = new FlexibleWindow();
        this.flexibleWindow.Title = "Sample01";

        this.intGUI = new IntGUI()
        {
            Title     = "Int Value",
            BoldTitle = true,
            Value     = this.intValue,
            MinValue  = -10,
            MaxValue  = 10,
        };

        this.floatGUI = new FloatGUI()
        {
            Title    = "Float Value",
            Value    = this.floatValue,
            MinValue = 0,
            MaxValue = 100,
            Decimals = 3,
        };
    }
Esempio n. 7
0
    void Start()
    {
        this.flexibleWindow = new FlexibleWindow();

        this.boolsGUI = new BoolsGUI()
        {
            Title = "BoolList",
            Value = this.boolList
        };

        this.stringsGUI = new StringsGUI()
        {
            Title = "String Array",
        };
        this.stringsGUI.Value = this.stringArray;

        this.intsGUI = new IntsGUI()
        {
            Title    = "Int List",
            Value    = this.intList,
            MinValue = -100,
            MaxValue = 100,
        };

        this.floatsGUI = new FloatsGUI()
        {
            Title = "Float Array",
            Value = this.floatArray,
        };

        this.vector2sGUI = new Vector2sGUI()
        {
            Title    = "Vector2 Array",
            MinValue = new Vector2(-10, -10),
            MaxValue = new Vector2(10, 10),
            Value    = this.vector2Array
        };

        this.colorsGUI = new ColorsGUI()
        {
            Title = "Colors",
            Value = this.colorList
        };

        this.ipv4sGUI = new IPv4sGUI()
        {
            Title = "IPv4s",
            Value = this.ipv4Array,
        };

        this.enumsGUI = new EnumsGUI <CameraType>()
        {
            Title = "Enums",
            Value = this.enumsArray,
        };
    }
Esempio n. 8
0
    void Start()
    {
        this.window = new FlexibleWindow("FieldGUI Sample 1");

        this.fieldGUI = new FieldGUI(this.sampleClass)
        {
            HideUnsupportedGUI = false,
            Foldout            = true
        };
    }
Esempio n. 9
0
    void Awake()
    {
        XJGUILayout.DefaultMinValueVector2Int = new Vector2Int(-999, -999);
        XJGUILayout.DefaultMaxValueVector2Int = new Vector2Int(999, 999);

        this.window = new FlexibleWindow("Basic Sample");

        this.tabPanel     = new TabPanel();
        this.foldoutPanel = new FoldoutPanel("Click to Open/Close");
        this.scrollPanel  = new ScrollPanel()
        {
            MinHeight = 100
        };

        this.boolGUI   = new BoolGUI("Bool", this.boolValue);
        this.stringGUI = new StringGUI("String", this.stringValue)
        {
            FieldWidth = 250
        };
        this.intGUI     = new IntGUI("Int", this.intValue);
        this.floatGUI   = new FloatGUI("Float", this.floatValue, -1, 1);
        this.vector2GUI = new Vector2GUI("Vector2", this.vector2Value)
        {
            Decimals = 1
        };
        this.vector3GUI = new Vector3GUI("Vector3", this.vector3Value)
        {
            MinValue = Vector3.zero
        };
        this.vector4GUI = new Vector4GUI("Vector4", this.vector4Value)
        {
            WithSlider = false
        };
        this.vector2IntGUI = new Vector2IntGUI("Vector2Int", this.vector2IntValue);
        this.vector3IntGUI = new Vector3IntGUI("Vector3Int", this.vector3IntValue, Vector3Int.zero, Vector3Int.one);
        this.colorGUI      = new ColorGUI("Color", this.colorValue);
        this.matrixGUI     = new Matrix4x4GUI("Matrix4x4", this.matrixValue);
        this.ipv4GUI       = new IPv4GUI("IPv4", this.ipv4Value);
        this.enumGUI       = new EnumGUI <CameraType>("Enum", this.enumValue);
    }
Esempio n. 10
0
 void Start()
 {
     this.window   = new FlexibleWindow("FieldGUI Sample 2");
     this.fieldGUI = new FieldGUI(this.sampleClass);
 }
Esempio n. 11
0
 void Start()
 {
     this.window = new FlexibleWindow("FieldGUI Sample 3");
     this.fieldGUISampleStructA = new FieldGUI(this.sampleStructA);
     this.fieldGUISampleStructB = new FieldGUI(this.sampleStructB);
 }