public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview) { AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal); StoreForBankTypeEnum type = EnumUtil.GetEnum <StoreForBankTypeEnum>(rbview.name); InitDataByType(type); }
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(); } }
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(); }
public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview) { BuildItemTypeEnum buildItemType = EnumUtil.GetEnum <BuildItemTypeEnum>(rbview.name); List <StoreInfoBean> listData = GetListBedDataByType(buildItemType); CreateBedDataList(listData); }
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); } }
public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview) { switch (rbview.name) { case "Medicine": CreateItemsList(listData); break; } }
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); }
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); } }
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); } }
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); }
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(); } }
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); } }
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(); } }
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; } }
public void RadioButtonUnSelected(RadioGroupView rgView, int position, RadioButtonView rbview) { }
public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview) { this.selectTypePosition = position; TrophyTypeEnum trophyType = EnumUtil.GetEnum<TrophyTypeEnum>(rbview.name); InitData(trophyType); }
public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview) { this.selectTypePosition = position; AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal); InitDataByWorker(rbview.name); }
public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview) { BookModelInfoBean bookModelInfo = listBookModel[position]; ui_ViewGameBookContentMap.SetData(bookModelInfo); }
public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView view) { AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal); InitDataByType(position); }
public void RadioButtonSelected(RadioGroupView rgView, int position, RadioButtonView rbview) { AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal); this.typePosition = position; ChangeUIType(typePosition); }