public override void Prepare(IElementProfile profile, IMenuHandler handler) { base.Prepare(profile, handler); var menuProfile = (MenuProfile)profile; this.HandleOnShow(menuProfile); this.HandleOnHide(menuProfile); this.Inserts = new Inserts(); this.menuWidth = menuProfile.width; this.menuHeight = menuProfile.height; this.Frame["Name"] = menuProfile.name; }
public BaseMenu(IWrapper wrapper) : base("Menu", wrapper) { this.Inserts = new Inserts(); this.Frame.SetParent(Global.Frames.UIParent); }