private void InitController() { m_bg_tex = Make <GameTexture>("bgImg"); this.m_talkTexture = new TalkSceneTexture[4]; //m_article_img = new GameImage[4]; //m_bg_img = new GameImage[4]; //this.m_person_Img = new GameTexture[4]; //this.m_articleName_Lab = new GameLabel[4]; for (int i = 0; i < 4; i++) { this.m_talkTexture[i] = Make <TalkSceneTexture>(string.Format("Panel_animation:bgImg:ImageBG_{0}", i)); this.m_talkTexture[i].Visible = false; //m_bg_img[i] = Make<GameImage>(string.Format("Panel_animation:bgImg:ImageBG_{0}", i)); //m_article_img[i] = m_bg_img[i].Make<GameImage>("Image_things"); //this.m_person_Img[i] = m_bg_img[i].Make<GameTexture>("Panel_role:RawImage"); //this.m_articleName_Lab[i] = m_bg_img[i].Make<GameLabel>("Text_name"); //m_bg_img[i].Visible = false; } this.m_leftIcon = Make <GameSpine>("Panel_animation:icon_leftSpine"); this.m_rightIcon = Make <GameSpine>("Panel_animation:icon_rightSpine"); this.m_leftPngIcon = Make <GameTexture>("Panel_animation:icon_leftPng"); this.m_rightPngIcon = Make <GameTexture>("Panel_animation:icon_rightPng"); m_leftPartUI = Make <TalkPartUIComponent>("Panel_animation:Panel_left"); m_leftPartUI.SetIcon(m_leftIcon, this.m_leftPngIcon); m_rightPartUI = Make <TalkPartUIComponent>("Panel_animation:Panel_right"); m_rightPartUI.SetIcon(m_rightIcon, this.m_rightPngIcon); this.m_btnNext = Make <GameButton>("Panel_animation:Button_skip"); }
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"); }
private GameUIComponent GetCurrentIcon(GameSpine spine, GameTexture tex, string headIcon) { GameUIComponent currentIcon = null; if (headIcon.Contains(".png")) { tex.TextureName = headIcon; currentIcon = tex; } else { spine.SpineName = headIcon; currentIcon = spine; } return(currentIcon); }
protected override void OnInit() { base.OnInit(); this.m_selfTex = Make <GameTexture>("self"); this.m_selfSpine = Make <GameSpine>("self_spine"); this.m_npcTex = Make <GameTexture>("npc"); this.m_npcSpine = Make <GameSpine>("npc_spine"); this.m_contentLab = Make <GameLabel>("Image_chat:ContentLab"); this.m_contentFader = this.m_contentLab.GetComponent <TextFader>(); this.m_leftBtn = Make <GameButton>("Image_chat:btnLeft"); this.m_rightBtn = Make <GameButton>("Image_chat:btnRight"); this.m_serialIconGrid = Make <GameUIContainer>("Image_chat:serialIconGrid"); this.m_Image_chat = Make <GameUIComponent>("Image_chat"); this.m_confutBtn = Make <GameButton>("btnConfut"); this.m_iconCom = Make <GameUIComponent>("Image_icon"); this.m_iconImg = this.m_iconCom.Make <GameImage>("icon"); }
public void SetIcon(GameSpine icon, GameTexture tex) { m_icon_tex = icon; this.m_icon_texture = tex; }