| | |
| | | |
| | | public class FirstChargeWin : FunctionsBaseWin |
| | | { |
| | | |
| | | [Header("标签页")] |
| | | [SerializeField] TextEx[] txtTabTitles; |
| | | [SerializeField] ButtonEx[] btnTabs; |
| | | [SerializeField] RedpointBehaviour[] rpTabs; |
| | | [SerializeField] int fontSizeBefore = 24; |
| | | [SerializeField] int fontSizeAfter = 30; |
| | | [Header("主物品")] |
| | | [SerializeField] TextEx txtName; |
| | | [SerializeField] TextEx txtDesc; |
| | |
| | | btnBuy.SetListener(OnClickBuyButton); |
| | | btnPreviewHero.SetListener(OnClickPreviewHero); |
| | | } |
| | | |
| | | |
| | | |
| | | protected override void OnPreOpen() |
| | | { |
| | |
| | | { |
| | | for (int i = 0; i < btnTabs.Length; i++) |
| | | { |
| | | txtTabTitles[i].fontSize = i == functionOrder ? fontSizeAfter : fontSizeBefore; |
| | | |
| | | int firstID = model.GetFirstIDByTabIndex(i); |
| | | FirstChargeData firstChargeData; |
| | | if (!model.TryGetFirstChargeDataByFirstId(firstID, out firstChargeData)) |