| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: Fish
|
| | | // [ Date ]: 2024年11月6日
|
| | | // [ Date ]: Wednesday, November 13, 2024
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | public readonly string GainTip;
|
| | | public readonly int[] color;
|
| | | public readonly int top;
|
| | | public readonly string Descriptive;
|
| | |
|
| | | public ChatBubbleBoxConfig()
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | int.TryParse(tables[18],out top);
|
| | |
|
| | | Descriptive = tables[19];
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: Fish
|
| | | // [ Date ]: 2024年11月6日
|
| | | // [ Date ]: Wednesday, November 13, 2024
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | public readonly int SortNum;
|
| | | public readonly int EffectID;
|
| | | public readonly int[][] UnlockNeedItemList;
|
| | | public readonly string Descriptive;
|
| | |
|
| | | public EmojiPackConfig()
|
| | | {
|
| | |
| | | int.TryParse(tables[6],out EffectID);
|
| | |
|
| | | UnlockNeedItemList = JsonMapper.ToObject<int[][]>(tables[7].Replace("(", "[").Replace(")", "]"));
|
| | |
|
| | | Descriptive = tables[8];
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: Fish
|
| | | // [ Date ]: 2024年11月12日
|
| | | // [ Date ]: Wednesday, November 13, 2024
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | public readonly int[] LightAttrType;
|
| | | public readonly int[] LightAttrValue;
|
| | | public readonly int LightFightPower;
|
| | | public readonly string Descriptive;
|
| | |
|
| | | public PlayerFaceConfig()
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | int.TryParse(tables[11],out LightFightPower);
|
| | |
|
| | | Descriptive = tables[12];
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: Fish
|
| | | // [ Date ]: 2024年11月6日
|
| | | // [ Date ]: Wednesday, November 13, 2024
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | public readonly int[] LightAttrType;
|
| | | public readonly int[] LightAttrValue;
|
| | | public readonly int LightFightPower;
|
| | | public readonly string Descriptive;
|
| | |
|
| | | public PlayerFacePicConfig()
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | int.TryParse(tables[10],out LightFightPower);
|
| | |
|
| | | Descriptive = tables[11];
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | |
| | | {
|
| | | public interface IPhantasmPavilionTabHandler
|
| | | {
|
| | | string GetDescriptive(int id);
|
| | |
|
| | | int GetSortNum(int id);
|
| | |
|
| | | int GetExpireMinutes(int id);
|
| | |
| | | public class PhantasmPavilionAvatarFrameHandler : IPhantasmPavilionTabHandler
|
| | | {
|
| | | PhantasmPavilionModel model { get { return ModelCenter.Instance.GetModel<PhantasmPavilionModel>(); } }
|
| | | public string GetDescriptive(int id)
|
| | | {
|
| | | return PlayerFacePicConfig.Get(id).Descriptive;
|
| | | }
|
| | |
|
| | | public int GetExpireMinutes(int id)
|
| | | {
|
| | |
| | | public class PhantasmPavilionAvatarHandler : IPhantasmPavilionTabHandler
|
| | | {
|
| | | PhantasmPavilionModel model { get { return ModelCenter.Instance.GetModel<PhantasmPavilionModel>(); } }
|
| | | public string GetDescriptive(int id)
|
| | | {
|
| | | return PlayerFaceConfig.Get(id).Descriptive;
|
| | | }
|
| | |
|
| | | public int GetExpireMinutes(int id)
|
| | | {
|
| | |
| | | {
|
| | | PhantasmPavilionModel model { get { return ModelCenter.Instance.GetModel<PhantasmPavilionModel>(); } }
|
| | |
|
| | | public string GetDescriptive(int id)
|
| | | {
|
| | | return ChatBubbleBoxConfig.Get(id).Descriptive;
|
| | | }
|
| | |
|
| | | public int GetExpireMinutes(int id)
|
| | | {
|
| | | return ChatBubbleBoxConfig.Get(id).ExpireMinutes;
|
| | |
| | | {
|
| | | PhantasmPavilionModel model { get { return ModelCenter.Instance.GetModel<PhantasmPavilionModel>(); } }
|
| | |
|
| | | public string GetDescriptive(int id)
|
| | | {
|
| | | return EmojiPackConfig.Get(id).Descriptive;
|
| | | }
|
| | |
|
| | | public int GetExpireMinutes(int id)
|
| | | {
|
| | | return EmojiPackConfig.Get(id).ExpireMinutes;
|
| | |
| | | return false;
|
| | | return handler.Has(id);
|
| | | }
|
| | | public string GetDescriptive(PhantasmPavilionTab tab, int id)
|
| | | {
|
| | | if (!Has(tab, id))
|
| | | return string.Empty;
|
| | | if (!handlers.TryGetValue(tab, out var handler))
|
| | | return string.Empty;
|
| | | return handler.GetDescriptive(id);
|
| | | }
|
| | |
|
| | | public int GetSortNum(PhantasmPavilionTab tab, int id)
|
| | | {
|
| | |
| | | [SerializeField] ImageEx imgFace;
|
| | | [SerializeField] UIEffect uiEffect;
|
| | | [SerializeField] TextEx txtTime;
|
| | | [SerializeField] TextEx txtDescriptive;
|
| | | [SerializeField] ButtonEx btnUnLock;
|
| | | [SerializeField] ButtonEx btnAddStar;
|
| | | [SerializeField] ButtonEx btnUse;
|
| | |
| | | subTime = (int)(info.EndTime - TimeUtility.AllSeconds);
|
| | | }
|
| | | txtTime.text = Language.Get("FairyEmblem03", !isLimitTime ? Language.Get("PhantasmPavilion03") : TimeUtility.SecondsToDHMSCHS(subTime));
|
| | |
|
| | | txtDescriptive.text = model.GetDescriptive(tab, id);
|
| | | int star = 0;
|
| | | if (info != null)
|
| | | star = info.Star;
|