public void AddSwitchsetGroup(Switchset targetSwitchset, string groupId, RageGroup newSwitchsetGroup) { targetSwitchset.AddItem(groupId, newSwitchsetGroup); if (targetSwitchset.ActiveItem == "") { targetSwitchset.ActiveItem = groupId; } targetSwitchset.ResetItemsVisibility(); }
public Switchset FindSwitchset(string switchsetItem) { Switchset targetSwitchset = null; foreach (var entry in Switchsets) { var thisSwitchset = entry.Value; if (thisSwitchset.Items.ContainsKey(switchsetItem)) { targetSwitchset = thisSwitchset; } } return(targetSwitchset); }
public void SetShownSwitchset(string switchsetId, bool show) { Switchset targetSwitchset = Switchsets[switchsetId]; if (!show) { targetSwitchset.ShowInInspector = false; return; } if (LastShownSwitchsetId == switchsetId) { return; } targetSwitchset.ShowInInspector = true; foreach (var switchset in Switchsets) { switchset.Value.ShowInInspector = (switchset.Value == targetSwitchset); } LastShownSwitchsetId = switchsetId; }
public void AddSwitchset(string id, Switchset switchset) { Switchsets.Add(id, switchset); _switchsetsKeys.Add(id); _switchsetsValues.Add(switchset); }