49 - Disabling career icons breaks addon
What steps will reproduce the problem?
1. Install xHUD, open the config GUI.
2. In the General tab page, select either Friendly Career Icon or Enemy Career Icon from the "apply to frame" list.
3. Uncheck the "enabled" checkbox below the "apply to frame" list.
What is the expected output? What do you see instead?
This option should simply disable the career icons, preventing them from displaying when a target is selected. Instead, the career icons disable but break the xHUD.UpdateTargets() function preventing xHUD from rendering the friendly/enemy health bars and any text associated with these targets.
What version of the product are you using?
Latest release (2.1.7.4). Have also tried 2.1.7.3 and 2.1.7.2 with the same results.
Do you have an error log of what happened?
Using the latest release (2.1.7.4):
With the Enemy Career Icon disabled, this message is shown while selecting an enemy target:
[UILog][Error]: (xHUD): Script Call failed - Error while calling [xHUD.UpdateTargets]: [string "Interface/Addons\xHUD\xHUD.lua"]:1048: attempt to index field '?' (a nil value)
With the Enemy Career Icon disabled, this message is shown while deselecting an enemy target:
[UILog][Error]: (xHUD): Script Call failed - Error while calling [xHUD.UpdateTargets]: [string "Interface/Addons\xHUD\xHUD.lua"]:1031: attempt to index field '?' (a nil value)
With the Friendly Career Icon disabled, this message is shown while selecting a friendly target:
[UILog][Error]: (xHUD): Script Call failed - Error while calling [xHUD.UpdateTargets]: [string "Interface/Addons\xHUD\xHUD.lua"]:1045: attempt to index field '?' (a nil value)
With the Friendly Career Icon disabled, this message is shown while deselecting a friendly target:
[UILog][Error]: (xHUD): Script Call failed - Error while calling [xHUD.UpdateTargets]: [string "Interface/Addons\xHUD\xHUD.lua"]:1031: attempt to index field '?' (a nil value)
| User | When | Change |
|---|---|---|
| Arclighte | Sun, 01 Nov 2009 09:13:49 | Create |
- 1 comment
- 1 comment
Facts
- Reported on
- 01 Nov 2009
- Status
- New - Issue has not had initial review yet.
- Type
- Defect - A shortcoming, fault, or imperfection
- Priority
- Medium - Normal priority.
- #1
Arclighte Sat, 14 Nov 2009 05:41:39Current work around for this one is to scale the career icon(s) to 0, effectively hiding them while avoiding the above errors.