Download
(23 Kb)
Download
Updated: 05-12-11 02:49 AM
Pictures
File Info
Updated:05-12-11 02:49 AM
Created:04-14-11 10:33 AM
Downloads:5,889
Favorites:60
MD5:
!Beautycase  Popular! (More than 5000 hits)
Version: 1.1.0
by: Neal [More]
This is a small addon for add fast and efficiently smooth borders to your frames!
You dont need to create a texture for all of your frames annymore. Just this little addon and some code below.
The benefit? The border remains the same, even if the window's size changes. It always looks like it should be.

It's a LUA bases addon. So there are no ingame configurations.

So ok, and how can you use it?

It's quite simple!
!Beautycase has some simple functions.


Create a border
Code:
CreateBorder(myFrame, borderSize, R, G, B, uL1, uL2, uR1, uR2, bL1, bL2, bR1, bR2)
myFrame
-> The name of your frame, It must be a frame not a texture
borderSize
-> The size of the simple square Border. 10-12 looks amazing with the default beautycase texture
R, 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
Shorter method to add a border with no spacing
Code:
CreateBorder(myFrame, borderSize, r, g, b)
Or simple just one number (x) for the same distance on all corners
Code:
CreateBorder(myFrame, borderSize, r, g, b, x)
Change the border/shadow color

"a" is the alpha, its is an alternative possibility and is not needed
Code:
ColorBorder(self, r, g, b, a)
Code:
ColorBorderShadow(self, r, g, b, a)

Change the border/shadow texture

Why? So when you want to use different textures like a "normal" texture
and a white texture for debuff highlight or as indicator for something
Code:
SetBorderTexture(myFrame, texture.tga)
SetBorderShadowTexture(myFrame, texture.tga)

Get infos about the beautycase border on a frame

Code:
local size, texture, r, g, b, alpha = GetBorderInfo(myFrame)

Try it out und you will see how easy you can add a cool border to your frames!

NEW FEATURES!

Code:
  
    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()
Change the texture

You dont like the texture included in !Beautycase? Want your own?
So go into the !Beautycase/media folder and change the textureNormal.tga
file with a file of your choice.

Problems
How or where can i put these code snippets into a file or get to work?

First: DONT'T put the code snippets into the beautycase file.
Create a little addons and put the code in its .lua file.

------------------------------------------------------------

You want to skin the frames of an addon.
For example Pitbull or Omen but you get an error message?
So watch out.

WoW initalize all addon alphabetically.
So when you created a addon like "myAddon" and want
to "CreateBorder(aPitbullFrame, ...)" you can only get an error message because
you want to create a border on a frame which at that time does not exist.

Loading ... !Beautycase
Loading ... aAddon
Loading ... bAddon
Loading ... cAddon
Loading ... myAddon > CreateBorder(aPitbullFrame, ...) > Error. This frame does not exist
Loading ... Omen
Loading ... Pitbull > CreatePitbullUnitFrames
So thats one of the most mistake.
You cannot create a border on a frame that does not exist.

In the example below you must create a addon whose first character must be greater than "p"
The some for Omen and other addons. (z is a good character)

Thats the point why this addon is called !Beautycase and not Beautycase.
Its loaded as one of the first addons so that you can use the !Beautycase functions very early in a addon

------------------------------------------------------------

How can i find out the name of an frame?
Create a macro
/print GetMouseFocus():GetName()
Go over the frame you want to give a border and use this macro

Your frame has no name? Than the only solution is to insert the beautycase
code directly into the source data/function of these addon.

If you have no idea how to do this. Ask other people on the wowi/other ui forums.
There are to many wow addons, so I can't give some help with this problems.
If they have no ideas, you can even try it on the comment function of these addon.
v. 1.1.0

- huge update
- border is now names "self.beautyBorder[i]" to prevent issues with other addons
- do NOT update if you dont need the "new" features!

v. 1.0.3

- new functions
- alpha can now be change
- some non-essential changes

v. 1.0.2

- fix how variables should be handled
Optional Files (0)


Archived Files (1)
File Name
Version
Size
Author
Date
1.0.3
21kB
Neal
04-17-11 02:24 PM


