| | |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | using TableConfig; |
| | | using EnhancedUI.EnhancedScroller;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | { |
| | | //功能预告面板 |
| | |
| | | [SerializeField] RawImage m_RawImage3;
|
| | | [SerializeField] RawImage m_RawImage4; |
| | | [SerializeField] Text m_keyName; |
| | | public int Offset = 0;//偏移 |
| | | TreasureModel treasureModel { get { return ModelCenter.Instance.GetModel<TreasureModel>(); } } |
| | | FeatureNoticeModel featureNoticeModel { get { return ModelCenter.Instance.GetModel<FeatureNoticeModel>(); } } |
| | | #region Built-in |
| | |
| | | m_ScrollerController.OnRefreshCell += OnRefreshGridCell;
|
| | | OnCreateGridLineCell(m_ScrollerController); |
| | | ContentDisplay();
|
| | | m_ScrollerController.JumpIndex(JumpIndex()); |
| | | } |
| | | |
| | | |
| | | } |
| | | protected override void OnActived()
|
| | | {
|
| | | m_ScrollerController.JumpIndex(JumpIndex());
|
| | | m_ScrollerController.JumpIndex(Offset, 0, EnhancedScroller.TweenType.immediate);
|
| | | } |
| | | protected override void OnAfterOpen() |
| | | { |
| | | FuncOpen.Instance.OnFuncStateChangeEvent += OnFuncStateChangeEvent;
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | if (!FuncOpen.Instance.IsFuncOpen(ClickFuncID) && functionForecastConfig.OpenNumber > featureNoticeModel.FunctionForecastIndex)
|
| | | if (!FuncOpen.Instance.IsFuncOpen(ClickFuncID) && functionForecastConfig.OpenNumber-1 > featureNoticeModel.FunctionForecastIndex)
|
| | | {
|
| | | m_Text_ShowA.gameObject.SetActive(false);
|
| | | m_TextShowB.gameObject.SetActive(false);
|
| | |
| | | UI3DModelExhibition.Instance.StopShowWing();
|
| | | UI3DTreasureExhibition.Instance.StopShow();
|
| | | var functionForecastConfig = Config.Instance.Get<FunctionForecastConfig>(ClickFuncID);
|
| | | if (!FuncOpen.Instance.IsFuncOpen(ClickFuncID) && functionForecastConfig.OpenNumber > featureNoticeModel.FunctionForecastIndex)
|
| | | if (!FuncOpen.Instance.IsFuncOpen(ClickFuncID) && functionForecastConfig.OpenNumber-1 > featureNoticeModel.FunctionForecastIndex)
|
| | | {
|
| | | m_FeaturesImage.gameObject.SetActive(true);
|
| | | m_FeaturesImage.SetSprite("YGWENHAO");
|
| | |
| | | m_ButtonGoto.gameObject.SetActive(false);
|
| | | FuncOpenLVConfig funcoPenConfig = Config.Instance.Get<FuncOpenLVConfig>(funcID);
|
| | | var functionForecastConfig = Config.Instance.Get<FunctionForecastConfig>(ClickFuncID);
|
| | | if (!FuncOpen.Instance.IsFuncOpen(ClickFuncID) && functionForecastConfig.OpenNumber > featureNoticeModel.FunctionForecastIndex)
|
| | | if (!FuncOpen.Instance.IsFuncOpen(ClickFuncID) && functionForecastConfig.OpenNumber-1 > featureNoticeModel.FunctionForecastIndex)
|
| | | {
|
| | | var functionForecastValue = Config.Instance.GetAllValues<FunctionForecastConfig>();
|
| | | string StrNanme = string.Empty;
|
| | | foreach (var value in functionForecastValue)
|
| | | {
|
| | | if (value.OpenNumber == functionForecastConfig.OpenNumber - 1)
|
| | | if (value.OpenNumber == functionForecastConfig.OpenNumber -2)
|
| | | {
|
| | | StrNanme = value.FuncName;
|
| | | }
|