//private UITweenerBase[] tweener = null;
        protected override void OnInit()
        {
            m_bg     = Make <GameImage>("Image_back");
            m_text01 = Make <GameLabel>("Text_1");
            m_text02 = Make <GameLabel>("Text_2");

            m_sliderBtnBackgroundMusic = Make <GameSliderButton>("Toggle_1");
            UITweenerBase[] UITweeners = m_sliderBtnBackgroundMusic.gameObject.GetComponentsInChildren <UITweenerBase>(true);
            foreach (var ut in UITweeners)
            {
                ut.ResetAndPlay();
            }

            m_sliderBtnSound = Make <GameSliderButton>("Toggle_2");

            UITweeners = m_sliderBtnSound.gameObject.GetComponentsInChildren <UITweenerBase>(true);
            foreach (var ut in UITweeners)
            {
                ut.ResetAndPlay();
            }

            m_btnContinue          = Make <GameButton>("Button_continue");
            m_btnQuit              = Make <GameButton>("Button_quit");
            this.m_btnContinueOnly = Make <GameButton>("Button_continue_Guid");

            m_backgroundTexture         = Make <GameImage>("RawImage");
            m_sceneMask                 = Make <GameUIComponent>("sceneMask");
            m_backgroundTexture.Visible = false;
            m_sceneMask.Visible         = false;
            //this.tweener = Transform.GetComponentsInChildren<UITweenerBase>(false);
        }
Example #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");
        }