Post A Reply Comment Options
Old 05-10-12, 03:52 PM  
madindehead
A Kobold Labourer

Forum posts: 0
File comments: 19
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
This however doesn't work. I trawled through the Pitbull4 provided with CaithUI, I can't find anything where the border are referenced.

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.
madindehead is offline Report comment to moderator  
Reply With Quote
Old 07-27-12, 05:07 PM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 426
File comments: 319
Uploads: 18
Excuse the post, I was tired and didn't sleep for about... 4 days.

But anyways this is how you skin the default raid frames without manually having to call CreateBorder i haven't tested it for "CompactRaidGroupFrame" which is the name of the Raid Frames when you organize them by party but it should work otherwise.

Code:
a = CreateFrame("Frame")

--setup raid frames
a:SetScript("OnEvent", function(self, event, ...)
	if event == "PLAYER_LOGIN" then
		--unitframes only works with default
		for i = 1, 5 do -- Party Frames
			CreateBorder(_G["CompactPartyFrameMember" .. i], 12, 1, 1, 1)
		end
		for i = 1, 40 do -- Raid Frames
			CreateBorder(_G["CompactRaidFrame" .. i], 12, 1, 1, 1)
		end
		for i = 1, 5 do -- Raid Frames organized by party
			CreateBorder(_G["CompactRaidGroupFrame" .. i], 12, 1, 1, 1)
		end
	end
end
end)

a:RegisterEvent("PLAYER_LOGIN")
a:RegisterEvent("PLAYER_ENTERING_WORLD")
a:RegisterEvent("ADDON_LOADED")
Last edited by 10leej : 07-29-12 at 05:14 PM.
10leej is offline Report comment to moderator  
Reply With Quote
Old 08-24-12, 12:44 PM  
Rammoth
A Cliff Giant
 
Rammoth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 73
File comments: 672
Uploads: 1
Question/Request

Say I wanted to change every single border on every single part of the default UI to this style, the easiest way possible - how would I do that?

I don't want to change just a few things at a time. But I also don't have time to go through and set it for every single part myself.

So basically what I'm asking is, can you provide a template code that will do just that for me? I have already coded everything else I need for my UI, this is the last part.
Rammoth is offline Report comment to moderator  
Reply With Quote
Old 08-26-12, 05:08 PM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 426
File comments: 319
Uploads: 18
Re: Question/Request

Originally Posted by Rammoth
Say I wanted to change every single border on every single part of the default UI to this style, the easiest way possible - how would I do that?

I don't want to change just a few things at a time. But I also don't have time to go through and set it for every single part myself.

So basically what I'm asking is, can you provide a template code that will do just that for me? I have already coded everything else I need for my UI, this is the last part.
You can use !UIskinner from BobUI, still working on it but it pretty much skins everything.
10leej is offline Report comment to moderator  
Reply With Quote
Old 09-09-12, 09:45 AM  
brb2mins
A Murloc Raider

Forum posts: 7
File comments: 2
Uploads: 0
Hey, probably a couple of really stupid questions but im VERY new to this .lua stuff and how to use some of these add ons. Im not sure where i need to be to create a new frame.

What im looking to do is to use the !beautycase skin with the frames in grid so the name boxes in grid look like everything else, is this possible?
I would also like to use the same skin as BobUi uses for my character frame for the party frames that appear on the right hand side when in a 5 man group with or without the 3d image.

Hopfully you can point me in the right direction with this,

many thanks

Brb
brb2mins is offline Report comment to moderator  
Reply With Quote
Old 10-18-12, 11:10 AM  
Lvkke
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 11
Uploads: 1
Skinning Skada!

Hello can someone help me to skin Skada? ive tryed to just put CreateBorder(Skada, 12, r, g, b, 1, 1, 1, 1, 1, 1, 1, 1) in the Notepad and the whole addon got messed upp
Lvkke is offline Report comment to moderator  
Reply With Quote
Old 12-25-12, 11:00 PM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 426
File comments: 319
Uploads: 18
This script skins a lot of the buttons (excluding bag) for !Beautycase

Lua Code:
  1. a = CreateFrame("Frame")
  2. a:SetScript("OnEvent", function(self, event, ...)
  3.     --and this is everything else
  4.     local SkinButtons = CreateFrame("Frame", nil, UIParent)
  5.     SkinButtons:RegisterEvent("ADDON_LOADED")
  6.     SkinButtons:SetScript("OnEvent", function(self, event, AddOn)
  7.         if AddOn == "BobButtons" then
  8.             CharacterHeadSlot:CreateBorder(12, 1, 1, 1)
  9.             CharacterNeckSlot:CreateBorder(12, 1, 1, 1)
  10.             CharacterShoulderSlot:CreateBorder(12, 1, 1, 1)
  11.             CharacterBackSlot:CreateBorder(12, 1, 1, 1)
  12.             CharacterChestSlot:CreateBorder(12, 1, 1, 1)
  13.             CharacterShirtSlot:CreateBorder(12, 1, 1, 1)
  14.             CharacterTabardSlot:CreateBorder(12, 1, 1, 1)
  15.             CharacterWristSlot:CreateBorder(12, 1, 1, 1)
  16.             CharacterMainHandSlot:CreateBorder(12, 1, 1, 1)
  17.             CharacterSecondaryHandSlot:CreateBorder(12, 1, 1, 1)
  18.             CharacterHandsSlot:CreateBorder(12, 1, 1, 1)
  19.             CharacterWaistSlot:CreateBorder(12, 1, 1, 1)
  20.             CharacterLegsSlot:CreateBorder(12, 1, 1, 1)
  21.             CharacterFeetSlot:CreateBorder(12, 1, 1, 1)
  22.             CharacterFinger0Slot:CreateBorder(12, 1, 1, 1)
  23.             CharacterFinger1Slot:CreateBorder(12, 1, 1, 1)
  24.             CharacterTrinket0Slot:CreateBorder(12, 1, 1, 1)
  25.             CharacterTrinket1Slot:CreateBorder(12, 1, 1, 1)
  26.             for i = 1, 12 do
  27.                 --Mail Buttons
  28.                 CreateBorder(_G["SendMailAttachment"..i], 12, 1, 1, 1, 2, 2, 1, 2, 2, 1, 1, 1)     
  29.                 CreateBorder(_G["OpenMailAttachmentButton"..i], 12, 1, 1, 1, 2, 2, 1, 2, 2, 1, 1, 1)
  30.                 --Merchant Buttons
  31.                 CreateBorder(_G["MerchantItem"..i.."ItemButton"], 12, 1, 1, 1, 2)
  32.             end
  33.             for i = 1, 7 do
  34.                 --Trade Buttons
  35.                 CreateBorder(_G["TradePlayerItem"..i.."ItemButton"], 12, 1, 1, 1, 2)
  36.                 CreateBorder(_G["TradeRecipientItem"..i.."ItemButton"], 12, 1, 1, 1, 2)
  37.                 _G["TradeRecipientItem"..i.."NameFrame"]:SetAlpha(0)
  38.                 _G["TradePlayerItem"..i.."NameFrame"]:SetAlpha(0)
  39.                 --Mail Buttons
  40.                 CreateBorder(_G["MailItem"..i.."Button"], 12, 1, 1, 1, 1)
  41.                 _G["MailItem"..i.."ButtonSlot"]:Hide()
  42.             end
  43.             --Spell Book Tab Buttons
  44.             for i = 1, 5 do
  45.                 CreateBorder(_G["SpellBookSkillLineTab"..i], 12, 1, 1, 1, 3, 3, 3, 3, 3, 2, 3, 2)
  46.             end
  47.             --Spellbook Buttons
  48.             for i = 1, SPELLS_PER_PAGE do
  49.                 CreateBorder(_G["SpellButton"..i], 12, 1, 1, 1, 3)
  50.             end
  51.             --Mounts & Pets Buttons
  52.             for i = 1, NUM_COMPANIONS_PER_PAGE do
  53.                 CreateBorder(_G["SpellBookCompanionButton"..i], 12, 1, 1, 1, 2)
  54.             end
  55.             -- Quest Frame Buttons
  56.             for i = 1, MAX_REQUIRED_ITEMS do
  57.                 _G["QuestProgressItem"..i.."NameFrame"]:SetAlpha(0)
  58.                 CreateBorder(_G["QuestProgressItem"..i], 12, 1, 1, 1, 0, 0, -107, 0, 0, -2, -107, -2)
  59.             end
  60.             CreateBorder(_G["QuestInfoSkillPointFrame"], 12, 1, 1, 1, 2, 2, -109, 2, 2, -2, -109, -2)
  61.             -- Some Stupied backdrops rly
  62.             _G["QuestInfoRewardSpellNameFrame"]:SetAlpha(0)
  63.             _G["QuestInfoSpellObjectiveFrameNameFrame"]:SetAlpha(0)
  64.             _G["QuestInfoSkillPointFrameNameFrame"]:SetAlpha(0)
  65.             -- Quest Frame
  66.             for i = 1, MAX_NUM_ITEMS do
  67.                 _G["QuestInfoItem"..i.."NameFrame"]:SetAlpha(0)
  68.                 CreateBorder(_G["QuestInfoItem"..i], 12, 1, 1, 1, 0, 0, -107, 0, 0, -2, -107, -2)
  69.             end    
  70.             -- Pet Stable
  71.             for i = 1, 10 do
  72.                 CreateBorder(_G["PetStableStabledPet"..i], 12, 1, 1, 1)
  73.             end
  74.             -- Buttons on paperdoll frame
  75.             for i  = 1, 3 do
  76.                 CreateBorder(_G["PaperDollSidebarTab"..i], 12, 1, 1, 1)
  77.             end
  78.             --Equipment Manager Buttons
  79.             for i = 1, 15 do
  80.                 CreateBorder(_G["GearManagerDialogPopupButton"..i], 12, 1, 1, 1, 2, 2, 2, 2, 2, 4, 2, 4)
  81.             end
  82.             CreateBorder(_G["StaticPopup1ItemFrame"], 12, 1, 1, 1, 1)
  83.             _G["StaticPopup1ItemFrameNameFrame"]:SetAlpha(0)
  84.             --Merchant
  85.             CreateBorder(_G["MerchantRepairItemButton"], 12, 1, 1, 1)
  86.             CreateBorder(_G["MerchantRepairAllButton"], 12, 1, 1, 1)
  87.             CreateBorder(_G["MerchantGuildBankRepairButton"], 12, 1, 1, 1)
  88.             CreateBorder(_G["MerchantBuyBackItemItemButton"], 12, 1, 1, 1, 2)
  89.             _G["MerchantBuyBackItemNameFrame"]:SetAlpha(0)
  90.             -- Mail Buttons
  91.             CreateBorder(_G["OpenMailMoneyButton"], 12, 1, 1, 1, 2, 2, 1, 2, 2, 1, 1, 1)
  92.             CreateBorder(_G["OpenMailLetterButton"], 12, 1, 1, 1, 2, 2, 1, 2, 2, 1, 1, 1)
  93.             --Dungeon Finder
  94.             CreateBorder(_G["LFDQueueFrameRandomScrollFrameChildFrameItem1"], 12, 1, 1, 1, 1, 1, -106, 1, 1, -1, -106, -1)
  95.             hooksecurefunc("LFDQueueFrameRandom_UpdateFrame", function()
  96.                 for i = 1, LFD_MAX_REWARDS do
  97.                     if _G["LFDQueueFrameRandomScrollFrameChildFrameItem"..i] then
  98.                         if not _G["LFDQueueFrameRandomScrollFrameChildFrameItem"..i].reskinned then
  99.                             _G["LFDQueueFrameRandomScrollFrameChildFrameItem"..i.."NameFrame"]:SetAlpha(0)
  100.                             _G["LFDQueueFrameRandomScrollFrameChildFrameItem"..i].reskinned = true
  101.                         end
  102.                     end
  103.                 end
  104.             end)   
  105.             _G["RaidFinderQueueFrameScrollFrameChildFrameItem1NameFrame"]:SetAlpha(0)
  106.             CreateBorder(_G["RaidFinderQueueFrameScrollFrameChildFrameItem1"], 12, 1, 1, 1, 1, 1, -106, 1, 1, -1, -106, -1)
  107.             --Professions
  108.             CreateBorder(_G["PrimaryProfession1SpellButtonBottom"], 12, 1, 1, 1)   
  109.             CreateBorder(_G["PrimaryProfession1SpellButtonTop"], 12, 1, 1, 1)  
  110.             CreateBorder(_G["PrimaryProfession2SpellButtonBottom"], 12, 1, 1, 1)
  111.             CreateBorder(_G["PrimaryProfession2SpellButtonTop"], 12, 1, 1, 1)
  112.             CreateBorder(_G["SecondaryProfession1SpellButtonRight"], 12, 1, 1, 1)
  113.             CreateBorder(_G["SecondaryProfession2SpellButtonRight"], 12, 1, 1, 1)
  114.             CreateBorder(_G["SecondaryProfession1SpellButtonLeft"], 12, 1, 1, 1)
  115.             CreateBorder(_G["SecondaryProfession3SpellButtonRight"], 12, 1, 1, 1)
  116.             CreateBorder(_G["SecondaryProfession3SpellButtonLeft"], 12, 1, 1, 1)
  117.             CreateBorder(_G["SecondaryProfession4SpellButtonRight"], 12, 1, 1, 1)
  118.             CreateBorder(_G["HelpFrameCharacterStuckHearthstone"], 12, 1, 1, 1)
  119.             --Hide FagDrops!
  120.             for _, frame in pairs({
  121.                 _G["PrimaryProfession1SpellButtonTopNameFrame"], _G["PrimaryProfession1SpellButtonBottomNameFrame"],_G["PrimaryProfession2SpellButtonTopNameFrame"], _G["PrimaryProfession2SpellButtonBottomNameFrame"], _G["SecondaryProfession1SpellButtonLeftNameFrame"],_G["SecondaryProfession1SpellButtonRightNameFrame"],_G["SecondaryProfession2SpellButtonLeftNameFrame"],_G["SecondaryProfession2SpellButtonRightNameFrame"], _G["SecondaryProfession3SpellButtonLeftNameFrame"],_G["SecondaryProfession3SpellButtonRightNameFrame"],_G["SecondaryProfession4SpellButtonLeftNameFrame"],_G["SecondaryProfession4SpellButtonRightNameFrame"],
  122.             }) do
  123.                 frame:SetAlpha(0)
  124.             end
  125.            
  126.             local itemslots = {"Head", "Neck", "Shoulder", "Shirt", "Chest", "Waist", "Legs", "Feet", "Wrist", "Hands", "Finger0", "Finger1", "Trinket0", "Trinket1", "Back", "MainHand","SecondaryHand", "Ranged", "Tabard",}
  127.             for i = 1, getn(itemslots) do
  128.                 local Characterslotsframe = CreateFrame("Frame", nil, _G["Character"..itemslots[i].."Slot"])
  129.                 Characterslotsframe:SetPoint("TOPLEFT", -1, 1)
  130.                 Characterslotsframe:SetPoint("BOTTOMRIGHT", 1, -1)
  131.                 CreateBorder(Characterslotsframe, 12, 1, 1, 1)
  132.             end
  133.         elseif AddOn == "Blizzard_Calendar" then
  134.             for i = 1, 10 do
  135.                 CreateBorder(_G["CalendarClassButton"..i], 12, 1, 1, 1, 3, 4, 3, 4, 3, 3, 3, 3)
  136.             end
  137.             CreateBorder(_G["CalendarClassTotalsButton"], 12, 1, 1, 1, 2, 5, 2, 5, 2, 4, 2, 4)
  138.         elseif AddOn == "Blizzard_GuildBankUI" then
  139.             for i = 1, 14 do       
  140.                 for k = 1, 7 do
  141.                     local gbframe = CreateFrame("Frame", nil, _G["GuildBankColumn"..k.."Button"..i])
  142.                     gbframe:SetPoint("TOPLEFT", -1, 1)
  143.                     gbframe:SetPoint("BOTTOMRIGHT", 1, -1)
  144.                     CreateBorder(gbframe, 12, 1, 1, 1, 1)
  145.                 end
  146.             end
  147.             if AddOn == "Blizzard_GuildUI" then
  148.             CreateBorder(_G["GuildNextPerkButton"], 12, 1, 1, 1, 0, 0, -107, 0, 0, -2, -107, -2)
  149.             CreateBorder(_G["GuildLatestPerkButton"], 12, 1, 1, 1, 0, 0, -107, 0, 0, -2, -107, -2)
  150.             for i = 1, 7 do
  151.                 CreateBorder(_G["GuildPerksContainerButton"..i], 12, 1, 1, 1, -1)
  152.                 CreateBorder(_G["GuildRewardsContainerButton"..i], 12, 1, 1, 1, -1)
  153.             end
  154.             _G["GuildNextPerkButton".."NameFrame"]:Hide()
  155.             _G["GuildLatestPerkButton".."NameFrame"]:Hide()
  156.             select(5, _G["GuildLatestPerkButton"]:GetRegions()):Hide()
  157.             select(6, _G["GuildLatestPerkButton"]:GetRegions()):Hide()
  158.         elseif AddOn == "Blizzard_MacroUI" then
  159.             for i = 1, 36 do
  160.                 CreateBorder(_G["MacroButton"..i], 12, 1, 1, 1, 1)
  161.             end
  162.             CreateBorder(_G["MacroFrameSelectedMacroButton"], 12, 1, 1, 1, 1)
  163.             for i = 1, 20 do
  164.                 CreateBorder(_G["MacroPopupButton"..i], 12, 1, 1, 1, 1)
  165.             end
  166.         elseif AddOn == "Blizzard_TradeSkillUI" then
  167.             --for i = 1, 7 do
  168.             --    CreateBorder(_G["TradeSkillReagent"..i], 12, 1, 1, 1, 2, 1, -105, 1, 2, 0, -105, 0)
  169.             --end
  170.             for i = 1, MAX_TRADE_SKILL_REAGENTS do
  171.                 _G["TradeSkillReagent"..i.."NameFrame"]:Hide()
  172.             end
  173.             CreateBorder(_G["TradeSkillSkillIcon"], 12, 1, 1, 1, 2)
  174.         elseif AddOn == "Blizzard_AuctionUI" then
  175.             for i = 1, 8 do
  176.                 CreateBorder(_G["BrowseButton"..i.."Item"], 12, 1, 1, 1, 2)
  177.             end
  178.             for i = 1, 9 do
  179.                 CreateBorder(_G["BidButton"..i.."Item"], 12, 1, 1, 1, 2)
  180.                 CreateBorder(_G["AuctionsButton"..i.."Item"], 12, 1, 1, 1, 2)
  181.             end
  182.             CreateBorder(_G["AuctionsItemButton"], 12, 1, 1, 1, 2)
  183.         elseif AddOn == "Blizzard_GlyphUI" then
  184.             for i = 1, 9 do
  185.                 CreateBorder(_G["GlyphFrameScrollFrameButton"..i], 12, 1, 1, 1)
  186.             end
  187.         elseif AddOn == "Blizzard_TrainerUI" then  
  188.             for i = 1, 8 do
  189.                 CreateBorder(_G["ClassTrainerScrollFrameButton"..i], 12, 1, 1, 1)
  190.             end
  191.             CreateBorder(_G["ClassTrainerFrameSkillStepButton"], 12, 1, 1, 1, 1)
  192.         elseif AddOn == "Blizzard_ArchaeologyUI" then  
  193.             for i = 1, ARCHAEOLOGY_MAX_COMPLETED_SHOWN do
  194.                 CreateBorder(_G["ArchaeologyFrameCompletedPageArtifact"..i], 12, 1, 1, 1, 0, 0, -155, 0, 0, 0, -155, 0)
  195.             end
  196.         end
  197.     end
  198. end)
Last edited by 10leej : 12-25-12 at 11:03 PM.
10leej is offline Report comment to moderator  
Reply With Quote
Old 12-25-12, 11:02 PM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 426
File comments: 319
Uploads: 18
These scripts skin the Raid frames and Actionbars (default UI only)

actionbars
Lua Code:
  1. --Skin Actionbars
  2.         if event == "PLAYER_LOGIN" then
  3.             for i = 1, 12 do -- Bar 1
  4.                 CreateBorder(_G["ActionButton" .. i], 12, 1, 1, 1)
  5.             end
  6.             for i = 1, 12 do --Bar 2
  7.                 CreateBorder(_G["MultiBarBottomLeftButton" .. i], 12, 1, 1, 1)
  8.             end
  9.             for i = 1, 12 do --Bar 3
  10.                 CreateBorder(_G["MultiBarBottomRightButton" .. i], 12, 1, 1, 1)
  11.             end
  12.             for i = 1, 12 do --Bar 4
  13.                 CreateBorder(_G["MultiBarLeftButton" .. i], 12, 1, 1, 1)
  14.             end
  15.             for i = 1, 12 do --Bar 5
  16.                 CreateBorder(_G["MultiBarRightButton" .. i], 12, 1, 1, 1)
  17.             end
  18.             for i = 1, 12 do --Bar 5
  19.                 CreateBorder(_G["ExtraBarButton" .. i], 12, 1, 1, 1)
  20.             end
  21.             for i = 1, 10 do --Pet Bar
  22.                 CreateBorder(_G["PetActionButton" .. i], 12, 1, 1, 1)
  23.             end
  24.         end
  25.     end)
  26.     a:RegisterEvent("PLAYER_LOGIN")
  27.     a:RegisterEvent("PLAYER_ENTERING_WORLD")
  28.     a:RegisterEvent("ADDON_LOADED")

raid frames
Lua Code:
  1. --skin default raid frames
  2.     b = CreateFrame("Frame")
  3.     b:SetScript("OnEvent", function(self, event, ...)
  4.         if event == "GROUP_ROSTER_UPDATE" then
  5.             for i = 1, 5 do -- Party Frames
  6.                 CreateBorder(_G["CompactPartyFrameMember" .. i], 12, 1, 1, 1)
  7.             end
  8.             for i = 1, 40 do -- Raid Frames
  9.                 CreateBorder(_G["CompactRaidFrame" .. i], 12, 1, 1, 1)
  10.             end
  11.             for i = 1, 5 do -- Raid Frames
  12.                 CreateBorder(_G["CompactRaidGroup1Member" .. i], 12, 1, 1, 1)
  13.             end
  14.             for i = 1, 5 do -- Raid Frames
  15.                 CreateBorder(_G["CompactRaidGroup2Member" .. i], 12, 1, 1, 1)
  16.             end
  17.             for i = 1, 5 do -- Raid Frames
  18.                 CreateBorder(_G["CompactRaidGroup3Member" .. i], 12, 1, 1, 1)
  19.             end
  20.             for i = 1, 5 do -- Raid Frames
  21.                 CreateBorder(_G["CompactRaidGroup4Member" .. i], 12, 1, 1, 1)
  22.             end
  23.             for i = 1, 5 do -- Raid Frames
  24.                 CreateBorder(_G["CompactRaidGroup5Member" .. i], 12, 1, 1, 1)
  25.             end
  26.         end
  27.     end)
  28.     b:RegisterEvent("PLAYER_LOGIN")
  29.     b:RegisterEvent("GROUP_ROSTER_UPDATE")
  30.     b:RegisterEvent("ADDON_LOADED")
Last edited by 10leej : 12-26-12 at 10:52 PM.
10leej is offline Report comment to moderator  
Reply With Quote
Old 12-25-12, 11:04 PM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 426
File comments: 319
Uploads: 18
Re: Skinning Skada!

Originally Posted by Lvkke
Hello can someone help me to skin Skada? ive tryed to just put CreateBorder(Skada, 12, r, g, b, 1, 1, 1, 1, 1, 1, 1, 1) in the Notepad and the whole addon got messed upp
r,g,b are an example for colors that has to be numbers
10leej is offline Report comment to moderator  
Reply With Quote
Old 01-16-13, 12:29 AM  
Expunge
A Defias Bandit

Forum posts: 2
File comments: 10
Uploads: 0
Hello kamilo, Neal

I'm trying to put a beautycase on my frames in Shadowed Unit Frames and I don't seem to be having any luck. I've followed the instructions on both of these posts, but I haven't had luck with either. Perhaps an update to SUF has made these methods no longer functional? kamilo's method seems like a very clean solution, and I'd like to stick with that if possible.

Thanks for any help you guys can provide.. I'm going to keep plugging away here.

Originally Posted by kamilo
There is no need to actually modify Shadowed Unit Frames source to load borders (nor manually list frames), you can simply override the function that does all the loading.

After playing around with the SUF internal functions, here's what I came up with, and seems to work with every frame SUF creates:

Code:
-- borders for all SUF Frames

local SUFUnits = ShadowUF.Units
local CreateUnit = SUFUnits.CreateUnit

function SUFUnits.CreateUnit(...)
	local frame = CreateUnit(...)
	CreateBorder(frame, 12, 1, 1, 1)
	return frame
end
Just put this in a new addon and you should be fine.
Originally Posted by Neal
Sorry for doublepost :O

For recount (a AddOn with z as first letter for example)
Code:
CreateBorder(Recount_MainWindow, 11, 1, 1, 1)

For ShadowedUnitFrames

ShadowedUnitFrames.lua ~ line:199:
Code:
function ShadowUF:LoadUnits()

    ... some code here

    CreateBorder(SUFUnitplayer, 11, 1, 1, 1)
    CreateBorder(SUFUnittarget, 11, 1, 1, 1)
    CreateBorder(SUFUnit....)
end
Expunge is offline Report comment to moderator  
Reply With Quote
Old 01-22-13, 09:30 PM  
Expunge
A Defias Bandit

Forum posts: 2
File comments: 10
Uploads: 0
Anyone? Still can't manage to make this work.
Expunge is offline Report comment to moderator  
Reply With Quote
Old 02-18-13, 08:58 AM  
Viryz
An Aku'mai Servant
AddOn Compiler - Click to view compilations

Forum posts: 37
File comments: 32
Uploads: 2
I have a few question about !beautycase. I'm not very good with code but I am always experimenting with them. However, This code seem to skin everything by default, correct?

What would I need to do If i wanted to have beautiful borders on everything such as tiptac, minimap and all that except for recount and omen? Been lurking around in the code but can't seem to find any solution, please help.

Thank you.
Viryz is offline Report comment to moderator  
Reply With Quote
Old 03-03-13, 12:04 AM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 426
File comments: 319
Uploads: 18
Originally Posted by Viryz
I have a few question about !beautycase. I'm not very good with code but I am always experimenting with them. However, This code seem to skin everything by default, correct?

What would I need to do If i wanted to have beautiful borders on everything such as tiptac, minimap and all that except for recount and omen? Been lurking around in the code but can't seem to find any solution, please help.

Thank you.
Actually !Beautycase doesn't skin anything by default. As for skinning thing such as tiptac all you need to do is find the name of the frame (in most cases in the .lua files the name of the frame is simple "frame" as for skinning the minimap !Beautycase can only skin a square so you'll need a square layout for the minimap, more or less something like qMinimap after that all you have to do is add "Minimap:CreateBorder(12,1,1,1)" at the bottom of qMinimap's .lua file.
10leej is offline Report comment to moderator  
Reply With Quote
Old 04-01-13, 02:23 PM  
Sparkaoss
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Hello somehow to work with Dominos? 3 hours trying and I get tired T_T
I tested 10leej codes for actionbars, raidframes but do not work :S, please help.

Thank you

Sorry for my bad English.
Sparkaoss is offline Report comment to moderator  
Reply With Quote
Old 05-01-13, 11:57 AM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 426
File comments: 319
Uploads: 18
Originally Posted by Sparkaoss
Hello somehow to work with Dominos? 3 hours trying and I get tired T_T
I tested 10leej codes for actionbars, raidframes but do not work :S, please help.

Thank you

Sorry for my bad English.
my code only works for the default, dominos creates it's own actionbars.

you can try using Neal's old button facade plugin, but I can't garauntee it'll work.
Last edited by 10leej : 05-01-13 at 01:38 PM.
10leej is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: