Thread Tools Display Modes
01-07-11, 06:03 AM   #1
Ragrek
A Murloc Raider
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 4
Fixing a few UI Script Addons

I've put a few scripts in some addons, they're not working. If someone could take a look at them and provide some assistance that'd be fantastic.

UI Script Class Icons
Function: Changes all Portraits to show Class Icons
Problem: I would like to exempt Pets from this, as at present my Ghoul is shown as a Rogue.
Download: removed
Pastebin: http://pastebin.com/JnweTus7

UI Script Hide Indicators
Function: Hides PvP tags on Target and Focus frames as well as the Raid Group Indicator.
Problem: Doesn't hide the PvP tag on the Player frame.
Download: removed
Pastebin: http://pastebin.com/5cqtafg7

UI Script Hide Keybinds
Function: Hides keybinds on the Blizzard default action bars.
Problem: Only works erratically, sometimes hiding keybinds and sometimes not.
Download: removed
Pastebin: http://pastebin.com/51sqyF8B

UI Script Power Values
Function: Shows Power Values on the Player, Target and Focus frames as integers rather than as percentages.
Problem: Only shows the correct value on the Target frame, the Player and Focus frames show the value of the Target frame. Editing the "target" values to "player" and "focus" results in the addon doing nothing at all.
Download: removed
Pastebin: http://pastebin.com/vXrgWSWz

Thanks in advance for any help anyone can offer.
__________________

Last edited by Seerah : 01-07-11 at 10:39 AM. Reason: Removed links to off-site downloads. -Seerah
  Reply With Quote
01-07-11, 06:19 AM   #2
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
http://pastebin.org is a nice site, that way we don't have do download files to check out code.
  Reply With Quote
01-07-11, 06:23 AM   #3
Ragrek
A Murloc Raider
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 4
Apologies, updated with Pastebin links.
__________________
  Reply With Quote
01-07-11, 08:14 AM   #5
Ragrek
A Murloc Raider
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 4
Massive thanks for your help, really appreciate it.

Unfortunately the Power Values fix seems not to work entirely for me, the values shown on Player, Target and Focus Power bars fluctuate between percentage and integer displays.
__________________
  Reply With Quote
01-07-11, 09:00 AM   #6
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Try adding this:
Lua Code:
  1. TextStatus_UpdateString = function() end

or if that doesnt suite the needs (as it disables text for healthbars too), try this:
Lua Code:
  1. PlayerFrameManaBar:UnregisterEvent('CVAR_UPDATE')
  2. TargetFrameManaBar:UnregisterEvent('CVAR_UPDATE')
  3. FocusFrameManaBar:UnregisterEvent('CVAR_UPDATE')

With the second one you might need to add the following, but I havent tested it.
Lua Code:
  1. PlayerFrameManaBar.TextString:Show()
  2. TargetFrameManaBar.TextString:Show()
  3. FocusFrameManaBar.TextString:Show()

Last edited by p3lim : 01-07-11 at 09:03 AM.
  Reply With Quote
01-07-11, 09:09 AM   #7
Ragrek
A Murloc Raider
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 4
Thanks again for your help.

That first suggestion would not suit as you assumed, as I am looking to display Health texts as percentages while having Power texts as exact values.

Adding the first set of three lines as well as adding all six has not resulted in any change, the same problem is occuring.
__________________
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Fixing a few UI Script Addons

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off