Ejemplo n.º 1
0
 public void AddSwitchsetGroup(Switchset targetSwitchset, string groupId, RageGroup newSwitchsetGroup)
 {
     targetSwitchset.AddItem(groupId, newSwitchsetGroup);
     if (targetSwitchset.ActiveItem == "")
     {
         targetSwitchset.ActiveItem = groupId;
     }
     targetSwitchset.ResetItemsVisibility();
 }
Ejemplo n.º 2
0
    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);
    }
Ejemplo n.º 3
0
    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;
    }
Ejemplo n.º 4
0
 public void AddSwitchset(string id, Switchset switchset)
 {
     Switchsets.Add(id, switchset);
     _switchsetsKeys.Add(id);
     _switchsetsValues.Add(switchset);
 }