Trying my hand at ouf
So in this thread Phanx reinspired me to try my hand at making an ouf layout.
So far though I'm trying just to make a player health bar and all I get is just the backround and no status bar. According to the documentation I found in ouf itself the healthbar should default to the standard health bar is you don't imply a texture or color to it. So i'm confused. code: Code:
local frame = CreateFrame("Frame", "Bob", UIParent) |
Congrats and welcome to the oUF'ers ;)
First you declare your health stuff, then you spawn the frames. https://gist.github.com/8102856 is a boilerplate I made You add the healthstatusbar to the shared part :) |
So then I'm doing it backwards, ok well if I rip your code then put my stuff in there I still don't get anything. Probably missing something though now that I think about it....
Code:
------------------------------------------------------------------------ |
Lua Code:
Lua Code:
The Self.Health is a reference to self.Health from oUF itself, in that part you're telling oUF that the frame you called Health is self.Health from oUF. Otherwise oUF doesn't know what to do with it. And this should purely work... Lua Code:
|
1 Attachment(s)
Quote:
Unfortunately though, still don't get anything that looks like a unitframe. Not certain as to whats going on as I think it should work, but nothing. code |
I see no sign of BugSack in your UI. You should fix that ASAP. Most of the errors you will encounter while developing addons are going to occur during the loading process, which just so happens to be exactly the time when the default UI's error handler can't catch them.
Also, you never give the unit frames a size, so of course you can't see them. :p |
Quote:
And thus everything is set. Probably dive a bit deeper into all this after the holidays. code |
It's okay, here is a hilarous cat video to cheer you up.
|
Quote:
Anyways now that I think i got it figured out I can't sleep till I finish it (DAMN YOU DEV BUG!) |
BTW the forums are currently breaking Youtube links by trying to convert them into iframes in the middle of links. You have to use a URL shortener or just post the plain URL with nothing around it. :rolleyes:
|
Quote:
|
http://goo.gl/rEuVFi
1. The angry cat vs dog -> we've got an example of that running around here too :P |
ok So got everything about setup for the most part but I keep getting this error with the Eclipse bar.
Code:
12x oUF-1.6.5\elements\eclipsebar.lua:100: attempt to call method "Show" (a nil value) Also need to figure out how to add the status text. |
Quote:
|
Quote:
Also need to flip the target frame around so it's not backwards. Not sure how to do that quite yet. Pretty much at this point I just need to fine tune auras, add text, fix the eclipse bar, figure out how to test arena/boss frames to make sure they work like I want them to, and flip the target frame around then I'm done. code Probably gonna add a config file tomorrow or after the holidays. |
Quote:
Also, you are parenting your lunar power bar to your mana bar, but parenting your solar power bar to your frame. You should parent them both to the same object (preferrably the EclipseBar element frame, which itself should be parented directly to your unit frame): Code:
local EclipseBar = CreateFrame("Frame", nil, self) Quote:
Code:
local EclipseText = SolarBar:CreateFontString(nil, "OVERLAY", "TextStatusBarText") -- parent to last child to make sure it's on top |
Quote:
Quote:
Quote:
Kinda like this except have the percent on the right side and the value on the left. Quote:
|
Quote:
Code:
local groups = { -- Change these to the global names your layout will make. |
Quote:
|
1 Attachment(s)
Looks like eclipse bar is still a little bugged, shows on the focus and target frame using the script Phanx provided.
|
All times are GMT -6. The time now is 12:01 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI