protected override void OnInit() { m_toggle = Make <GameToggleButton>("Background"); m_officer_portrait = m_toggle.Make <GameTexture>("Icon"); m_grid = m_toggle.Make <GameUIContainer>("grid"); m_mask = m_toggle.Make <GameImage>("Image"); m_effect = Make <GameUIEffect>("UI_jingyuanpaiqian_pinzhi"); }
private void InitBanner(bool isUnLock) { this.m_Bg = m_banner.Make <GameImage>("Background"); this.m_label = m_banner.Make <GameLabel>("Label"); this.m_mask = m_banner.Make <GameImage>("Guid"); this.m_redDot = m_banner.Make <GameImage>("ImgWarn"); this.m_anchor = m_banner.Widget.Find("anchor"); this.m_Bg.Visible = isUnLock; this.m_label.Visible = isUnLock; this.m_banner.Enabled = isUnLock; //this.m_redDot.Visible = isUnLock; this.m_mask.Visible = !isUnLock; }
protected override void OnInit() { base.OnInit(); m_toggle = Make <GameToggleButton>("Toggle"); m_icon = m_toggle.Make <GameImage>("Background:Image"); }