Classicon help
So trying to skin classicon with !beautycase it seems to cause errors when I call the !Beautycase "CreateBeautyBorder" function. Anyone know if I can do this or should I just not bother skinning them with !Beautycase?
current code Lua Code:
Also how does one put space in between each icon? |
I am not sure how BeautyCase approaches adding borders to objects, but textures do not have borders to work on; typically you manipulate the border of a frame.
You would need to create a frame the size of the class icon, place the class icon on the frame, and manipulate the border of the frame to achieve the desired effect. |
The problem with your current code is that you're trying to add a border to the whole ClassIcons object -- which is fine, except that that object is just a table, rather than a frame, so it doesn't have the necessary methods.
If you want one border around the whole set of icons, make ClassIcons a frame: Code:
local numIcons = 5 Code:
local numIcons = 5 |
Quote:
|
Lua Code:
nets me this error Code:
2x oUF\elements\classicons.lua:81: attempt to call method 'SetVertexColor' (a nil value) |
No; oUF annoyingly assumes the objects are textures. Just add a dummy method to shut it up:
Code:
for index = 1, numIcons do |
Quote:
|
The other option, if you actually wanted to let oUF control the color, would be to point the SetVertexColor method to something useful:
Code:
local function SetVertexColor(self, r, g, b) |
All times are GMT -6. The time now is 12:25 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI