Comments (8)
Using "if masque" around the calls should do the trick.
Tested it with disabled masque addon on my pc.
if (Masque) then
local MasqueGroup = Masque:Group("TrinketMenu")
end
if (Masque) then
MasqueGroup:AddButton(TrinketMenu_Trinket0)
MasqueGroup:AddButton(TrinketMenu_Trinket1)
end
for i = 1, 30 do
_G["TrinketMenu_Menu"..i]:SetFrameLevel(2)
if (Masque) then
MasqueGroup:AddButton(_G["TrinketMenu_Menu"..i])
end
end
from trinketmenu.
Just downloaded it, it's working.
With and without masque installed no lua error messages appear.
Many thanks for your efforts.
from trinketmenu.
Honestly I just picked this addon up since it wasn't working for Classic and I wanted to use it.
I'm still learning and don't know much at all about coding as it's mostly just a hobby I dabble with for fun.
I looked at the Masque API wiki (https://github.com/StormFX/Masque/wiki/Masque-API), and it looks like it could be used to skin the buttons, but it would require a rewrite of how the buttons are displayed in game.
So in short, yes, I strongly suspect it is possible - But I doubt I am the one that's able to add it at this point in time ;)
from trinketmenu.
Since I'm also new at WOW Lua and Masque API I tried to add it for myself and it seems only a few lines need to be added:
Image of the result (using ElvUIesque Skin): https://imgur.com/a/Imj2pci
I added the following lines at the beginng of Trinketmenu.lua to create the MasqueGroup:
local Masque = LibStub("Masque", true)
local MasqueGroup = Masque:Group("TrinketMenu")
and the following lines at the end of the function TrinketMenu.Initialize() to add the buttons to the previously defined group.
MasqueGroup:AddButton(TrinketMenu_Trinket0)
MasqueGroup:AddButton(TrinketMenu_Trinket1)
for i = 1, 30 do
_G["TrinketMenu_Menu"..i]:SetFrameLevel(2)
MasqueGroup:AddButton(_G["TrinketMenu_Menu"..i])
end
from trinketmenu.
Nice job, this is great stuff!
I'll test this during the weekend and see how it runs then push a patch if it's not causing any issues.
from trinketmenu.
Gave it a quick test.
It works well with Masque installed, but without masque it throws errors (referencing masque, which doesn't exist).
Will need to find a way to only load it if Masque is present.
I'll look into it and see what I can find.
from trinketmenu.
Wasn't as bad as expected TBH.
Some checks pointed at the lib solved it.
I'll get it pushed ASAP.
from trinketmenu.
Should be active in the latest version.
Let me know if it doesn't work :)
from trinketmenu.
Related Issues (17)
- Feign death does not allow trinket swaps HOT 2
- Remove spacing between the two trinkets HOT 2
- Devilsaur Trinket Issue HOT 3
- Frame Strata HOT 16
- Add CurseBreaker support HOT 4
- TrinketQueue not working HOT 2
- TBC branch HOT 9
- 2 TrinketMenu Projects HOT 1
- TrinketMenu not working HOT 2
- Any chance of fixing the issue with the bottom trinket being displaced to the far right with the new patch? HOT 1
- Spells in Trinket Menu HOT 1
- Hunter Feign Death HOT 6
- Quick selection omission HOT 8
- No Menu Visible HOT 4
- Release for WOW classic on Twitch HOT 4
- Auto Queue features only work properly when addon window is highlighted by cursor HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trinketmenu.