Thread Tools Display Modes
07-05-10, 03:14 PM   #1
wellbeing
A Cliff Giant
Join Date: Oct 2009
Posts: 71
Changing Status Text Display Style

So.. in the status text "Display" section you're given options as to how you want to display the health/power data.

I'd like to add options to this and other similar lists.

for instance xx.xk displays of health and mana (32.4k)

anyone know how to do that?
  Reply With Quote
07-05-10, 08:42 PM   #2
Dgrimes
A Black Drake
 
Dgrimes's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 89
You'd need to manually edit the lua file for the the health text.

If you know how to script you can make a script object to display the health which ever way you'd like and then add it in under the "Custom Text" feature.
__________________
What was is, what will be was.
  Reply With Quote
07-05-10, 08:48 PM   #3
wellbeing
A Cliff Giant
Join Date: Oct 2009
Posts: 71
Originally Posted by Dgrimes View Post
You'd need to manually edit the lua file for the the health text.

If you know how to script you can make a script object to display the health which ever way you'd like and then add it in under the "Custom Text" feature.
This is exactly what i want to do. Anyone know of a resource or process to learn to script?
  Reply With Quote
07-06-10, 12:15 AM   #4
sigg
Featured Artist
 
sigg's Avatar
Featured
Join Date: Aug 2008
Posts: 1,251
See in the section Documentation :

http://www.wowinterface.com/forums/s...ad.php?t=21843

Cheers
  Reply With Quote
07-06-10, 12:22 AM   #5
wellbeing
A Cliff Giant
Join Date: Oct 2009
Posts: 71
Originally Posted by sigg View Post
See in the section Documentation :

http://www.wowinterface.com/forums/s...ad.php?t=21843

Cheers
uh oh! daddy is learning.

i just did this:

new object > featuredata

script:
local maxh = UnitHealthMax("player"); local curh = UnitHealth("player"); local healthpct = (curh/maxh) * 100; local belowhalf = false; if healthpct <= 50 then belowhalf = true; end;

name = belowhalf
var type = boolvar

imported the scripted var feature to a unitframe. added it as a show hide conditional for a subframe and....

..voila.. i now have a red frame that surrounds raid/party members when they are at half health or below.

im starting to like this stuff. maybe this will help the next noob that searches OpenRDX forum for writing lua scripts, importing featuredata or creating variables.

woot.
  Reply With Quote
07-06-10, 12:30 AM   #6
sigg
Featured Artist
 
sigg's Avatar
Featured
Join Date: Aug 2008
Posts: 1,251
There are many ways to achieve your goal.

This is also a good solution.
  Reply With Quote

WoWInterface » Featured Projects » OpenRDX » OpenRDX Community » OpenRDX: Community Chat » Changing Status Text Display Style

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