everything works except the clock, it won't do anything
local clockFrame, clockTime = TimeManagerClockButton:GetRegions()
clockFrame:Hide()
clockTime:SetFont(clockfont, 16)
clockTime:SetTextColor(.46,.59,.68)
TimeManagerClockButton:SetPoint("TOPRIGHT", Minimap, "BOTTOMRIGHT", 0, 0)
TimeManagerClockButton:SetScript("OnClick", function()
if(button == 'RightButton') then
ToggleCalendar()
else
ToggleTimeManager()
end
if TimeManagerFrame:IsVisible() then
TimeManagerFrame:Hide()
else
TimeManagerFrame:Show()
end
end)
ps I know the "OnClick" is not needed anymore, but I whant to get the alarm to left & calender to rightclick.
so that both frames can be accesed for the clock
---------------------------------------------------- Spawn Party & Partypets
local party = oUF:Spawn('header', 'oUF_Party')
party:SetPoint('LEFT', UIParent, 'LEFT', 20, -280)
party:SetManyAttributes('yOffset', -44, 'showParty', true)
local pets = {}
pets[1] = oUF:Spawn('partypet1', 'oUF_PartyPet1')
pets[1]:SetPoint('TOPRIGHT', party, 'TOPRIGHT', 130, 0)
for i =2, 4 do
pets[i] = oUF:Spawn('partypet'..i, 'oUF_PartyPet'..i)
pets[i]:SetPoint('TOP', pets[i-1], 'BOTTOM', 0, -44)
end
---------------------------------------------------- Party hiding
local partyToggle = CreateFrame('Frame')
partyToggle:RegisterEvent('PLAYER_LOGIN')
partyToggle:RegisterEvent('RAID_ROSTER_UPDATE')
partyToggle:RegisterEvent('PARTY_LEADER_CHANGED')
partyToggle:RegisterEvent('PARTY_MEMBER_CHANGED')
partyToggle:SetScript('OnEvent', function(self)
if(InCombatLockdown()) then
self:RegisterEvent('PLAYER_REGEN_ENABLED')
else
self:UnregisterEvent('PLAYER_REGEN_ENABLED')
if(GetNumRaidMembers() > 0) then
party:Hide()
for i = 2, 4 do
pets[i]:Hide()
end
else
party:Show()
for i = 2, 4 do
pets[i]:Show()
end
end
end
end)
This is the complete code, for party en party pet. any sugestions how to fix this?
local partyToggle = CreateFrame('Frame')
partyToggle:RegisterEvent('PLAYER_LOGIN')
partyToggle:RegisterEvent('RAID_ROSTER_UPDATE')
partyToggle:RegisterEvent('PARTY_LEADER_CHANGED')
partyToggle:RegisterEvent('PARTY_MEMBER_CHANGED')
partyToggle:SetScript('OnEvent', function(self)
if(InCombatLockdown()) then
self:RegisterEvent('PLAYER_REGEN_ENABLED')
else
self:UnregisterEvent('PLAYER_REGEN_ENABLED')
if(GetNumRaidMembers() > 0) then
party:Hide()
else
party:Show()
end
end
end)
hides the party in raids
partypets:Hide() doesn't work, is there a way to hide them aswell
du, du hast, du hast mich, du hast mich gefragt, ...
I didn't really get your example but:
local r,g,b = self.ColorGradient(cur/maxhp, r1, g1, b1, r2, g2, b2, [, r3, g3, g3, and so on...])
You can then use those values to generate the hex for the fontstring with string.format('|cff%02x%02x%02x', r*255, g*255, b*255)
Remember that it's good practice to always close your color strings with |r.
I have set up the color :) that works for bars fine.
but how do I get this
0
I realy hate the default one
0
0
http://www.wowace.com/forums/index.php?topic=10696.0
But look for Self.Buffs / self.Debuffs / self.Auras
or Buffs / Debuffs / Auras
0
Abit IP35-Pro
XFX Geforce 8800GT
Creative Sound Blaster X-Fi
4GB ram
Acer X222W
Windows Vista 64 Ulitmate
0
everything works except the clock, it won't do anything
ps I know the "OnClick" is not needed anymore, but I whant to get the alarm to left & calender to rightclick.
so that both frames can be accesed for the clock
0
my code
0
give the same error
http://www.pastey.net/95453
marked the error lines & setting
any help would be very nice
0
0
I'm adding the raid into my layout, I added the spawn of the raid targets, and since then I get a error in this line
attempt to index local 'unit' (a nil value)
why does this happen?
complete code =
0
but I have to do a /rl to hide te party pets
This is the complete code, for party en party pet. any sugestions how to fix this?
0
sorry I spawn them
If it's a dumb way let me know
0
Thank you
one more question
hides the party in raids
partypets:Hide() doesn't work, is there a way to hide them aswell
0
I know but in this case the wohle health (100%) is colored.
all I want to have colored is 100% <- that part :)
0
the health tekst and () stay white. but the does something weird
The color & values show strange stuff
any sugestions
thanks
0
I have set up the color :) that works for bars fine.
but how do I get this
in that
and It may only change the color of (cur/maxhp)*100).