Esempio n. 1
0
        private void InitController()
        {
            m_icon_img  = Make <GameImage>("icon");
            m_effect    = m_icon_img.Make <GameUIEffect>("UI_zengjiatili");
            m_count_BG  = m_icon_img.Make <GameImage>("Image");
            m_count_lab = m_count_BG.Make <GameLabel>("count");

            m_disCount_root = m_icon_img.Make <GameImage>("Image_label");
            m_disCount_lab  = m_disCount_root.Make <GameLabel>("Text");
            m_oriPrice_root = m_icon_img.Make <GameImage>("Image_original");
            m_oriPrice_lab  = m_oriPrice_root.Make <GameLabel>("Text_number");

            m_use_btn = Make <GameButton>("btnUse");

            m_buy_btn = Make <GameButton>("btnbuy");
            //m_buy_title_txt = m_buy_btn.Make<GameLabel>("Text_cost");
            //m_buy_title_txt.Text = LocalizeModule.Instance.GetString("goods_buy");
            m_cost_lab     = m_buy_btn.Make <GameLabel>("Text_cost");
            m_cashType_img = m_buy_btn.Make <GameImage>("Image_cash");


            m_limited_buy_btn = Make <GameButton>("limitedbuy");
            //m_limited_buy_title_txt = m_limited_buy_btn.Make<GameLabel>("Text");
            //m_limited_buy_title_txt.Text = LocalizeModule.Instance.GetString("goods_buy");
            m_limited_cost_lab     = m_limited_buy_btn.Make <GameLabel>("Text_cost");
            m_limited_cashType_img = m_limited_buy_btn.Make <GameImage>("Image_cash");
            m_limited_buy_num_txt  = m_limited_buy_btn.Make <GameLabel>("Image_label_1:Text");
        }
Esempio n. 2
0
        private GameUIEffect m_normalEffect; //普通物品特效

        private void InitController()
        {
            m_icon_img      = Make <GameImage>("Image:icon");
            m_itemCount_lab = m_icon_img.Make <GameLabel>("Text");
            m_itemName_lab  = m_icon_img.Make <GameLabel>("name");
            m_costType_img  = Make <GameImage>("btnAgain:costType");
            m_costValue_lab = Make <GameLabel>("btnAgain:costValue");

            m_again_btn = Make <GameButton>("btnAgain");
            m_sure_btn  = Make <GameButton>("btnSure");

            this.m_effect       = Make <GameUIEffect>("Image:UI_choujiang_jieguo");
            this.m_iconEffect   = Make <GameUIEffect>("Image:UI_choujiang_jieguo03");
            this.m_normalEffect = Make <GameUIEffect>("Image:UI_choujiang_jieguo02");
        }
Esempio n. 3
0
 protected override void OnInit()
 {
     m_icon          = this.Make <GameImage>("Image");
     m_desc          = m_icon.Make <GameLabel>("Text");
     m_skillLevelLab = Make <GameLabel>("Image:Image:Text");
     m_tweens        = this.gameObject.GetComponents <UITweenerBase>().ToList();
 }
Esempio n. 4
0
        private void InitController()
        {
            m_icon_img  = Make <GameImage>("icon");
            m_effect    = m_icon_img.Make <GameUIEffect>("UI_zengjiatili");
            m_count_lab = m_icon_img.Make <GameLabel>("Image:count");

            m_disCount_root = m_icon_img.Make <GameImage>("Image_label");
            m_disCount_lab  = m_disCount_root.Make <GameLabel>("Text");
            m_oriPrice_root = m_icon_img.Make <GameImage>("Image_original");
            m_oriPrice_lab  = m_oriPrice_root.Make <GameLabel>("Text_number");


            m_buy_btn = Make <GameButton>("btnbuy");

            m_cost_lab = m_buy_btn.Make <GameLabel>("Text_cost");
        }
Esempio n. 5
0
        private void InitController()
        {
            this.m_sumBgImg   = Make <GameImage>("Image:sumBg");
            m_icon_img        = Make <GameImage>("Image:icon");
            m_count_lab       = Make <GameLabel>("Image:sum");
            m_itemName_lab    = Make <GameLabel>("Image:title");
            m_itemContent_lab = Make <GameLabel>("Image:content");

            m_NumberRoot = Make <GameImage>("Imagenumber");
            m_reduce_btn = Make <GameButton>("Imagenumber:btnReduce");
            m_add_btn    = Make <GameButton>("Imagenumber:btnAdd");
            m_number_lab = Make <GameLabel>("Imagenumber:Text");

            m_disCount_img = Make <GameImage>("Image:Image");
            m_disCount_lab = m_disCount_img.Make <GameLabel>("Text");

            m_limit_root = Make <GameLabel>("Imagenumber:income");
            m_limit_lab  = m_limit_root.Make <GameLabel>("number");

            m_buy_btn      = Make <GameButton>("btn_buy");
            m_cashType_img = m_buy_btn.Make <GameImage>("Image");

            m_price_lab    = m_buy_btn.Make <GameLabel>("Text");
            m_oriRoot_root = Make <GameLabel>("Text");
            m_oriPrice_lab = m_oriRoot_root.Make <GameLabel>("Text_number");
            m_buy_Effect   = m_buy_btn.Make <GameUIEffect>("UI_goumai_anniu");
        }
Esempio n. 6
0
        protected override void OnInit()
        {
            m_min_icon     = this.Make <GameImage>("Image_2");
            m_min_txt      = m_min_icon.Make <GameLabel>("Text");
            m_min_txt.Text = "1";

            m_max_icon = this.Make <GameImage>("Image_1");
            m_max_txt  = m_max_icon.Make <GameLabel>("Text");
        }
Esempio n. 7
0
        protected override void OnInit()
        {
            base.OnInit();
            m_normal_effect_grid  = Make <GameRecycleContainer>("Grid");
            m_special_effect_grid = Make <GameRecycleContainer>("Grid (1)");
            m_num_grid            = Make <GameRecycleContainer>("Grid_Txt");
            m_vit_icon            = Make <GameImage>("Image (1)");
#if MULTI_SHAKE
            m_normal_shake_effect_grid = m_vit_icon.Make <GameRecycleContainer>("Grid_Normal");
            m_special_shake_effect     = m_vit_icon.Make <GameUIEffect>("UI_tili_jiesuan_doudong_02");
            m_special_shake_effect.EffectPrefabName = "UI_tili_jiesuan_doudong_02.prefab";
#else
            m_normal_shake = Make <ShakeVitEffectItemView2>("Shake");
            m_normal_shake.InitPrefabNameAndDelay("UI_tili_jiesuan_doudong", 0.2f);
            m_special_shake = Make <ShakeVitEffectItemView2>("Shake02");
            m_special_shake.InitPrefabNameAndDelay("UI_tili_jiesuan_doudong_02", 0.5f);
#endif
        }
Esempio n. 8
0
 protected override void OnInit()
 {
     base.OnInit();
     m_title                = Make <GameLabel>("Text");
     m_title.Text           = LocalizeModule.Instance.GetString("friend_recommend");
     m_count_down_txt       = Make <GameLabel>("Image:Text");
     m_recommend_grid       = Make <GameUIContainer>("Image:Content");
     m_add_all_btn          = Make <GameImage>("Button");
     m_add_all_btn_txt      = m_add_all_btn.Make <GameLabel>("Text");
     m_add_all_btn_txt.Text = LocalizeModule.Instance.GetString("friend_addueser_all");
     this.SetCloseBtnID("Button_close");
 }
Esempio n. 9
0
 protected override void OnInit()
 {
     //    m_title_text = this.Make<GameLabel>("Panel_tipsanimate:Text_title");
     //    m_title_text.Text = LocalizeModule.Instance.GetString("friend_receive");
     m_gift_grid = this.Make <GameUIContainer>("Panel_tipsanimate:Panel_friend:Panel_friend-received:Content");
     //m_gift_scroll = this.Make<GameScrollView>("Panel_friend:Content");
     m_receive_all_img           = this.Make <GameImage>("Panel_tipsanimate:btn_1");
     m_receive_all_img.Color     = new Color(m_receive_all_img.Color.r, m_receive_all_img.Color.g, m_receive_all_img.Color.b, 0.0f);
     m_receive_all_btn_text      = m_receive_all_img.Make <GameLabel>("Text");
     m_receive_all_btn_text.Text = LocalizeModule.Instance.GetString("friend_receive_all");
     //m_gift_num_text = this.Make<GameLabel>("Panel_tipsanimate:Text_detail");
 }
