Quantcast
Download
(5 MB)
Download
Updated: 05-27-18 01:29 AM
Pictures
File Info
Updated:05-27-18 01:29 AM
Created:05-04-12 03:55 PM
Downloads:37,256
Favorites:152
MD5:
Gadgets  Popular! (More than 5000 hits)
Version: 0.11.01
by: Wildtide, adelea, lifeismystery
Wish List

Write here your thoughts about what you wish to be added or change with Gadgets.

How to...

I create "How to" page, where i'm write frequently asked questions.

Video guide about gadgets configuration and capability

I made it with example of my own UI.

It have five parts:
  1. Part 1. Standart Rift UI setup
  2. Part 2. Addon Gadgets setup ( Heal_profile )
  3. Part 3. Addon Gadgets: Buffs setup ( for Heal_profile )
  4. Part 4. Addon Gadgets setup (how to make DPS profile from our HEAL profile)
  5. Part 5. Addon Gadgets Macros setup

All of them you can find here

Lost Your Button?

If you ever lose your Gadget button, type /gadget reset into chat to put it back in the centre of your screen.

Latest Update

v0.10.15
* Added Black/White List to Raid frames for next template:
** HealFrame,
** LifeRaidFrame1 ,
** LifeRaidFrame2,
** LifeRaidFrameCallingCilor

Included Gadgets
  • Buff Bars
  • Buff Icons
  • CPU Monitor
  • Cast Bar
  • Cast Bar Presets
  • Charge Meter
  • Combo Points
  • CurrenciesTextBar
  • DPS:Encounter
  • DPS:Live
  • DataTextBar
  • FPS Monitor
  • StatTextBar
  • FPS Monitor
  • Faction Panel
  • Free Memory
  • Group Frames
  • HPS:Live
  • HUD Arcs
  • LifeComboPoints
  • Planar Charge
  • Raid Frames
  • Range Finder
  • Range Traker
  • Reload UI
  • Soul Vitality
  • Stat Text Bar
  • System Usage
  • Unit Frame
  • Unit Frame Presets
  • XP Bar
  • XP Percent

See section 2.0 in the readme (below) for more detail on these.


Grid Snapping

Typing "/gadgets grid 8" for example, will snap all movement and resizes to an 8 pixel grid.
Type "/gadgets grid" with no number to reset snapping.


Quick Start



You will see a round button with a Gear icon in the middle of your screen. Drag this button to where you want it by left clicking and dragging.

Right click on the button and choose 'Add Gadget' to add a gadget to your screen.

Left clicking on the button will unlock (and re-lock) all of your gadgets. When unlocked, Gadgets can be moved by dragging their movement handles (the white gear icon at the top corner of each gadget).

To alter an existing gadget, right click on it's movement handle while gadgets are unlocked, and choose 'Modify Gadget'.

When moving gadgets around on the screen, you can align them to another gadget by dragging the move handle over the top of another move handle. The gadget you are dragging will align itself either horizontally or vertically with it. If you move the gadget too far from the horizontal or vertical axes, alignment mode will turn off (it should hopefully become clear when you try it!).

Macros

The raid and group frames allow you to specify macros for various mouse buttons and the mouse wheel. These are standard RIFT macros, with a couple of extra Gadgets features:

Use @unit to refer to the unit the frame is showing. For example "cast @unit Healing Breath".

Use modifer it you want:

Code:
cast [shift] @unit Symbol of the Torch
cast Symbol of the Sun
Use the following syntax to have a macro carry out different actions depending on your current role:

Code:
:if role == 1 or role == 6 then
target @unit
:end
:if role == 2  then
target @unit
cast Healing Spray
:end
:if role == 3 or role == 4 or role == 5 then
cast [shift] @unit Symbol of the Torch
cast @unit Symbol of the Sun
:end
Profiles

Save, load and delete your profiles. How to save, load and delete your profiles you can see on my video guide http://www.youtube.com/watch?v=Tr7bcidyFv8&;

Notes

I have borrowed some images from other people. I believe the licenses on these sources allow this, but if not, I will replace them.

- Various bar textures from LibSharedMedia (WoW addon)
- Orb images from Roth UI (WoW addon)
- A few images from the Rift Fansite Kit
v0.11.01
* fixed mouseover issue for raid frames ( aileen )

v0.11
* Added aileen's changes (http://forums.riftgame.com/technical-discussions/addons-macros-ui/315634-addon-gadgets-67.html#post5353056)
* Change UnitFramePreset (you need to recreate it if you have).
* Add preview to UnitFramePreset.
* Clear code(trim trailing space)
* Delete not necessary images

v0.10.19
* update game version
* fixed error: Currencies Text Bar
* fixed error: XP Bar
* fixed error: get error when open Settings without any layouts

v0.10.17
* just fixed Currencies Text Bar

v0.10.15
* Added Black/White List to Raid frames for next template:
** HealFrame,
** LifeRaidFrame1 ,
** LifeRaidFrame2,
** LifeRaidFrameCallingCilor

v0.10.9
* fixed CastbarPresets
* update LibDraggable

v0.10.8

* CastBarPresets: you see cast after teleport - fixed
* Add callingcolor for primalist
* Fixed bug with delete profile
* Added new UnitFramePresets (Beta version)

v0.10.7
* Added new CastbarPresets
* Added Grid when gadgets unlock (setup it in GadgetsSettings) - grid copied from Align addon, so thanks author to done this
* Added AlertList for RaidFrames (setup it in GadgetsSettings, works with GJK.lua
* Fixed combo points

v0.10.2
* Fixed ui of profile page

v0.10.0

* <<color #ff001d>>Gadgets: Buffs now added to Gadgets addon, no need to separate install it<</color>>
* New Gadgets UI
* LibSimpleWidgets_LifeEdition
* sorted all fonts
* Add option Smart Range Text
* Fixed - Shard name text
* Fixied - add option to show/don't show buffs for SimpleFrame

v0.8.5

* New Combo Points

v0.8.5

1) Combo Points Gadget
* Add option to display it by text, choose text size and font
2) Stat Text Bar
* Add option to choose text size
* Add option to choose text font
* Add option to show light text outline
3) XP Bar
* Add option to choose text size
* Add option to choose text font
* Add option to show light text outline
* Add option to show Text above Bar
4) XP Percent
* Add option to choose text size
* Add option to choose text font
* Add option to show light text outline * Add option to don't show text "EXPERIENCE"
* Add option to don't show background

v0.8.4

* Fixed HideCastBar option.

v0.8.3

* Add option to change font size range text in RangeFinder
* fixed cast bar

v0.8.2

* Fixed CastBar icon error
v0.8.1

* Add options to change font and font size in CastBar, ChargeMater, RangeFinder, DataTextBar, StatTextBar

v0.8.0

* Add new UnitFrames
** HPframe
** Manaframe
* Add new option to CastBar
* Add new option to ChargeMeter
* Change font/text in ChargeMeter * Fix some outline text in DataTextBar

v0.7.2

* Add tier icon to LifeUnitFrame template
* Add option to add specific debuff for LifeRaidFrame template, yellow color

v0.7.1
* fix XPBarGadget

v0.7.0

* fix StatTextBar for 3.0
* fix marks icon

v0.6.2

* D3 combo point fix

v0.6.0

* Added new currencies type "Promotions"
* Range finder - Add option to select from where will be range to target calculating, from centre or from edge of hit box.
* Diablo combo points

v0.5.9

1. DataTextBar
* Fixed. Shard Name

2. Added CurrenciesTextBar.

3. Unit Frame
* Added options to display combo points.

4. Raid frames
* Visible in Group: Solo - now it's work.

v0.5.7

1. DataTextBar:
* Added options to turn on/off each item on the DataTextBar.
* Added Shard Name - Added options disable Background.
* Added options to change Background color.
* Fixed money position

2. Unit Frame
* Added options to turn on/off short name on frame.
* Added options to turn on/off unit's HitBox on frame.

3. Raid Frame
* Added option to change growthDirection="up"/"down" in game.
* Fixed out of range bug.

4. Fps-gadget
* Added options disable Title.
* Added options disable Background.
* Added options to make font smaller.
* Added options to change FPS font color.

5. StatTextBar
* Added StatTextBar with all player stats. Look like DataTextBar
* Added options to turn on/off any Stat.
* Added options disable Background.
* Added options to change Background color.

6. Group Frame
* Fixed Debuff position on LifeGroupFrame2
* Fixed Absorb position on LifeGroupFrame2

v0.5.61

* Added all new raid mark.

v0.5.6

* Added new template LifeUnitFrame1 - with green health
* Added new template LifeUnitFrame2 - with green health and big resource bar
* Added new template LifeMageFrame - with charge bar for mage
* Added new template LifeGroupFrame - with green health
* Added new template LifeGroupFrame2 - with green health and big resource bar
* Added new template LifeTargetOfTarget - with green health
* Added new template LifeRaidFrame1 - with green health
* Added new template LifeRaidFrameCallingColor - with calling color health
* Added cast bar to all unit frame
* Changed color level, now it's look like standart frame
* Changed color name, now it's look like standart frame
* Added icon boss on unit frame when target/focus, now it's look like standart frame
* Added icon mentor level on unit frames, now it's look like standart frame

v0.5.51

Added new texture pack from WoW SharedMedia (all of them can colorize). Change menu for texture select.(Now you can select texture by using keys up/down on your keybord)
Some VirtualProperty move from Lifeismystery frames
Fixed Vitality in DataTexBar

v0.5.4

Change RangeFinder:

Add options Small Font, Change font color.

Change XPBar:

Fixed bug with wrong illustration reputation bar when text off.
Add options: Change bar color, Change bar Texture, Change background bar in Transparent background.

v0.5.3

Change Fraction Panel:

Added option to tracks specific fraction reputation
Added option to change bar texture
Added option to change bar color
Added option to change background bar color
Added option to unshow background frame
Added option to doing Transparent background frame

Update which could manage and show the life % debuff(HealthCap)
fix bug: After i doing reloadui in raid i can't target any unit. When i moving mouse on unit i see tooltip, but when i do left click nothing happens, unit cant selected. Only logout help me, or teleporting or die.
Fix Gadgets bug affecting gadgets:outfitter
fix HealthCap

v0.5.1
fix DataTextBar_name/desc
v0.5.1
Author: lifeismystery
Change cast bar:
Add :Checkbox("TransparentCastBar", "Transparent cast bar", false) - doing Transparent cast bar
Add :Checkbox("Border", "Show cast bar border", false) - it make visible cast bar border
Add :Checkbox("largeCastFont", "Larger cast font", false) - doing Larger cast font
Add outline font

Add new gadget - DataTextBar
- This gadget displays DataText bar with FRS, CPU, Planar charge, Soul vitality, Money and button 'ReloadUI'

v0.4.92
Author: lifeismystery
Added possibility save, load and delete your profiles.
How to save, load and delete your profiles you can see on my video guide http://www.youtube.com/watch?v=Tr7bcidyFv8&;

Author: Adelea
Convert frame events: KeyDown, TextfieldChange, ScrollbarChange, Size
Convert all button LeftPress
Convert all frame UpOutside
Convert all frame MouseIn MouseOut MouseMove WheelForward WheelBack
Convert all frame Mouse4Down + Mouse5Down
Convert all frame RightDown + MiddleDown
Convert all frame RightClick
Convert all frame LeftUp
Convert all frame LeftDown
Convert all frame LeftClick

