Thread Tools Display Modes
09-02-12, 04:19 PM   #1
eponine
A Fallenroot Satyr
Join Date: Aug 2012
Posts: 29
PlateBuffs LUA

Hello,

I'm looking for a way to edit the borders on the PlateBuffs icons. They are, by default, a thick blue border. I was able to remove this by editing the LUA, so that it now appears as a thin grey rounded border.

Here's what it looks like now: http://i.imgur.com/yRcfX.jpg

I'd like to make it a thin 1px black border, like my buffs and buttons, if possible.

Thanks in advance!
  Reply With Quote
09-02-12, 05:03 PM   #2
Alea
A Defias Bandit
AddOn Author - Click to view addons
Join Date: Mar 2012
Posts: 2
Lua Code:
  1. f.icon:SetBackdrop({
  2.     bgFile = nil,
  3.     edgeFile = [=[Interface\ChatFrame\ChatFrameBackground]=], edgeSize = 2,
  4.     insets = {top = 1, left = 1, bottom = 1, right = 1},
  5.             })
  6.     f.icon:SetBackdropColor(0 , 0 , 0 , 0)
  7.     f.icon:SetBackdropBorderColor(0 , 0 , 0 , 1)

PlateBuff/frame.lua

seek "f.icon:SetPoint("TOP", f)" for me its 277 line and add this code

what you get:
Lua Code:
  1. f.icon = CreateFrame("Frame", nil, f)
  2.     f.icon:SetPoint("TOP", f)
  3.     f.icon:SetBackdrop({
  4.     bgFile = nil,
  5.     edgeFile = [=[Interface\ChatFrame\ChatFrameBackground]=], edgeSize = 2,
  6.     insets = {top = 1, left = 1, bottom = 1, right = 1},
  7.             })
  8.     f.icon:SetBackdropColor(0 , 0 , 0 , 0)
  9.     f.icon:SetBackdropBorderColor(0 , 0 , 0 , 1)
  10.    
  11.     f.texture = f.icon:CreateTexture(nil,"BACKGROUND")
  12.     f.texture:SetAllPoints(true)

Last edited by Alea : 09-02-12 at 05:08 PM.
  Reply With Quote
09-02-12, 05:24 PM   #3
eponine
A Fallenroot Satyr
Join Date: Aug 2012
Posts: 29
Hey, thanks for the reply (and for updating PlateBuffs, it's a fantastic addon)!

I did what you posted and got this: http://i.imgur.com/dfDBc.jpg

This looks a little better, but it doesn't seem to be 1px, and there are little white dots in each corner of the square - can I get rid of those?
  Reply With Quote
09-02-12, 05:43 PM   #4
Alea
A Defias Bandit
AddOn Author - Click to view addons
Join Date: Mar 2012
Posts: 2
easier way use somethink like that http://www.wowinterface.com/download...cons-Thin.html

code that i give use draw border above texture edgeSize = 2 border size. as much texture as much border size needed
  Reply With Quote
09-02-12, 09:03 PM   #5
eponine
A Fallenroot Satyr
Join Date: Aug 2012
Posts: 29
I'm sorry, I'm a little confused. Are you saying that by using that addon Clean Icons it will make the icons on PlateBuffs look like that? All my other buttons are already like that.
  Reply With Quote
09-02-12, 09:21 PM   #6
eponine
A Fallenroot Satyr
Join Date: Aug 2012
Posts: 29
Never mind - I see how it works now, it replaces all icons that use the default wow icons.

Just tried it out, fantastic!

Thank you for the assistance!
  Reply With Quote
12-10-14, 04:52 PM   #7
xSADISTx
A Kobold Labourer
Join Date: Dec 2014
Posts: 1
Hi, tell me pls, how can i change border texture on icons?
that i have in MoP - http://pixs.ru/showimage/WoWScrnSho_...5_15064747.jpg

now that - http://pixs.ru/showimage/WoWScrnSho_...0_15064763.jpg

i wanna back old border texture from MoP.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » PlateBuffs LUA


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off