Esempio n. 10
0
 protected override void OnInit()
 {
     base.OnInit();
     m_name_txt         = Make <GameLabel>("Image:Text");
     m_lvl_txt          = Make <GameLabel>("Image:lv");
     m_head_tex         = Make <GameNetworkRawImage>("Panel:RawImage");
     m_add_btn          = Make <GameImage>("Button");
     m_add_btn_txt      = m_add_btn.Make <GameLabel>("Text");
     m_add_btn_txt.Text = LocalizeModule.Instance.GetString("friend_invite_btn");
     m_mask_img         = Make <GameImage>("Image_Mask");
     m_fb_icon          = Make <GameImage>("Image_fb");
 }
        protected override void OnInit()
        {
            base.OnInit();

            //IsFullScreen = true;

            this.m_play_mode_img    = this.Make <GameImage>("Panel_down:Image_sence:Image_mode");
            this.m_scene_name_label = this.Make <GameLabel>("Panel_down:Image_sence:Text");
            this.m_scene_tex        = this.Make <GameTexture>("Panel_down:Image_sence:Image:RawImage");

            this.m_cost_time_num_label = m_play_mode_img.Make <GameLabel>("Text");

            this.m_cost_vit_root = this.Make <GameUIComponent>("Panel_down:Vit_Root");
            m_vit_tweenalpha     = m_cost_vit_root.GetComponent <TweenAlpha>();
            m_vit_tweenscale     = m_cost_vit_root.GetComponent <TweenScale>();
            m_vit_tweenscale.AddTweenCompletedCallback(OnVitTweenFinished);
            this.m_cost_VIT_num_label = m_cost_vit_root.Make <GameLabel>("Text2");

            m_outputs_scroll = this.Make <GameScrollView>("Panel_down:Panel_reward:ScrollView");
            m_outputs_grid   = this.Make <GameUIContainer>("Panel_down:Panel_reward:ScrollView:Viewport");
            m_drop_scroll    = this.Make <GameScrollView>("Panel_down:Panel_drop:ScrollView");
            this.m_drop_grid = this.Make <GameUIContainer>("Panel_down:Panel_drop:ScrollView:Viewport");

            this.m_action_btn                    = this.Make <GameButton>("Panel_down:Button_action");
            this.m_infinity_vit_icon             = m_action_btn.Make <GameImage>("Image_free");
            m_action_btn_effect                  = m_action_btn.Make <GameUIEffect>("UI_tongyong_anniu");
            m_action_btn_effect.EffectPrefabName = "UI_tongyong_anniu.prefab";

            m_difficult_icon  = Make <GameImage>("Panel_down:Panel_level:Image");
            m_difficlut_step  = this.Make <GameLabel>("Panel_down:Panel_level:Text");
            m_exp_progress    = Make <GameProgressBar>("Panel_down:Panel_level:Slider");
            m_exp_txt         = this.Make <GameLabel>("Panel_down:Panel_level:Text (1)");
            m_exp_reward_icon = Make <GameImage>("Panel_down:Panel_level:Image_gift");

            this.SetCloseBtnID("Panel_down:Button_close");

            m_bg_img = Make <GameImage>("RawImage");
            //m_bg_alpha = m_bg_img.GetComponent<TweenAlpha>();
            m_tween_root = Make <GameUIComponent>("Panel_down");
            //m_show_tween_scale = m_tween_root.GetComponent<TweenScale>();
            //m_show_tween_scale.AddTweenCompletedCallback(ShowTweenScaleFinished);
            //var show_tween_poses = m_tween_root.GetComponents<TweenPosition>().Where((i) => UITweenerBase.TweenTriggerType.Manual == i.m_triggerType);
            //m_show_tween_pos = show_tween_poses.First();

            //var show_tween_alphas = m_tween_root.GetComponents<TweenAlpha>().Where((i) => UITweenerBase.TweenTriggerType.OnShow == i.m_triggerType);
            //m_show_tween_alpha = show_tween_alphas.First();

            var show_tween_poses = m_tween_root.GetComponents <TweenPosition>().Where((i) => UITweenerBase.TweenTriggerType.OnShow == i.m_triggerType);

            m_show_tween_pos = show_tween_poses.First();
            m_show_tween_pos.AddTweenCompletedCallback(ShowTweenPosFinished);
        }
