コード例 #1
0
        protected override void OnInit()
        {
#if !NOFRIEND
            this.m_btnFriendMail = Make <ToggleWithArrowTween>("Panel_down:leftBtn:btn_friend");
#endif
            this.m_btnSystemMail       = Make <ToggleWithArrowTween>("Panel_down:leftBtn:btn_system");
            this.m_gameScrollView      = Make <GameScrollView>("Panel_down:Panel");
            this.m_mailItemContainer   = Make <GameUIContainer>("Panel_down:Panel:Viewport:Content");
            this.m_mailDetailComponent = Make <MailDetailComponent>("Panel_MailDetail");
            this.m_mailSystem          = GlobalInfo.MY_PLAYER_INFO.PlayerMailSystem;
            this.m_lbNomail            = Make <GameLabel>("Panel_down:Panel:Text_noMail");
            this.SetCloseBtnID("Button_close");
        }
コード例 #2
0
        protected override void OnInit()
        {
            m_view_gifts_toggle = this.Make<ToggleWithArrowTween>("leftBtn:btn_GIFT");
            m_add_friend_toggle = this.Make<ToggleWithArrowTween>("leftBtn:btn_search");
            m_toggle_info = this.Make<ToggleWithArrowTween>("leftBtn:btn_friend");
            m_toggle_application = this.Make<ToggleWithArrowTween>("leftBtn:btn_application");
            m_toggle_confirm = this.Make<ToggleWithArrowTween>("leftBtn:btn_NOTICE");
            //m_toggle_seleted_effect = this.Make<GameUIEffect>("leftBtn:UI_haoyou");
            //m_toggle_seleted_effect.EffectPrefabName = "UI_haoyou.prefab";
            m_apply_red_point = this.Make<GameImage>("leftBtn:btn_application:Canvas:ImgWarn");
            m_confirm_red_point = this.Make<GameImage>("leftBtn:btn_NOTICE:Canvas:ImgWarn");
            m_gift_red_point = this.Make<GameImage>("leftBtn:btn_GIFT:Canvas:ImgWarn");
            m_friend_info_list_root = this.Make<GameUIComponent>("Panel_friend");
            m_friend_num_text = this.Make<GameLabel>("Panel_friend:Text_1");
            //m_friend_info_scrollview = this.Make<GameScrollView>("Panel_friend:Panel_friend");
            m_friend_info_grid = this.Make<GameUIContainer>("Panel_friend:Panel_friend:Content");

            m_friend_application_root = this.Make<GameUIComponent>("Panel_application");
            m_friend_application_grid = this.Make<GameUIContainer>("Panel_application:Panel_application:Content");
            m_friend_application_tips = m_friend_application_root.Make<GameLabel>("Text_Tips");
            m_friend_application_tips.Text = LocalizeModule.Instance.GetString("friend_ask_seven");
            m_application_switch = this.Make<GameSliderButton>("Panel_application:Toggle_1");
            m_ignore_all_btn = this.Make<GameImage>("Panel_application:btn_ignore");
            m_ignore_all_btn_text = m_ignore_all_btn.Make<GameLabel>("Text");
            m_ignore_all_btn_text.Text = LocalizeModule.Instance.GetString("friend_neglect_all");
            m_application_tip_text = m_friend_application_root.Make<GameLabel>("Text");
            m_application_tip_text.Text = LocalizeModule.Instance.GetString("friend_receive_ask");

            m_friend_confirm_root = this.Make<GameUIComponent>("Panel_notice");
            m_friend_confirm_grid = this.Make<GameUIContainer>("Panel_notice:Viewport");

            m_add_friend_root = this.Make<AddFriendNewUI>("Panel_search");
            m_gift_root = this.Make<GiftListNewUI>("Panel_gift");
            m_gift_root.Visible = false;

            m_recommend_btn = Make<GameButton>("Button");
            m_recommend_txt = m_recommend_btn.Make<GameLabel>("Text");
            m_recommend_txt.Text = LocalizeModule.Instance.GetString("friend_recommend");
            m_recommend_tips = m_recommend_btn.Make<GameLabel>("Text (1)");
            m_recommend_tips.Text = LocalizeModule.Instance.GetString("friend_recommend_dec");
        }
コード例 #3
0
        void PreUILogic()
        {
            #region 数据
            RefreshOfficerDatas();
            #endregion


            #region 控件

            //this.m_right_window_tween.SetOnFinished(OnFinishRightWindowTween);
            m_btnPage_Str = new List <string>();

            m_btnPage_Str.Add(LocalizeModule.Instance.GetString("UI_Police.all"));
            m_btnPage_Str.Add(LocalizeModule.Instance.GetString("UI_Police.special"));
            m_btnPage_Str.Add(LocalizeModule.Instance.GetString("UI_Police.patrol"));
            m_btnPage_Str.Add(LocalizeModule.Instance.GetString("UI_Police.inspector"));
            m_btnPage_Str.Add(LocalizeModule.Instance.GetString("UI_Police.bau"));
            m_btnPage_Str.Add(LocalizeModule.Instance.GetString("UI_Police.csi"));
            m_btnPage_Str.Add(LocalizeModule.Instance.GetString("UI_Police.forensic"));

            m_page_toggles    = new List <ToggleWithArrowTween>();
            m_page_red_points = new List <GameImage>();
            for (int i = 0; i < m_btnPage_Str.Count; i++)
            {
                ToggleWithArrowTween tb = Make <ToggleWithArrowTween>(string.Format("Panel_animation:leftBtn:btn{0}", i));

                m_page_toggles.Add(tb);
                tb.Refresh(i, m_btnPage_Str[i], 0 == i ? true : false, ChangePageType);
                m_page_red_points.Add(Make <GameImage>(string.Format("Panel_animation:leftBtn:btn{0}:ImgWarn", i)));
            }

            m_scroll_view = Make <GameScrollView>("Panel_animation:Panel");
            //m_unlock_grid = Make<GameTileLoop>("Panel_animation:Panel:grid:grid_unlock");
            //m_unlock_grid.onUpdateItem += (a, b) =>
            //{
            //    Debug.Log(a);
            //};
            m_lock_grid = Make <GameLoopUIContainer>("Panel_animation:Panel:grid:grid_lock");
            m_lock_grid.onUpdateItem += (a, b) => { Debug.Log(a); };
            #endregion
        }