Exemplo n.º 1
0
        protected override void OnInit()
        {
            m_child_logic_rect_list = new List <GameUIComponent>();
            m_child_icon_list       = new List <DragDropMoveParentTexture>();

            GameUIComponent rect = this.Make <GameUIComponent>("Rect");

            m_child_logic_rect_list.Add(rect);

            DragDropMoveParentTexture tex = this.Make <DragDropMoveParentTexture>("RawImage");

            m_child_icon_list.Add(tex);

            m_shine_mat = new Material(ShaderModule.Instance.GetShader("Seeker/SpriteSilhouette"));
            m_shine_mat.SetFloat("_SilhouetteWidth", 3.0f);
            m_shine_mat.SetColor("_SilhouetteColor", Color.green);

            m_shadow_mat = new Material(ShaderModule.Instance.GetShader("Seeker/SpriteWithShadow"));
            m_shadow_mat.SetFloat("_TrxX", 20.0f);
            m_shadow_mat.SetFloat("_TrxY", -20.0f);
            m_shadow_mat.SetFloat("_ShadowAlpha", 0.5f);
            m_shadow_mat.EnableKeyword("UNITY_UI_ALPHACLIP");

            m_normal_mat = new Material(ShaderModule.Instance.GetShader("Seeker/UI-Default-StencilGE"));

            //Shine(false);
        }
 protected override void OnInit()
 {
     base.OnInit();
     this.m_iconImg  = Make <GameImage>("Toggle_1:Image_icon");
     this.m_tog      = Make <GameToggleButton>("Toggle_1");
     this.m_arrowImg = Make <GameUIComponent>("Toggle_1:Background:Checkmark:Image");
 }
        public void SetInitData(PersuadeData persuadeData, int total, PresuadeChooseComponent chooseCom, Dictionary <int, PresuadeRecordData> serialIndexDic)
        {
            this.m_persuadeData   = persuadeData;
            this.m_chooseCom      = chooseCom;
            this.m_serialIndexDic = serialIndexDic;
            string npcIcon      = ConfNpc.Get(persuadeData.npcId).icon;
            string npcIconSpine = CommonData.GetSpineHead(npcIcon);

            npcIcon = string.IsNullOrEmpty(npcIconSpine) ? CommonData.GetBigPortrait(npcIcon) : npcIconSpine;

            string selfIcon      = "juzhang_laonianren_01_SkeletonData.asset";//GlobalInfo.MY_PLAYER_INFO.PlayerIcon;
            string selfIconSpine = CommonData.GetSpineHead(npcIcon);

            selfIcon = string.IsNullOrEmpty(selfIconSpine) ? CommonData.GetBigPortrait(selfIcon) : selfIconSpine;

            this.m_currentNpcIcon  = GetCurrentIcon(this.m_npcSpine, this.m_npcTex, npcIcon);
            this.m_currentSelfIcon = GetCurrentIcon(this.m_selfSpine, this.m_selfTex, selfIcon);

            this.m_npcTween = this.m_currentNpcIcon.GetComponent <TweenPosition>();
            this.m_serialIconGrid.EnsureSize <SerialToggle>(total);
            for (int i = 0; i < total; i++)
            {
                SerialToggle t = this.m_serialIconGrid.GetChild <SerialToggle>(i);
                t.SetIndex(i);
                t.Visible = true;
            }
        }
 private void OnNoticProgressFillEffect(bool effect)
 {
     if (m_currentLen >= m_totalLen)
     {
         return;
     }
     if (effect)
     {
         if (m_currentLen > 0)
         {
             GameUIComponent template = this.m_lineGrid.GetChild <GameUIComponent>(m_currentLen - 1);
             this.m_fillEffect.Widget.anchoredPosition = template.Widget.anchoredPosition;
         }
         this.m_fillEffect.Widget.sizeDelta = m_fillWidth * Vector2.right + this.m_fillEffect.Widget.sizeDelta.y * Vector2.up;
         this.m_fillEffect.Color            = Color.white;
         this.m_tweenAlpha.ResetAndPlay();
         this.m_fillEffect.Visible = true;
     }
     else
     {
         float width = this.m_fillEffect.Widget.sizeDelta.x;
         this.m_tweenAlpha.SetTweenCompleted();
         this.m_tweenAlpha.Stop();
         this.m_fillEffect.Color = Color.red;
         float tempWidth = 0f;
         DOTween.To(x => tempWidth = x, width, 0, 0.8f).OnUpdate(() => {
             this.m_fillEffect.Widget.sizeDelta        = Vector2.up * this.m_fillEffect.Widget.sizeDelta.y + Vector2.right * tempWidth;
             this.m_failEffect.Widget.anchoredPosition = this.m_fillEffect.Widget.anchoredPosition + Vector2.right * tempWidth;
             this.m_failEffect.Visible = true;
         }).OnComplete(() => {
             this.m_failEffect.Visible = false;
         });
     }
 }
Exemplo n.º 5
0
        protected override void OnInit()
        {
            base.OnInit();

            m_title_root     = this.Make <GameUIComponent>("Image");
            m_title_txt      = m_title_root.Make <GameLabel>("Text");
            m_title_txt.Text = string.Format("{0}!", LocalizeModule.Instance.GetString("recharge_title").ToUpper());
            m_title_effect   = m_title_root.Make <GameUIEffect>("UI_dengjishengji_01");
            m_title_effect.EffectPrefabName = "UI_dengjishengji_01.prefab";


            m_lvl_root       = this.Make <GameUIComponent>("Lvl_Root");
            m_from_lvl_txt   = m_lvl_root.Make <GameLabel>("Panel:Text (1)");
            m_to_lvl_txt     = m_lvl_root.Make <GameLabel>("Panel:Text (2)");
            m_lvl_slider     = m_lvl_root.Make <GameProgressBar>("Image_energy:Slider");
            m_cur_vit_txt    = m_lvl_root.Make <GameLabel>("Image_energy:Text_number");
            m_max_vit_txt    = m_lvl_root.Make <GameLabel>("Image_energy:Text_number_max");
            m_lvl_bar_effect = m_lvl_root.Make <GameUIEffect>("Image_energy:UI_tili_zengjia");
            m_lvl_bar_effect.EffectPrefabName = "UI_tili_zengjia.prefab";
            m_lvl_effect = m_lvl_root.Make <GameUIEffect>("Panel:UI_dengjishengji_02");
            m_lvl_effect.EffectPrefabName = "UI_dengjishengji_02.prefab";

            m_grid = this.Make <GameUIContainer>("Scroll View:Viewport");

            m_ok_btn    = this.Make <GameButton>("btnSure");
            m_btn_title = m_ok_btn.Make <GameLabel>("Text");
        }
Exemplo n.º 6
0
 protected override void OnInit()
 {
     this.m_lbMailSendTime    = Make <GameLabel>("Text_time");
     this.m_lbMailTitle       = Make <GameLabel>("Text_title");
     this.m_readMarkComponent = Make <GameUIComponent>("Image_unread");
     this.m_imgMailWithReward = Make <GameImage>("Image_bg");
 }
Exemplo n.º 7
0
 public void DeselectAction(GameUIComponent placerButton)
 {
     if (selectedAction == placerButton)
     {
         SelectAction(null);
     }
 }
        //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);
        }
Exemplo n.º 9
0
        private void InitController()
        {
            //m_icon_tex = Make<GameTexture>("icon");
            m_chooseRoot_obj    = Make <GameUIComponent>("Image");
            m_chooseContent_lab = m_chooseRoot_obj.Make <GameLabel>("content");

            m_textPanel_obj = m_chooseRoot_obj.gameObject.transform.Find("Panel_text").gameObject;
            m_imgPanel_obj  = m_chooseRoot_obj.gameObject.transform.Find("Panel_image").gameObject;

            m_text_toggle = new GameToggleButton[MaxChooseNum];
            m_img_toggle  = new GameToggleButton[MaxChooseNum];
            m_ask_img     = new GameImage[MaxChooseNum];
            m_ask_lab     = new GameLabel[MaxChooseNum];
            for (int i = 0; i < MaxChooseNum; i++)
            {
                m_text_toggle[i]         = m_chooseRoot_obj.Make <GameToggleButton>(string.Format("Panel_text:Toggle_{0}", i));
                m_img_toggle[i]          = m_chooseRoot_obj.Make <GameToggleButton>(string.Format("Panel_image:Toggle_{0}", i));
                m_ask_img[i]             = m_img_toggle[i].Make <GameImage>("Image");
                m_img_toggle[i].Visible  = false;
                m_ask_lab[i]             = m_text_toggle[i].Make <GameLabel>("Label");
                m_text_toggle[i].Visible = false;
            }

            m_textRoot_obj      = Make <GameButton>("Text");
            m_noContent_lab     = m_textRoot_obj.Make <GameLabel>("content");
            this.m_contentFader = m_noContent_lab.GetComponent <TextFader>();
            fontSize            = m_noContent_lab.Label.fontSize;
            //m_next_btn = Make<GameButton>("Button");
        }
