So, its not being added - which given the menu's are created when aUF loads (which is before the addon containing the theme is loaded), is not entirely surprising.
If we try and fudge things, to get the menus to be rebuilt :
aUF.mainMenu = aUF:CreateMenu()
Then rerun the above code, to show the validate table :
(EDIT: Actually - running these bits, lets me set the framestyle via the command line :
/aguf units target Framestyle Nyrtest
But still nothing in the menu's
EDIT2: It would also seem that the new frame appears in the layout menu if you alt+right click on the unitframes, but nothing in the overall fubar driven menu - I'm not using any other addons to manage the fubar menu. Docking it to the minimap then putting it back on the fubar doesnt add the frames to the layout menu either)
The only thing I can think, is that by setting it via aUF.mainMenu, this isnt quite the same as the way its done when aUF sets it, via self.mainMenu = aUF:CreateMenu()
So, andreasg, any ideas how we can do this ? It would be great if we could have themes as standalone addons, to make adding them easier, than having to change the layouts.xml file every time.
I had decided to increase the width of my layout (nearly identical to Nyrine's oddly enough so ihad a look in his to see if this was addressed, and it isn't) to 100 from 90. The portrait, HealthBar, ManaBar and CastBar all increase beautifully. The background of the frame, however, will not go past 90 no matter what I do, so everything appears to be to wide by comparison.
Is there some hard limit in ag_UF for frame backgrounds not to extend more than 90px wide? I can send you my layout if it helps. I've been trying to catch you on irc, but you haven't been responsive lately. tia!
I had decided to increase the width of my layout (nearly identical to Nyrine's oddly enough so ihad a look in his to see if this was addressed, and it isn't) to 100 from 90. The portrait, HealthBar, ManaBar and CastBar all increase beautifully. The background of the frame, however, will not go past 90 no matter what I do, so everything appears to be to wide by comparison.
Is there some hard limit in ag_UF for frame backgrounds not to extend more than 90px wide? I can send you my layout if it helps. I've been trying to catch you on irc, but you haven't been responsive lately. tia!
hrm, frame backgrounds can be any width you want it to be.. you set it with FrameWidth
Hmm. I set FrameWidth = 100 and the background of the frame is still only 90.
Actually I ran into same problem while trying to make my own custom layout. I tried to mimic Industrial's unitframes from his IdInterface package (http://www.wowinterface.com/downloads/info5605-idInterface.html). But bars are always longer than background even if I increase FrameWidth. I admit that I'm newbie in making custom layouts and probably miss some dependancy between bars' size and overall frame size.
When you create the layout, do it as if it were 100px long. Ie, if you want the healthbar to go from the left edge to the right, set it to 90 width. Something below 100!! Else it will always be longer than your frame.
You have to do this because the layouts are independent of width.
Quick disclaimer, I have no knowledge of lua whatsoever apart from reading a couple of tutorials that left me more confused than ever. So if I make any daft comments or thoughts be gentle with me :P
Ok, I decided to have a go at customising the ABF layout and created testABF. Basically all I wanted to do was move the cast bars to the top of the unit frames. This I can do quite successfully however I am having difficulty with the frame. ABF grows the frame downwards with what I assume is the HeightAdd command. I'm assuming to make it grow up I need to add an offset:
This is the code I'm using at the moment. Now I tried adding 'y = 10' between 'HeightAdd = 11' and 'Visibility =' hoping that would offset the frame but all that happens is that testABF no longer shows up in the Frame Layout options. I can comment out the HeightAdd line totally and set Cast_BG hidden to 'True' thereby getting rid of the background, but then the castbar doesn't show up at all. I would like to retain the original look and feel by having the frame extend upwards, is there any way of doing this? Then of course on the target cast bar, with my auras set to top, they overlay my castbar and I haven't been able to find how I set the auras 'RelativeTo' the castbar.
Any help would be gratefully appreciated, although I don't necessarily want the code itself, just some pointers in the right direction as I would like to expand my very limited knowledge.
is there an easy way to add a bar texture? I like the Blutfang texture from the UI of the same name and want to add it to my ag unitframes.... but I'm not sure how.
Would there be a way to insert your own texture as basicly a new border for the unitframes? I am trying ot figure out the .lua but I am def. new to all this and dont want to be chaseing my tail if its impossible.
Basicly I was thinking something like this screen shot.
I wanted to keep the unit name in the health bar if possible but I dont mind putting it outside on the top. But I wanted to use that textures around the UF's as basicly a border and then add the spidery looking lines to something like a banto bar.... I just dont know how to do it. I am trying to read the wiki but I dont want to end up totally rewritting someone else mod either. Any ideas? (and i changed the font already though i cant seem to make the font bigger or give it any padding between letters).
It still needs some work, take a look at what I changed, it might help you!
I'd love to have my ag_uf (which I really love!) to look like this one:
http://www.wowinterface.com/downloads/full6544.jpg
Any ideas, where I can get that background? Would perfectly suit my rotten warlock UI :p
Greetings!
Layout was based on BUU's with a bunch of changes to see how it worked, and to try and tidy things up.
Yesterday, the addon was working, and it was adding the layout to the menu in aUF, however, today it isnt...
It adds it just fine to the layouts :
for k,p in pairs (aUF.Layouts) do
DEFAULT_CHAT_FRAME:AddMessage(k)
end
Roartindon
ABF
Compact
Classic
Raid
Nyrtest
oUF
CTRA
But, it doesnt appear in the menu's!
Looking at what should get included in the menus :
level = aUF.mainMenu.args.Units.args.player.args.FrameStyle.validate
for k,p in pairs (level) do
DEFAULT_CHAT_FRAME:AddMessage(" "..k..","..p)
end
1,ABF
2,Compact
3,Classic
4,oUF
5,CTRA
6,Raid
7,Roartindon
So, its not being added - which given the menu's are created when aUF loads (which is before the addon containing the theme is loaded), is not entirely surprising.
If we try and fudge things, to get the menus to be rebuilt :
aUF.mainMenu = aUF:CreateMenu()
Then rerun the above code, to show the validate table :
1,Raid
2,ABF
3,Compact
4,Classic
5,oUF
6,CTRA
7,Nyrtest
8,Roartindon
It gets added ! However, its still not visible in the menu... Either with /aguf units target Framestyle, or by looking in the fubar layouts menus.
Even adding in all the surrounding code that could have something to do with this, changes nothing:
aUF.dewdrop:Refresh(4)
aUF.dewdrop:Refresh(5)
aUF:RegisterChatCommand({ "/aguf", "/ag_unitframes" }, aUF.mainMenu )
aUF.OnMenuRequest = aUF.mainMenu
(EDIT: Actually - running these bits, lets me set the framestyle via the command line :
/aguf units target Framestyle Nyrtest
But still nothing in the menu's
EDIT2: It would also seem that the new frame appears in the layout menu if you alt+right click on the unitframes, but nothing in the overall fubar driven menu - I'm not using any other addons to manage the fubar menu. Docking it to the minimap then putting it back on the fubar doesnt add the frames to the layout menu either)
The only thing I can think, is that by setting it via aUF.mainMenu, this isnt quite the same as the way its done when aUF sets it, via self.mainMenu = aUF:CreateMenu()
So, andreasg, any ideas how we can do this ? It would be great if we could have themes as standalone addons, to make adding them easier, than having to change the layouts.xml file every time.
Bump
I had decided to increase the width of my layout (nearly identical to Nyrine's oddly enough so ihad a look in his to see if this was addressed, and it isn't) to 100 from 90. The portrait, HealthBar, ManaBar and CastBar all increase beautifully. The background of the frame, however, will not go past 90 no matter what I do, so everything appears to be to wide by comparison.
Is there some hard limit in ag_UF for frame backgrounds not to extend more than 90px wide? I can send you my layout if it helps. I've been trying to catch you on irc, but you haven't been responsive lately. tia!
hrm, frame backgrounds can be any width you want it to be.. you set it with FrameWidth
Hmm. I set FrameWidth = 100 and the background of the frame is still only 90.
Actually I ran into same problem while trying to make my own custom layout. I tried to mimic Industrial's unitframes from his IdInterface package (http://www.wowinterface.com/downloads/info5605-idInterface.html). But bars are always longer than background even if I increase FrameWidth. I admit that I'm newbie in making custom layouts and probably miss some dependancy between bars' size and overall frame size.
You have to do this because the layouts are independent of width.
Ok, I decided to have a go at customising the ABF layout and created testABF. Basically all I wanted to do was move the cast bars to the top of the unit frames. This I can do quite successfully however I am having difficulty with the frame. ABF grows the frame downwards with what I assume is the HeightAdd command. I'm assuming to make it grow up I need to add an offset:
This is the code I'm using at the moment. Now I tried adding 'y = 10' between 'HeightAdd = 11' and 'Visibility =' hoping that would offset the frame but all that happens is that testABF no longer shows up in the Frame Layout options. I can comment out the HeightAdd line totally and set Cast_BG hidden to 'True' thereby getting rid of the background, but then the castbar doesn't show up at all. I would like to retain the original look and feel by having the frame extend upwards, is there any way of doing this? Then of course on the target cast bar, with my auras set to top, they overlay my castbar and I haven't been able to find how I set the auras 'RelativeTo' the castbar.
Any help would be gratefully appreciated, although I don't necessarily want the code itself, just some pointers in the right direction as I would like to expand my very limited knowledge.
http://www.wowinterface.com/downloads/info5457-AlcUI.html
http://wow.curse-gaming.com/en/files/details/6154/stanko-aguf-theme/
Basicly I was thinking something like this screen shot.
http://www.discordmods.com/cgi-bin/showUI.pl?msgnum=1161
I wanted to keep the unit name in the health bar if possible but I dont mind putting it outside on the top. But I wanted to use that textures around the UF's as basicly a border and then add the spidery looking lines to something like a banto bar.... I just dont know how to do it. I am trying to read the wiki but I dont want to end up totally rewritting someone else mod either. Any ideas? (and i changed the font already though i cant seem to make the font bigger or give it any padding between letters).