Quote:
|
Quote:
hmm yeah that sounds right... any tip on how to solve that easy or would i need to recode a lot of stuff? :P Guess i was using a lazy way to get all names classcolored but my target, it works as intended just annoying with that message. :) gonna see how other people go about in their layouts, best way to learn ^^ thanks.. |
ouf_mastiff
I am looking for some help with ouf_mastiff.
I am getting the following errors in pvp and with a hunter pet summoned. interface\addons\ouf_mastiff\ouf_mastiff.lua:94 attempt to perform arithmetic on local 'min' (a nil value) I do not know all that much about lua editing so I am not all that confident about fixing the problem myself and would appreciate any help. Sorry if this is the wrong place to post this but I could not find anywhere else to post. |
Quote:
if unit=="target" then self.Name:SetTextColor(1,1,1) elseif UnitIsPlayer(unit) then local _, class = UnitClass(unit) color = self.colors.class[class] self.Name:SetTextColor(color[1], color[2], color[3]) else self.Name:SetTextColor(0,1,0) -- green end |
Quote:
Notepad++ is a free editor that shows line numbers. |
I'm trying to get my raidframes to show a manabar if the char of that certain frame actually has mana.
This is my code: Code:
local _, powertype = UnitPowerType(unit) Code:
[2009/04/04 22:02:10-3758-x8]: oUF_ReebooRaid-ALPHA\oUF_ReebooRaid.lua:174: Usage: UnitPowerType("unit"[, index]) Code:
[2009/04/04 22:02:10-3758-x3]: oUF_ReebooRaid-ALPHA\oUF_ReebooRaid.lua:174: Usage: UnitPowerType("unit"[, index]) |
Quote:
I really like these frames and I would hate to stop using them because of this. I would really appreciate any help with this if anyone can see a problem here. Code:
local updateHealth = function(self, event, unit, bar, min, max) |
Quote:
Code:
if unit then |
Quote:
Unfortunately once I do a check for (unit), nothing on the frames gets actually changed. That only happens if I do a check for (not unit). I'm really confused now. :( edit: Ok, I found out that party and raid are not units, hence the behaviour with (not unit). If that's the case, how do I do any checks on single chars in raid or party at all? |
Quote:
Code:
local unitInRaid = self:GetParent():GetName():match"oUF_Raid" |
Quote:
|
I'm trying to write myself a name tag that will lower all the letters to lowercase... However, i'm failing right now. I've never even attempted something like this before so sorry if it's a retarded question.
This is what i have so far: Code:
if (not oUF.Tags['[[lowername]]']) then Thanks in advance, Wimpsy. |
Quote:
Code:
oUF.TagEvents['[lowername]'] = 'UNIT_NAME_UPDATE' |
Thanks p3lim!
|
I've been trying to spawn my own raid frames for a while using oUF_Perfect as a base. However, i never get more than one raid frame at a time, it's like it never spawns.
Any ideas on what's wrong with this? The code snippets i have are (Sorry for the long post): Code:
for i=1,8 do Code:
local Raid = {} |
Quote:
Code:
table.insert(Raid, raid) |
Quote:
|
Quote:
Code:
local name, rank, icon, count, debuffType, duration, expirationTime, isMine, isStealable = UnitAura("unit", index or ["name", "rank"][, "filter"]) Code:
oUF.Tags["[beacon]"] = function(u) return select(8, UnitAura(u, "Beacon of Light")) and "|cffFF5500.|r" or "" end |
Quote:
Code:
-- Specifies what layout to use for the raid frames Code:
for i=1,8 do Code:
local Raid = {} |
Quote:
Code:
if(self:GetParent():GetName():match('oUF_Raid')) then |
All times are GMT -6. The time now is 04:42 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI