View Single Post
07-12-14, 05:52 AM   #9
Kygo
A Theradrim Guardian
 
Kygo's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 64
Hey again! Thought I'd update this thread today!
Did add a border with a small amount of backdrop to my frames using this:
Lua Code:
  1. --border
  2.     local borderf = CreateFrame("Frame", nil, health)
  3.     borderf:SetPoint("RIGHT", 5, -2.6)
  4.     borderf:SetSize(159, 34.5)
  5.    
  6.     borderf:SetBackdrop({
  7.         bgFile = "Interface\\AddOns\\oUF_Kygo\\Media\\backdrop", tile = false,
  8.         edgeFile = "Interface\\AddOns\\oUF_Kygo\\Media\\backdrop_edge", edgeSize = 5,
  9.         insets = { left = 1, right = 1 , top = 1, bottom = 1 }
  10.     })
  11.     borderf:SetBackdropColor(0, 0, 0, .1)
  12.     borderf:SetBackdropBorderColor(0, 0, 0, 1)
  13.    
  14.     health.borderf = borderf
It looks alright, still some tweaking for a bit more depth on the backdrop!

Got a few questions that I hope someone could answer!

If I want to make the healthbars in custom colors , how do I do that? Did try to disable ".colorClass" and add ":SetStatusbarColor" and "SetStatusbarTexture" (not at the same time tho) with (0, 0, 0, .5) (that color just to test!) but it came back saying that both of the syntaxes is returning a nil value.


If I want to add another file that contains referencses / links to the textures and fonts etc or even define custom colors so that the Frames.lua file can use those variables like to replace this >
"Interface\\AddOns\\oUF_Kygo\\Media\\neuropol.ttf" with this > config.healthTextFont or something similar (not completly sure on the syntax that needs to be used)

Like a small push just to get started would be really nice!

Updated code (updated today) > http://pastebin.com/U5JH0ten if you wanna look at it!

Last edited by Kygo : 07-12-14 at 05:56 AM.
  Reply With Quote