예제 #1
0
        public ExtensionMenuService()
        {
            genericServices = new List <GenericExtensionService>();

            IsHotbar = true;

            this._hotbarIcon             = new UIImage(UIView.GetEmbeddedTexture("Images/extensions"));
            this.HotbarIcon.Tooltip      = "Extension Tools";
            this.HotbarIcon.onLeftClick += HotbarIcon_onLeftClick;

            _extensionMenuHotbar = new ExtensionMenuWindow();
            _extensionMenuHotbar.HotBarParent = HEROsMod.ServiceHotbar;
            _extensionMenuHotbar.Hide();
            this.AddUIView(_extensionMenuHotbar);

            Hotbar = _extensionMenuHotbar;
        }