Exemplo n.º 10
0
        protected override void OnInit()
        {
            base.OnInit();

            m_name_txt = Make <GameLabel>("Panel_down:Image_sence:Text_Name");
            m_desc_txt = Make <GameLabel>("Panel_down:Image_sence:Text_Desc");
            m_tips_txt = Make <GameLabel>("Panel_down:Image_sence:Text_Tips");
            m_completeTaskTipsLabel = Make <GameUIComponent>("Panel_down:Image_sence:Text_missioncomplete");
            m_tips_btn      = Make <GameUIComponent>("Panel_down:Image_sence:Btn_Tips");
            m_reward_root   = Make <GameUIComponent>("Panel_down:Image_sence:Image (1):ScrollView");
            m_aim_grid      = Make <GameUIContainer>("Panel_down:Image_sence:Image (2):ScrollView (1):Viewport"); //IconNameNumItemView
            m_reward_grid   = Make <GameUIContainer>("Panel_down:Image_sence:Image (1):ScrollView:Viewport");     //DropItemIcon
            m_title_txt     = Make <GameLabel>("Panel_down:Image_sence:Image (1):Text");
            m_titleGet      = m_title_txt.Make <GameUIComponent>("Image");
            m_btn           = Make <GameButton>("Panel_down:Button_action");
            m_close_btn     = Make <GameButton>("Button_close");
            this.m_btnLable = this.m_btn.Make <GameLabel>("Text");
            //m_bg_img = Make<GameImage>("RawImage");
            //m_bg_tween_alpha = m_bg_img.GetComponent<TweenAlpha>();
            m_tween_root = Make <GameUIComponent>("Panel_down");
            //var tween_poses = m_tween_root.GetComponents<TweenPosition>().Where((i) => UITweenerBase.TweenTriggerType.Manual == i.m_triggerType);
            //m_hide_tween_pos = tween_poses.First();
            //m_hide_tween_scale = m_tween_root.GetComponent<TweenScale>();
            //m_hide_tween_alpha = m_tween_root.GetComponents<TweenAlpha>().Where((i) => UITweenerBase.TweenTriggerType.OnHide == i.m_triggerType).First();
            //m_hide_tween_scale.AddTweenCompletedCallback(ScaleTweenFinished);
            m_tween_root.gameObject.transform.localScale = Vector3.one;
        }
Exemplo n.º 11
0
 protected override void OnInit()
 {
     base.OnInit();
     this.m_lab      = Make <GameLabel>("Animator:Text_Desc");
     this.m_icon     = Make <GameImage>("Animator:Background:Image");
     this.m_closeBtn = Make <GameUIComponent>("Animator:Button_close");
 }
Exemplo n.º 12
0
 protected override void OnInit()
 {
     base.OnInit();
     this.m_container  = Make <GameUIContainer>("Right");
     this.m_dragTex    = Make <GameUIComponent>(gameObject);
     this.m_leftParent = Widget.Find("Left");
 }
Exemplo n.º 13
0
        protected override void OnInit()
        {
            base.OnInit();

            m_root = this.Make <GameUIComponent>(root.name);
            m_view = this.Make <ToolTipsView>("Tips_BG");
        }
Exemplo n.º 14
0
 protected override void OnInit()
 {
     base.OnInit();
     this.m_comicsCom = Make <GameUIComponent>("comics");
     this.m_pageLable = this.m_comicsCom.Make <GameLabel>("Text_pagenumber");
     this.m_nextBtn   = this.m_comicsCom.Make <GameImage>("Image_bg_2");
     this.m_video     = Make <GameVideoComponent>("Video");
 }
 //private TweenScale m_tweenPos = null;
 // private GameImage m_bgImg = null;
 protected override void OnInit()
 {
     base.OnInit();
     this.m_component = Make <GameUIComponent>("bg");
     //this.m_bgImg = Make<>
     this.m_contentLab = Make <GameLabel>("bg:Text");
     //this.m_tweenPos = this.m_component.GetComponent<TweenScale>();
 }