v0.3.104
- Updated range finder to use built in range calculation
- Altered range property to take radius into account
- Increased frequency of range calculation
- Updates to cast bar to add option for small cast time text
- Added mask to cast bar so that spell names are cut off before timer
- Added Adelea's gradient textures

v0.3.103
- Stored the owning addon for each registered Gadget so that calls can be dispatched. Fixed nil element id error in resizable code.
- Fixed rename issue with adCastbar -> Castbar

v0.3.102
- Added Adelea's updates to castbar and XP bar gadgets
- Updated to latest version of LibSimpleWidgets
- Updated LibUnitChange's toc
- Updated to latest LibUnitChange
- Removed list of Gadgets on initialisation
- Fixed incorrectly sized role icon on standard frame
- Removed spurious debug message when enabling an animation
- Fixed scaling in ImageSet when height/width set
Optional Files (0)


Archived Files (51)
File Name
Version
Size
Author
Date
0.11
5MB
Wildtide
05-26-18 04:46 PM
0.10.19
10MB
Wildtide
05-13-18 01:09 PM
0.10.17
10MB
Wildtide
08-20-16 07:16 AM
0.10.16
10MB
Wildtide
12-27-15 06:44 AM
0.10.15
10MB
Wildtide
12-26-15 07:50 AM
0.10.9
10MB
Wildtide
11-30-15 02:10 AM
0.10.8
10MB
Wildtide
10-04-15 01:49 PM
0.10.7
10MB
Wildtide
08-30-15 11:35 AM
0.10.2
9MB
Wildtide
07-20-15 02:05 PM
0.10.0
9MB
Wildtide
07-18-15 02:49 AM
0.8.6
8MB
Wildtide
05-12-15 07:00 AM
0.8.5
8MB
Wildtide
05-05-15 05:28 AM
0.8.4
8MB
Wildtide
04-22-15 05:59 AM
0.8.3
8MB
Wildtide
04-10-15 01:52 AM
0.8.2
8MB
Wildtide
04-09-15 06:12 AM
0.8.0
6MB
Wildtide
04-08-15 01:30 PM
0.7.2
4MB
Wildtide
12-07-14 03:05 AM
0.7.1
4MB
Wildtide
10-22-14 12:26 PM
0.7.0
4MB
Wildtide
10-22-14 09:10 AM
0.6.3
4MB
Wildtide
06-24-14 12:32 AM
0.6.2
4MB
Wildtide
05-04-14 10:09 AM
0.6.0
4MB
Wildtide
05-01-14 11:13 PM
0.5.91
4MB
Wildtide
01-03-14 11:31 AM
0.5.9
4MB
Wildtide
01-03-14 09:22 AM
0.5.7
4MB
Wildtide
12-01-13 03:04 AM
0.5.61
4MB
Wildtide
11-08-13 04:28 AM
0.5.6
4MB
Wildtide
11-03-13 02:45 AM
0.5.51
4MB
Wildtide
10-16-13 06:11 AM
0.5.4
4MB
Wildtide
10-06-13 03:37 AM
0.5.3
4MB
Wildtide
10-01-13 02:39 PM
0.5.2
4MB
Wildtide
09-23-13 01:21 AM
0.5.1
4MB
Wildtide
09-22-13 11:58 PM
0.4.92
4MB
Wildtide
09-17-13 01:25 PM
0.4.8
3MB
Wildtide
07-04-13 05:39 PM
0.4.7
3MB
Wildtide
07-04-13 02:44 PM
0.4.6
3MB
Wildtide
06-21-13 03:37 PM
0.4.5
3MB
Wildtide
06-17-13 11:56 AM
0.4.4
3MB
Wildtide
06-16-13 05:45 PM
0.4.3
3MB
Wildtide
06-15-13 06:02 AM
0.4.2-beta
3MB
Wildtide
06-15-13 03:11 AM
0.4.1-beta
3MB
Wildtide
06-14-13 12:25 AM
0.4.0-beta
3MB
Wildtide
06-13-13 05:17 PM
0.3.104
3MB
Wildtide
03-15-13 02:29 AM
0.3.103
3MB
Wildtide
03-12-13 12:40 PM
0.3.102
3MB
Wildtide
03-11-13 04:58 PM
0.3.101
3MB
Wildtide
03-06-13 02:35 AM
0.3.100
3MB
Wildtide
02-28-13 06:17 PM
0.3.99
3MB
Wildtide
02-28-13 02:24 AM
0.3.98
3MB
Wildtide
02-18-13 03:25 AM
0.3.97
3MB
Wildtide
02-18-13 02:19 AM
0.3.96
3MB
Wildtide
02-16-13 03:34 AM