Esempio n. 12
0
 protected override void OnInit()
 {
     m_name_text  = this.Make <GameLabel>("Text_name");
     m_title_text = this.Make <GameLabel>("Text_title");
     m_head_icon  = this.Make <GameImage>("person:icon_btn:icon");
     m_head_tex   = this.Make <GameNetworkRawImage>("person:icon_btn:RawImage_icon");
     //m_gender_icon = this.Make<GameImage>("Icon_Root:ImageG");
     m_lvl_text                   = this.Make <GameLabel>("person:Text_number");
     m_receive_gift_btn           = this.Make <GameImage>("btn_receive");
     m_receive_gift_btn_text      = m_receive_gift_btn.Make <GameLabel>("Text");
     m_receive_gift_btn_text.Text = LocalizeModule.Instance.GetString("friend_receive_1");
     m_received_gift_btn          = this.Make <GameImage>("btn_received");
     m_received_gift_btn_txt      = m_received_gift_btn.Make <GameLabel>("Text");
     m_received_gift_btn_txt.Text = LocalizeModule.Instance.GetString("cheng_jiu_1");
 }
Esempio n. 13
0
        //GameLabel m_player_id_text;
        //GameLabel m_invite_text;



        protected override void OnInit()
        {
            //m_title_text = this.Make<GameLabel>("Panel:Text_title");
            //m_title_text.Text = LocalizeModule.Instance.GetString("friend_account");
            m_input = this.Make <GameInputField>("Panel:Image_back:InputField");
            m_input.input.placeholder.GetComponent <Text>().text = LocalizeModule.Instance.GetString("friend_input_ID");
            m_add_btn           = m_input.Make <GameImage>("Button");
            m_add_btn_text      = m_add_btn.Make <GameLabel>("Text");
            m_add_btn_text.Text = LocalizeModule.Instance.GetString("friend_invite_btn");
            //m_facebook_invite_btn = this.Make<GameButton>("Panel:Button2");
            //m_player_id_text = this.Make<GameLabel>("Panel:Text_ID");
            //m_invite_text = this.Make<GameLabel>("Panel:Text_detail");
            //m_invite_text.Text = LocalizeModule.Instance.GetString("friend_invite_ID");
            //this.SetCloseBtnID("Panel:Button_close");
        }
Esempio n. 14
0
        protected override void OnInit()
        {
            base.OnInit();

            m_icon_img  = Make <GameImage>("icon");
            m_count_lab = m_icon_img.Make <GameLabel>("count");

            m_praise_icon = Make <GameImage>("Image_label (1)");

            m_buy_btn  = Make <GameButton>("btnbuy");
            m_cost_lab = m_buy_btn.Make <GameLabel>("Text");


            m_icon_effect = Make <GameUIEffect>("UI_chaopiao");
        }
        private void InitController()
        {
            m_self_tog        = Make <GameToggleButton>(gameObject);
            this.m_countBgImg = Make <GameImage>("Image");
            m_icon_img        = Make <GameImage>("icon");
            m_count_lab       = this.m_countBgImg.Make <GameLabel>("Text");

            m_oriRoot_root = Make <GameImage>("Image_original");
            m_oriPrice_lab = m_oriRoot_root.Make <GameLabel>("Text_number");

            m_price_lab = Make <GameLabel>("price");

            m_disCount_root = Make <GameImage>("Image_label");
            m_disCount_lab  = m_disCount_root.Make <GameLabel>("Text");
            //m_Rota_tween = gameObject.GetComponent<TweenRotationEuler>();
            m_cash_img = Make <GameImage>("Image_cash");
        }
Esempio n. 16
0
        //private UITweenerBase[] tweener = null;

        protected override void OnInit()
        {
            base.OnInit();
            m_buildTex     = Make <GameTexture>("Panel_animation:RawImage_building");
            m_btnLock      = Make <GameButton>("Panel_animation:btn_unlock");
            m_describe     = Make <GameLabel>("Panel_animation:Text_detail");
            m_btnClose     = Make <GameButton>("Panel_animation:Button_close");
            m_labName      = Make <GameLabel>("Panel_animation:Text_name");
            this.m_ImgCash = m_btnLock.Make <GameImage>("Image:cash");
            this.m_ImgCoin = m_btnLock.Make <GameImage>("Image:coin");
            m_labCashCost  = this.m_ImgCash.Make <GameLabel>("Text");
            m_labCoinCost  = this.m_ImgCoin.Make <GameLabel>("Text");

            this.m_ImgCashSingle = m_btnLock.Make <GameImage>("Image:cash_single");
            this.m_labCashSingle = m_ImgCashSingle.Make <GameLabel>("Text");
            m_uiEffect           = Make <GameUIEffect>("Panel_animation:btn_unlock:UI_jianzhujiesuo");
            //this.tweener = Transform.GetComponentsInChildren<UITweenerBase>(true);
        }
Esempio n. 17
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");
        }
