Esempio n. 1
0
        protected override void CreateCustomFileds()
        {
            base.CreateCustomFileds();

            Skill.Framework.UI.Thickness margin = new Skill.Framework.UI.Thickness(2, 2, 0, 2);

            _Object = new Skill.Editor.UI.ObjectField <GameObject>()
            {
                Margin = margin
            }; _Object.Label.text = "Game Object";
            _Component            = new Skill.Editor.UI.Popup()
            {
                Margin = margin
            }; _Component.Label.text = "Component";
            _Property = new Skill.Editor.UI.Popup()
            {
                Margin = margin
            }; _Property.Label.text = "Property";
            _BtnRefresh             = new Skill.Framework.UI.Button()
            {
                Margin = margin, Width = 80, HorizontalAlignment = Framework.UI.HorizontalAlignment.Right
            }; _BtnRefresh.Content.text = "Refresh";

            Controls.Add(_Object);
            Controls.Add(_BtnRefresh);
            Controls.Add(_Component);
            Controls.Add(_Property);

            _Object.ObjectChanged    += _Object_ObjectChanged;
            _Component.OptionChanged += _Component_OptionChanged;
            _Property.OptionChanged  += _Property_OptionChanged;
            _BtnRefresh.Click        += _BtnRefresh_Click;
        }
            protected override void CreateCustomFileds()
            {
                _AccessClassField = new Skill.Editor.UI.Popup()
                {
                    Margin = new Framework.UI.Thickness(0, 2)
                };
                _AccessClassField.Label.text = "SharedKeys Class";
                Controls.Add(_AccessClassField);

                _AccessKeyField = new Skill.Editor.UI.Popup()
                {
                    Margin = new Framework.UI.Thickness(0, 2)
                };
                _AccessKeyField.Label.text = "Key";
                Controls.Add(_AccessKeyField);

                _AccessClassField.OptionChanged += _AccessClassField_OptionChanged;
                _AccessKeyField.OptionChanged   += _AccessKeyField_OptionChanged;
                base.CreateCustomFileds();
            }