/// <summary>
    /// HomePage A 擦做
    /// </summary>
    private void OPHomePage_A()
    {
        SettingConfig.HomePageItem homeitem = ui.FindHomeItem();
        switch (homeitem)
        {
        case SettingConfig.HomePageItem.Set:
            comdSwitch = 0;
            _clear     = 1;
            curPage    = SettingConfig.Page.SettingPage;
            ui.HomeToSet();
            curButA = SettingConfig.ComdOfButA.Sure;
            ui.SetSetInfo(proxy.Rate, proxy.Language, proxy.Volume, proxy.Ticket, proxy.Time);
            break;

        case SettingConfig.HomePageItem.Account:
            curPage = SettingConfig.Page.AccountPage;
            ui.HomeToAccount();
            break;

        case SettingConfig.HomePageItem.Exit:
            SettingManager.Instance.Save();
            UIManager.Instance.CloseUI(EnumUIType.PanelSetting);
            UIManager.Instance.OpenUI(EnumUIType.PanelCoin);
            //IOManager.Instance.SendMessageExitSetting();
            break;
        }
    }
Beispiel #2
0
    private void SwitchHomeItem()
    {
        ++Index_homePageSwicth;
        Index_homePageSwicth %= toggle_homeNumber;
        int temp = 0;

        for (int i = 0; i < view.homePage.homeToggleList.Count; i++)
        {
            if (Index_homePageSwicth == temp)
            {
                view.homePage.homeToggleList[i].isOn = true;
                view.homePage.homeTextList[i].color  = new Color(1, 0, 0);
                curHomeItem = (SettingConfig.HomePageItem)Index_homePageSwicth;
            }
            else
            {
                view.homePage.homeToggleList[i].isOn = false;
                view.homePage.homeTextList[i].color  = new Color(1, 1, 1);
            }
            ++temp;
        }
    }
    /// <summary>
    /// 后台主页面选项切换
    /// </summary>
    public void SwitchHomeItem()
    {
        ++cur_home_item;
        cur_home_item %= total_home_item;
        int temp = 0;

        for (int i = 0; i < _View.homePage.homeToggleList.Count; i++)
        {
            if (cur_home_item == temp)
            {
                _View.homePage.homeToggleList[i].isOn = true;
                _View.homePage.homeTextList[i].color  = new Color(1, 0, 0);
                curHomeItem = (SettingConfig.HomePageItem)cur_home_item;
            }
            else
            {
                _View.homePage.homeToggleList[i].isOn = false;
                _View.homePage.homeTextList[i].color  = new Color(1, 1, 1);
            }
            ++temp;
        }
    }