public SpawnPointSetter(UIHotbar hotbar) { IsInHotbar = true; HotbarParent = hotbar; this._name = "Spawn Point Setter"; this._hotbarIcon = new UIImage(UIView.GetEmbeddedTexture("Images/spawn") /*Main.itemTexture[69]*/); this._hotbarIcon.Tooltip = "Set Spawn Point"; this.HotbarIcon.onLeftClick += HotbarIcon_onLeftClick; }
public SpawnPointSetter(UIHotbar hotbar) { IsInHotbar = true; HotbarParent = hotbar; this._name = "Spawn Point Setter"; this._hotbarIcon = new UIImage(HEROsMod.instance.GetTexture("Images/spawn") /*Main.itemTexture[69]*/); this._hotbarIcon.Tooltip = HEROsMod.HeroText("SetSpawnPoint"); this.HotbarIcon.onLeftClick += HotbarIcon_onLeftClick; }
public MapRevealer(UIHotbar hotbar) { IsInHotbar = true; HotbarParent = hotbar; this._name = "Map Revealer"; this._hotbarIcon = new UIImage(UIView.GetEmbeddedTexture("Images/map") /*ModUtils.RevealMapTexture*/); this._hotbarIcon.onLeftClick += _hotbarIcon_onLeftClick; this.HotbarIcon.Tooltip = "Reveal Map"; instance = this; }
public MapRevealer(UIHotbar hotbar) { IsInHotbar = true; HotbarParent = hotbar; this._name = "Map Revealer"; this._hotbarIcon = new UIImage(HEROsMod.instance.GetTexture("Images/map") /*ModUtils.RevealMapTexture*/); this._hotbarIcon.onLeftClick += _hotbarIcon_onLeftClick; this.HotbarIcon.Tooltip = HEROsMod.HeroText("RevealMap"); instance = this; }
public ItemBanner(UIHotbar hotbar) { IsInHotbar = true; HotbarParent = hotbar; MultiplayerOnly = true; this._name = "Item Banner"; this._hotbarIcon = new UIImage(HEROsMod.instance.GetTexture("Images/explosives") /*Main.itemTexture[888]*/); this._hotbarIcon.Tooltip = HEROsMod.HeroText("BanDestructiveExplosives"); this._hotbarIcon.onLeftClick += _hotbarIcon_onLeftClick; HEROsModNetwork.GeneralMessages.ItemBannerToggleByServer += GeneralMessages_BannedItemsToggleByServer; }
public GroupInspector(UIHotbar hotbar) { IsInHotbar = true; HotbarParent = hotbar; MultiplayerOnly = true; this._name = "Group Inspector"; this._hotbarIcon = new UIImage(HEROsMod.instance.GetTexture("Images/manageGroups")); this.HotbarIcon.onLeftClick += HotbarIcon_onLeftClick; this.HotbarIcon.Tooltip = HEROsMod.HeroText("OpenGroupManagement"); HEROsModNetwork.LoginService.GroupChanged += LoginService_GroupChanged; }
// public ToggleGravestones() public ToggleGravestones(UIHotbar hotbar) { IsInHotbar = true; HotbarParent = hotbar; //MultiplayerOnly = true; this._name = "Gravestones Toggler"; ModUtils.LoadProjectile(43); this._hotbarIcon = new UIImage(HEROsMod.instance.GetTexture("Images/gravestone") /*Main.projectileTexture[43]*/); this._hotbarIcon.onLeftClick += _hotbarIcon_onLeftClick; this.HotbarIcon.Tooltip = HEROsMod.HeroText("DisableGravestones"); this._hotbarIcon.Opacity = 1f; HEROsModNetwork.GeneralMessages.GravestonesToggleByServer += GeneralMessages_GravestonesToggleByServer; }
public LightHack(UIHotbar hotbar) { IsInHotbar = true; HotbarParent = hotbar; this._name = "Light Hack"; this._hotbarIcon = new UIImage(HEROsMod.instance.GetTexture("Images/lighthack")); this._hotbarIcon.onLeftClick += (s, e) => { buttonLogic(true); }; this._hotbarIcon.onRightClick += (s, e) => { buttonLogic(false); }; this.HotbarIcon.Tooltip = LightStrengthStrings[LightStrength]; _hotbarIcon.Opacity = 0.5f; }
//public GenericExtensionService(UIHotbar hotbar) //{ // _name = "Undefined"; // IsInHotbar = true; // HotbarParent = hotbar; // _hotbarIcon = new UIImage(UIView.GetEmbeddedTexture("Images/spawn")/*Main.itemTexture[69]*/); // _hotbarIcon.Tooltip = "Set Spawn Point"; // HotbarIcon.onLeftClick += new EventHandler(button_onLeftClick); // HotbarIcon.onHover += new EventHandler(button_onHover); //} public GenericExtensionService(ExtensionMenuService extensionMenuService, Texture2D texture, string permissionName, Action buttonClickedAction, Action <bool> groupUpdated, Func <string> tooltip) { UIHotbar hotbar = extensionMenuService.Hotbar; this.texture = texture; this.buttonClickedAction = buttonClickedAction; this.groupUpdated = groupUpdated; this.tooltip = tooltip; this.permissionName = permissionName; _name = "Undefined"; IsInHotbar = true; HotbarParent = hotbar; _hotbarIcon = new UIImage(this.texture); _hotbarIcon.Tooltip = "Set Spawn Point"; HotbarIcon.onLeftClick += new EventHandler(button_onLeftClick); HotbarIcon.onHover += new EventHandler(button_onHover); }