public override void Toggle(bool state) { if (state) { AttributeManager.Reload(); } else { AttributeManager.Cancel(); _activeItemId = -1; } base.Toggle(state); }
/** * 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(); } }