コード例 #1
0
        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;
        }
コード例 #2
0
 public BaseMenu(IWrapper wrapper) : base("Menu", wrapper)
 {
     this.Inserts = new Inserts();
     this.Frame.SetParent(Global.Frames.UIParent);
 }