Thread Tools Display Modes
02-19-11, 03:10 PM   #1
Kalynn
A Defias Bandit
Join Date: Apr 2010
Posts: 2
Scaling and adding 3d portraits with distance

Okay so..first of all i'm trying to scale up my party / raid / focus / player / target / pet frames a bit, i found this

cfg.raidScale = 1.0 -- scale factor for raid and party frames
cfg.scale = 1.0 -- scale factor for all other frames

changed it to


cfg.raidScale = 2.5 -- scale factor for raid and party frames
cfg.scale = 1.1 -- scale factor for all other frames

got nothing, not even after relogging and /rl'ing, now i might be missing something here but i was quite sure that was the proper way to scale it up, also i've been wanting to add a 3d portrait next to myself, my target and my party that has a bit of a distance and a border around it from the frame, cant seem to get that right either for some reason. Any help and thoughts are welcome, i'm using the oUF_Karma layout atm if that helps. I have tried to contact people there without much luck so i'm trying my luck here.

~ Kalynn
  Reply With Quote
02-19-11, 04:20 PM   #2
tecu
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Apr 2006
Posts: 30
Hey.

I looked at oUF_Karma and it turns out it doesn't use the cfg.raidScale at all! If you would like to change it so that it does, look at the end of core.lua. You should see two pieces of code that look like this:

Code:
		"oUF-initialConfigFunction", ([[
			self:SetWidth(%d)
			self:SetHeight(%d)
   		]]):format(100, 25, cfg.raidScale ))
There will be one for the party header and one for the raid header. If you add the following line after the self:SetHeight line (for each one), scaling should work again.

Code:
self:SetScale(%f)
Here are some links about lua and string.format if this doesn't make sense:
http://www.lua.org/pil/20.html
http://lua-users.org/wiki/StringLibraryTutorial
http://www.cplusplus.com/reference/c...cstdio/printf/


As for the portraits, I'd suggest looking at other oUF layouts and see how they did it.
  Reply With Quote
02-19-11, 04:50 PM   #3
Kalynn
A Defias Bandit
Join Date: Apr 2010
Posts: 2
I must say that i'm impressed by your kindness, however i'm capable of the basic stuff like editing some code and all but, it just dident make sense that it dident work, but now i've learned that ^^, Anyhow thanks alot for the help and your time

~ Kalynn
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Scaling and adding 3d portraits with distance


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off