Download
(3 MB)
Download
Updated: 03-15-13 02:29 AM
Pictures
File Info
Updated:03-15-13 02:29 AM
Created:05-04-12 03:55 PM
Downloads:10,382
Favorites:70
MD5:
Gadgets  Popular! (More than 5000 hits)
Version: 0.3.104
by: Wildtide [More]
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.


Included Gadgets
  1. Charge Meter
  2. Cast Bar
  3. Combo Points
  4. CPU Monitor
  5. DPS:Encounter Indicator (new)
  6. DPS:Live Indicator (new)
  7. FPS Monitor
  8. Group Frames
  9. HUD Arcs
  10. Planar Charges
  11. Raid Frames
  12. Range Finder
  13. Reload UI
  14. Soul Vitality
  15. Unit Frame
  16. XP Bar (new)
  17. XP Indicator (new)

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!).


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.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 (8)
File Name
Version
Size
Author
Date
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 01:35 AM
0.3.100
3MB
Wildtide
02-28-13 05:17 PM
0.3.99
3MB
Wildtide
02-28-13 01:24 AM
0.3.98
3MB
Wildtide
02-18-13 02:25 AM
0.3.97
3MB
Wildtide
02-18-13 01:19 AM
0.3.96
3MB
Wildtide
02-16-13 02:34 AM


Post A Reply Comment Options
Old 05-18-13, 02:17 PM  
Wildtide
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 123
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
Old 05-18-13, 02:13 PM  
Wildtide
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 123
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 = {
["Character@Server"]= {
....Lots of lines...
},

You could removed the lines from the ["Character@] 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
Old 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
Old 05-14-13, 07:02 AM  
Dajova
Zombie
 
Dajova's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 4
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
Old 03-28-13, 07:59 AM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 217
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
Old 03-27-13, 05:14 PM  
Bard
 
Bard's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 40
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.
__________________
Zazen
Bard is offline Report comment to moderator  
Reply With Quote
Old 03-26-13, 02:56 PM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 217
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
Old 03-26-13, 01:19 PM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 217
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
Old 03-25-13, 05:27 PM  
Popko

Forum posts: 0
File comments: 2
Uploads: 0
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)?
Popko is offline Report comment to moderator  
Reply With Quote
Old 03-23-13, 09:43 AM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 217
Uploads: 6
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.
adelea is offline Report comment to moderator  
Reply With Quote
Old 03-22-13, 10:58 AM  
Bard
 
Bard's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 40
Uploads: 1
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
__________________
Zazen
Bard is offline Report comment to moderator  
Reply With Quote
Old 03-16-13, 08:59 AM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 217
Uploads: 6
I wanted to add something to my custom raidframes...

So I went the route of a new VP - but couldnt figure out how to add it to gadgets, so I thought, "lets try just setting it and see what happens..."

Code:
WT.Unit.CreateVirtualProperty("AdeleaRFStatus", {"dead", "offline", "health", "soulwalk"}, ...
and elsewhre

Code:
WT.Units[u].soulwalk = true
And wow, it worked - I was expecting that I would need to modify some code somewhere to look for and act on the new 'soulwalk' VP tag, but no!

The more I use gadgets the more I love it -- thank you Wild =)
adelea is offline Report comment to moderator  
Reply With Quote
Old 03-15-13, 02:31 AM  
Wildtide
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 123
Uploads: 6
Adelea's textures are now included, and I've added a tick box option to let you choose between the default large timer text, and Adelea's smaller bottom right text.
Wildtide is offline Report comment to moderator  
Reply With Quote
Old 03-14-13, 04:22 PM  
Omenpapa

Forum posts: 0
File comments: 32
Uploads: 0
Ye, we shouldnt continue this here probably :P Sent u a pm.
Omenpapa is offline Report comment to moderator  
Reply With Quote
Old 03-14-13, 04:05 PM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 217
Uploads: 6
Quote:
Originally Posted by Omenpapa
I know nothing about lua tbh, so it is possible that what u said is right, but it isnt working for me, at least what i tried. I did comment out the old code with castname, and pasted urs under that, so it lookslike this:

Which gives me this:

Error: Gadgets/wtCastbarGadget.lua:104: ')' expected (to close '(' at line 96) near 'end'
In Gadgets / wtCastbarGadget.lua
Move the property definition to the end of the file, so its not in the middle of the layout configuration.

-- Apologies to Wild for hijacking his gadgets thread!
Last edited by adelea : 03-14-13 at 04:05 PM.
adelea is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: