Showing posts with label Walkerbo. Show all posts
Showing posts with label Walkerbo. Show all posts
Monday, 12 August 2024
Monday, 31 May 2021
Saturday, 16 January 2021
Tuesday, 27 March 2018
Monday, 30 January 2017
Friday, 27 January 2017
Friday, 23 December 2016
WoW - Add Button to Target Dropdown Menu
I was having a real issue trying to add buttons to the target right click dropdown menu in WoW.
After posting on a few questions on the CurseForge, WoW Interface and WoW UI & Macro forums without much success, I pulled apart the AddFriend addon and created the following chunk.
local function testDropdownMenuButton(self)
if self.value == "GreenButton" then
print("GreenButton clicked")
elseif self.value == "RedButton" then
print("RedButton clicked")
else
print(" WTF how did I fail?")
end
end
hooksecurefunc("UnitPopup_ShowMenu", function()
if (UIDROPDOWNMENU_MENU_LEVEL > 1) then
return
end
local info = UIDropDownMenu_CreateInfo()
info.text = "Dropdown Menu Button"
info.owner = which
info.notCheckable = 1
info.func = testDropdownMenuButton
if UnitName("target")=="Tauren Commoner" or UnitName("target")=="Orgrimmar Brave" then
info.colorCode = "|cff00ff00"
info.value = "GreenButton"
else
info.colorCode = "|cffff0000"
info.value = "RedButton"
end
UIDropDownMenu_AddButton(info)
end)
This is the most economical solution that I could work out, (proper coders could probably reduce the code further but this did work for me).
I also decided to have the button click to run a separate function for the sake of clarity.
I hope that this can provide benefit to other beginners.
After posting on a few questions on the CurseForge, WoW Interface and WoW UI & Macro forums without much success, I pulled apart the AddFriend addon and created the following chunk.
local function testDropdownMenuButton(self)
if self.value == "GreenButton" then
print("GreenButton clicked")
elseif self.value == "RedButton" then
print("RedButton clicked")
else
print(" WTF how did I fail?")
end
end
hooksecurefunc("UnitPopup_ShowMenu", function()
if (UIDROPDOWNMENU_MENU_LEVEL > 1) then
return
end
local info = UIDropDownMenu_CreateInfo()
info.text = "Dropdown Menu Button"
info.owner = which
info.notCheckable = 1
info.func = testDropdownMenuButton
if UnitName("target")=="Tauren Commoner" or UnitName("target")=="Orgrimmar Brave" then
info.colorCode = "|cff00ff00"
info.value = "GreenButton"
else
info.colorCode = "|cffff0000"
info.value = "RedButton"
end
UIDropDownMenu_AddButton(info)
end)
This is the most economical solution that I could work out, (proper coders could probably reduce the code further but this did work for me).
I also decided to have the button click to run a separate function for the sake of clarity.
I hope that this can provide benefit to other beginners.
Thursday, 17 November 2016
Thursday, 29 September 2016
Saturday, 28 November 2015
Wednesday, 18 November 2015
Thursday, 29 October 2015
Wednesday, 28 October 2015
Friday, 27 June 2014
WeakAuras2 - Herioc Siege of Orgrimmar
This is a set of 4 WeakAura2 auras for Heroic Siege of Orgrimmar boss fights.
Fallen Protectors - Sha Sear
Triggers when Sha Sear is cast on you. The Sha Sear icon will appear and the phone sound will play.
Dark Shaman - Iron Prison
Triggers when Iron Prison is going to expire on you in 5 seconds. Flashing icon with countdown and the phone sound will play.
Sha of Pride - Weakened Resolve
Triggers when you have the Weakened Resolve buff. Displays icon with a countdown.
Immerseus - Sha Corruption
Triggers when you have 3 or more stacks of Sha Corruption. Displays icon with the stack count and plays the phone sound.
It only loads for level 90 toons in Heroic Siege of Orgrimmar raids, (10, 20, 25) while in combat.
Copy the blue text and then use the import button in the WeakAuras2 panel.
d4ZYmaGEkHdlyxukABsPk2NqIzsjYCLcZwKhtLUPe0FLQUnvCEPYofQ9I2nf7xk5NeWWiOFRQtdmuqjdwkA4e6GeOptvoMqCoqPAHs0sPKQfdkwUkpuiPNQSmqP45enrHuzQsAYGmDsxKsIRsjkpJsuDDrTrkPCsPuzZuvBNs13LqFvkftJsH5jLQ0iLsPXckLgnOA8ukDjHuLBjKQ6AsG7rjPxlKYLH(MuQQzew5cSsLtYbBSPqB2E4C4G4GyL7qpWBQDIiN39zrojM8H1dmkxPa1QafAjRyTkhARyWaHqSKZKDQhWZdpjJJWbG4ga9WwnF)wnf48oGJt4A1m63QzBX7bUCPpaXk39jKvoNCsbSsLkvQCUSY4iSYfCvWBKSYj1WPSYb99YpBGyjN8ZgiU2zu88dUydbHGEJSrBWq0emFbzdy9fXtW8fKfIqGqJ9zdKSHi83G28984KF2a17cpymyIBwd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bwGegUSe7tODmXsolEdYna6HTA((TAkW5DahNWXLq7yQ)fXlO)XffRYbb89bU5K2XbhVh4YLLyVfVbzj39jKvoNCsbSsLkxcTJjoyxixwI9qaFFGBoPDSKllXE33bMGYsojWcKvoNCsbSYPOHLCAr0OD(a7il50IOr7yjvQuPsLZoJJyJicPsc
Triggers when Sha Sear is cast on you. The Sha Sear icon will appear and the phone sound will play.
Dark Shaman - Iron Prison
Triggers when Iron Prison is going to expire on you in 5 seconds. Flashing icon with countdown and the phone sound will play.
Sha of Pride - Weakened Resolve
Triggers when you have the Weakened Resolve buff. Displays icon with a countdown.
Immerseus - Sha Corruption
Triggers when you have 3 or more stacks of Sha Corruption. Displays icon with the stack count and plays the phone sound.
It only loads for level 90 toons in Heroic Siege of Orgrimmar raids, (10, 20, 25) while in combat.
Copy the blue text and then use the import button in the WeakAuras2 panel.
d4ZYmaGEkHdlyxukABsPk2NqIzsjYCLcZwKhtLUPe0FLQUnvCEPYofQ9I2nf7xk5NeWWiOFRQtdmuqjdwkA4e6GeOptvoMqCoqPAHs0sPKQfdkwUkpuiPNQSmqP45enrHuzQsAYGmDsxKsIRsjkpJsuDDrTrkPCsPuzZuvBNs13LqFvkftJsH5jLQ0iLsPXckLgnOA8ukDjHuLBjKQ6AsG7rjPxlKYLH(MuQQzew5cSsLtYbBSPqB2E4C4G4GyL7qpWBQDIiN39zrojM8H1dmkxPa1QafAjRyTkhARyWaHqSKZKDQhWZdpjJJWbG4ga9WwnF)wnf48oGJt4A1m63QzBX7bUCPpaXk39jKvoNCsbSsLkvQCUSY4iSYfCvWBKSYj1WPSYb99YpBGyjN8ZgiU2zu88dUydbHGEJSrBWq0emFbzdy9fXtW8fKfIqGqJ9zdKSHi83G28984KF2a17cpymyIBwd2sLkNEapp8yLZnl13Phoac5uGdcXbHWK99RDIixBf06fAnlZsCMGdkzLXr4g8qRMddhvQCqaP7Hk2FVguWBySqo4iWdUY4icfYDVguKLCPpaXkxwI9sGfiHHllX(eAhtSKZI3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voNCsbSYPOHLCAr0OD(a7il50IOr7yjvQuPsLZoJJyJicPsc
Labels:
Laetus Domus,
Walkerbo,
WeakAuras2,
World of Warcraft,
WoW
Weakauras2
I am changing from Power Auras to WeakAuras2.
Recently some of my auras have not been working properly, and they only work again if I go back into them and reinsert the spell, buff and/or debuff I need to track.
A guildy suggested I check out WeakAuras2, it is still fully supported with a forum with a lot of help from posters as well as the creator.
WeakAuras2 provides great flexability and allows multiple triggers, load conditions and even for the coders out there the ability to set up triggers and conditions in Lua script.
It is a bit tricky and time consuming to set up some of the more complex auras, but well worth it.
WeakAuras2 - Curse
WeakAuras2 - WowAce
Recently some of my auras have not been working properly, and they only work again if I go back into them and reinsert the spell, buff and/or debuff I need to track.
A guildy suggested I check out WeakAuras2, it is still fully supported with a forum with a lot of help from posters as well as the creator.
WeakAuras2 provides great flexability and allows multiple triggers, load conditions and even for the coders out there the ability to set up triggers and conditions in Lua script.
It is a bit tricky and time consuming to set up some of the more complex auras, but well worth it.
WeakAuras2 - Curse
WeakAuras2 - WowAce
Labels:
Laetus Domus,
Walkerbo,
WeakAuras2,
World of Warcraft,
WoW
Friday, 6 June 2014
Tuesday, 22 April 2014
Subscribe to:
Posts (Atom)