Exemplo n.º 1
0
    private OOButtonToggle2SubUI GetGuildStoveSubs(int index, string name, bool toggleOn)
    {
        OOButtonToggle2SubUI oOButtonToggle2SubUI = new OOButtonToggle2SubUI();

        oOButtonToggle2SubUI.ToggleIndex     = index;
        oOButtonToggle2SubUI.Action2CallBack = new Action <int>(this.OnStoveSubClick);
        oOButtonToggle2SubUI.Name            = name;
        oOButtonToggle2SubUI.IsTip           = false;
        oOButtonToggle2SubUI.SetIsToggleOn(toggleOn);
        return(oOButtonToggle2SubUI);
    }
Exemplo n.º 2
0
    public void SetChannel(int channel)
    {
        for (int i = 0; i < this.SubChannels.Count; i++)
        {
            OOButtonToggle2SubUI oOButtonToggle2SubUI = this.SubChannels[i];
            if (oOButtonToggle2SubUI != null)
            {
                oOButtonToggle2SubUI.SetIsToggleOn(false);
            }
        }
        OOButtonToggle2SubUI channel2 = this.GetChannel(channel);

        if (channel2 != null)
        {
            channel2.SetIsToggleOn(true);
        }
    }