Quantcast WoWInterface - View Single Post - How to skin Deadly Boss Mods (without rewriting)
View Single Post
09-09-10, 08:04 AM   #8
nin
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 213
Depends a little on how you assign media too your addon(s).

I and a lot of users have a folder for media wich we direct most addons too... or sharedmedia (im not gonna give you any suggestion on sharedmedia since i dont use it myself) but you can use sharedmedia in combination with this.

with the way i do it, It would look something like this..(i use gxMedia from guardix because i use some of his addons and wanted my dbm the same style)

Code:
local gxMedia = gxMedia or {
	bgFile = [=[Interface\ChatFrame\ChatFrameBackground]=],
	buttonOverlay = [=[Interface\Buttons\UI-ActionButton-Border]=],
	edgeFile = [=[Interface\Addons\gxMedia\media\backdropedge]=],
	font = [=[Fonts\FRIZQT__.TTF]=],
	statusBar = [=[Interface\AddOns\gxMedia\media\statusbar]=],
}
so assigning the statusbar too say progress would look like this

Code:
progress:SetStatusBarTexture(gxMedia.statusBar)
and font

Code:
name:SetFont(gxMedia.font, 14)
You can also assign fonts/statusbars etc like this

Code:
local font = "path to font"
local statusbar = "path to texture"
then the code too assign them would look like this.

Code:
progress:SetStatusBarTexture(statusbar)
and font

Code:
name:SetFont(font, 14)
another example of doing it..

Code:
progress:SetStatusBarTexture(Interface\\AddOns\\!media\\statusbar)
and font

Code:
name:SetFont(Interface\\AddOns\\!media\\fonts\\font.ttf, 14)

Also what is "fsize" for?
fontsize

Hope it was of some help, sorry for the wall of text.

-_-v
  Reply With Quote