示例#1
0
    public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        StoreForBankTypeEnum type = EnumUtil.GetEnum <StoreForBankTypeEnum>(rbview.name);

        InitDataByType(type);
    }
示例#2
0
    public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);

        innUI.Close();
        revenueUI.Close();
        achUI.Close();
        customerUI.Close();
        menuUI.Close();
        if (rbview == rbTypeInn)
        {
            innUI.Open();
        }
        else if (rbview == rbTypeRevenue)
        {
            revenueUI.Open();
        }
        else if (rbview == rbTypeAch)
        {
            achUI.Open();
        }
        else if (rbview == rbTypeCustomer)
        {
            customerUI.Open();
        }
        else if (rbview == rbTypeMenu)
        {
            menuUI.Open();
        }
    }
示例#3
0
    public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        switch (rbview.name)
        {
        case "Hair":
            this.bodyType  = BodyTypeEnum.Hair;
            listSelectData = CharacterBodyHandler.Instance.manager.GetAllHair();
            break;

        case "Eye":
            this.bodyType  = BodyTypeEnum.Eye;
            listSelectData = CharacterBodyHandler.Instance.manager.GetAllEye();
            break;

        case "Mouth":
            this.bodyType  = BodyTypeEnum.Mouth;
            listSelectData = CharacterBodyHandler.Instance.manager.GetAllMouth();
            break;

        case "Skin":
            this.bodyType = BodyTypeEnum.Skin;
            listSelectData.Clear();
            listSelectData.Add("Def");
            listSelectData.AddRange(CharacterBodyHandler.Instance.manager.GetAllTrunk());
            break;
        }
        gridVertical.SetCellCount(listSelectData.Count);
        gridVertical.RefreshAllCells();
    }
示例#4
0
    public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
    {
        BuildItemTypeEnum    buildItemType = EnumUtil.GetEnum <BuildItemTypeEnum>(rbview.name);
        List <StoreInfoBean> listData      = GetListBedDataByType(buildItemType);

        CreateBedDataList(listData);
    }
示例#5
0
    public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        int timeScale = 1;

        if (rbview == rbTimeScale2)
        {
            timeScale = 2;
        }
        else if (rbview == rbTimeScale5)
        {
            timeScale = 5;
        }
        else if (rbview == rbTimeScale8)
        {
            timeScale = 8;
        }
        else if (rbview == rbTimeScaleStop)
        {
            timeScale = 0;
        }
        if (rbview.status == RadioButtonView.RadioButtonStatus.Selected)
        {
            GameTimeHandler.Instance.SetTimeScale(timeScale);
        }
        else
        {
            GameTimeHandler.Instance.SetTimeScale(1);
        }
    }
示例#6
0
 public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
 {
     switch (rbview.name)
     {
     case "Medicine":
         CreateItemsList(listData);
         break;
     }
 }
示例#7
0
    public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        ClearData();
        rankType = EnumUtil.GetEnum <RankTypeEnum>(rbview.name);
        string rankName = RankTypeEnumTool.GetRankTypeName(rankType);

        //设置本地数据
        SetLocalData();
        //获取排行榜ID
        SteamHandler.Instance.GetLeaderboardId(rankName, this);
    }
示例#8
0
 public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
 {
     AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
     //删除当前选中
     GameControlHandler.Instance.manager.GetControl <ControlForBuildCpt>(GameControlHandler.ControlEnum.Build).ClearBuildItem();
     btDismantle.gameObject.SetActive(true);
     if (rbview == rbTypeTable)
     {
         SetInnBuildActive(true, true);
         CreateBuildList(BuildItemTypeEnum.Table);
     }
     else if (rbview == rbTypeStove)
     {
         SetInnBuildActive(true, true);
         CreateBuildList(BuildItemTypeEnum.Stove);
     }
     else if (rbview == rbTypeCounter)
     {
         SetInnBuildActive(true, true);
         CreateBuildList(BuildItemTypeEnum.Counter);
     }
     else if (rbview == rbTypeDoor)
     {
         SetInnBuildActive(true, true);
         CreateBuildList(BuildItemTypeEnum.Door);
     }
     else if (rbview == rbTypeDecoration)
     {
         SetInnBuildActive(true, true);
         CreateBuildList(BuildItemTypeEnum.Decoration);
     }
     else if (rbview == rbTypeFloor)
     {
         SetInnBuildActive(false, false);
         btDismantle.gameObject.SetActive(false);
         CreateBuildList(BuildItemTypeEnum.Floor);
     }
     else if (rbview == rbTypeWall)
     {
         SetInnBuildActive(true, true);
         CreateBuildList(BuildItemTypeEnum.Wall);
     }
     else if (rbview == rbTypeBed)
     {
         SetInnBuildActive(true, true);
         CreateBuildList(BuildItemTypeEnum.Bed);
     }
     else if (rbview == rbTypeStairs)
     {
         SetInnBuildActive(true, true);
         CreateBuildList(BuildItemTypeEnum.Stairs);
     }
 }
示例#9
0
    public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView view)
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);

        if (position == 0)
        {
            characterBodyCpt.SetSex(1, null);
        }
        else
        {
            characterBodyCpt.SetSex(2, null);
        }
    }
示例#10
0
 public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
 {
     AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
     if (rgView == rgStyleType)
     {
         mStyleType = EnumUtil.GetEnum <StoreForDressTypeEnum>(rbview.name);
     }
     else if (rgView == rgPartType)
     {
         mPartType = EnumUtil.GetEnum <GeneralEnum>(rbview.name);
     }
     InitDataByType(mStyleType, mPartType);
 }
示例#11
0
 public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
 {
     this.labelIndex = position;
     if (rbview == ui_ViewLabel_Equip)
     {
         ui_ViewCharacterEquip.OpenUI();
         ui_ViewSynthesis.CloseUI();
     }
     else if (rbview == ui_ViewLabel_Synthesis)
     {
         ui_ViewCharacterEquip.CloseUI();
         ui_ViewSynthesis.OpenUI();
     }
 }
示例#12
0
    public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        SeasonsEnum          season = EnumUtil.GetEnum <SeasonsEnum>(rbview.name);
        UserRevenueMonthBean userRevenueMonthData = GetUserRevenueMonthData((int)season, userRevenueData);

        if (userRevenueMonthData == null)
        {
            cartogramBar.SetData(new List <CartogramDataBean>());
        }
        else
        {
            ((RevenueCartogramBarView)cartogramBar).SetData(userRevenueMonthData.GetListCartogramDataForIncome(), userRevenueMonthData.listDayData);
        }
    }
示例#13
0
 public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
 {
     this.index = position;
     if (rbview == ui_ViewLabel_Game)
     {
         settingGameContent.Open();
     }
     else if (rbview == ui_ViewLabel_Display)
     {
         settingDisplayContent.Open();
     }
     else if (rbview == ui_ViewLabel_Audio)
     {
         settingAudioContent.Open();
     }
     else if (rbview == ui_ViewLabel_Control)
     {
         settingControlContent.Open();
     }
 }
示例#14
0
    public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        objBaseHelp.SetActive(false);
        objBuildHelp.SetActive(false);
        objManageHelp.SetActive(false);
        objLevelUpHelp.SetActive(false);
        objFavorabilityHelp.SetActive(false);
        objHotel.SetActive(false);
        switch (rbview.name)
        {
        case "Base":
            objBaseHelp.SetActive(true);
            break;

        case "Build":
            objBuildHelp.SetActive(true);
            break;

        case "Manage":
            objManageHelp.SetActive(true);
            break;

        case "LevelUp":
            objLevelUpHelp.SetActive(true);
            break;

        case "Favorability":
            objFavorabilityHelp.SetActive(true);
            break;

        case "Hotel":
            objHotel.SetActive(true);
            break;
        }
    }
示例#15
0
    public void RadioButtonUnSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
    {

    }
示例#16
0
 public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
 {
     this.selectTypePosition = position;
     TrophyTypeEnum trophyType = EnumUtil.GetEnum<TrophyTypeEnum>(rbview.name);
     InitData(trophyType);
 }
示例#17
0
 public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
 {
     this.selectTypePosition = position;
     AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
     InitDataByWorker(rbview.name);
 }
示例#18
0
    public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
    {
        BookModelInfoBean bookModelInfo = listBookModel[position];

        ui_ViewGameBookContentMap.SetData(bookModelInfo);
    }
示例#19
0
 public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView view)
 {
     AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
     InitDataByType(position);
 }
示例#20
0
 public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview)
 {
     AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
     this.typePosition = position;
     ChangeUIType(typePosition);
 }