public ScrollBox(ContentManager content, ControlConstants.UIBOX_INFO info) { this.content = content; UIBox scrollBox = new UIBox(content, info); this.Add(scrollBox); this.scrollBox = scrollBox; structureCards = new List <StructureCard>(); }
public UIBox(ContentManager content, ControlConstants.UIBOX_INFO uiBoxInfo) { this.UIBoxInfo = uiBoxInfo; this._texture = content.Load <Texture2D>(uiBoxInfo.Texture_Name); }