Go to Page... |
Updated: | 03-26-10 08:48 AM |
Created: | 01-03-09 12:53 PM |
Downloads: | 11,414 |
Favorites: | 45 |
MD5: |
My oUF layout. Requires oUF to work.
The raid frames in the middle of the raid shot are Grid, the oUF frames are the ones on the right.
Frames can be scaled. If you open the file layout.lua, there is a variable near the top called scale. It is currently set to 1, change it to 1.2 to make the frames 20% larger, etc. You may want to change the position of the frames a bit after you've scaled them, as positioning gets scaled as well.
All of the functions that spawn and position the frames are at the end of layout.lua, in the section titled "spawning the frames". If you want to hide or reposition your frames, the code you need to change can be found there.
Includes
Comment Options |
03-12-09, 01:43 PM | |
|
RuneBar :)
Heyas Hypocrisy! First off thanks for fantastic Unitframes! Couldn't live without them!
The only request I have, that if possible. Please add support for oUF_RuneBar as part of your unitframes. I play a DK and I do like being able to see which runes are up and which runes have been replaced by death runes. I know there are several mod out there that do it, but if the module is there why not use it It would save me much time and effort if the unitframes I use already have support for oUF_RuneBar. Thanks for your contribution to the community! Awesome job!
__________________
Click HERE for the ultimate idiot test. if (sizeof(sadness) > sizeof(happiness)) { initDepression(); } |
|
Xruptor |
View Public Profile |
Send a private message to Xruptor |
Find More Posts by Xruptor |
Add Xruptor to Your Buddy List |
Hypocrisy |
View Public Profile |
Send a private message to Hypocrisy |
Find More Posts by Hypocrisy |
Add Hypocrisy to Your Buddy List |
Hypocrisy |
View Public Profile |
Send a private message to Hypocrisy |
Find More Posts by Hypocrisy |
Add Hypocrisy to Your Buddy List |
03-01-09, 07:45 PM | |
A Kobold Labourer
Forum posts: 0
File comments: 12
Uploads: 0
|
Hey Hypocrisy, I did what you down a couple posts below concerning removing the raid frames but it didn't remove them. They're still there, all that did was make it so it would show my party frames even if there were > 5 people in the raid.
Any chance you could tell me how to edit the lua so the raid frames don't show at all? I've already deleted these 2, but that's all I've done so far. Code:
for i,v in ipairs(raid) do v:Show() end Code:
for i,v in ipairs(raid) do v:Hide() end |
|
Stormbornz |
View Public Profile |
Send a private message to Stormbornz |
Find More Posts by Stormbornz |
Add Stormbornz to Your Buddy List |
02-27-09, 01:23 PM | |
A Kobold Labourer
Forum posts: 0
File comments: 24
Uploads: 0
|
Thanks for the help, it's working perfectly now
|
|
ironwulf |
View Public Profile |
Send a private message to ironwulf |
Find More Posts by ironwulf |
Add ironwulf to Your Buddy List |
02-25-09, 08:09 PM | ||
|
Code:
local partyToggle = CreateFrame('Frame') partyToggle:RegisterEvent('PLAYER_LOGIN') partyToggle:RegisterEvent('RAID_ROSTER_UPDATE') partyToggle:RegisterEvent('PARTY_LEADER_CHANGED') partyToggle:RegisterEvent('PARTY_MEMBERS_CHANGED') partyToggle:SetScript('OnEvent', function(self) if(InCombatLockdown()) then self:RegisterEvent('PLAYER_REGEN_ENABLED') else self:UnregisterEvent('PLAYER_REGEN_ENABLED') if(GetNumRaidMembers() > 5) then party:Hide() for i,v in ipairs(raid) do v:Show() end for i,v in ipairs(partypet) do v:Disable() end for i,v in ipairs(partytarget) do v:Disable() end else party:Show() for i,v in ipairs(raid) do v:Hide() end for i,v in ipairs(partypet) do v:Enable() end for i,v in ipairs(partytarget) do v:Enable() end end end end) Code:
for i,v in ipairs(raid) do v:Show() end Code:
for i,v in ipairs(raid) do v:Hide() end Code:
if(GetNumRaidMembers() > 5) then Edit: For people looking to remove the raid frames. I left those two lines above out of a previous post, here is the other code you need to hide. Go to -- ------------------------------------------------------------------------ -- spawning the frames -- ------------------------------------------------------------------------ and delete or comment out the following block of code: Code:
local raid = {} for i = 1, NUM_RAID_GROUPS do local raidgroup = oUF:Spawn("header", "oUF_Raid" .. i) raidgroup:SetManyAttributes("groupFilter", tostring(i), "showRaid", true, "yOffset", -10) table.insert(raid, raidgroup) if (i == 1 or i == 6) then if i == 1 then raidgroup:SetPoint("TOPRIGHT", UIParent, -10, -200) else raidgroup:SetPoint("TOPRIGHT", UIParent, -120, -200) end else raidgroup:SetPoint("TOPRIGHT", raid[i-1], "BOTTOMRIGHT", 0, -20) end raidgroup:Show() end
Last edited by Hypocrisy : 03-02-09 at 08:45 AM.
|
|
|
Hypocrisy |
View Public Profile |
Send a private message to Hypocrisy |
Find More Posts by Hypocrisy |
Add Hypocrisy to Your Buddy List |
02-25-09, 11:40 AM | |
A Kobold Labourer
Forum posts: 0
File comments: 24
Uploads: 0
|
Hi,
Loving the looks of these frames. I didn't want to use the raid frames though, so I commented out the code you referred to back on page 3. However, after commenting that out I get following error: [2009/02/25 09:35:36-9004-x1]: oUF_Hypocrisy\layout.lua:896: bad argument #1 to 'ipairs' (table expected, got nil) oUF_Hypocrisy\layout.lua:896: in function <Interface\AddOns\oUF_Hypocrisy\layout.lua:884> Party frames will not hide once joined to a raid from what I tested (invited a guildie, saw party frame formed, then converted to a raid and party frames remained) |
|
ironwulf |
View Public Profile |
Send a private message to ironwulf |
Find More Posts by ironwulf |
Add ironwulf to Your Buddy List |
02-17-09, 01:00 PM | ||
|
As for the "H", it does stand for human, and it should be changing, it did for me. It's only localized for the English version of WoW though. This is what the code looks like: Code:
if type=="Humanoid" then self.Type:SetText("H") elseif type=="Beast" then self.Type:SetText("B") elseif type=="Mechanical" then self.Type:SetText("M") elseif type=="Elemental" then self.Type:SetText("E") elseif type=="Undead" then self.Type:SetText("U") elseif type=="Demon" then self.Type:SetText("D") elseif type=="Dragonkin" then self.Type:SetText("Dr") elseif type=="Giant" then self.Type:SetText("G") elseif type=="Not specified" then self.Type:SetText("NA") else self.Type:SetText(type) end Edit: I think I realized what you meant. You actually meant human. It doesn't stand for human, it stands for humanoid. So players will always show up as humanoids, except in a few special cases, such as a tree showing as elemental, or a bear showing as a beast. For me the main purpose of that indicator was so I'd know what kind of CC to use, I use the bar color to determine class.
Last edited by Hypocrisy : 02-17-09 at 01:11 PM.
|
|
|
Hypocrisy |
View Public Profile |
Send a private message to Hypocrisy |
Find More Posts by Hypocrisy |
Add Hypocrisy to Your Buddy List |
02-16-09, 03:08 PM | |
A Theradrim Guardian
Forum posts: 65
File comments: 272
Uploads: 0
|
Well Healcomm works without any config and someone else added support for Experience - so it's all good
I do have a question - what does the "H" next to the level mean? At first I thought it was race (H = Human) but it always says H for anyone, so I'm confused. |
|
vpr |
View Public Profile |
Send a private message to vpr |
Find More Posts by vpr |
Add vpr to Your Buddy List |
02-13-09, 12:52 PM | ||
|
|
|
|
Hypocrisy |
View Public Profile |
Send a private message to Hypocrisy |
Find More Posts by Hypocrisy |
Add Hypocrisy to Your Buddy List |
02-13-09, 12:33 PM | |
A Kobold Labourer
Forum posts: 0
File comments: 12
Uploads: 0
|
I need to delete that entire code that you posted there?
Last edited by Stormbornz : 02-13-09 at 12:34 PM.
|
|
Stormbornz |
View Public Profile |
Send a private message to Stormbornz |
Find More Posts by Stormbornz |
Add Stormbornz to Your Buddy List |
02-13-09, 08:57 AM | ||
|
Code:
local partyToggle = CreateFrame('Frame') partyToggle:RegisterEvent('PLAYER_LOGIN') partyToggle:RegisterEvent('RAID_ROSTER_UPDATE') partyToggle:RegisterEvent('PARTY_LEADER_CHANGED') partyToggle:RegisterEvent('PARTY_MEMBERS_CHANGED') partyToggle:SetScript('OnEvent', function(self) if(InCombatLockdown()) then self:RegisterEvent('PLAYER_REGEN_ENABLED') else self:UnregisterEvent('PLAYER_REGEN_ENABLED') if(GetNumRaidMembers() > 5) then party:Hide() for i,v in ipairs(raid) do v:Show() end for i,v in ipairs(partypet) do v:Disable() end for i,v in ipairs(partytarget) do v:Disable() end else party:Show() for i,v in ipairs(raid) do v:Hide() end for i,v in ipairs(partypet) do v:Enable() end for i,v in ipairs(partytarget) do v:Enable() end end end end) |
|
|
Hypocrisy |
View Public Profile |
Send a private message to Hypocrisy |
Find More Posts by Hypocrisy |
Add Hypocrisy to Your Buddy List |
02-12-09, 06:06 PM | |
A Kobold Labourer
Forum posts: 0
File comments: 12
Uploads: 0
|
Actually I have 1 more question, is there any way to enable party frames during a raid? (with more than 1 group)
|
|
Stormbornz |
View Public Profile |
Send a private message to Stormbornz |
Find More Posts by Stormbornz |
Add Stormbornz to Your Buddy List |
02-12-09, 03:06 PM | |
A Kobold Labourer
Forum posts: 0
File comments: 12
Uploads: 0
|
Thanks! Now these unit frames are exactly what I need.
Nice work and thanks for the help! |
|
Stormbornz |
View Public Profile |
Send a private message to Stormbornz |
Find More Posts by Stormbornz |
Add Stormbornz to Your Buddy List |
02-12-09, 02:52 PM | ||
|
Code:
self.Buffs.filter = true Code:
self.Buffs.filter = "HELPFUL|PLAYER" |
|
|
Hypocrisy |
View Public Profile |
Send a private message to Hypocrisy |
Find More Posts by Hypocrisy |
Add Hypocrisy to Your Buddy List |