public PrefixEditor() { this._hotbarIcon = new UIImage(UIView.GetEmbeddedTexture("Images/reforge") /*Main.itemTexture[24]*/); this._hotbarIcon.onLeftClick += _hotbarIcon_onLeftClick; this.HotbarIcon.Tooltip = "Prefix Editor"; _prefixWindow = new PrefixWindow(); _prefixWindow.Y = 270; _prefixWindow.X = 130; this.AddUIView(_prefixWindow); _prefixWindow.Visible = false; }
public PrefixEditor() { this._hotbarIcon = new UIImage(HEROsMod.instance.GetTexture("Images/reforge") /*Main.itemTexture[24]*/); this._hotbarIcon.onLeftClick += _hotbarIcon_onLeftClick; this.HotbarIcon.Tooltip = HEROsMod.HeroText("PrefixEditor"); _prefixWindow = new PrefixWindow(); _prefixWindow.Y = 270; _prefixWindow.X = 130; this.AddUIView(_prefixWindow); _prefixWindow.Visible = false; }