@Led: Stuf question
Led, last I checked you use StUF for your unitframes. However, I wasn't aware that StUF had a HP Deficit option... how did you do this? Wait... you probably just set the backdrop color to classcolored, and the statusbar to the black/dark color... d'oh :P
Now I just wish I could achieve an oUF_Nin effect with StUF :o Sadly, StUF's author isn't responding to me asking for the feature to be added :P It's in StUF_Raid, after all! I can't port it over, no matter how hard I try =/ /meaningless post |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Im using Stuf, tried to create some nice Unitframes, but, where i can get nice borders, textures , like Led or Zagrei to use? And where i put them, so Stuf can read them?
|
Just search for "border" or "texture", there's several collections of statusbar and border textures on this site.
For how to get them into WoW, in your addons folder should be an addon named "SharedMedia". If you don't have it, download it now. Inside that addon's folder is a file called "Instructions for MyMedia.txt", all you have to do is follow the instructions in that file. :-) |
Quote:
|
Quote:
|
Quote:
FOR STUF: Around line 200 of 'bars.lua', change this: Code:
if db.fade and not f.barfade then Code:
if db.fade and not f.barfade then The ONLY difference, obviously, is the SetBackdrop call. What you do is this: -You find the frame you want to put the backdrop on -Find it's name (in this case, 'f') -Insert the frame's name into the highlighted areas -/reloadui ingame, and see if it worked! (LOL) To clarify, the following code is what you use in all of the addons. Don't forget to change the frame names to match the frame you want to attach it to! Code:
local bg = CreateFrame("Frame", nil, f) |
I love you!!!! :banana:
Its perfect, i tried and it worked, to discover the frame name, im using this command Code:
/script ChatFrame1:AddMessage(GetMouseFocus():GetName()) |
Quote:
And yes I'm with the op here, I'd love to have a class colored health deficit with transparent health bar on the main frames of Stuf not only the raid frames. Right now I have a set up similar to Led, with dark grey healthbar and class colored background. I'd love to know if anyone has figured out a way to make this happen with stuf. :) |
Quote:
|
Hey Zagrei, im trying to put SetBackdrop on target frame, i'm putting the code after the player frame code, i changed the frame name, but when i reload, al the screen is a bit dark, the target frame is correct, but all the screen is a bit dark, what i'm doing wrong? :(
\/ Agree with Led, i'm newb too, and it's look awesome the effect!!!! |
Wel lZAgrei I guess you already answered your own question so now it's my turn.
PLEEAAAAASSEEEEEEE tell me in DETAIL how you managed to get the ouf_nin look?!!?,8!!?,?!!!?! I NEEEEEEEEEED to have it ^^ I'm a total newb at lua so please, tell me step by step what I have to edit in the .lua to get the effect you have ^^ And does it work for raid frames too? |
Quote:
You know what, I'll make your life easy! Click HERE for my LUA post :P P.S. In StUF's case, the frame's name IS 'f'. The code I posted is directly from my bars.lua file :) As far as StUF_Raid goes, it USED to work perfectly. Now, I'm not too sure... I'll get back to you on that. You can test it yourself, too. |
Quote:
Code:
local function CreateBar(unit, uf, name, db) -- create status bars for health or power Does that help? |
It helped :D Worked! Btw, i tried to do the effect that Led want, and when i reload, my bar still all black.
|
Quote:
Code:
bg:SetBackdropColor(0, 0, 0, .4) NOTE: The reason that you have to reload the UI after any changes is because when you enter config mode OR make a change to a statusbar, it layers a second transparent layer on top of the current one, making it darker. Eventually, after enough changes, it will just be solid black. Just fyi :) |
Now working!!! Really thanks Zagrei, you're just pr0 :D
|
Quote:
|
Led, I wanna see a screenie once you have it implemented into your UI! I'm sure you'll find a REALLY nice way to use it ;)
|
OK, I have gone nuts adding your SetBackDrop thingy to a couple of addons but for the life of me I cant figure out Dominos or CoolLine ><
I put it in and sometimes my whole screen goes black lol Any pointers? Like is there a keyword you search for in each file to find where to put the SetBackDrop call? I tried searching for "border", "backdrop", "edgefile" but no luck really on it...thanks again. This is awesome! |
Quote:
Code:
local bottompanel = CreateFrame("Frame", nil, UIParent) |
can you get a transparent health defecit?? and a class colored hp/power bar?? i dont want the class colored health defecit.im just not use to it.
if I were to just want the transparent backround how would i do this?? |
1 Attachment(s)
Quote:
>Porsha: Attached is a picture of CoolLine with the style coded in, and a monochromeoutline added to the font. Click HERE to see the new core.lua, as it is easier than telling you the changes :P |
Let me throw this out there, as well:
I'm not gonna ask you to give credit to use this in a UI :P If you want to mention me or not, it's fine. Just know that it's not like a copyrighted idea, or anything xD |
Quote:
but could you give me an example of what you mean by the name instead of the f such as the player frame. |
2 Attachment(s)
Concerning Dominos Background Panels....
You can parent a panel to an action button with Dominos, and size/position it around that button. For example I use LitePanels and the following is what I do for my pet action bar, which isn't always there, so I don't want a panel showing all the time. Code:
{ name = "PetBox", parent = "PetActionButton1", I just parent panels to specific buttons instead of the actionbar itself, and scale it up. |
Quote:
|
Sweet! I think I understand how its done now! This is SO much easier and cleaner to use when you understand it all :)
thanks a ton! |
No problem, Porsha :D Have fun!
|
it worked and it looks amazing i just have 1 question.
how do i get a 1 pixel bordr like yours around it. is it a panel or is it in the stuf config? |
Quote:
|
Quote:
|
Quote:
|
Hej Zagrei, got it working for Stuf. Did you already find how to do it in Stuf_raid? Would be awesome.
|
Quote:
I'm keep getting this error Code:
Message: Interface\AddOns\LitePanels\layout.lua:284: unexpected symbol near '{' |
1 Attachment(s)
Led: The problem with StUF_Raid at the moment is that, so far, the code makes there be 5 boxes where the 1st player of each raid-group would be, even when I am out of a raid. An older picture of this UI is attached, to show what I mean.
I don't know if it causes a problem in-raid or not, my raid nights are on Thursdays/Fridays :P As for right now, I have that addon just turned off until I figure out how to make it work :) I'll let you know! |
I got it! :D Post this at around line 385 in StufRaid's raid.lua:
Code:
local bg = CreateFrame("Frame", nil, uf) EDIT: It's raid.lua, not core.lua. D'OH! Sorry about that >.< |
first of all tyvm zagrei for the help with the lua. my UI looks amazing. I will credit you very graciously with my post of the current ui.
btw what does that code for the stufraid do? |
and I am sorry to ask but an what line would I input the code for Acb castbar?
|
Quote:
For litepanels, you can literall drop that entire snippet of code into a layout you currently use and it will work for the pet bar, assuming you adjust the padding. |
Quote:
Quote:
Code:
local bg = CreateFrame("Frame", nil, bar) |
I did what you said for both acb and stuf raid but now i cant use the castbar.and the raid frames dont show?
|
Quote:
|
Quote:
|
Quote:
|
Quote:
self.safezone:Hide(); end end local bg = CreateFrame("Frame", nil, bar) bg:SetBackdrop({ bgFile = 'Interface\\AddOns\\TinyDPS\\Textures\\blank.tga', edgeFile = 'Interface\\AddOns\\TinyDPS\\Textures\\blank.tga', edgeSize = 1, }) bg:SetBackdropColor(0, 0, 0, .4) bg:SetBackdropBorderColor(0, 0, 0) bg:SetFrameStrata("BACKGROUND") bg:SetPoint("TOPLEFT", bar, -1, 1) bg:SetPoint("BOTTOMRIGHT", bar, 1, -1) -- Initialise Each Bar local bars = { "Player", "Target", "Focus", "Pet" }; local lastBar; for _, token in ipairs(bars) do local bar = AzCastBar.CreateMainBar("Frame",token,extraOptions); bar.unit = token:lower(); whats wrong with it? because I cant even configure it atm. |
Honestly, I don't know why your line numbers are different than mine, maybe different versions. The code should look like this instead:
Code:
-- Initialise Each Bar The reason why your previous placement wasn't working was because 'bar' had not been created yet, and so when the code was asked to run it, it had no clue what 'bar' meant. It then aborted the script, and then your addon wasn't working. Ta-daa! EDIT: Also, I was using 'Interface\\AddOns\\TinyDPS\\Textures\\blank.tga' for my blank texture, instead of the universal one 'Interface\\ChatFrame\\ChatFrameBackground'. That sure didn't help the problem :P |
Quote:
|
Quote:
i worked and looks so cool although whn im in edit mode it doesnt show thw background that is transparent. doesnt matter though. tyvm. |
although im still having problems with stuf i wont load the raid frames anymore. ive set the backrop to 0% and bar 100%
this is in stuf_raid/raid. local function UpdateAttribute(this, name, value) if name ~= "unit" then return end if value then units[value] = this this.unit = value UpdateUnit(value, this) else for u, uf in pairs(units) do if uf == this then units[u] = nil end endlocal bg = CreateFrame("Frame", nil, uf) bg:SetBackdrop({ bgFile = 'Interface\\ChatFrame\\ChatFrameBackground', edgeFile = 'Interface\\ChatFrame\\ChatFrameBackground', edgeSize = 1, }) bg:SetBackdropColor(0, 0, 0, .4) bg:SetBackdropBorderColor(0, 0, 0) bg:SetFrameStrata("BACKGROUND") bg:SetPoint("TOPLEFT", uf, -1, 1) bg:SetPoint("BOTTOMRIGHT", uf, 1, -1) end end. |
Hej Zag, I got the raidframes working but I have a tiny problem. It seems the out of range fading etc doesn't work anymore. But I neeeeeeedz it. :(
|
Quote:
First of all, the red line should be two lines, like: Code:
end Code:
core.CreateIcon(uf, layout, "looticon", "Interface\\GroupFrame\\UI-Group-MasterLooter") |
Quote:
Code:
bg:SetBackdropColor(0, 0, 0, .4) Code:
bg:SetBackdropColor(0, 0, 0, 1) |
Quote:
|
Quote:
|
Also it seems that in stufraid, the healthbar and powerbars don't get the automatic 1 px border. The frame does, but the healthbar and powerbar doesn't. While in normal Stuf they do.
|
Quote:
|
All times are GMT -6. The time now is 07:48 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI