/// <summary> /// Make a shadow copy of the element at the current state which stays available even the element is gone. /// </summary> /// <returns>A shadow copy of the current element.</returns> public new BasicMenuItemData GetDataCopy() { var data = new BasicMenuItemData(); FillData(data); data.IsExpanded = GetSafeData(() => IsExpanded); var items = new List <BasicMenuItemData>(); data.Items = items; try { foreach (var item in Items) { if (item != null) { items.Add(item.GetDataCopy()); } } } catch { } data.Text = GetSafeData(() => Text); return(data); }
public UnselectedState(ref BasicMenuItemData basicData, ref MenuItemActiveData activeData) { c_basicData = basicData; c_activeData = activeData; }
public PostselectedState(ref BasicMenuItemData basicData, ref MenuItemActiveData activeData, ref LerpCartridge lerpcart) { c_basicData = basicData; c_activeData = activeData; c_lerpCart = lerpcart; }