Пример #1
0
        public WeaponTilePanel(UICommChannel ui, string id, string weaponInfoPanel = "")
            : base(ui, id, "WeaponSelector")
        {
            this.UI.ParentToMainPanel(this.ID);
            this.UI.SetDrawLayer(this.ID, 1);
            UICommChannel ui1 = this.UI;
            string        id1;

            if (weaponInfoPanel.Length <= 0)
            {
                id1 = this.UI.Path(this.ID, "weaponInfo");
            }
            else
            {
                id1 = weaponInfoPanel;
            }
            this._weaponInfo      = new WeaponInfoPanel(ui1, id1);
            this._page            = new WeaponSelectorPage(this.UI, this.UI.Path(this.ID, "page"));
            this.UI.PanelMessage += new UIEventPanelMessage(this.UIPanelMessage);
        }
Пример #2
0
 public ResearchInfoPanel(UICommChannel ui, string id)
     : base(ui, id)
 {
     this._contentPanelID  = this.UI.Path(id, "content");
     this._weaponinfopanel = new WeaponInfoPanel(ui, "TechWeaponDetails");
 }