I try to make the mod as modular as possible, all the following files can be removed if you don't need the functionality:
* Basics.lua : Adds HP/MP Text and/or ClassIcon to any frame. required by XXXXFrame.lua modules.
* PlayerFrame.lua : HP/MP and ClassIcon for PlayerFrame.
* TargetFrame.lua : HP/MP and ClassIcon for TargetFrame.
* PartyFrame.lua : HP/MP and ClassIcon for PartyFrames.
* ToTFrame.lua : HP/MP for TargetofTargetFrame.
* PetFrame.lua: HP/MP for PetFrame.
* PartyPetFrame.lua: HP for PartyPetFrame.
* FocusFrame.lua : HP/MP and ClassICon for addon FocusFrame: http://www.wowinterface.com/downloads/fileinfo.php?id=6463
* TargetPortraitDamage.xml : Adds Portrait Damage to the TargetFrame.
* PartyPortraitDamage.xml : Adds Portrait Damage to the PartyFrame.
* TargetBuffs.xml, TargetBuffs.lua : Add extra buff slots to the TargetFrame.
If you have MobHealth3 then Target frame can show estimated HP for non-friendly targets.
Class Icons only need less than 10 lines of code and the overhead is minimal, so I decided to not separate Class Icons from HP/MP text, you can toggle Class Icon off in the slash command if you don't need the feature.
/suf for in-game commands, or use DeuceCommander for drop down menu configuration.
Thanks Xan for contributing the PortraitDamage and CassIcons, Keith Chiem for TargetBuffs.
As with revision 29307 i got following errors when i try to configure ToT via DeuceCommander (each setting gave me another error plus the previous one):
Error occured in: Global
Count: 1
Message: ..\AddOns\SimpleUnitFrames\ToTFrame.lua line 23:
attempt to call method 'TargetofTarget_Update' (a nil value)
Debug:
[C]: TargetofTarget_Update()
SimpleUnitFrames\ToTFrame.lua:23: func()
...face\AddOns\ChatLog\Libs\Dewdrop-2.0\Dewdrop-2.0.lua:484:
...face\AddOns\ChatLog\Libs\Dewdrop-2.0\Dewdrop-2.0.lua:425
Error occured in: Global
Count: 1
Message: ..\AddOns\SimpleUnitFrames\ToTFrame.lua line 35:
attempt to call method 'TargetofTarget_Update' (a nil value)
Debug:
[C]: TargetofTarget_Update()
SimpleUnitFrames\ToTFrame.lua:35: func()
...face\AddOns\ChatLog\Libs\Dewdrop-2.0\Dewdrop-2.0.lua:484:
...face\AddOns\ChatLog\Libs\Dewdrop-2.0\Dewdrop-2.0.lua:425
Error occured in: Global
Count: 1
Message: ..\AddOns\SimpleUnitFrames\ToTFrame.lua line 47:
attempt to call method 'TargetofTarget_Update' (a nil value)
Debug:
[C]: TargetofTarget_Update()
SimpleUnitFrames\ToTFrame.lua:47: func()
...face\AddOns\ChatLog\Libs\Dewdrop-2.0\Dewdrop-2.0.lua:484:
...face\AddOns\ChatLog\Libs\Dewdrop-2.0\Dewdrop-2.0.lua:425
Error occured in: Global
Count: 1
Message: ..\AddOns\SimpleUnitFrames\ToTFrame.lua line 59:
attempt to call method 'TargetofTarget_Update' (a nil value)
Debug:
[C]: TargetofTarget_Update()
SimpleUnitFrames\ToTFrame.lua:59: func()
...face\AddOns\ChatLog\Libs\Dewdrop-2.0\Dewdrop-2.0.lua:484:
...face\AddOns\ChatLog\Libs\Dewdrop-2.0\Dewdrop-2.0.lua:425
I was wondering if would be possible to add the class icon and info to this mod.
Is it also possible to have the hp/mp for the pet like there is for ToT?
TargetFrame.lua doesn't handle a nil return from UnitCreatureType(), e.g. when the target is a slime or a bug. There should either be no icon, or a ? icon or something of that sort.
Edit: I noticed that there's actually already an icon in place for unknown, so I added:
Code:
if (not icon) or (icon == "Not specified") then
icon = "UNKNOWN"
end
after
Code:
icon = UnitCreatureType('target')
which seems to do the right thing. The "Not specified" probably needs to be localized.
Originally posted by Osamar I am using "SUF" for a time plus "PlayeXPbar" and work OK for me. Just pops one LUA error whenever anybody enters in my group, I will try this new version.It could be for not using an english client?
Sorry, but what is Portrait Damage?
It could be possible to have an option panel instead/plus commands?
Could you take localization to external files to localize this addon?
Thanks, and excuse my english.
Tell me the version you're having the error, and the exact error message you received, it should work in all languages.
SimpleUnitFrames use the Ace2 framework for console commands, so you can use DeuceCommander ( a mod which translates all addons using AceConsole-2.0 to a drop down menu ) to access SUF console commands in a drop down menu.
PortraitDamage is the numbers displayed on the PlayerFrame portait when you're being hit or healed, Blizzard provided PortraitDamage for PlayerFrame, and SUF added the same thing to Party and Target Frame.
Since it's modularized, it doesn't make sense to merge all locales into one file, making each module file have many localization files doesn't sound good too, so I decide to put the locales inside the module file.
I am using "SUF" for a time plus "PlayeXPbar" and work OK for me. Just pops one LUA error whenever anybody enters in my group, I will try this new version.It could be for not using an english client?
Sorry, but what is Portrait Damage?
It could be possible to have an option panel instead/plus commands?
Could you take localization to external files to localize this addon?