Esempio n. 1
0
 public override void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
 {
     base.Initialize(uiDataProvider, settings);
     m_model.Initialize(this);
     EventManager.Instance.AddEventListener <SettingStateEvent>(OnSettingStateChange);
     EventManager.Instance.AddEventListener <BookMarkEvent>(OnBookMarkChange);
 }
Esempio n. 2
0
 public override void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
 {
     base.Initialize(uiDataProvider, settings);
     m_model.Initialize(this);
     GetAllAnimationClipLength();
     EventManager.Instance.AddEventListener(EventKey.ShowUIEffect, OnShowUIEffect);
 }
Esempio n. 3
0
 public override void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
 {
     base.Initialize(uiDataProvider, settings);
     m_model.Initialize(this);
     EventManager.Instance.AddEventListener <CursorEvent>(OnCursorEvent);
     EventManager.Instance.AddEventListener <CommonGamePlayPanelUpdateDataEvent>(OnDataUpdateEvent);
 }
Esempio n. 4
0
        public override void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
        {
            base.Initialize(uiDataProvider, settings);
            m_model.Initialize(this);

            m_btn_exit_Button.onClick.AddListener(() =>
            {
                Application.Quit();
            });
            m_btn_back_Button.onClick.AddListener(() =>
            {
                var config = m_model.SceneInfo;
                if (!string.IsNullOrEmpty(config.LoadSceneNameOnEnd))
                {
                    GameSceneManager.Instance.LoadScene(SceneLookup.GetEnum(config.LoadSceneNameOnEnd, false));
                }

                if (!string.IsNullOrEmpty(config.LoadMissionIDOnEnd))
                {
                    MissionSceneManager.Instance.LoadMissionScene(MissionSceneManager.Instance.GetMissionEnumBy(config.LoadMissionIDOnEnd, false));
                }

                if (m_model.PopScene())
                {
                    RefreshInfo();
                }
                else
                {
                    InvokeHidePanel();
                }
            });
            EventManager.Instance.AddEventListener <CGScenePointInfoChangeEvent>(OnCGScenePointInfoChange);
        }
        public override void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
        {
            base.Initialize(uiDataProvider, settings);
            m_model.Initialize(this);

            EventManager.Instance.AddEventListener <GameEvent>(GameEnd);
        }
Esempio n. 6
0
        public override void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
        {
            base.Initialize(uiDataProvider, settings);
            m_model.Initialize(this);

            m_btn_createNewArchive_Button.onClick.AddListener(OnClickCreateNewArchive);
            m_btn_back_Button.onClick.AddListener(OnClosePanel);
        }
 public override void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
 {
     base.Initialize(uiDataProvider, settings);
     m_model.Initialize(this);
     gameObject.SetActive(false);
     InitMoveInfo();
     m_animator = GetComponent <Animator>();
 }
Esempio n. 8
0
        public override void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
        {
            base.Initialize(uiDataProvider, settings);
            m_model.Initialize(this);
            InitLogItemList();

            m_btn_back_Button.onClick.AddListener(OnClose);
        }
Esempio n. 9
0
        public virtual void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
        {
            m_uiDataProvider  = uiDataProvider;
            m_uiPanelSettings = settings;
            PanelType         = m_uiPanelSettings.PanelType;


            // Debug.Log(GetType());
        }
Esempio n. 10
0
        public override void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
        {
            base.Initialize(uiDataProvider, settings);
            m_model.Initialize(this);

            m_btn_exit_Button.onClick.AddListener(() =>
            {
                Application.Quit();
            });
            m_btn_back_Button.onClick.AddListener(CloseCGScene);

            EventManager.Instance.AddEventListener <CGScenePointInfoChangeEvent>(OnCGScenePointInfoChange);
            EventManager.Instance.AddEventListener <CGSceneCloseEvent>(OnCGSceneClose);
            EventManager.Instance.AddEventListener <PlayerPreSaveArchiveEvent>(OnPlayerPreSaveArchive);
        }
Esempio n. 11
0
 public override void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
 {
     base.Initialize(uiDataProvider, settings);
     m_textHelp = new TextHelp();
 }
Esempio n. 12
0
 public override void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
 {
     base.Initialize(uiDataProvider, settings);
     m_model.Initialize(this);
     gameObject.SetActive(false);
 }
Esempio n. 13
0
 public override void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
 {
     base.Initialize(uiDataProvider, settings);
     m_model.Initialize(this);
 }
Esempio n. 14
0
 public override void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
 {
     base.Initialize(uiDataProvider, settings);
     m_model.Initialize(this);
     m_btn_close_Button.onClick.AddListener(ClickClose);
 }
Esempio n. 15
0
 public override void Initialize(UIDataProvider uiDataProvider, UIPanelSettings settings)
 {
     base.Initialize(uiDataProvider, settings);
     m_optionItems = new List <OptionItem>();
 }