Esempio n. 18
0
        private void FindUIComponent()
        {
            this.m_iconRoot = TryMake <GameUIComponent>("Background");

            if (null != this.m_iconRoot)
            {
                m_icon = m_iconRoot.Make <GameImage>("Image");
            }
            else
            {
                m_icon = Make <GameImage>("Image");
            }

            //m_tweenPos = m_icon.GetComponent<TweenScale>();
            m_num_root = this.TryMake <GameImage>("Background/Image (1)");
            if (null != m_num_root)
            {
                m_num_txt = m_num_root.Make <GameLabel>("Text");
            }
            else
            {
                m_num_txt = m_icon.TryMake <GameLabel>("Text");
            }
        }
Esempio n. 19
0
 protected override void OnInit()
 {
     base.OnInit();
     m_bg   = Make <GameImage>("Image_BG");
     m_icon = m_bg.Make <GameImage>("Image");
 }
Esempio n. 20
0
        protected override void OnInit()
        {
            this.m_back_btn      = this.Make <GameButton>("btnBack");
            this.m_portrait_icon = this.Make <GameImage>("Image_Head:icon");


            m_name_title         = this.Make <GameLabel>("Image_Head:title");
            m_quality_title      = this.Make <GameLabel>("Image_Head:rank");
            m_quality_title.Text = LocalizeModule.Instance.GetString("UI_Police.quality");
            m_quality_label      = this.Make <GameLabel>("Image_Head:rank_lvl");
            m_lvl_title          = this.Make <GameLabel>("Image_Head:capacity");
            m_lvl_title.Text     = LocalizeModule.Instance.GetString("UI_Police.lvl");
            m_lvl_icon           = this.Make <GameImage>("Image_Head:Image");

            m_skill_icon         = this.Make <GameImage>("miaosu:skill_icon");
            this.m_skillLevelLab = m_skill_icon.Make <GameLabel>("Image:Text");
            m_skill_desc         = this.Make <GameLabel>("miaosu:Tips");

            m_ability_icon = this.Make <GameUIRadarImage>("Ability:Image_Root:Image");

            m_attention_title      = this.Make <GameLabel>("Ability:Text_Attention");
            m_attention_title.Text = LocalizeModule.Instance.GetString("UI_Police.attention");
            m_attention_num        = this.Make <GameLabel>("Ability:Text_Attention:Text");

            m_willpower_title      = this.Make <GameLabel>("Ability:Text_WillPower");
            m_willpower_title.Text = LocalizeModule.Instance.GetString("UI_Police.willpower");
            m_willpower_num        = this.Make <GameLabel>("Ability:Text_WillPower:Text");

            m_observe_title      = this.Make <GameLabel>("Ability:Text_Observation");
            m_observe_title.Text = LocalizeModule.Instance.GetString("UI_Police.observe");
            m_observe_num        = this.Make <GameLabel>("Ability:Text_Observation:Text");

            m_memory_title      = this.Make <GameLabel>("Ability:Text_Memory");
            m_memory_title.Text = LocalizeModule.Instance.GetString("UI_Police.memory");
            m_memory_num        = this.Make <GameLabel>("Ability:Text_Memory:Text");

            m_key_roots = new List <GameUIComponent>()
            {
                this.Make <GameUIComponent>("Image_key0"),
                this.Make <GameUIComponent>("Image_key1"),
                this.Make <GameUIComponent>("Image_key2"),
                this.Make <GameUIComponent>("Image_key3"),
                this.Make <GameUIComponent>("Image_key4"),
                this.Make <GameUIComponent>("Image_key5"),
            };

            m_key_icons = new List <GameImage>()
            {
                this.Make <GameImage>("Image_key0:Image"),
                this.Make <GameImage>("Image_key1:Image"),
                this.Make <GameImage>("Image_key2:Image"),
                this.Make <GameImage>("Image_key3:Image"),
                this.Make <GameImage>("Image_key4:Image"),
                this.Make <GameImage>("Image_key5:Image"),
            };

            m_key_labels = new List <GameLabel>()
            {
                this.Make <GameLabel>("Image_key0:Text"),
                this.Make <GameLabel>("Image_key1:Text"),
                this.Make <GameLabel>("Image_key2:Text"),
                this.Make <GameLabel>("Image_key3:Text"),
                this.Make <GameLabel>("Image_key4:Text"),
                this.Make <GameLabel>("Image_key5:Text"),
            };
        }
Esempio n. 21
0
 protected override void OnInit()
 {
     m_icon     = this.Make <GameImage>("Image (1)");
     m_desc_txt = m_icon.Make <GameLabel>("Text (1)");
 }