Exemple #1
0
 protected override void OnInit()
 {
     base.OnInit();
     m_BgImage  = Make <GameTexture>("RawImage");
     m_BtnGet   = Make <GameButton>("btn_buy");
     m_BtnLabel = m_BtnGet.Make <GameLabel>("Text");
     m_Items    = new SignInItem[MaxSize];
     for (int i = 1; i <= MaxSize; i++)
     {
         m_Items[i - 1]         = Make <SignInItem>("Image_" + i);
         m_Items[i - 1].Visible = false;
         SignImageIcon imageIcon = Make <SignImageIcon>("Icon:Image_icon_" + i);
         m_Items[i - 1].SetIcon(imageIcon);
     }
     m_UIEffect        = Make <GameUIEffect>("UI_meirilingqu");
     this.m_mainEffect = Make <GameUIEffect>("RawImage:UI_meirilingqu_03");
 }
Exemple #2
0
 public void SetIcon(SignImageIcon m_icon)
 {
     this.m_ImageIcon = m_icon;
 }