Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(4 Kb)
Download
Updated: 03-02-15 10:48 AM
Addon for:
OPie.
Pictures
File Info
Compatibility:
The Adventure Continues (6.1)
Updated:03-02-15 10:48 AM
Created:04-02-13 11:52 PM
Downloads:2,112
Favorites:25
MD5:

OPie Masque

Version: 6.1.0.10
by: Phanx [More]

Adds Masque skinning support to OPie.

OPie dropped built-in Masque support in version Lime 1. This plugin restores it. Obviously, you must have both Masque and OPie installed. There are no options*. Just install it, and you will once again be able to use Masque to skin OPie.

Also, you will be able to modify the numeric cooldown text using OmniCC (and if you don't have OmniCC or something like it installed, you won't see numeric cooldown text at all).

Only tested with my personal (unreleased) Masque skin. If something looks wrong with the skin you're using, please post a comment with a link to the skin, and a screenshot showing the skin on both your action bar and OPie. My goal is that OPie buttons should look as much like normal action buttons as possible.

* There is now one option, for controlling the visiblity of OPie's color highlighting, because some Masque skins have really ugly "highlight" textures. If you don't like how the color highlight looks, open Addon.lua and Notepad and change the value of the SPECIAL_COLOR_ALPHA variable at the top. A value of 0 will completely hide the coloring, 1 will make it fully visible, and anything in between will make it partly transparent.

Version 6.0.3.9
  • Fixed cooldown spinner appearance when not using OmniCC or a similar addon.
  • Reset version numbering to count releases instead of SVN revisions.

Version 6.0.2.20
  • Updated for WoW 6.0

Version 5.4.8.17
  • Updated for changes in OPie version series Orange and Plum.

Version 5.4.7.12
  • Updated for changes in OPie version Nougat 1. Not backwards compatible with older Masque versions.

Version 5.4.2.11
  • Added an option (Lua config only) for controlling the opacity of OPie's slice color highlighting, due to some Masque skins having ugly highlight textures. 1 = fully opaque (shown), 0 = fully transparent (hidden).

Version 5.4.1.9
  • Updated for WoW 5.4

Version 5.3.0.8
  • Updated for changes in OPie Lime 6

Version 5.3.0.7
  • Updated for WoW 5.3
  • Now prevents OPie from blacking out slices while on cooldown
  • Fixed an error with using Broker plugins as OPie slices

Version 5.2.0.4
  • Fixed a graphical issue with cooldowns
Archived Files (10)
File Name
Version
Size
Author
Date
6.0.3.9
4kB
Phanx
01-24-15 01:46 AM
6.0.2.20
5kB
Phanx
10-16-14 04:50 AM
5.4.8.17
5kB
Phanx
09-01-14 10:34 PM
5.4.7.12
4kB
Phanx
04-05-14 07:12 PM
5.4.2.11
4kB
Phanx
12-11-13 02:15 AM
5.4.1.9
4kB
Phanx
11-29-13 11:01 PM
5.3.0.8
4kB
Phanx
07-21-13 01:21 AM
5.3.0.7
4kB
Phanx
06-03-13 09:18 PM
5.2.0.4
4kB
Phanx
04-03-13 12:44 AM
5.2.0.3
4kB
Phanx
04-02-13 11:53 PM


Post A Reply Comment Options
Unread 01-24-15, 01:48 AM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5098
File comments: 2187
Uploads: 44
Version 6.0.3.9
  • Fixed cooldown spinner appearance when not using OmniCC or a similar addon.
  • Reset version numbering to count releases instead of SVN revisions.

The "black flash" appears to be some issue with the cooldown widget type and scale changes. Presumably there's some way to work around it, since it doesn't occur with OmniCC, but fixing it isn't a high priority at this time since it's such a minor issue.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 01-19-15, 03:15 PM  
silkfire
A Fallenroot Satyr

Forum posts: 20
File comments: 15
Uploads: 0
I've managed to fix it so that the cooldown looks quite okay. The only problem is that the entire icon is overlayed with a dark square for a split second (looks like a blink) when you hover upon an icon with your mouse. I think it has to do with that for 0.4 sec, the time it takes for the icon to grow from a small icon to a large icon, the cooldown swipe has to be updated as well. This is taken care of in OPie but not in OPie Masque.

Also during the animation right when you open the ring, all icons are overlayed black. When they arrive at their position 0.5 sec later this is when the cooldown swipe is seen.



My altered code:

Code:
function prototype:SetUsable(usable, usableCharge, cd, nomana, norange)
	local state = usable and STATE_USABLE or (norange and STATE_NORANGE or (nomana and STATE_NOMANA or STATE_UNUSABLE))
	if state == self.ustate then return end
	self.ustate = state
	if state == STATE_NORANGE then
		self.icon:SetVertexColor(0.8, 0.1, 0.1)
	elseif state == STATE_NOMANA then
		self.icon:SetVertexColor(0.5, 0.5, 1)
	elseif state == STATE_UNUSABLE and cd ~= true then
		self.icon:SetVertexColor(0.4, 0.4, 0.4)
	else
		self.icon:SetVertexColor(self.iconr or 1, self.icong or 1, self.iconb or 1)
	end
end

function prototype:SetCooldown(remain, duration, usable)
	if duration and remain and duration > 0 and remain > 0 then

		local start = GetTime() + remain - duration
		self.cooldown:SetSwipeColor(0, 0, 0, 0.8)
		self.cooldown:SetDrawEdge(false);
		self.cooldown:SetCooldown(start, duration)
		self.cooldown:Show()
	else
		self.cooldown:Hide()
	end
end
I inverted the cooldown overlay because this is how it is rendered for example on action bar buttons. For this, you need to have an extra check in the SetUsable function.
silkfire is offline Report comment to moderator  
Reply With Quote
Unread 01-19-15, 09:43 AM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5098
File comments: 2187
Uploads: 44
I noticed the same thing the other day when I had OmniCC turned off for some unrelated debugging, but I'll have to do some more investigation to figure out what the problem is.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 01-18-15, 10:02 AM  
silkfire
A Fallenroot Satyr

Forum posts: 20
File comments: 15
Uploads: 0
Phanx, is there some way to remove the white cooldown overlay that seems to have been introduced in one of the recent OPie versions (i.e. combination of OPie + OPie Masque creates this, without OPie Masque you don't see the overlay)?

I've tried modifying the SetCooldown function but never succeeded in achieving anything meaningful...

Last edited by silkfire : 01-18-15 at 10:03 AM.
silkfire is offline Report comment to moderator  
Reply With Quote
Unread 10-16-14, 04:51 AM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5098
File comments: 2187
Uploads: 44
Version 6.0.2.20
  • Updated for WoW 6.0
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 09-01-14, 10:35 PM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5098
File comments: 2187
Uploads: 44
Version 5.4.8.17
  • Updated for changes in OPie version series Orange and Plum.

Would be really nice if every OPie update didn't break backwards compatibility with the addition of totally non-critical methods that I'm just going to point at "do nothing" functions anyway. I guess that's what I get for writing the only OPie constructor plugin in existence.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 08-31-14, 09:03 PM  
kittykatmax
A Deviate Faerie Dragon
 
kittykatmax's Avatar

Forum posts: 16
File comments: 236
Uploads: 0
43x OPieMasque-5.4.7.12\Addon.lua:208: Expected function for indicator key

FYI:

Code:
43x OPieMasque-5.4.7.12\Addon.lua:208: Expected function for indicator key "SetEquipState", got nil.
<in C code>
OPie-Plum 4\OPieUI.lua:364: in function "SetIndicatorConstructor"
OPieMasque-5.4.7.12\Addon.lua:208: in main chunk

Locals:
self = <table> {
 GetTexColor = <function> defined @Interface\AddOns\OPie\OPieUI.lua:355
 SetDisplayOptions = <function> defined @Interface\AddOns\OPie\OPieUI.lua:348
 SetIndicatorConstructor = <function> defined @Interface\AddOns\OPie\OPieUI.lua:358
 SetQuestHint = <function> defined @Interface\AddOns\OPie\OPieUI.lua:352
}
func = <function> defined @Interface\AddOns\OPieMasque\Addon.lua:149
s = OPieSliceButton1 {
 FlyoutBorderShadow = OPieSliceButton1FlyoutBorderShadow {
 }
 __MSQ_Cooldown = OPieSliceButton1Cooldown {
 }
 __MSQ_Background = false
 icon = OPieSliceButton1Icon {
 }
 __MSQ_BaseFrame = <unnamed> {
 }
 SetOuterGlow = <function> defined @Interface\AddOns\OPieMasque\Addon.lua:133
 SetBinding = <function> defined @Interface\AddOns\OPieMasque\Addon.lua:101
 SetActive = <function> defined @Interface\AddOns\OPieMasque\Addon.lua:129
 count = OPieSliceButton1Count {
 }
 SetIconTexCoord = <function> defined @Interface\AddOns\OPieMasque\Addon.lua:31
 glowTextures = <table> {
 }
 __MSQ_NormalSkin = <table> {
 }
 __MSQ_Shape = "Square"
 SetIconVertexColor = <function> defined @Interface\AddOns\OPieMasque\Addon.lua:36
 border = OPieSliceButton1Border {
 }
 flash = OPieSliceButton1Flash {
 }
 SetIcon = <function> defined @Interface\AddOns\OPieMasque\Addon.lua:27
 SetOverlayIcon = <function> defined @Interface\AddOns\OPieMasque\Addon.lua:68
 __MSQ_NormalTexture = <unnamed> {
 }
 SetCount = <function> defined @Interface\AddOns\OPieMasque\Addon.lua:84
 SetUsable = <function> defined @Interface\AddOns\OPieMasque\Addon.lua:44
 SetHighlighted = <function> defined @Interface\AddOns\OPieMasque\Addon.lua:125
 normalTexture = OPieSliceButton1NormalTexture {
 }
 0 = <userdata>
 SetCooldownFormattedText = <function> defined @Interface\AddOns\OPieMasque\Addon.lua:121
 SetDominantColor = <function> defined @Interface\AddOns\OPieMasque\Addon.lua:59
 hotkey = OPieSliceButton1HotKey {
 }
 FlyoutBorder = OPieSliceButton1FlyoutBorder {
 }
 SetFrameLevel = <function> defined =[C]:-1
 SetCooldown = <function> defined @Interface\AddOns\OPieMasque\Addon.lua:111
 FlyoutArrow = OPieSliceButton1FlyoutArrow {
 }
 cooldown = OPieSliceButton1Cooldown {
 }
 SetNormalTexture = <function> defined =[C]:-1
}
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
 SetShown = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:56
 SetIconVertexColor = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:75
 GetScale = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:56
 SetDominantColor = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:94
 SetIcon = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:61
 SetOverlayIcon = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:110
 SetPoint = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:56
 SetScale = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:56
 SetOuterGlow = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:161
 SetBinding = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:125
 SetEquipState = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:164
 SetActive = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:158
 SetParent = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:56
 SetCooldownTextShown = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:152
 SetIconTexCoord = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:66
 SetHighlighted = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:155
 SetCooldown = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:128
 SetCount = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:122
 SetUsable = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:78
}
(for control) = "SetEquipState"
k = "SetEquipState"
v = <function> defined @Interface\AddOns\OPie\Libs\Mirage.lua:164
tk = "nil"
te = "function"
mainFrame = <unnamed> {
 0 = <userdata>
}
T = <table> {
 Mirage = <table> {
 }
 ActionBook = <table> {
 }
 OPieUI = <table> {
 }
 Niji = <table> {
 }
 Evie = <table> {
 }
}
CreateIndicator = <function> def
Last edited by kittykatmax : 08-31-14 at 09:03 PM.
kittykatmax is offline Report comment to moderator  
Reply With Quote
Unread 08-18-14, 06:08 PM  
tordenflesk
A Deviate Faerie Dragon

Forum posts: 11
File comments: 163
Uploads: 0
Originally Posted by Irongunner
The addon seems to break with OPie Orange 1 and Plum 1-3. Last compatible seems to be Nougat 3.
Yup. Foxlit, why you gotta keep breakin' this?
Last edited by tordenflesk : 08-18-14 at 06:08 PM.
tordenflesk is offline Report comment to moderator  
Reply With Quote
Unread 08-18-14, 01:54 PM  
Irongunner
A Deviate Faerie Dragon

Forum posts: 11
File comments: 6
Uploads: 0
The addon seems to break with OPie Orange 1 and Plum 1-3. Last compatible seems to be Nougat 3.
Irongunner is offline Report comment to moderator  
Reply With Quote
Unread 04-05-14, 07:15 PM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5098
File comments: 2187
Uploads: 44
Version 5.4.7.12
  • Updated for changes in Masque version Nougat 1. Not backwards compatible with older Masque versions.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 04-02-14, 08:19 PM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5098
File comments: 2187
Uploads: 44
Thanks, I'll take a look. I see Foxlit is still not updating OPie here on WoWI, and I generally only run the Curse Client to check for non-WoWI updates every few weeks when I remember, or after major patches.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 04-02-14, 05:16 PM  
tordenflesk
A Deviate Faerie Dragon

Forum posts: 11
File comments: 163
Uploads: 0
Nougat 1 appears to break this. I've downgraded so i don't have the errors handy unfortunately.
Last edited by tordenflesk : 04-02-14 at 05:17 PM.
tordenflesk is offline Report comment to moderator  
Reply With Quote
Unread 12-11-13, 02:16 AM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5098
File comments: 2187
Uploads: 44
Version 5.4.2.11
  • Added an option (Lua config only) for controlling the opacity of OPie's color highlighting, due to some Masque skins have ugly highlight textures and looking terrible.
See the addon description for instructions.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 07-21-13, 01:21 AM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5098
File comments: 2187
Uploads: 44
Version 5.3.0.8
  • Updated for changes in OPie Lime 6

Thanks for the report.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 07-20-13, 08:00 PM  
tordenflesk
A Deviate Faerie Dragon

Forum posts: 11
File comments: 163
Uploads: 0
Error when used with Opie Lime 6
Code:
2x OPieMasque-5.3.0.7\Addon.lua:166: Expected function for indicator key "SetUsable", got nil.
<in C code>
OPie-Lime 6\OneRingIndication.lua:683: in function "SetIndicatorConstructor"
OPieMasque-5.3.0.7\Addon.lua:166: in main chunk

Locals:
self = <table> {
 Show = <func> @OPie\OneRingIndication.lua:624
 SetIndicatorConstructor = <func> @OPie\OneRingIndication.lua:677
 SetQuestHint = <func> @OPie\OneRingIndication.lua:671
 SetDisplayOptions = <func> @OPie\OneRingIndication.lua:667
 GetTexColor = <func> @OPie\OneRingIndication.lua:674
 Hide = <func> @OPie\OneRingIndication.lua:659
}
func = <func> @OPieMasque\Addon.lua:107
s = OPieSliceButton1 {
 FlyoutBorderShadow = OPieSliceButton1FlyoutBorderShadow {}
 __MSQ_Cooldown = OPieSliceButton1Cooldown {}
 __MSQ_Background = false
 icon = OPieSliceButton1Icon {}
 __MSQ_BaseFrame = <unnamed> {}
 SetOuterGlow = <func> @OPieMasque\Addon.lua:91
 SetActive = <func> @OPieMasque\Addon.lua:87
 count = OPieSliceButton1Count {}
 SetIconTexCoord = <func> @OPieMasque\Addon.lua:26
 glowTextures = <table> {}
 normalTexture = OPieSliceButton1NormalTexture {}
 __MSQ_Shape = "square"
 SetIconVertexColor = <func> @OPieMasque\Addon.lua:31
 border = OPieSliceButton1Border {}
 flash = OPieSliceButton1Flash {}
 SetIcon = <func> @OPieMasque\Addon.lua:22
 SetOverlayIcon = <func> @OPieMasque\Addon.lua:44
 __MSQ_NormalTexture = <unnamed> {}
 SetCount = <func> @OPieMasque\Addon.lua:60
 SetHighlighted = <func> @OPieMasque\Addon.lua:82
 0 = <userdata>
 SetBindingText = <func> @OPieMasque\Addon.lua:64
 __MSQ_NormalSkin = <table> {}
 SetDominantColor = <func> @OPieMasque\Addon.lua:36
 SetCooldownFormattedText = <func> @OPieMasque\Addon.lua:78
 hotkey = OPieSliceButton1HotKey {}
 __MSQ_NormalColor = <table> {}
 FlyoutBorder = OPieSliceButton1FlyoutBorder {}
 SetFrameLevel = <func> =[C]:-1
 SetCooldown = <func> @OPieMasque\Addon.lua:68
 FlyoutArrow = OPieSliceButton1FlyoutArrow {}
 cooldown = OPieSliceButton1Cooldown {}
 SetNormalTexture = <func> =[C]:-1
}
(for generator) = <func> =[C]:-1
(for state) = <table> {
 SetShown = <func> @OPie\OneRingIndication.lua:72
 SetIconVertexColor = <func> @OPie\OneRingIndication.lua:91
 GetScale = <func> @OPie\OneRingIndication.lua:72
 SetDominantColor = <func> @OPie\OneRingIndication.lua:111
 SetIcon = <func> @OPie\OneRingIndication.lua:77
 SetOverlayIcon = <func> @OPie\OneRingIndication.lua:127
 SetPoint = <func> @OPie\OneRingIndication.lua:72
 SetScale = <func> @OPie\OneRingIndication.lua:72
 SetBindingText = <func> @OPie\OneRingIndication.lua:142
 SetCooldownFormattedText = <func> @OPie\OneRingIndication.lua:163
 SetOuterGlow = <func> @OPie\OneRingIndication.lua:172
 SetParent = <func> @OPie\OneRingIndication.lua:72
 SetActive = <func> @OPie\OneRingIndication.lua:169
 SetIconTexCoord = <func> @OPie\OneRingIndication.lua:82
 SetHighlighted = <func> @OPie\OneRingIndication.lua:166
 SetCooldown = <func> @OPie\OneRingIndication.lua:145
 SetCount = <func> @OPie\OneRingIndication.lua:139
 SetUsable = <func> @OPie\OneRingIndication.lua:94
}
(for control) = "SetUsable"
k = "SetUsable"
v = <func> @OPie\OneRingIndication.lua:94
tk = "nil"
te = "function"
ORI_Frame = <unn
tordenflesk is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: