Beispiel #1
0
 void PanelGoDown(bool is_slow_)
 {
     if (is_slow_)
     {
         m_show_tween_pos.Duration = 0.4f;
         m_show_tween_pos.ResetAndPlay();
     }
     else
     {
         m_show_tween_pos.Duration = 0.0f;
         m_show_tween_pos.ResetAndPlay();
     }
 }
Beispiel #2
0
        private void ShowBottomButton(GameObject obj)
        {
            m_is_bottom_btn_show = !m_is_bottom_btn_show;
            EnableBottomButtons(false);

            if (m_is_bottom_btn_show)
            {
                EngineCoreEvents.AudioEvents.PlayAudio.SafeInvoke(Audio.AudioType.UISound, GameCustomAudioKey.main_ui_zhankai.ToString());
                EngineCoreEvents.AudioEvents.PlayAudio.SafeInvoke(Audio.AudioType.UISound, GameCustomAudioKey.main_ui_extend.ToString());

                m_entry_tog_show_tween_pos.ResetAndPlay();

                m_entry_tog_tween_alpha.ResetAndPlay();
                m_menuBtnTweener.ResetAndPlay();
            }
            else
            {
                EngineCoreEvents.AudioEvents.PlayAudio.SafeInvoke(Audio.AudioType.UISound, GameCustomAudioKey.main_ui_shousuo.ToString());


                m_entry_tog_show_tween_pos.PlayBackward();

                m_entry_tog_tween_alpha.PlayBackward();
                m_menuBtnTweener.PlayBackward();
            }
            m_menuBtnTweener.SetTweenCompletedCallback(() =>
            {
                if (HaveNotice())
                {
                    this.m_btnSwitchRedPointMark.Visible = !m_is_bottom_btn_show;
                }
            });
        }
        public void Refresh()
        {
            if (Busy)
            {
                return;
            }

            long next_tip_id = CombineDataManager.Instance.FetchPropTips();

            if (0 == next_tip_id)
            {
                return;
            }

            Busy = true;

            RefreshProps(next_tip_id);

            this.Visible = true;
            m_tween.ResetAndPlay();
        }
Beispiel #4
0
 void ShowStartView()
 {
     m_start_view_tween_pos.ResetAndPlay(false);
     m_start_view_visible = true;
 }