コード例 #1
0
 public override void OnShow(object param)
 {
     base.OnShow(param);
     m_add_img.AddClickCallBack(OnAddClicked);
     m_exchange_img.AddClickCallBack(OnAddClicked);
     m_remove_img.AddClickCallBack(OnRemoveClicked);
 }
コード例 #2
0
        public override void OnShow(object param)
        {
            m_receive_all_img.AddClickCallBack(OnReceiveAllClick);
#if TEST
            this.Refresh();
#else
            m_gift_grid.Clear();
#endif
        }
コード例 #3
0
        public override void OnShow(object param)
        {
            base.OnShow(param);

            m_add_btn.AddClickCallBack(OnAddBtnClicked);
            m_head_tex.AddClickCallBack(OnPlayerIconClicked);

            GameEvents.UIEvents.UI_Friend_Event.Tell_add_recommend_firend_ok += OnChangeRecommendStatus;
        }
コード例 #4
0
        public override void OnShow(object param)
        {
            base.OnShow(param);

            m_icon_img.AddClickCallBack(BtnClick);


            m_icon_img.AddLongPressCallBack(LongPressDown);
            m_icon_img.AddLongPressEndCallBack(LongPressUp);
        }
コード例 #5
0
 public override void OnShow(object param)
 {
     base.OnShow(param);
     m_Close_btn.AddClickCallBack(OnClose);
     m_BG_img.AddClickCallBack(OnClose);
     this.m_canVisible        = true;
     this.OnShowTweenFinished = ShowTweenFinished;
     if (param != null)
     {
         AchievementMsg msg = (AchievementMsg)param;
         SetData(msg);
     }
 }
コード例 #6
0
        public override void OnShow(object param)
        {
            ShowConfirmRedPoint(false);
            ShowApplyRedPoint(PlayerPrefTool.GetIsThereNewApply());
            ShowGiftRedPoint(PlayerPrefTool.GetIsThereNewGift());
            this.SwitchUI(FRIEND_UI_TOGGLE_TYPE.Added);

            m_toggle_info.Refresh((int)FRIEND_UI_TOGGLE_TYPE.Added, LocalizeModule.Instance.GetString("friend_1"), true, OnToggleClick);
            m_toggle_application.Refresh((int)FRIEND_UI_TOGGLE_TYPE.Agreeing, LocalizeModule.Instance.GetString("friend_2"), false, OnToggleClick);
            m_toggle_confirm.Refresh((int)FRIEND_UI_TOGGLE_TYPE.Addinfo, LocalizeModule.Instance.GetString("friend_3"), false, OnToggleClick);
            m_view_gifts_toggle.Refresh((int)FRIEND_UI_TOGGLE_TYPE.gift, LocalizeModule.Instance.GetString("friend_receive"), false, OnToggleClick);
            m_add_friend_toggle.Refresh((int)FRIEND_UI_TOGGLE_TYPE.scarch, LocalizeModule.Instance.GetString("friend_invite_btn"), false, OnToggleClick);
            m_application_switch.AddClickCallBack(OnApplicationToggleClicked);
            m_ignore_all_btn.AddClickCallBack(OnIgnoreAllClick);
            m_recommend_btn.AddClickCallBack(OnRecommendClick);

        }
コード例 #7
0
ファイル: RecommendUI.cs プロジェクト: kingpowervrg/my_seeker
        public override void OnShow(object param)
        {
            base.OnShow(param);

            m_add_all_btn.AddClickCallBack(AddAllClicked);

            if (DateTime.Now.CompareTo(FriendDataManager.Instance.Recommend_expire_date) > 0)
            {
                CurViewLogic().RequestRecommends();
            }
            else
            {
                Refresh();
            }


            TimeModule.Instance.SetTimeInterval(UpdateCountDown, 1.0f);
        }
コード例 #8
0
        protected override void OnLoopItemBecameVisible()
        {
            m_Icon_img.AddClickCallBack(Click);
            GameEvents.UIEvents.UI_Achievement_Event.OnReceiveData += OnReceiveData;

            //if (m_data == null)
            //{
            //    Visible = false;
            //    return;
            //}

            OnInitUI(m_data);
            if (!m_showLock)
            {
                m_Lock_img.Visible = false;
                m_Icon_img.Color   = Color.white;
            }
        }
コード例 #9
0
        public override void OnShow(object param)
        {
            m_add_btn.AddClickCallBack(OnAddClick);
            //m_facebook_invite_btn.AddClickCallBack(OnInviteClick);
            m_input.AddChangeCallBack(OnInputting);
            //m_player_id_text.Text = string.Format(LocalizeModule.Instance.GetString("friend_self_ID") + ":{0}", GlobalInfo.MY_PLAYER_ID.ToString());


            if (string.IsNullOrEmpty(m_input.Text))
            {
                m_add_btn.Enable = false;
                m_add_btn.SetGray(true);
            }
            else
            {
                m_add_btn.Enable = true;
                m_add_btn.SetGray(false);
            }
        }
コード例 #10
0
        public override void OnShow(object param)
        {
            base.OnShow(param);
            m_action_btn.AddClickCallBack(OnClick);
            m_btn_play_video.AddClickCallBack(OnVideoPlayClick);
            m_btn_close_video.AddClickCallBack(OnVideoCloseClick);
            m_btnClose.AddClickCallBack(OnRootCloseClick);
            this.m_btnClose.Visible = GlobalInfo.GAME_NETMODE == GameNetworkMode.Network;

            if (null != param)
            {
                List <long> my_param = param as List <long>;
                this.m_task_id = my_param[1];
            }

            //if (-1 == m_task_id)
            //{
            //    //不是从任务展示界面来的,不用翻转
            //    BgShowAlpha(false);
            //    PanelDelayShowAlpha(0.0f);
            //    PanelDelayShowScale(0.0f);
            //    PanelTurnToOne(false);
            //    PanelGoDown(true);
            //}
            //else
            //{
            //    //需要翻转

            //    BgShowAlpha(true);
            //    PanelDelayShowAlpha(0.2f);
            //    PanelDelayShowScale(0.5f);
            //    PanelGoDown(false);
            //    PanelTurnToZero(false);
            //    PanelTurnToOne(true);
            //}
        }
コード例 #11
0
 public override void OnShow(object param)
 {
     base.OnShow(param);
     m_icon.AddClickCallBack(OnClicked);
     m_effect.Visible = true;
 }
コード例 #12
0
ファイル: GiftItemUI.cs プロジェクト: kingpowervrg/my_seeker
 public override void OnShow(object param)
 {
     m_receive_gift_btn.AddClickCallBack(OnReceiveGiftClick);
 }
コード例 #13
0
 public override void OnShow(object param)
 {
     m_detail_btn.AddClickCallBack(OnDetailClick);
     m_del_btn.AddClickCallBack(OnDelClick);
     m_send_gift_btn.AddClickCallBack(OnSendGiftClick);
 }