oUF - Layout discussion
The old oUF thread over at WoWace has become, quite a monster to say it softly. It's a mess of bug reports, layout issues and general issues/feature people have/want.
Please use this thread for layout discussion only. Related forum thread: oUF - General discussion Bug reports and feature requests should be posted over at the author portal. Issues with specific layouts should be posted in their respective place (not here, unless you are the author of the layout in question (and don't you dare to bend this exception! :p)). |
Haste, is there actually a way to overwrite/override the pvp functions, because I prefer a textual tag, but would like to do that by not editting the oUF core?
|
There isn't any internal functions for that on PvP, mostly because it's a shared event, and the shared event system is still to be written.
You can however do: self.UNIT_FACTION = myOwnUpdatePvPFunction;. Setting functions directly on the layout doesn't touch the core at all. |
Quote:
|
Is it possible to change the level of a text (fontstring) the same way it works for frames (SetFrameLevel).
I'm toying with portraits and would like to display something over it, but right now the portrait comes above of the text. |
Maybe I can help you out here. You could just use a helperframe that lays between portrait and text.
Code:
|
|
Quote:
|
Quote:
Code:
self.Health.value = SetFontString(self.Health, font,(unit == 'player' or unit == 'target') and 10 or 9) Code:
self.Portrait = CreateFrame('PlayerModel', nil, self) |
At what layer is your font-strings created? OVERLAY should position your text above the model just fine.
|
Quote:
Code:
local fs = parent:CreateFontString(nil, 'OVERLAY') Code:
self.Health:SetFrameLevel(unit and 1 or 2) Code:
self.Highlight = self:CreateTexture(nil, 'HIGHLIGHT') |
Then it's probably your portrait that has a rather high frame level. You can do the following however:
a) Change the frame level of the portrait. or b) Create the font-strings with the portrait as parent. |
Weird, i'm sure i tried to change the portrait level before and it didn't work for some reason, now it does. Anyway thanks, though i don't know yet if i like the result or not :)
Anyway, i'd like to understand something, since i've added portraits, i've created a "fake" frame above them so they don't look so flat, i've anchored a few things to that "fake" frame, like health value, power value and so on and it works just fine. But, when i try to do the same with Druidmana, it works but return an error. I'm not sure to understand it because it works for everything else using the exact same method, why not for Druidmana. Code:
Interface\AddOns\oUF_Caellian\oUF_Caellian.lua:56: attempt to index local 'parent' (a nil value) Code:
if(IsAddOnLoaded('oUF_DruidMana')) then Code:
if(portraits == true) then This didn't work, apparently self.Castbar.Text:GetText()) is not correct, is there any other way ? (only the hide part doesn't work here, the rest is fine, i just paste the whole thing) Code:
if(unit == 'target') then |
Creating Frame
Hi!
I wanted to create a black frame under player and target-frame. It worked for the player-frame, as you can see on the screenshot: But I'm not able to get it working for the target-frame. Any ideas how the code should look like? Here's my noobish code for the player-frame: Code:
blackbar = CreateFrame("Frame", nil, self) Vadda |
Quote:
something like blackframe:SetPoint('TOP', oUF.units.player, 'BOTTOM', 0, -9) blackframe2:SetPoint('TOP', oUF.units.target, 'BOTTOM', 0, -9) |
@Caellian:
try using "SetFont" instead of "SetFontString". ie.: self.DruidManaText = SetFont(font, 10) which lead me to the question... why use setfontstring? what does it have more than setfont? whats the point of setting a parent there? |
Quote:
Its a function to create the whole fontstring |
Quote:
Code:
blackbar2 = CreateFrame("Frame", nil, oUF.units.target) Now I see the second black-bar constantly on the bottom of the screen. Even if I have no target selected. Quite weird. |
Quote:
Code:
self.DruidManaText = SetFont(self.Portrait2, font, 10) Code:
Interface\AddOns\oUF_Caellian\oUF_Caellian.lua:458: attempt to call global 'SetFont' (a nil value) |
some help please
how in the earth do you move stuff, do you need to edit something in the .lua files or something
would love you help Zynix |
All times are GMT -6. The time now is 01:43 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI