| Updated: | 05-12-11 02:49 AM |
| Created: | 04-14-11 10:33 AM |
| Downloads: | 3,449 |
| Favorites: | 57 |
| MD5: |
CreateBorder(myFrame, borderSize, R, G, B, uL1, uL2, uR1, uR2, bL1, bL2, bR1, bR2)
myFrameShorter method to add a border with no spacing-> The name of your frame, It must be a frame not a textureborderSize-> The size of the simple square Border. 10-12 looks amazing with the default beautycase textureR, G, B -> The colors of the Border. r = Red, g = Green, b = Blue
uL1, uL2 -> top left x, top left y
uR1, uR2 -> top right x, top right y
bL1, bL2 -> bottom left x, bottom left y
bR1, bR2 -> bottom right x, bottom right y
CreateBorder(myFrame, borderSize, r, g, b)
CreateBorder(myFrame, borderSize, r, g, b, x)
ColorBorder(self, r, g, b, a)
ColorBorderShadow(self, r, g, b, a)
SetBorderTexture(myFrame, texture.tga) SetBorderShadowTexture(myFrame, texture.tga)
local size, texture, r, g, b, alpha = GetBorderInfo(myFrame)
myFrame:CreateBorder(borderSize)
myFrame:SetBorderSize(borderSize)
myFrame:SetBorderPadding(number or [uL1, uL2, uR1, uR2, bL1, bL2, bR1, bR2])
myFrame:SetBorderTexture(texture)
myFrame:SetBorderShadowTexture(texture)
myFrame:SetBorderColor(r, g, b)
myFrame:SetBorderShadowColor(r, g, b)
myFrame:HideBorder()
myFrame:ShowBorder()
myFrame:GetBorder() - true if has a beautycase border, otherwise false
local borderSize, texture, r, g, b, alpha = myFrame:GetBorderInfo()
|
Loading ... !Beautycase Loading ... aAddon Loading ... bAddon Loading ... cAddon Loading ... myAddon > CreateBorder(aPitbullFrame, ...) > Error. This frame does not exist Loading ... Omen Loading ... Pitbull > CreatePitbullUnitFrames |
| /print GetMouseFocus():GetName() |
File Name |
Version |
Size |
Author |
Date |
1.0.3 |
21kB |
Neal |
04-17-11 02:24 PM |
![]() |
Comment Options |
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 12
Uploads: 0
|
How to skin Pitbull?!
Hello there,
I hope someone can help me out with this. I downloaded Beautycase to add a border to my Pitbull unit frames a bit like Caith UI (http://img819.imageshack.us/img819/7876/77101601.png) However, I cannot figure out how to do it. I made a small addon, with a core.lua file, with the following code: Code:
CreateBorderLight(Pitbull4_Frames_player, 12, 1, 1, 1) --Should skin Pitbull Player I was under the impression, that simply making a small addon which loads after the addons I want to skin would work. However, I seem to find that I will need to edit the lua in every addon I want to skin? Or is this not the case? Because if I have to edit lua in every addon, I won't be using this for two reason: 1) I don't know lua very well at all 2) I don't have the time to edit every addon when it is updated Can anyone please help me? Thanks ![]()
Last edited by madindehead : 05-13-12 at 05:45 AM.
|
|
|
|
|
|
|
1Beautycase and Raven
Hey guys, any ideas about how to get this to work with Raven? (Buffs and Debuffs) and with the Editbox of chatter?
Last edited by adaroundtown : 03-17-12 at 08:48 PM.
|
|
|
|
|
|
|
|
A Murloc Raider
Forum posts: 8
File comments: 2
Uploads: 0
|
hallo neal,hoffe das "german" in deinem profil ist richtig ;-)
ich habe ein problem, undzwar bekomme ich immer egal was ich auch mit bc skinne die lua fehler meldung "attempt to call global 'CreateBorder' (a nil value)" bei manchen addons wie z.b. PocketPlot bin ich mir zu 100% sicher das es an der richtigen stelle ist,aber irgendwie kommt dennoch der lua fehler. das selbe bei grid,pitbull und quartz. weiss du vielleicht weiter? bin echt nicht so ein lua pro mfg |
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 4
Uploads: 0
|
Hello, Thank you for your UI.
First to say sorry, my English is not good, and translated with Google, please forgive me. I ask whether it can teach me to add a Addons, convenient to modify the original the GRID As long as the GRID update, it is necessary to modify the GRID \ GridFrame.lua A little inconvenient, I hope you can teach me how to increase one Addons. Following modify GRID \ GridFrame.lua: 181 -- set texture frame:SetNormalTexture(1, 1, 1, 0) frame:EnableMouseoverHighlight(GridFrame.db.profile.enableMouseoverHighlight) if frame:CanChangeAttribute() then frame:SetAttribute("initial-width", self.db.profile.frameWidth) frame:SetAttribute("initial-height", self.db.profile.frameHeight) end -- Sexy Grid CreateBorder(frame, 12, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2) -- End Sexy Grid frame:Reset() ClickCastFrames = ClickCastFrames or {} ClickCastFrames[frame] = true return frame end 601 function GridFrame.prototype:SetIndicator(indicator, color, text, value, maxValue, texture, start, duration, stack, texCoords) if not color then color = COLOR_WHITE end if texture and not texCoords then texCoords = COORDS_FULL end if indicator == "border" then self:SetBackdropBorderColor(color.r, color.g, color.b, color.a or 1) -- Sexy Grid ColorBorder(self, color.r, color.g, color.b) -- End Sexy Grid elseif indicator == "corner1" or indicator == "corner2" or indicator == "corner3" or indicator == "corner4" then -- create indicator on demand if not available yet if not self[indicator] then self:CreateIndicator(indicator) end 697 function GridFrame.prototype:ClearIndicator(indicator) if indicator == "border" then self:SetBackdropBorderColor(0, 0, 0, 0) -- Sexy Grid ColorBorder(self, 1, 1, 1) -- End Sexy Grid elseif indicator == "corner1" or indicator == "corner2" or indicator == "corner3" or indicator == "corner4" then if self[indicator] then self[indicator]:SetBackdropColor(1, 1, 1, 1) self[indicator]:Hide() end
Last edited by ghostxi : 03-02-12 at 04:25 AM.
|
|
|
|
|
|
|
Hi guys,
I'm new to this add-on and LUA stuff, but I want to give it a try with !Beautycase. This may be a dumb question, but which file and where am i entering my "create border" lines? do i just open !Beutycase.LUA and add it there? if so, do i throw it at the end, beginning, middle? |
|
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 11
Uploads: 0
|
Strata
Absolutely LOVE this addon. It's simple and elegant.
Need a hand though! I'm trying to set the strata of the border to just above the Grid2LayoutFrame but I can't find a way to do it. Currently I'm just using a macro with this: /script CreateBorder(Grid2LayoutFrame, 11, 0.73, 0.6, 0.6) Is there a way to modify the strata? Also, I added this to my custom addon: Grid2LayoutFrame:CreateBorder(Grid2LayoutFrame, 12, 0.73, 0.6, 0.6) But it doesn't add the border, not sure why.
Last edited by Roham : 12-08-11 at 12:56 PM.
|
|
|
|
|
|
|
Message: Interface\AddOns\!Beautycase\!Beautycase.lua:2: unexpected symbol near 'local'
Time: 11/20/11 02:18:07 Count: 1 Stack: Locals:
__________________
"There's no such thing as too many addons." Lothaer Titan Dev Team Member.
|
|
|
|
|
|
|
|
A Deviate Faerie Dragon
Forum posts: 12
File comments: 5
Uploads: 0
|
I'm trying to find a way to add borders to individual grid buttons.
Adding them through a separate mini-addon and the individual frame name (GridLayoutHeader1Button1 I think it's called) doesn't work for me. (The addon begins with "z", so that can't be the problem). Do I have to do this through Grid's code itself? Because then I have no idea how to ![]() |
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 8
Uploads: 0
|
AddOns
okay i understand everything that has to do with the defaultUI, but i cant get any frames for addons, i get LUA errors and no frames.
like quarts, i do a /frame for it, enter it into the function just like any other ui element, but i still get another lua error XD any help appreciated |
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 3
Uploads: 0
|
hey guys
any1 able to write a guide which includes: editing own addons with !beautycase style ->finding the right line to insert the createborder-command ( big prob for me )maybe some more stuff excuse my bad english ![]() any1? pleaaaaassssseeeee? |
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
does anyone know how to get this to work with the party/raid frames in pitbull 4?
|
|
|
|
|
||
__________________
|
||
|
|
|
|
|
|
is there something within the LUA that shows your current target's target??
__________________
FROZENWARLOCK |
|
|
|
![]() |