Example #1
0
        public InvasionService()
        {
            this._hotbarIcon              = new UIImage(HEROsMod.instance.GetTexture("Images/event") /*Main.itemTexture[14]*/);
            this._hotbarIcon.Tooltip      = HEROsMod.HeroText("OpenEventStarter");
            this._hotbarIcon.onLeftClick += _hotbarIcon_onLeftClick;

            _eventWindow         = new EventWindow();
            _eventWindow.Visible = false;
            this.AddUIView(_eventWindow);
        }
Example #2
0
        public InvasionService()
        {
            this._hotbarIcon              = new UIImage(UIView.GetEmbeddedTexture("Images/event") /*Main.itemTexture[14]*/);
            this._hotbarIcon.Tooltip      = "Open Event Starter";
            this._hotbarIcon.onLeftClick += _hotbarIcon_onLeftClick;

            _eventWindow         = new EventWindow();
            _eventWindow.Visible = false;
            this.AddUIView(_eventWindow);
        }