public void setItemData(ShopItemData itemData, ShopInfoUIComponent infoComponent, ShopType type, bool ischoose) { this.m_itemData = itemData; this.m_infoComponent = infoComponent; this.m_curType = type; this.m_isChoose = ischoose; m_lastType = m_curType; }
protected override void InitController() { base.InitController(); m_panel_down = this.Make <GameUIComponent>("Panel_down"); this.m_tweenPos = this.m_panel_down.GetComponent <TweenScale>(); m_grid_con = Make <GameLoopUIContainer <ShopItemUIComponent> >("Panel_down:Panel_prop:grid"); m_tradingTime_lab = Make <GameLabel>("Panel_down:downTime"); m_reflash_btn = m_tradingTime_lab.Make <GameButton>("btn_refresh"); m_price_lab = m_reflash_btn.Make <GameLabel>("Text_price"); m_shopInfo_com = Make <ShopInfoUIComponent>("Panel_down:detail"); m_scroll = Make <GameScrollView>("Panel_down:Panel_prop"); m_ChooseEffect = Make <GameUIEffect>("UI_xuanzhong_shangcheng"); m_MaskRoot = Transform.Find("Panel_down"); m_Mask = Transform.Find("Panel_down/SpriteMask"); this.m_nothingTips = Make <GameLabel>("nothingTips"); this.m_nothingTips.Text = LocalizeModule.Instance.GetString("shop_h_nothing"); this.m_nothingTips.Visible = false; }