Post A Reply Comment Options
Unread 05-30-13, 02:14 PM  
Rieksts

Forum posts: 0
File comments: 2
Uploads: 0
Re: Combos

Quote:
Originally Posted by phider
I seem to be able to assign a spell/ability to a mouse button, but how do I assign a spell/ability to a mouse + function key combination, e.g. CTRL + Left Mouse button? I have tried to find macro examples on the net, but have not been able to.
You can do that with macro.

Only problem is that if, for example, I Shify+click and Healing Torrent is on CD it will cast Bloom. There is no /stopmacro option in rift yet
Rieksts is offline Report comment to moderator  
Reply With Quote
Unread 05-30-13, 01:52 PM  
phider

Forum posts: 0
File comments: 5
Uploads: 0
Combos

Hi. Coming from having played World of Warcraft for many oh' years, I finally discovered this fantastic add-on, which provide Raid Frames with click healing functionality - something which have been a real turn off, having been used to the add-on composition of Clique, Perl Classic Raid Frames and Grid. And very nicely and cleanly implemented too!

Everytime I have asked for these abilities, many people keep referring to mouseover macros, and obviously don't understand the difference between mouseover macros and click healing.

With Raid Frames made available in Gadgets, I am very close to something that fits my playstyle, with one minor detail that makes a huge impact on me.

I seem to be able to assign a spell/ability to a mouse button, but how do I assign a spell/ability to a mouse + function key combination, e.g. CTRL + Left Mouse button? I have tried to find macro examples on the net, but have not been able to.

Any guidance would be greatful.

Rumpel
Last edited by phider : 05-30-13 at 02:11 PM.
phider is offline Report comment to moderator  
Reply With Quote
Unread 05-28-13, 09:35 PM  
Rieksts

Forum posts: 0
File comments: 2
Uploads: 0
Would it be possible to reduce the CPU consumption of this addon if its refresh/redraw rate would be adjustable like "MyUI" and WoW addon "healbot"?
I am not very familiar with LUA, but a slider or some guidelines what to edit in LUA code would be very nice.
Rieksts is offline Report comment to moderator  
Reply With Quote
Unread 05-25-13, 06:52 PM  
Wildtide
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 155
Uploads: 6
Re: High CPU usage in Raids

Quote:
Originally Posted by Dajova
I have noticed a considerable high cpu usage in raids when using the Gadgets raidframes.
When joining a raid with 10+ ppl, the addon usage spikes sometimes at 30-40%. This should not happen, since anything above 15% causes huge FPS loss.
Hope you have taken this into consideration whenever you're gonna update the mod
I have noticed some quite high CPU% numbers recently myself - it seems to have gone up a bit without me changing anything at all, which is odd.

Gadgets is actually getting a completely new raid frame soon. The existing one based on templates is too limited for most people (including me!), so I've put together something a lot more flexible. The CPU usage should also be lower, as I have more options for speeding things up.
Wildtide is offline Report comment to moderator  
Reply With Quote
Unread 05-25-13, 06:48 PM  
Wildtide
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 155
Uploads: 6
Re: defiler beacon

Quote:
Originally Posted by Darkforge
- I am having issues with the pet unit frame when I summon defiler beacons.
I'll hop on my defiler and try this out, I haven't played him for a while

Beacons are odd, they're not proper pets in the way other callings are (no rename, etc). I assume there's something odd in the data we get, though I've not seen this previously so maybe something has changed.
Wildtide is offline Report comment to moderator  
Reply With Quote
Unread 05-25-13, 10:27 AM  
Dajova
Zombie
 
Dajova's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 6
Uploads: 2
High CPU usage in Raids

I have noticed a considerable high cpu usage in raids when using the Gadgets raidframes.
When joining a raid with 10+ ppl, the addon usage spikes sometimes at 30-40%. This should not happen, since anything above 15% causes huge FPS loss.
Hope you have taken this into consideration whenever you're gonna update the mod
__________________


Twitter | Facebook | YouTube
Dajova is offline Report comment to moderator  
Reply With Quote
Unread 05-24-13, 08:02 AM  
Darkforge

Forum posts: 0
File comments: 10
Uploads: 0
defiler beacon

- I am having issues with the pet unit frame when I summon defiler beacons.
sometimes it will work fine but then after a bit and cant tell if specific action or not as of yet .. the unit frame will do one of two things .. either gray out as if no pet (sometimes even showing one buff -from toon) and become unclickable as if no pet .. or .. will show the beacon for a bit but will act as if nothing is there .meaning unclickable as if no pet summoned..still having original buffs but not showing health dropping or debuffs.
---this only seems to be with the defiler beacon pet unit frame only. I have not tried other pet class' however so im not sure if its universal or just with beacon. I have not noticed an issue (yet) so not sure 100% but seems to work fine with it shows up in target.focus unit frames .. but til its hit and that shows up there are many times I cannot heal/buff the pet beacon.
----I have tried multiple times to: dismiss and resummon beacon .. the reloadui ...to log in /out . and to delete pet unit frame and add it back. Sometimes it will bring beacon back .but then after bit (and sometimes immediately) it will have the same issues stated above.

please help my poor beacon show back 100% time .. my defiler is feeling lonely without it)

Thank you
Darkforge is offline Report comment to moderator  
Reply With Quote
Unread 05-18-13, 02:17 PM  
Wildtide
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 155
Uploads: 6
Quote:
Originally Posted by retsopmi
Is there a way to change the color of the unit frame health bars? The green is very annoying and I can only get it to go blue or yellow by changing the texture.
Sorry, there isn't a way at the moment. There should be, but due to slight technical difficulties due to dynamic colouring on some unit frames, I haven't done this yet.

If you don't mind editing the templates, you could alter the settings directly for now.

Look in:

Gadgets/wtLibUnitFrame/templates/

Find the template you want to alter, e.g. StandardFrame.lua, and edit it using something like Notepad++.

In there, you'll find a section that looks like:

Code:
{
	id="barHealth", type="Bar", parent="frameBackdrop", layer=10,
	attach = {
		{ point="TOPLEFT", element="frame", targetPoint="TOPLEFT", offsetX=1, offsetY=1 },
		{ point="BOTTOMRIGHT", element="barResource", targetPoint="TOPRIGHT" },
	},
	growthDirection="right",
	binding="healthPercent", color={r=0,g=0.7,b=0,a=1}, 
	texAddon=AddonId, texFile="img/Diagonal.png", 
	backgroundColor={r=0, g=0, b=0, a=1},
	colorBinding = "taggedColor",
},
You can see the color={...} bit, with the levels of red, green and blue to use. Simply alter those values.

E.g. {r=1, g=0, b=0} would result in bright red health bars.
Wildtide is offline Report comment to moderator  
Reply With Quote
Unread 05-18-13, 02:13 PM  
Wildtide
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 155
Uploads: 6
Quote:
Originally Posted by Dajova
Is there a way to delete profiles? Tried to find it, but unsuccessful... :/
Unfortunately there isn't a friendly way yet. You can edit your saved variables file to remove old profiles.

The file you'd need to edit is:

/Interface/Saved/<account>/SavedVariables/wtLibGadget.lua

In there, you'll find a section starting:

wtxLayouts = {
["[email protected]"]= {
....Lots of lines...
},

You could removed the lines from the ["[email protected]] bit to the closing }, line for each profile you want to remove.

I will look at adding some profile management. I've got the same problem myself - having a lot of alts and moving servers means my own list is huge.
Wildtide is offline Report comment to moderator  
Reply With Quote
Unread 05-15-13, 03:07 PM  
retsopmi

Forum posts: 0
File comments: 1
Uploads: 0
Is there a way to change the color of the unit frame health bars? The green is very annoying and I can only get it to go blue or yellow by changing the texture.
retsopmi is offline Report comment to moderator  
Reply With Quote
Unread 05-14-13, 07:02 AM  
Dajova
Zombie
 
Dajova's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 6
Uploads: 2
Is there a way to delete profiles? Tried to find it, but unsuccessful... :/
__________________


Twitter | Facebook | YouTube
Dajova is offline Report comment to moderator  
Reply With Quote
Unread 03-28-13, 07:59 AM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 285
Uploads: 6
Quote:
Originally Posted by Bard
The cast @focus is only of concern in PvP, I'm more interested in PvE and since mobs don't have the concept of a focus (at least I assume they don't) I wouldn't mind seeing the target of the current spell in the castbar.
If all you want is castbar + ownerofcastbar.target, then try this:

http://www.exyles.com/addons/wtCastbarGadget.lua

Save as... And overwrite the one in your Addons\Gadgets folder.

This puts the target in the bottom left.

Oh, you will also need to use the modify gadget options to get to the config screen, and tick the 'show target' checkbox.
Last edited by adelea : 03-28-13 at 08:00 AM.
adelea is offline Report comment to moderator  
Reply With Quote
Unread 03-27-13, 05:14 PM  
Bard
 
Bard's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Quote:
Originally Posted by adelea
Quote:
Originally Posted by Bard
Could I make a suggestion for the Cast Bar gadget:

Have the target of the cast rendered as well as the name of the ability, e.g.,

Fireball on Zazen
I dont think that is actually possible (at least reliably).

The castbar details, has no member indicating who it is being cast on.

Now, you could go off of the target of the owner of the castbar - but if they cast

cast @focus spell

Then as far as I can see, you couldnt retrieve this information. Once the spell lands, and does damage or applies a buff/debuff, you can get this information - but whilst it is being cast, it doesnt seem available.
The cast @focus is only of concern in PvP, I'm more interested in PvE and since mobs don't have the concept of a focus (at least I assume they don't) I wouldn't mind seeing the target of the current spell in the castbar.
__________________
Bard [formerly Zazen]
Bard is offline Report comment to moderator  
Reply With Quote
Unread 03-26-13, 02:56 PM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 285
Uploads: 6
OK - doesnt quite work right - sometimes it gets set for no apparant reason!

EDIT: Further investigation reveals it is probably not working due to a bug in the Rift API!

EDIT2: Updated below post with code that has a workaround for the API bug.

EDIT3: After running some dungeons, this still wasnt quite right, and some odd behaviour was still seen.

Adding this appears to have fixed it (so far!)

Code:
local function Event_Unit_Detail_HealthCap(h, u)
	local ud = Inspect.Unit.Detail(u)
	for k,v in pairs(ud) do
		if WT.Units[k] then
			WT.Units[k].healthCap = v.healthCap
		end
	end
end

Command.Event.Attach(Event.Unit.Detail.HealthCap, Event_Unit_Detail_HealthCap, "Event.Unit.Detail.HealthCap", -20)
This basically adds another event handler for the HealthCap event, but one that runs at a lower priority - so it runs after Gadgets' handler, and this one then checks each unit and overrides as needed.

I could have fixed this is gadgets\wtLibUnitDatabase - but its sort of a workaround, and hopefully the API gets fixed making it unnecessary.
Last edited by adelea : 03-27-13 at 02:48 AM.
adelea is offline Report comment to moderator  
Reply With Quote
Unread 03-26-13, 01:19 PM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 285
Uploads: 6
Quote:
Originally Posted by Popko
Is there any chance that the unit frames will add a reduced HP monitor thing. So that you can see when players max HP is reduced(such as in the Grugonim/Regulos fights)?
Something like this:

Add this to your template file:

Code:
		{
			id="barCapped", type="Bar", parent="frameBackdrop", layer=15,
			attach = {
				{ point="TOPLEFT", element="barHealth", targetPoint="TOPLEFT" },
				{ point="BOTTOMRIGHT", element="barHealth", targetPoint="BOTTOMRIGHT" },
			},
			growthDirection="left",
			binding="cappedPercent",
			visibilityBinding="healthCap", color={r=1, g=0.5, b=0, a=1}
		},
And this to the end of the template file:

Code:
if WT.Unit.VirtualProperties["cappedPercent"] == nil then
	WT.Unit.CreateVirtualProperty("cappedPercent", {"healthCap", "health", "healthMax"}, function(unit)
		if unit.health and unit.healthCap and unit.healthCap > 0 and unit.healthMax and unit.healthMax > 0 and unit.healthCap ~= unit.healthMax then
			return (1-(unit.health / unit.healthCap)) * 100
		else
			return 0
		end
	end)
end
I also added properties to update the texts to show capped and noncapped values when in effect, and updated the relevant text="" section of the UF:

Code:
if WT.Unit.VirtualProperties["cappedPercentLab"] == nil then
	WT.Unit.CreateVirtualProperty("cappedPercentLab", {"healthCap", "health", "healthMax"}, function(unit)
		if unit.healthCap == nil then
			if unit.health and unit.healthMax and unit.healthMax > 0 then
				return string.format("%d%%%%", (unit.health/unit.healthMax)*100)
			else
				return nil
			end
		else
			if unit.health and unit.healthCap and unit.healthCap > 0 and unit.healthMax and unit.healthMax > 0 then
				if unit.healthCap == unit.healthMax then
					return string.format("%d%%%%", (unit.health/unit.healthMax)*100)
				else
					return string.format("%d%%%% [%d%%%%]", (unit.health/unit.healthCap)*100, (unit.health/unit.healthMax)*100)
				end
			else
				return nil
			end		
		end
	end)
end

if WT.Unit.VirtualProperties["cappedHealth"] == nil then
	WT.Unit.CreateVirtualProperty("cappedHealth", {"healthCap", "health", "healthMax"}, function(unit)
		if unit.healthCap == nil then
			if unit.health and unit.healthMax and unit.healthMax > 0 then
				return string.format("%s/%s", WT.Utility.NumberComma(unit.health), WT.Utility.NumberComma(unit.healthMax))
			else
				return nil
			end
		else
			if unit.health and unit.healthCap and unit.healthCap > 0 and unit.healthMax and unit.healthMax > 0 then
				if unit.healthCap == unit.healthMax then
					return string.format("%s/%s", WT.Utility.NumberComma(unit.health), WT.Utility.NumberComma(unit.healthMax))
				else
					return string.format("%s/%s [%s]", WT.Utility.NumberComma(unit.health), WT.Utility.NumberComma(unit.healthCap), WT.Utility.NumberComma(unit.healthMax))
				end
			else
				return nil
			end		
		end
	end)
end
This then gives me:



The top UF is my custom UF, the bottom one is the standard template.

Not tested in a raid, but simulated with:

/script local p =Inspect.Unit.Lookup("player") WT.Units[p].healthCap = 20000 WT.Units[p].health = 12000

Note: This also assumes that healthMax stays at whatever the max is, health is your current HP, that just never goes above healthCap.
Last edited by adelea : 03-26-13 at 04:47 PM.
adelea is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: