Go to Page... |
Updated: | 03-26-10 08:48 AM |
Created: | 01-03-09 12:53 PM |
Downloads: | 11,442 |
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 |
Stormbornz |
View Public Profile |
Send a private message to Stormbornz |
Find More Posts by Stormbornz |
Add Stormbornz 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 |
![]() |
|
A Kobold Labourer
Forum posts: 0
File comments: 12
Uploads: 0
|
Is it possible to change the number of max debuffs on the target? And is it possible to show the player frame's buffs? (and to filter buffs that only the player can cast on himself). Other than these 2 issues I have with it, these UF are amazing and exactly what I want.
Thanks. |
![]() |
![]() |
Stormbornz |
View Public Profile |
Send a private message to Stormbornz |
Find More Posts by Stormbornz |
Add Stormbornz to Your Buddy List |
![]() |
||
|
There are 3 things you will need to do. Step 1 Comment out the following code, found at the beginning of layout.lua. Code:
oUF.colors.smooth = { 1, 0, 0, 1, 1, 0, 1, 1, 1 } Step 2 Go to the "health update" section, and look for the following code: Code:
elseif(unit == "player") then bar.value:SetText(cur.."/"..max) bar.percent:SetText(d.."%") bar.percent:SetTextColor(r,g,b) -- bar:SetStatusBarColor(r,g,b) Code:
-- bar:SetStatusBarColor(r,g,b) Code:
bar.percent:SetTextColor(r,g,b) Code:
elseif(unit == "target" or unit=="focus" or self:GetParent():GetName():match"oUF_Party") then Step 3 At the end of the "level and classification update" section, you will find the following block of code commented out. Code:
-- Add Unit Class -- if UnitIsPlayer(unit) then -- local class,id = UnitClass(unit) -- local r,g,b = RAID_CLASS_COLORS[id].r, RAID_CLASS_COLORS[id].g, RAID_CLASS_COLORS[id].b -- class = format("|cff%02x%02x%02x%s|r %s",r*255,g*255,b*255,class,self.Type:GetText()) -- self.Type:SetText(class) -- end |
|
![]() |
![]() |
Hypocrisy |
View Public Profile |
Send a private message to Hypocrisy |
Find More Posts by Hypocrisy |
Add Hypocrisy to Your Buddy List |
![]() |
|
A Kobold Labourer
Forum posts: 0
File comments: 8
Uploads: 0
|
Is it possible to have the unit frames go from green to red when getting damage? Its kind of hard explaining this but the health % does it when going lower. I'd love to get this with the bars and have the text just be white.
|
![]() |
![]() |
Yurup |
View Public Profile |
Send a private message to Yurup |
Find More Posts by Yurup |
Add Yurup to Your Buddy List |
![]() |
||
A Kobold Labourer
Forum posts: 0
File comments: 5
Uploads: 0
|
Re: Re: Raid frame sizing
Awesome I will give that a try. Thanks so much for the help!
|
|
![]() |
![]() |
ibangugroov |
View Public Profile |
Send a private message to ibangugroov |
Find More Posts by ibangugroov |
Add ibangugroov to Your Buddy List |
![]() |
||
|
Re: Raid frame sizing
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 getglobal("oUF_Raid"..i):SetScale(scale) raidgroup:Show() end Code:
getglobal("oUF_Raid"..i):SetScale(scale) Alternatively you can size the frames yourself by changing the following block of code, found in the "frame appearance" section: Code:
elseif (self:GetParent():GetName():match"oUF_Raid") then self:SetWidth(75) self:SetHeight(10) self.Health:SetHeight(6) self.Health.percent:Hide() self.Power:SetHeight(2) self.Power:SetPoint"LEFT" self.Name:SetPoint("RIGHT", 0, 5) self.Name:SetFont(font, fontsize, "OUTLINE") |
|
![]() |
![]() |
Hypocrisy |
View Public Profile |
Send a private message to Hypocrisy |
Find More Posts by Hypocrisy |
Add Hypocrisy to Your Buddy List |
![]() |
|
A Kobold Labourer
Forum posts: 0
File comments: 5
Uploads: 0
|
Raid frame sizing
I looked on the posts but I do not think I saw how to scale the raid frames. They are a little on the small side for me. I thank your guidance.
rob |
![]() |
![]() |
ibangugroov |
View Public Profile |
Send a private message to ibangugroov |
Find More Posts by ibangugroov |
Add ibangugroov to Your Buddy List |
![]() |
|
|
The code you need to move the party frames is this here.
Code:
local party = oUF:Spawn("header", "oUF_Party") party:SetManyAttributes("showParty", true, "yOffset", -50) party:SetPoint("TOPLEFT", 15, -40) oUF_Party:SetScale(scale) party:Show()
Last edited by Hypocrisy : 01-24-09 at 01:59 PM.
|
![]() |
![]() |
Hypocrisy |
View Public Profile |
Send a private message to Hypocrisy |
Find More Posts by Hypocrisy |
Add Hypocrisy to Your Buddy List |
![]() |
|
|
Set myself up on my backup machine to test the oUF_AutoShot code. Everything is working fine, so it is now officially part of the frames. As for oUF_Experience and oUF_HealComm. I am not going to add support for those for now, sorry vpr
![]() If you are looking for a minimalistic experience bar, I recommend my own favorite, jExp. As for healing, my frames would work fine for healing a 5 man instance, but if you doing 10 or 25 mans, my oUF frames are much better suited for a dps class. As you can see in my raid shot, when I am healing I use them in conjunction with Grid. To go all the way up and down my 25 people on the side and click the little frames wouldn't be the most efficient way of healing ![]() |
![]() |
![]() |
Hypocrisy |
View Public Profile |
Send a private message to Hypocrisy |
Find More Posts by Hypocrisy |
Add Hypocrisy to Your Buddy List |
![]() |
|
A Theradrim Guardian
Forum posts: 65
File comments: 272
Uploads: 0
|
Before you abandon this great work, could you possibly add support for:
oUF_Experience and oUF_HealComm Secondly, you told me how to position the Target frame (which also changed the ToT frame) which has worked excellent. I need to know how to position the party frames now. I've moved my Minimap from the right side of the screen to the upper left hand corner, and made it a square. It now interferes with the party frame... I haven't decided if I just want to shift everything down a little bit, or if somehow I could place them under the Player and Target frames. Something like this: [Player] [Target][ToT] [P1] [P2] [P3] [P4] Just what I'm thinking - haven't decided if that's what I want to do yet though. |
![]() |
![]() |
vpr |
View Public Profile |
Send a private message to vpr |
Find More Posts by vpr |
Add vpr to Your Buddy List |
![]() |
||
|
![]() Amendment: You should be able to just replace your toc file and leave the lua untouched...it looks like you've shuffled things around a bit, hope this catches you in time.
Last edited by Hypocrisy : 01-19-09 at 12:30 AM.
|
|
![]() |
![]() |
Hypocrisy |
View Public Profile |
Send a private message to Hypocrisy |
Find More Posts by Hypocrisy |
Add Hypocrisy to Your Buddy List |
![]() |
|
A Kobold Labourer
Forum posts: 0
File comments: 26
Uploads: 0
|
Thanks a bunch!
![]() Also what addon are you using to show your xp bar below your action bar? |
![]() |
![]() |
tou |
View Public Profile |
Send a private message to tou |
Find More Posts by tou |
Add tou to Your Buddy List |
![]() |
|
|
Doh! My apologies, just read p3lims docs a bit more closely, I need to have oUF_AutoShot in my toc data. I'll upload a new version soon.
|
![]() |
![]() |
Hypocrisy |
View Public Profile |
Send a private message to Hypocrisy |
Find More Posts by Hypocrisy |
Add Hypocrisy to Your Buddy List |
![]() |
|
A Kobold Labourer
Forum posts: 0
File comments: 26
Uploads: 0
|
hey, thanks for the quick reply
![]() I replaced the druid text with the stuff you gave me, and adjusted the position a little. but all I am left with is a new frame that is colored green, it does not show me my autoshot progress or any text. Code:
if IsAddOnLoaded("oUF_AutoShot") and playerClass=="HUNTER" then self.AutoShot = CreateFrame"StatusBar" self.AutoShot:SetStatusBarTexture(bartex) self.AutoShot:SetStatusBarColor(0.2,0.5,0.1) self.AutoShot:SetPoint("TOPLEFT", self, "TOPLEFT", 0.5, 10) self.AutoShot:SetHeight(5) self.AutoShot:SetWidth(155) self.AutoShot.bg = self.AutoShot:CreateTexture(nil, "BORDER") self.AutoShot.bg:SetAllPoints(self.AutoShot) self.AutoShot.bg:SetTexture(bartex) self.AutoShot.bg:SetAlpha(0.30) self.AutoShot.Text = self.AutoShot:CreateFontString(nil, "OVERLAY") self.AutoShot.Text:SetPoint("CENTER", self.AutoShot) self.AutoShot.Text:SetFont(font, fontsize-1) self.AutoShot.Text:SetTextColor(1,1,1) self.AutoShot.Text:SetShadowOffset(1, -1) self.AutoShot:SetBackdrop{ bgFile = "Interface\\ChatFrame\\ChatFrameBackground", tile = true, tileSize = 16, insets = {left = -2, right = -2, top = -2, bottom = -2}, } self.AutoShot:SetBackdropColor(0,0,0,1) end ![]() |
![]() |
![]() |
tou |
View Public Profile |
Send a private message to tou |
Find More Posts by tou |
Add tou to Your Buddy List |
![]() |