Go to Page... |
Updated: | 03-18-10 04:23 PM |
Created: | unknown |
Downloads: | 24,002 |
Favorites: | 81 |
MD5: |
oUF_coree is my layout for oUF (a Unitframe framework made by haste).
You need to install oUF which can be found at ixo.no/git/oUF.git/ or at WoW Interface.
A very big help for me was P3lim's work. I used his layout as a "guide" in order to know more about how these layouts work.
oUF_coree includes unitframes for player, target, tot, focus, focustarget, pet, party, raid, maintank, mainassist and boss.
Currently supported plugins:
Comment Options |
illum1n4ti |
View Public Profile |
Send a private message to illum1n4ti |
Find More Posts by illum1n4ti |
Add illum1n4ti to Your Buddy List |
03-23-09, 04:44 AM | ||
|
Code:
local function PostUpdateHealth(self, event, unit, bar, min, max) if(self.unit ~= unit) then return end local min, max = UnitHealth(unit), UnitHealthMax(unit) local bar = self.Health local d = floor(min/max*100) if(unit == "target" or unit == "player") then if(not UnitIsConnected(unit)) then bar.Text:SetText("Offline") elseif(UnitIsDead(unit)) then bar.Text:SetText("Dead") elseif(UnitIsGhost(unit)) then bar.Text:SetText("Ghost") else if (unit == "target") then if (targetshort == true) then bar.Text:SetText(ShortHp(min)) else bar.Text:SetText(min) end else if(min ~= max) then bar.Text:SetText(min) else if (UnitMana("player") > 0) then bar.Text:SetText(min) elseif (UnitMana("player") == 0) then bar.Text:SetText() elseif(UnitAffectingCombat("player") == 1) then bar.Text:SetText(min) else bar.Text:SetText() end end end end end if(not UnitIsConnected(unit) or UnitIsDead(unit) or UnitIsGhost(unit)) then bar.Text2:SetText() bar:SetValue(0) else if (unit == "target") then if (min ~= max) then bar.Text2:SetText(d.."%") else bar.Text2:SetText() end else if(min ~= max) then if(d < 100) then bar.Text2:SetText(d.."%") end else bar.Text2:SetText() end end end if(self.Info) then UpdateInfoColor(self.Info, unit) end end Code:
local function PostUpdateHealth(self, event, unit, bar, min, max) if(self.unit ~= unit) then return end local min, max = UnitHealth(unit), UnitHealthMax(unit) local bar = self.Health local d = floor(min/max*100) if(unit == "target" or unit == "player") then if(not UnitIsConnected(unit)) then bar.Text:SetText("Offline") elseif(UnitIsDead(unit)) then bar.Text:SetText("Dead") elseif(UnitIsGhost(unit)) then bar.Text:SetText("Ghost") else if (unit == "target" or unit == "player") then if (targetshort == true) then bar.Text:SetText(ShortHp(min)) else bar.Text:SetText(min) end else if(min ~= max) then bar.Text:SetText(min) else bar.Text:SetText() end end end end if(not UnitIsConnected(unit) or UnitIsDead(unit) or UnitIsGhost(unit)) then bar.Text2:SetText() bar:SetValue(0) else if (unit == "target") then if (min ~= max) then bar.Text2:SetText(d.."%") else bar.Text2:SetText() end else if(min ~= max) then if(d < 100) then bar.Text2:SetText(d.."%") end else bar.Text2:SetText() end end end if(self.Info) then UpdateInfoColor(self.Info, unit) end end |
|
|
coree |
View Public Profile |
Send a private message to coree |
Find More Posts by coree |
Add coree to Your Buddy List |
03-22-09, 06:01 PM | ||
|
Thank you for Ur fast support but i had some problems to fine the codes u were saying. i have replaced the code only 1 thing i see my name and level but no health :S did i miss something? i hope i hear from you soon.
Last edited by illum1n4ti : 03-23-09 at 01:44 AM.
|
|
|
illum1n4ti |
View Public Profile |
Send a private message to illum1n4ti |
Find More Posts by illum1n4ti |
Add illum1n4ti to Your Buddy List |
03-22-09, 12:07 PM | ||
|
@Barosh: search for : Code:
if IsAddOnLoaded("oUF_HealComm") then oUF:Spawn("targettarget"):SetPoint("LEFT", oUF.units.target, "RIGHT", 7, -25) else oUF:Spawn("targettarget"):SetPoint("LEFT", oUF.units.target, "RIGHT", 7, 0) end @Cashtro: search for: Code:
if(unit ~= "player") then self.Info = SetFontString(self.Health, fontn, 14, "THINOUTLINE") self.Info:SetPoint("LEFT", self.Health, 1, -23) if(unit == "targettarget" or unit == "pet") then self.Info:SetPoint("RIGHT", self.Health.Text2, "LEFT") elseif(unit == "focus" or unit == "focustarget") then self.Info:SetPoint("LEFT", self.Health, 3, 0) self.Info:SetPoint("RIGHT", self.Health) elseif(settings.size == "party") then self.Info:SetPoint("LEFT", self.Health, 0, -23) self.Info:SetPoint("RIGHT", self.Health.Text, "LEFT") else self.Info:SetPoint("RIGHT", self.Power.Text, "LEFT") end self:Tag(self.Info, unit == "target" and "[coreecolor][level][coreeclassi] |cFFFFFFFF[name]|r" or settings.size == "party" and "[coreeafk]|cFFFFFFFF[name]|r" or "|cFFFFFFFF[name]|r") end change this code to: Code:
self.Info = SetFontString(self.Health, fontn, 14, "THINOUTLINE") self.Info:SetPoint("LEFT", self.Health, 1, -23) if(unit == "targettarget" or unit == "pet") then self.Info:SetPoint("RIGHT", self.Health.Text2, "LEFT") elseif(unit == "focus" or unit == "focustarget") then self.Info:SetPoint("LEFT", self.Health, 3, 0) self.Info:SetPoint("RIGHT", self.Health) elseif(settings.size == "party") then self.Info:SetPoint("LEFT", self.Health, 0, -23) self.Info:SetPoint("RIGHT", self.Health.Text, "LEFT") else self.Info:SetPoint("RIGHT", self.Power.Text, "LEFT") end self:Tag(self.Info, (unit == "target" or unit == "player") and "[coreecolor][level][coreeclassi] |cFFFFFFFF[name]|r" or settings.size == "party" and "[coreeafk]|cFFFFFFFF[name]|r" or "|cFFFFFFFF[name]|r") Code:
oUF:RegisterStyle("coree - small", setmetatable({ ["initial-width"] = width - 106, <-- edit this ["initial-height"] = height, <--- edit this ["size"] = "small", }, {__call = func}))
Last edited by coree : 03-22-09 at 12:14 PM.
|
|
|
coree |
View Public Profile |
Send a private message to coree |
Find More Posts by coree |
Add coree to Your Buddy List |
03-22-09, 05:19 AM | |
|
I need your help
Dear Coree,
For the first time i saw ur layout and it looks beauty .. the only thing i couldn't find out how to add in player side my char name and level just like target side ( its empty ) i hope u understand what i mean. Sec, How do i resize Target/Target frame? I hope i hear from u soon. regards |
|
illum1n4ti |
View Public Profile |
Send a private message to illum1n4ti |
Find More Posts by illum1n4ti |
Add illum1n4ti to Your Buddy List |
03-21-09, 02:41 AM | |
A Kobold Labourer
Forum posts: 0
File comments: 5
Uploads: 0
|
If I activate the healcomm-addon then the targetoftarget frame is moved to the rigth side of the target frame.
Why? How can I disable this? Normally I have the target frame in the middle of my ui |
|
Barosh |
View Public Profile |
Send a private message to Barosh |
Find More Posts by Barosh |
Add Barosh to Your Buddy List |
03-19-09, 05:27 AM | ||
A Kobold Labourer
Forum posts: 0
File comments: 5
Uploads: 0
|
[19:22:22] Interface\AddOns\oUF_coree\oUF_coreeR.lua:222: attempt to index global 'raid' (a nil value) [C]: ? Interface\AddOns\oUF_coree\oUF_coreeR.lua:222: in function <Interface\AddOns\oUF_coree\oUF_coreeR.lua:216> |
|
|
cs703 |
View Public Profile |
Send a private message to cs703 |
Find More Posts by cs703 |
Add cs703 to Your Buddy List |
03-17-09, 09:49 AM | ||
|
Code:
local raidToggle = CreateFrame("Frame") raidToggle:RegisterEvent("PLAYER_LOGIN") raidToggle:RegisterEvent("RAID_ROSTER_UPDATE") raidToggle:RegisterEvent("PARTY_LEADER_CHANGED") raidToggle:RegisterEvent("PARTY_MEMBER_CHANGED") raidToggle:SetScript("OnEvent", function(self) if(InCombatLockdown()) then self:RegisterEvent("PLAYER_REGEN_ENABLED") else self:UnregisterEvent("PLAYER_REGEN_ENABLED") if(GetNumRaidMembers() < 5) then raid:Hide() else raid:Show() end end end) |
|
|
coree |
View Public Profile |
Send a private message to coree |
Find More Posts by coree |
Add coree to Your Buddy List |
03-16-09, 09:00 AM | |
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
Hi, how can i hide raidframe if in a raid are less than 5 members? And the dblacklist isn't working now?
|
|
Karnivan |
View Public Profile |
Send a private message to Karnivan |
Find More Posts by Karnivan |
Add Karnivan to Your Buddy List |
03-15-09, 05:01 PM | ||
|
change Code:
local Raid = {} for i = 1, 5 do Code:
local Raid = {} for i = 1, 8 do
Last edited by coree : 03-15-09 at 05:01 PM.
|
|
|
coree |
View Public Profile |
Send a private message to coree |
Find More Posts by coree |
Add coree to Your Buddy List |
03-15-09, 10:10 AM | |
A Kobold Labourer
Forum posts: 0
File comments: 5
Uploads: 0
|
thanks for your layout,it's cool.
look,i don't want the ellipsis "..." to be included in the raid's member name,how to deal with that?
Last edited by cs703 : 03-15-09 at 10:11 AM.
|
|
cs703 |
View Public Profile |
Send a private message to cs703 |
Find More Posts by cs703 |
Add cs703 to Your Buddy List |
03-14-09, 10:11 AM | |
A Kobold Labourer
Forum posts: 0
File comments: 14
Uploads: 0
|
is there a way to make the raid frame go up to 40 ppl?
|
|
lanznaster |
View Public Profile |
Send a private message to lanznaster |
Find More Posts by lanznaster |
Add lanznaster to Your Buddy List |
03-14-09, 06:32 AM | ||
A Kobold Labourer
Forum posts: 0
File comments: 14
Uploads: 0
|
Last edited by lanznaster : 03-14-09 at 06:34 AM.
|
|
|
lanznaster |
View Public Profile |
Send a private message to lanznaster |
Find More Posts by lanznaster |
Add lanznaster to Your Buddy List |
03-13-09, 10:07 AM | ||
|
Code:
self.Castbar.SafeZone:SetPoint("TOPRIGHT") self.Castbar.SafeZone:SetPoint("BOTTOMRIGHT") i hope that will fix your problem. edit: hm this did not fix it really. sometimes the castbar is still overlaped by the safezone ...
Last edited by coree : 03-13-09 at 03:50 PM.
|
|
|
coree |
View Public Profile |
Send a private message to coree |
Find More Posts by coree |
Add coree to Your Buddy List |
03-09-09, 11:13 AM | ||
A Kobold Labourer
Forum posts: 0
File comments: 14
Uploads: 0
|
i just installed the latest version - 1.3.8, will try it later at night... |
|
|
lanznaster |
View Public Profile |
Send a private message to lanznaster |
Find More Posts by lanznaster |
Add lanznaster to Your Buddy List |