public override void Awake()
        {
            base.Awake();

            this.size = SIZE_PANEL_DEFAULT;

            //label
            label = UISimpleElems.CreateLabelWhite(this, "Angle Mode", 0.875f, UIHorizontalAlignment.Right, new RectOffset(2, 6, 7, 9), SIZE_LABEL_DEFAULT, new Vector3(0f, 0f));
            label.relativePosition = new Vector3(0f, 0f);
            //dropdown
            dropDown       = UISimpleElems.CreateDropDown(this, 0.875f, new RectOffset(8, 8, 8, 0), SIZE_DROPDOWN_DEFAULT, ITEM_WIDTH, ITEM_HEIGHT, 12, ITEM_SPACING);
            dropDown.items = new string[12]
            {
                "Option 1",
                "Option 2",
                "Option 3",
                "Option 4",
                "Option 5",
                "Option 6",
                "Option 7",
                "Option 8",
                "Option 9",
                "Option 10",
                "Option 11",
                "Option 12",
            };
            dropDown.relativePosition = new Vector3(SIZE_LABEL_DEFAULT.x, 0f);
        }
        //awake
        public override void Awake()
        {
            base.Awake();

            this.size = new Vector2(342f, 24f);

            checkbox = UISimpleElems.AddAToggleButton(this, "", UIView.GetAView().defaultAtlas, "PLT_MultiStateZero", "PLT_MultiStateOne", "", "", new Vector2(24f, 24f));
            checkbox.relativePosition = new Vector3(0f, 0f);

            label = UISimpleElems.CreateLabelWhite(this, "[Toggle Option]", 1f, UIHorizontalAlignment.Left, new RectOffset(6, 6, 5, 0), new Vector2(318f, 42f), new Vector3(24f, 0f));
            label.verticalAlignment = UIVerticalAlignment.Top;
            label.wordWrap          = true;
            label.relativePosition  = new Vector3(24f, 0f);

            checkbox.eventActiveStateIndexChanged += delegate(UIComponent c, int index)
            {
                if (index == 0)
                {
                    OnCheckChanged(false);
                }
                else if (index == 1)
                {
                    OnCheckChanged(true);
                }
            };
        }
        public override void Awake()
        {
            base.Awake();

            this.size = SIZE_PANEL_DEFAULT;

            //labels
            labelText = UISimpleElems.CreateLabelWhite(this, "Numbox", 1f, UIHorizontalAlignment.Right, new RectOffset(2, 6, 2, 4), SIZE_LABEL_TEXT_DEFAULT, new Vector3(0f, 0f));
            labelText.relativePosition = new Vector3(0f, 0f);
            labelUnits = UISimpleElems.CreateLabelWhite(this, "u", 1f, UIHorizontalAlignment.Left, new RectOffset(4, 2, 2, 4), SIZE_LABEL_UNITS_DEFAULT, new Vector3(270f, 0f));
            labelUnits.relativePosition = new Vector3(SIZE_LABEL_TEXT_DEFAULT.x + SIZE_NUMBOX_DEFAULT.x, 0f);
            //numbox
            numbox = this.AddUIComponent <UINumbox2>();
            numbox.numDecimalDigits = 2;
            numbox.value            = 1f;
            numbox.size             = SIZE_NUMBOX_DEFAULT;
            numbox.relativePosition = new Vector3(SIZE_LABEL_TEXT_DEFAULT.x, 0f);
            numbox.disabledColor    = new Color32(255, 255, 255, 128);
        }