117 【武将】武将系统 - 图鉴奖励
物品特效,官职奖励特效
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年8月5日
|
| | | // [ Date ]: Wednesday, September 10, 2025
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | //激活 |
| | | addPer = qualityConfig.BookInitAddPer; |
| | | btnText.text = Language.Get("L1131"); //L1131 激活 |
| | | awardInfo.text = Language.Get("HeroAwake10", UIHelper.GetIconNameWithMoneyType(HeroUIManager.Instance.bookMoneyType), |
| | | HeroUIManager.Instance.bookMoneyValue); |
| | | awardInfo.text = Language.Get("HeroAwake10", UIHelper.GetIconNameWithMoneyType(qualityConfig.BookActAwardMoney[0]), |
| | | qualityConfig.BookActAwardMoney[1]); |
| | | unActiveGo.SetActive(true); |
| | | titleText.text = Language.Get("HeroAwake11"); |
| | | } |
| | |
| | | public int selectHeroCollectListCountry = 0; //武将列表界面筛选国家 |
| | | public int selectCollectHeroID; //选中的武将id 用于升级 |
| | | |
| | | public int bookMoneyType; //图鉴奖励货币类型 |
| | | public int bookMoneyValue;//图鉴奖励货币数量 |
| | | |
| | | public int selectForPreviewHeroID; //选中的武将id 用于预览 |
| | | |
| | | //图鉴和皮肤的激活情况 |
| | |
| | | |
| | | ParseGiftConfig(); |
| | | |
| | | config = FuncConfigConfig.Get("HeroBook"); |
| | | var arr = JsonMapper.ToObject<int[]>(config.Numerical1); |
| | | bookMoneyType = arr[0]; |
| | | bookMoneyValue = arr[1]; |
| | | |
| | | config = FuncConfigConfig.Get("HeroRedpoint"); |
| | | heroRedpointItemList = JsonMapper.ToObject<int[]>(config.Numerical1); |
| | | } |
| | |
| | |
|
| | | void DisPlayEffect(ItemConfig config)
|
| | | {
|
| | | if (itemBaseEffect == null)
|
| | | return;
|
| | | if (config.BaseEffectID == 0)
|
| | | {
|
| | | if (itemBaseEffect != null)
|
| | | {
|
| | | itemBaseEffect.SetActive(false);
|
| | | }
|
| | | itemBaseEffect.SetActive(false);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | [SerializeField] Image bgImg; |
| | | [SerializeField] Image finishImg; |
| | | [SerializeField] Image getAwardImg; |
| | | [SerializeField] GameObject getAwardEffect; |
| | | [SerializeField] Text taskName; |
| | | [SerializeField] Image taskProcess; |
| | | [SerializeField] Text taskProcessText; |
| | |
| | | stateImg.SetSprite("OfficialMisionState" + state); |
| | | finishImg.SetActive(state == 2); |
| | | getAwardImg.SetActive(state == 1); |
| | | getAwardEffect.SetActive(state == 1); |
| | | bgImg.SetSprite(state == 0 ? "OfficialMissionBG0" : "OfficialMissionBG1"); |
| | | switch (config.TaskType) |
| | | { |
| | |
| | | missionCellArr[i].Display(ids[i]); |
| | | } |
| | | |
| | | for (int i = 0; i < missionCellArr.Length; i++) |
| | | { |
| | | if (OfficialRankManager.Instance.GetMissionAwardState(i + 1) != 1) |
| | | { |
| | | lvUpBtn.SetColorful(null, false); |
| | | return; |
| | | } |
| | | } |
| | | lvUpBtn.SetColorful(null, true); |
| | | // for (int i = 0; i < missionCellArr.Length; i++) |
| | | // { |
| | | // if (OfficialRankManager.Instance.GetMissionAwardState(i + 1) != 1) |
| | | // { |
| | | // lvUpBtn.SetColorful(null, false); |
| | | // return; |
| | | // } |
| | | // } |
| | | // lvUpBtn.SetColorful(null, true); |
| | | } |
| | | |
| | | |