/// <summary> /// Sets the given action button /// </summary> public void BindActionButton(ActionButton btn, bool update = true) { btn.Set(CurrentSpecProfile.ActionButtons); RealmWorldDBMgr.DatabaseProvider.SaveOrUpdate(CurrentSpecProfile); if (update) { CharacterHandler.SendActionButtons(this); } }
/// <summary> /// Sets the given action button /// </summary> public void BindActionButton(ActionButton btn, bool update = true) { btn.Set(CurrentSpecProfile.ActionButtons); CurrentSpecProfile.IsDirty = true; if (update) { CharacterHandler.SendActionButtons(this); } }
/// <summary> /// Sets the given action button /// </summary> public void BindActionButton(ActionButton btn, bool update = true) { btn.Set(CurrentSpecProfile.ActionButtons); CurrentSpecProfile.State = Core.Database.RecordState.Dirty; if (update) { CharacterHandler.SendActionButtons(this); } }
public void SetActionButton(ActionButton btn) { btn.Set(m_record.ActionButtons); }