Esempio n. 1
0
        public override void Toggle(bool state)
        {
            if (state)
            {
                AttributeManager.Reload();
            }
            else
            {
                AttributeManager.Cancel();
                _activeItemId = -1;
            }

            base.Toggle(state);
        }
Esempio n. 2
0
        /**
         * Confirm & Reset BTN
         */
        protected override void DrawOverlay()
        {
            if (!AttributeManager.IsModified)
            {
                return;
            }

            if (GUI.Button(new Rect(10, 465, 170, 50), LT("Cancel"), "att_action_btn"))
            {
                AttributeManager.Cancel();
            }

            if (GUI.Button(new Rect(200, 465, 170, 50), LT("Accept"), "att_action_btn"))
            {
                AttributeManager.Save();
            }
        }