Exemplo n.º 16
0
 protected override void OnInit()
 {
     base.OnInit();
     m_gifts[0] = Make <CombineGiftItemView>("Image_sence:Background");
     m_gifts[1] = Make <CombineGiftItemView>("Image_sence:Background (1)");
     m_gifts[2] = Make <CombineGiftItemView>("Image_sence:Background (2)");
     this.SetCloseBtnID("Image_sence:Button_close");
     m_close_btn = Make <GameUIComponent>("Image");
 }
Exemplo n.º 17
0
        protected override void OnInit()
        {
            base.OnInit();

            m_scene_name  = Make <GameLabel>("Text");
            m_scene_desc  = Make <GameLabel>("Text (1)");
            m_output_root = Make <GameUIComponent>("Scroll View (1)");
            m_output_grid = m_output_root.Make <GameUIContainer>("Viewport");
        }
Exemplo n.º 18
0
 public void SelectAction(GameUIComponent placerButton)
 {
     if (selectedAction != placerButton)
     {
         selectedAction?.OnDeselect();
         selectedAction = placerButton;
         selectedAction?.OnSelect();
     }
 }
Exemplo n.º 19
0
        protected override void OnInit()
        {
            m_special_view = Make <GameUIComponent>("Panel_special");
            m_input        = Make <GameUIComponent>("Input");
            m_blood        = Make <GameImage>("Image_Blood_Root:Image_Blood");
            m_fill_tween   = this.gameObject.transform.Find("Panel_special/Image (3)").GetComponent <TweenFillAmount>();

            m_special_view.Visible = false;
        }
Exemplo n.º 20
0
        protected override void OnInit()
        {
            base.OnInit();
            this.m_titleLab           = Make <GameLabel>("Panel_animation:Panel_top:ChapterName");
            this.m_currentProgressLab = Make <GameLabel>("Panel_animation:Panel_top:TaskNum");

            this.m_container      = Make <GameUIContainer>("Panel_animation:Panel_lift");
            this.reasonContentCom = Make <ReasonContentComponent>("Panel_animation:Panel_right");
            this.m_btnClose       = Make <GameUIComponent>("Panel_animation:Panel_top:Button_close");
        }
Exemplo n.º 21
0
 private void InitController()
 {
     m_leftPoint_tran = Transform.Find("Panel_animation/leftPoint");
     m_close_btn      = Make <GameButton>("Button_close");
     m_scroll_view    = Make <GameUIComponent>("Panel_animation:Panel");
     m_grid_con       = Make <GameUIContainer>("Panel_animation:Panel:grid");
     m_bg_img         = Make <GameImage>("RawImage");
     m_GameEffect     = Make <GameUIEffect>("UI_huodong_rukou");
     m_gridValue      = m_grid_con.GetComponent <GridValue>();
 }
Exemplo n.º 22
0
        protected override void OnInit()
        {
            base.OnInit();

            m_spine             = Make <GameSpine>("libao_01_SkeletonData");
            m_desc_root         = Make <GameUIComponent>("BG:Panel");
            m_desc_root.Visible = false;
            m_OK            = m_desc_root.Make <GameButton>("btnSure");
            m_Grid          = m_desc_root.Make <GameUIContainer>("ScrollView:Scroll_View");
            this.m_bagTrans = Transform.Find("BG/Bag");
        }
Exemplo n.º 23
0
 protected override void OnInit()
 {
     base.OnInit();
     this.m_personNameLab = Make <GameLabel>("Animator:Image_sence:Text_Name");
     this.m_personTex     = Make <GameTexture>("Animator:RawImage");
     this.m_detailLab     = Make <GameLabel>("Animator:Text_Desc");
     this.m_maskCom       = Make <GameUIComponent>("Animator:mask");
     this.m_chatBtn       = Make <GameButton>("Animator:RawImage:Button_action");
     this.m_closeBtn      = Make <GameButton>("Animator:Button_close");
     this.m_resGrid       = Make <GameUIContainer>("Animator:ScrollView:Viewport");
 }
Exemplo n.º 24
0
 protected override void OnInit()
 {
     base.OnInit();
     tween        = GetComponent <TweenPosition>();
     m_TweenScale = GetComponent <TweenScale>();
     m_TweenAlpha = GetComponent <TweenAlpha>();
     m_icon_img   = Make <GameTexture>(gameObject);
     m_click_btn  = Make <GameUIComponent>("Btn");
     m_desc_lab   = m_icon_img.Make <GameLabel>("Text");
     m_tips_img   = m_icon_img.Make <GameImage>("Image");
 }
Exemplo n.º 25
0
        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);
        }
Exemplo n.º 26
0
        protected override void OnInit()
        {
            base.OnInit();

            m_output_scroll         = Make <GameUIComponent>("Scroll View (1)");
            m_output_grid           = m_output_scroll.Make <GameUIContainer>("Viewport");
            m_drop_scroll           = Make <GameScrollView>("Scroll View");
            m_drop_grid             = m_drop_scroll.Make <GameUIContainer>("Viewport");
            m_drop_grid_ori_local_x = m_drop_grid.gameObject.transform.localPosition.x;
            m_drop_layout           = m_drop_grid.GetComponent <UnityEngine.UI.GridLayoutGroup>();
            m_drop_item_size_x      = m_drop_layout.cellSize.x;
            m_drop_item_space_x     = m_drop_layout.spacing.x;
        }
 protected override void OnInit()
 {
     base.OnInit();
     this.m_descLab       = Make <GameLabel>("Text");
     this.m_itemDescLab   = Make <GameLabel>("Image:Text");
     this.m_itemDescFader = this.m_itemDescLab.GetComponent <TextFader>();
     this.m_okBtn         = Make <GameButton>("Image:Button");
     this.m_container     = Make <GameUIContainer>("ScrollView:Viewport");
     this.m_itemDescCom   = Make <GameUIComponent>("Image");
     this.m_togCom        = Make <GameUIComponent>("ScrollView");
     this.m_feedBackLab   = Make <GameLabel>("feedBack");
     this.m_flyIconImg    = Make <GameImage>("flyIcon");
 }
Exemplo n.º 28
0
 public void SetNpcData(List <long> param, int type)
 {
     this.m_type = type;
     if (type == 2)
     {
         this.m_weaponDetail = Make <GameUIComponent>("Panel_weapondetail");
         this.m_weaponLab    = this.m_weaponDetail.Make <GameLabel>("Text");
     }
     this.m_isTick = false;
     //TimeModule.Instance.RemoveTimeaction(OnChangeNpc);
     this.m_npcIds = param;
     OnShowNpc();
 }
Exemplo n.º 29
0
        protected override void OnInit()
        {
            base.OnInit();

            NeedUpdateByFrame = true;
            //IsFullScreen = true;

            m_game_view    = Make <ScanGameView>("InGame");
            m_result_view  = Make <ScanResultView>("Result");
            m_reward_view  = Make <ScanRewardView>("Panel_energy");
            m_fly_vit_icon = Make <GameImage>("Image_Fly_Vit");
            m_fly_vit_ts   = m_fly_vit_icon.GetComponent <TweenPosition>();
            m_fly_vit_aim  = Make <GameUIComponent>("Panel_top:Image_energy:Image_icon");
        }
Exemplo n.º 30
0
        protected override void OnInit()
        {
            base.OnInit();

            this.m_chatCom     = Make <PresuadeContentComponent>("Person");
            this.m_progressCom = Make <PresuadeProgressComponent>("Panel_topleft");
            this.m_chooseCom   = Make <PresuadeChooseComponent>("Panel");

            this.m_bgBtn          = Make <GameUIComponent>("RawImage_bg");
            this.m_downCom        = Make <GameUIComponent>("RawImage_bg:Down");
            this.m_topCom         = Make <GameUIComponent>("RawImage_bg:Top");
            this.m_describleLab   = Make <GameLabel>("RawImage_bg:Text");
            this.m_btnQuit        = Make <GameButton>("Button_pause");
            this.m_describleFader = this.m_describleLab.GetComponent <TextFader>();
        }
Exemplo n.º 31
0
	void showUIFinder()
	{
		EditorGUILayout.BeginHorizontal();
		
		uiPopupSelect = EditorGUILayout.Popup( uiPopupSelect , uiPopupStringArray );
		
		GameObject obj = ( GameObject )uiPopupArray[ uiPopupSelect ];
		
		uiFind = obj.GetComponent< GameUIComponent >();
		uiFind = EditorGUILayout.ObjectField( "UI" , uiFind , typeof( GameUIComponent ) , false ) as GameUIComponent;
		
		EditorGUILayout.EndHorizontal();
	}