Closed F-Lambda closed 11 months ago
Hey F-Lambda, I can confirm the issue. I’m just not sure it’s something I can fix. The code that updates the icon doesn’t seem to be able to recognise a toy as a “spell” to set the icon. There is supposed to be an equivalent for an item but I dont think there is a toy version. Toys became their own thing with the collection API and while /use toy differentiates that you are trying to use a toy in the collection, neither SetMacroSpell or SetMacroItem recognise toys.
The code to do this is very simple. This goes into Storage.lua. The issue is that neither SetMacroItem or SetMacroSpell see into the Toybox. This is limited to WoW's own code only and not accessible for GSE at this time.
if strlower(cmd) == "usetoy" or strlower(cmd) == "toy" then
--print(spell, target)
--local _, _, _, _, _, _, _, _, itemId = GetItemInfo(spell)
--SetMacroSpell(gsebutton, spell, target)
SetMacroItem(gsebutton, spell, target)
foundSpell = true
end
🔵 Describe the bug: So, in vanilla macros, setting an icon to question mark and putting
#showtooltip
at the top of the macro causes the macro icon to update to whatever the macro will fire (or the first thing if it fires multiple because of 0 GCD). This works whether you're doing/cast spell
,/use item
, or/usetoy toy
.GSE mimics this behavior of showing the icon of whatever action block will be activated. However, it only works for
/cast spell
and/use item
. For some reason,/usetoy toy
just shows the question mark, with the tooltip just showing the macro name when it gets to that block.🔵 To reproduce: (Steps to reproduce the behavior) Here's an example macro that doesn't work as expected:
🔵 Screenshots: The button when it reaches the toys:
🔵 Expected behavior: Toy icon is shown
🔵 GSE.lua file:
🔵 Desktop (please complete the following information):
🔵 GSE Version: