411 定军阁-客户端
1. 定军阁加成效果表RandWeight配0的在加成预设页面不显示
2.武将星级天赋表InitWeight WashWeight AweakWeight 有一项配0,在武将天赋展示界面不展示
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: YYL |
| | | // [ Date ]: Thursday, January 8, 2026 |
| | | // [ Date ]: 2026年1月28日 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | |
| | | public int EffQuality; |
| | | public int AttrID; |
| | | public int AttrValue; |
| | | public int RandWeight; |
| | | |
| | | public override int LoadKey(string _key) |
| | | { |
| | |
| | | int.TryParse(tables[3],out AttrID); |
| | | |
| | | int.TryParse(tables[4],out AttrValue); |
| | | |
| | | int.TryParse(tables[5],out RandWeight); |
| | | } |
| | | catch (Exception exception) |
| | | { |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年8月5日
|
| | | // [ Date ]: Wednesday, January 28, 2026
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | public int Quality;
|
| | | public int AttrID;
|
| | | public int AttrValue;
|
| | | public int InitWeight;
|
| | | public int WashWeight;
|
| | | public int AweakWeight;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | |
| | | int.TryParse(tables[3],out AttrID);
|
| | |
|
| | | int.TryParse(tables[4],out AttrValue);
|
| | |
|
| | | int.TryParse(tables[5],out InitWeight); |
| | |
|
| | | int.TryParse(tables[6],out WashWeight); |
| | |
|
| | | int.TryParse(tables[7],out AweakWeight); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | |
| | | [SerializeField] GiftBaseCell[] cardList; |
| | | |
| | | public void Display(int index, List<int> configList) |
| | | { |
| | | { |
| | | for (int i = 0; i < cardList.Length; i++) |
| | | { |
| | | if (index < configList.Count) |
| | | if (index + i < configList.Count) |
| | | { |
| | | var giftID = configList[index + i]; |
| | | var giftLV = HeroUIManager.Instance.maxGiftLevel; |
| | |
| | | protected override void OnPreOpen() |
| | | { |
| | | scroller.OnRefreshCell += OnRefreshCell; |
| | | |
| | | |
| | | CreateScroller(); |
| | | } |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | private List<int> GetKeys() |
| | | { |
| | | List<int> res = new List<int>(); |
| | | foreach (var config in HeroTalentConfig.GetValues()) |
| | | { |
| | | if (config.InitWeight == 0 || config.WashWeight == 0 || config.AweakWeight == 0) |
| | | continue; |
| | | res.Add(config.TalentID); |
| | | } |
| | | return res; |
| | | } |
| | | |
| | | List<int> configList = new List<int>(); |
| | | void CreateScroller() |
| | | { |
| | | configList = HeroTalentConfig.GetKeys().ToList(); |
| | | configList = GetKeys(); |
| | | var totalCount = configList.Count; |
| | | |
| | | scroller.Refresh(); |
| | |
| | | foreach (var config in FBDJGEffectConfig.GetValues()) |
| | | { |
| | | int attrId = config.AttrID; |
| | | if (config.RandWeight == 0) |
| | | continue; |
| | | if (!attrIds.Contains(attrId)) |
| | | { |
| | | attrIds.Add(attrId); |