WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Fixing a few UI Script Addons (https://www.wowinterface.com/forums/showthread.php?t=38212)

Ragrek 01-07-11 06:03 AM

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.

p3lim 01-07-11 06:19 AM

http://pastebin.org is a nice site, that way we don't have do download files to check out code.

Ragrek 01-07-11 06:23 AM

Apologies, updated with Pastebin links.

p3lim 01-07-11 07:33 AM

1: http://pastebin.com/diff.php?i=dbkjG6x4
2: http://pastebin.com/diff.php?i=4UPeQrjK
3: http://pastebin.com/diff.php?i=WuPPkYCH
4: http://pastebin.com/diff.php?i=3r51f5Dm

Ragrek 01-07-11 08:14 AM

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.

p3lim 01-07-11 09:00 AM

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()

Ragrek 01-07-11 09:09 AM

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.


All times are GMT -6. The time now is 01:39 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI