View Single Post
07-10-14, 04:22 PM   #8
Kygo
A Theradrim Guardian
 
Kygo's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 64
Wow, thank you Rainrider! Some how it made a little more sense to me!
I have to admit that the layout in the code I used was quite confusing.
I did find code snippets inside a few oUF layouts , more those were more to see how other people did and what functions etc they did use to make things work.

Really well written explination aswell, made me as a complete beginner understand a bit more!
Thanks!


@Phanx
I see! Learning something new everyday!
That you and Rainrider is helping me out (and possibly others reading this thread?) and having the patience and for that I'm grateful!

Cheers for the link to that post!


Update:
Added powerbar with text and portrait to player unit.
But now for some reason , using powerText:SetSize only affects the width , but not the height?
Might be the wrong syntax for the task or is it because I've set it to parent with the powerbar itself?

Solved the problem above by adding powerText:SetFont("Interface\\AddOns\\oUF_Kygo\\Media\\ExpresswayRg.ttf", 10)
Thought that SetFont made sense afterall :P So did try it out and it worked!

Updated code is here -> http://pastebin.com/U5JH0ten

How would you add a border to your frames?
I did it this way:
If I wouldnt use the ", -2" in the borderf:SetPoint syntax it would missing 2 or 3 px at the bottom.
And without the "borderf:SetSize(116,32)" it does not fill out the frame :S Most likley doing it wrong!
Lua Code:
  1. --border
  2.     local borderf = health:CreateTexture(nil, "BACKGROUND", health)
  3.     borderf:SetPoint("CENTER", frame, "CENTER", 0, -2)
  4.     borderf:SetSize(116, 32)
  5.     borderf:SetTexture("Interface\\ChatFrame\\ChatFrameBorder")
  6.    
  7.     health.borderf = borderf

Last edited by Kygo : 07-11-14 at 06:58 AM.
  Reply With Quote