Download
(23Kb)
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:11,078
Favorites:74
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)


Post A Reply Comment Options
Unread 12-26-12, 12:04 AM  
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 583
File comments: 438
Uploads: 22
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
__________________
Tweets YouTube Website
Report comment to moderator  
Reply With Quote
Unread 12-26-12, 12:02 AM  
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 583
File comments: 438
Uploads: 22
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")
__________________
Tweets YouTube Website
Last edited by 10leej : 12-26-12 at 11:52 PM.
Report comment to moderator  
Reply With Quote
Unread 12-26-12, 12:00 AM  
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 583
File comments: 438
Uploads: 22
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)
__________________
Tweets YouTube Website
Last edited by 10leej : 12-26-12 at 12:03 AM.
Report comment to moderator  
Reply With Quote
Unread 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
Report comment to moderator  
Reply With Quote
Unread 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
Report comment to moderator  
Reply With Quote
Unread 08-26-12, 05:08 PM  
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 583
File comments: 438
Uploads: 22
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.
__________________
Tweets YouTube Website
Report comment to moderator  
Reply With Quote
Unread 08-24-12, 12:44 PM  
Rammoth
A Cliff Giant
 
Rammoth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 73
File comments: 628
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.
Report comment to moderator  
Reply With Quote
Unread 07-27-12, 05:07 PM  
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 583
File comments: 438
Uploads: 22
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")
__________________
Tweets YouTube Website
Last edited by 10leej : 07-29-12 at 05:14 PM.
Report comment to moderator  
Reply With Quote
Unread 05-10-12, 03:52 PM  
madindehead
A Kobold Labourer

Forum posts: 0
File comments: 22
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.
Report comment to moderator  
Reply With Quote
Unread 03-25-12, 04:11 AM  
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 583
File comments: 438
Uploads: 22
Seems that I can't get a border around all the buff frames for the default Buff Frame

did a /framestack on it the name came up as "BuffFrame" but I put that in the code and it only puts a border around the first buff, would I have to make a border for every buff? or is there some other way to do this.....

EDIT:
BuffButton1 apparently doesn't exist so I can't go that route either
__________________
Tweets YouTube Website
Last edited by 10leej : 04-10-12 at 12:44 AM.
Report comment to moderator  
Reply With Quote
Unread 03-24-12, 10:33 AM  
Aanson
A Flamescale Wyrmkin

Forum posts: 124
File comments: 13
Uploads: 0
Originally Posted by Neal
Ok I've tested it with kgPanels now.

When you have active the config mode, your frame cannot have a name because there is a frame over your frame (these turquoise frame for resizeing, moving etc).

So to get the panel name lock your panel (enable mouseclicks) and try the FrameName macro.

As result you should get "kgPanel1", "kgPanel2" ... etc.

I've tried this
Code:
/run CreateBorder(kgPanel1, 11, 1, 1, 1)
And it work fine for me

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

Haha lol, possibility 2, to easy ^^



Have fun !

btw. screenshot of your result?
Hey Neal.

I've build, almost, a complete UI with kgPanels which looks amazing. The only thing that's always bothered me is borders. I've never managed to find one that's well... beautiful i guess lol.

I tried the method described above with the OnLoad script (I changed the kgPanels TOC so that !BeautyCase is a dependancy) but Im getting an error:

ViewpointBorderFrameBorder_OnLoad":3: attempt to call global "CreateBorder" (a nil value)

(Where "ViewpointBorderFrameBorder" is the name for that particular kgPanel).

Any ideas on how this could be fixed? Or perhaps I'm doing something wrong? I'm trying very hard to learn the basics of lua, but I don't know any way to make kgPanels recognize that global.

Thanks in advance for any assistance you can provide.

EDIT: I've tried using the macro and "kgPanel130" instead with exactly the same result
__________________
__________________
Last edited by Aanson : 03-24-12 at 10:40 AM.
Report comment to moderator  
Reply With Quote
Unread 03-17-12, 08:41 PM  
adaroundtown
A Murloc Raider
AddOn Compiler - Click to view compilations

Forum posts: 5
File comments: 39
Uploads: 1
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.
Report comment to moderator  
Reply With Quote
Unread 03-09-12, 06:58 AM  
h9rst
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
Report comment to moderator  
Reply With Quote
Unread 03-02-12, 03:54 AM  
ghostxi
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 05:25 AM.
Report comment to moderator  
Reply With Quote
Unread 12-18-11, 06:18 AM  
adaroundtown
A Murloc Raider
AddOn Compiler - Click to view compilations

Forum posts: 5
File comments: 39
Uploads: 1
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?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: