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:48,880
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 02-03-13, 05:53 AM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 285
Uploads: 6
And one more! Am I using Gadgets functionality that noone else is? =P

WT.Control.ComboBox.Create(parent, label, default, listItems, sort, onchange)

The onchange function only seems to get fired when the Gadget configuration window is opened. Choosing something else in the list updates the text, but doesnt fire the onchange function.

I've tracked this down to:

Code:
local menu = WT.Control.Menu.Create(parent, listItems, function(value) tfValue:SetText(value) end, sort)
Here you update the text field directly, but the onchange handler is based around the control:SetText()

Changing the above to:

Code:
local menu = WT.Control.Menu.Create(parent, listItems, function(value) control:SetText(value) end, sort)
Gives what I think is the intended behaviour.

Also - would it be possible to put a reference to the menu, or menu.items in the control ?

I am implementing a font selection window and would like to do a :SetFont on all the menu items. Right now, I have cloned WT.Control.Menu.Create, and after creating the menu I iterate over menu.items and act on those.

If the menu/menu.items was available on the control, I could use that instead.

This is my particular need right now, but I'm sure in the future others may also want to access the menu items. Maybe =P
Last edited by adelea : 02-03-13 at 07:16 AM.
adelea is offline Report comment to moderator  
Reply With Quote
Unread 02-03-13, 05:00 AM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 285
Uploads: 6
And another thing =)

There doesnt seem to be (that I can see) a way of retrieving all the fonts added?

So, there is no way of giving the user a chance to choose which font they may want to use to display things.

I have added a simple function to my working copy of wtLibMedia\wtMediua:

Code:
function Library.Media.ListFonts()
	return fonts
end
But obviously I cant release any addons that use this, since noone else would have the function.
adelea is offline Report comment to moderator  
Reply With Quote
Unread 02-01-13, 12:44 PM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 285
Uploads: 6
In wtUnitDatabase.lua / CalculateRanges() you calculate range...

But you dont store it anywhere - is this intentional or an oversight?

I have several Gadgets that calculate range/distance.

If CalculateRanges() stored it, then that would cut down on a number of calculations that I end up doing over and over.

You dont need to store the actual range, the square of it as you calculate right now would be enough (+ the radius diff)

Then other gadgets could pick up .rangeSqr and use as appropriate - and cut down on a number of calculations.
adelea is offline Report comment to moderator  
Reply With Quote
Unread 01-28-13, 10:38 AM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 285
Uploads: 6
Ive modified your XP bar gadget a bit.

It is selectable to show XP, PA XP or Prestige. I've also added a colorpicker to it.

Not sure if you want to take a look, and possibly include.

Code:
--[[
                                G A D G E T S
      -----------------------------------------------------------------
                            [email protected]
                           DoomSprout: Rift Forums 
      -----------------------------------------------------------------
      Gadgets Framework   : v0.3.95
      Project Date (UTC)  : 2013-01-07T20:57:01Z
      File Modified (UTC) : 2013-01-04T22:17:01Z (Wildtide)
      -----------------------------------------------------------------     
--]]

local toc, data = ...
local AddonId = toc.identifier
local TXT = Library.Translate

local XBG = {}

-- wtXPPercent Gadget - a simple % display of current XP

local xpGadgets = {}
local paGadgets = {}
local prGadgets = {}

local prDetails = nil
local paDetails = nil

local iconRestedAddon = "Rift"
local iconRestedFile = "indicator_friendlyNPC.png.dds"

function XBG.OnPAChange(accum)
	if not accum then return end
	if paDetails == nil then
		paDetails = Inspect.Attunement.Progress()
	end
	if paDetails.needed == nil then
		for idx, gadget in ipairs(paGadgets) do
			gadget.bar:SetPoint("BOTTOMRIGHT", gadget, 1.0, 1.0)
			if gadget.text then
				gadget.text:SetText(string.format("MAX Planar Attunement Points: %d", paDetails.available+paDetails.spent))
			end
		end
	else
		local percent = (accum / paDetails.needed) * 100
		local percentRested = 0
		if paDetails.rested and paDetails.rested > accum then percentRested = (paDetails.rested / paDetails.needed) end

		for idx, gadget in ipairs(paGadgets) do
			gadget.bar:SetPoint("BOTTOMRIGHT", gadget, accum / paDetails.needed, 1.0)
			if percentRested > 0 then
				if gadget.barRested then
					gadget.barRested:SetPoint("BOTTOMRIGHT", gadget, percentRested, 1.0)
					gadget.barRested:SetVisible(true)
				end
			else
				if gadget.barRested then gadget.barRested:SetVisible(false) end
			end		
			if gadget.text then
				local unspent = ""
				if paDetails.available then
					unspent = string.format("[%d] ", paDetails.available)
				end
				if gadget.textType then
					gadget.text:SetText(string.format("[PA#: %d] %s/%s %s(%.2f%%)", paDetails.spent+paDetails.available+1, WT.Utility.NumberComma(accum), WT.Utility.NumberComma(paDetails.needed), unspent, percent))
				else
					gadget.text:SetText(string.format("[PA#: %d] %s/%s %s(%.2f%%)", paDetails.spent+paDetails.available+1, WT.Utility.NumberDesc(accum), WT.Utility.NumberDesc(paDetails.needed), unspent, percent))
				end
			end
		end
	end
end

function XBG.PAPtChange()
	paDetails = Inspect.Attunement.Progress()
	XBG.OnPAChange(paDetails.accumulated)
end

function XBG.OnPrestige(accum)
	if not accum then return end
	if prDetails == nil then
		prDetails = Inspect.Pvp.Prestige()
		if prDetails.rank == 1 and prDetails.needed == nil and accum==0 then
			prDetails.needed=1
		end
	end
	
	local percent = (accum/prDetails.needed) * 100
	for idx, gadget in ipairs(prGadgets) do
		gadget.bar:SetPoint("BOTTOMRIGHT", gadget, accum/prDetails.needed, 1.0)
		if gadget.text then
			if gadget.textType then
				gadget.text:SetText(string.format("[Rank: %d] %s/%s (%.2f%%)", prDetails.rank, WT.Utility.NumberComma(accum), WT.Utility.NumberComma(prDetails.needed), percent))
			else
				gadget.text:SetText(string.format("[Rank: %d] %s/%s (%.2f%%)", prDetails.rank, WT.Utility.NumberDesc(accum), WT.Utility.NumberDesc(prDetails.needed), percent))
			end
		end
	end
end

function XBG.RankChange()
	prDetails = Inspect.Pvp.Prestige()
	XBG.OnPrestige(prDetails.accumulated)	
end

function XBG.OnExperience(accum, rested, needed)
	if not accum then return end
	
	local pLevel = Inspect.Unit.Detail("player").level
	
	if needed == -1 then
		for idx, gadget in ipairs(xpGadgets) do
			gadget.bar:SetPoint("BOTTOMRIGHT", gadget, 1.0, 1.0)
			if gadget.text then
				gadget.text:SetText(string.format("MAX Level: %d", pLevel))
			end
		end
	else
		local percent = (accum / needed) * 100
		
		local percentRested = 0
		if rested and rested > accum then percentRested = (rested / needed) end
		
		local percentString = string.format("%i", math.floor(percent)) .. "%"
		for idx, gadget in ipairs(xpGadgets) do
			gadget.bar:SetPoint("BOTTOMRIGHT", gadget, accum / needed, 1.0)
			if percentRested > 0 then
				if gadget.barRested then
					gadget.barRested:SetPoint("BOTTOMRIGHT", gadget, percentRested, 1.0)
					gadget.barRested:SetVisible(true)
				end

				gadget.iconRested:SetPoint("TOPCENTER", gadget, percentRested, 1.0, 0, -18)
				-- gadget.iconRested:SetVisible(true)
				-- Icon doesn't look right yet, will fix later
			else
				if gadget.barRested then gadget.barRested:SetVisible(false) end
				gadget.iconRested:SetVisible(false)
			end
			if gadget.text then
				if gadget.textType then
					gadget.text:SetText(string.format("[Level: %d] %s/%s (%.2f%%)", pLevel, WT.Utility.NumberComma(accum), WT.Utility.NumberComma(needed), percent))
				else
					gadget.text:SetText(string.format("[Level: %d] %s/%s (%.2f%%)", pLevel, WT.Utility.NumberDesc(accum), WT.Utility.NumberDesc(needed), percent))
				end
			end
		end
	end
end


function XBG.Create(configuration)
	local wrapper = UI.CreateFrame("Texture", WT.UniqueName("wtXP"), WT.Context)
	wrapper:SetWidth(512)
	wrapper:SetHeight(15)
	wrapper:SetTexture("Gadgets", "img/wtXPBar.tga")

	local bar = UI.CreateFrame("Frame", WT.UniqueName("wtXP"), wrapper)
	bar:SetPoint("TOPLEFT", wrapper, "TOPLEFT")
	bar:SetPoint("BOTTOMRIGHT", wrapper, 0.5, 1.0)
	wrapper.bar = bar
	
	if configuration.xpType == nil then
		configuration.xpType = "XP"
	end
	
	if configuration.colBar == nil then
		configuration.colBar = {0,0.8,0,0.4}
	end
	
	bar:SetBackgroundColor(unpack(configuration.colBar))

	if configuration.tintRested then
		local barRested = UI.CreateFrame("Frame", WT.UniqueName("wtXPRested"), wrapper)
		barRested:SetPoint("TOPLEFT", bar, "CENTERRIGHT")
		barRested:SetPoint("BOTTOMRIGHT", wrapper, 0.5, 1.0)
		barRested:SetBackgroundColor(0.0,0.6,0.0,0.2)
		barRested:SetVisible(false)
		wrapper.barRested = barRested
	end

	local rested = UI.CreateFrame("Texture", "texRested", bar)
	rested:SetPoint("TOPCENTER", wrapper, "BOTTOMLEFT", 0, -18)
	rested:SetTexture(iconRestedAddon, iconRestedFile)
	rested:SetVisible(false)
	wrapper.iconRested = rested
	
	if configuration.showText then
		local txt = UI.CreateFrame("Text", WT.UniqueName("wtXP"), bar)
		txt:SetFontColor(1,1,1,1)
		txt:SetPoint("CENTER", wrapper, "CENTER")
		txt:SetText("-/- (0%)")
		wrapper.textType = configuration.showFullText
		wrapper.text = txt
		bar.Event.Size = 
			function()
				txt:SetFontSize(bar:GetHeight() * 0.9)
			end
	end

	if configuration.xpType == "XP" then
		table.insert(xpGadgets, wrapper)
	elseif configuration.xpType == "PAXP" then
		table.insert(paGadgets, wrapper)
	elseif configuration.xpType == "PRXP" then
		table.insert(prGadgets, wrapper)
	end

	return wrapper, { resizable={100, 8, 1500, 40 } }	
end

local dialog = false

function XBG.ConfigDialog(container)	
	dialog = WT.Dialog(container)
		:Label("Resizable XP Bar Gadget")
		:Checkbox("showText", "Show Text", false)
		:Checkbox("showFullText", "Show Full XP Values", false)
		:Checkbox("tintRested", "Tint Rested XP on Bar", false)
		:Combobox("xpType", "XP Type", "XP",
			{
				{text="XP", value="XP"},
				{text="PA XP", value="PAXP"},
				{text="Prestige", value="PRXP"}
			})
		:ColorPicker("colBar", "Bar Color", 0, 0.8, 0, 0.4)
end

function XBG.GetConfiguration()
	return dialog:GetValues()
end

function XBG.SetConfiguration(config)
	dialog:SetValues(config)
end

WT.Gadget.RegisterFactory("adXPBar",
	{
		name="adXP Bar",
		description="XP Bar",
		author="Wildtide",
		version="1.0.0",
		["Create"] = XBG.Create,
		["ConfigDialog"] = XBG.ConfigDialog,
		["GetConfiguration"] = XBG.GetConfiguration, 
		["SetConfiguration"] = XBG.SetConfiguration, 
	})

function XBG.OnPlayerAvailable()
	XBG.OnExperience(Inspect.TEMPORARY.Experience())
	XBG.OnPrestige(Inspect.Pvp.Prestige().accumulated or 0)
	XBG.OnPAChange(Inspect.Attunement.Progress().accumulated or 0)	
end

table.insert(Event.TEMPORARY.Experience, { XBG.OnExperience, AddonId, "OnExperienceBar" })
table.insert(WT.Event.PlayerAvailable, {XBG.OnPlayerAvailable, AddonId, "XPBarGadget_OnPlayerAvailable"})	
table.insert(Event.Pvp.Prestige.Accumulated,{XBG.OnPrestige, AddonId, "Event.Pvp.Prestige.Accumulated"})
table.insert(Event.Pvp.Prestige.Rank, { XBG.RankChange, AddonId, "Event.Pvp.Prestige.Rank"})
table.insert(Event.Attunement.Progress.Accumulated, { XBG.OnPAChange, AddonId, "Inspect.Attunement.Progress" })
table.insert(Event.Attunement.Progress.Available, { XBG.PAPtChange, AddonId, "Event.Attunement.Progress.Available" })
Last edited by adelea : 02-02-13 at 07:55 AM.
adelea is offline Report comment to moderator  
Reply With Quote
Unread 01-14-13, 05:32 PM  
shiftersnipe

Forum posts: 0
File comments: 2
Uploads: 0
Re: Re: Addon idea?

Quote:
A notoriety bar should be fairly simple. It would be a combination of the existing notoriety tracker, and the XP bar. I've got quite a few things to do, but I'll add it to the list.

At the moment, no, there isn't a way to change the text size. When I eventually get the alternative frames complete, this will be possible.

The class is shown differently depending on the frames you're using. For the standard raid frames, the HP bar is coloured by class. For Octanus, the resource bar is coloured by class, and in the Heal Frames, the unit's name is coloured by class.

For raid/group frames, I really would recommend that the Heal Frame template is used. It adds new functionality to show out of range units as well as turning the HP bar purple if a unit needs a cleanse. At the moment, the unit's name is limited to only 5 characters, but I will address this.
Awesome, thanks!
shiftersnipe is offline Report comment to moderator  
Reply With Quote
Unread 01-08-13, 08:24 AM  
Wildtide
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 155
Uploads: 6
Re: Addon idea?

Quote:
Originally Posted by shiftersnipe
I love this addon, its a lot of fun to play with, but if I may, I have a couple suggestions?

First, a notoriety tracker that would work like the XP bar, but track your choice of faction?

Second, is there a way (short of increasing the overall size) of changing the size of the text for the name, level and class for the standard unit frames?

Third, could we get a way to show class in the group/raid frames? I can't see way to color the names, am i missing something?

Thanks for the awesome work on this addon!

Shiftersnipe
A notoriety bar should be fairly simple. It would be a combination of the existing notoriety tracker, and the XP bar. I've got quite a few things to do, but I'll add it to the list.

At the moment, no, there isn't a way to change the text size. When I eventually get the alternative frames complete, this will be possible.

The class is shown differently depending on the frames you're using. For the standard raid frames, the HP bar is coloured by class. For Octanus, the resource bar is coloured by class, and in the Heal Frames, the unit's name is coloured by class.

For raid/group frames, I really would recommend that the Heal Frame template is used. It adds new functionality to show out of range units as well as turning the HP bar purple if a unit needs a cleanse. At the moment, the unit's name is limited to only 5 characters, but I will address this.
Wildtide is offline Report comment to moderator  
Reply With Quote
Unread 01-05-13, 10:39 PM  
shiftersnipe

Forum posts: 0
File comments: 2
Uploads: 0
Addon idea?

I love this addon, its a lot of fun to play with, but if I may, I have a couple suggestions?

First, a notoriety tracker that would work like the XP bar, but track your choice of faction?

Second, is there a way (short of increasing the overall size) of changing the size of the text for the name, level and class for the standard unit frames?

Third, could we get a way to show class in the group/raid frames? I can't see way to color the names, am i missing something?

Thanks for the awesome work on this addon!

Shiftersnipe
shiftersnipe is offline Report comment to moderator  
Reply With Quote
Unread 01-05-13, 07:37 AM  
Wildtide
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 155
Uploads: 6
Quote:
Originally Posted by Strange_d
I am using the new HUD option and I love it but there seems to be an issue with it detecting out of combat? I'm not sure of the trigger?

I have the Out of Combat opacity set to 0% and sometimes the HUD just stays up. If I click the gear, select modify and then just save again it disappears and works fine again.
I'll set up some arcs and see if the same happens for me. I don't usually use them myself, so they haven't had much testing.
Wildtide is offline Report comment to moderator  
Reply With Quote
Unread 01-05-13, 07:35 AM  
Wildtide
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 155
Uploads: 6
Re: Lost Gear Icon

Quote:
Originally Posted by BSCabral888
How can I get my Gear Icon back? It either disappeared or I moved it to somewhere off the screen.

Love this AddOn....

Zim
Try typing: /gadget reset

This should put the gear icon in the centre of your screen.
Wildtide is offline Report comment to moderator  
Reply With Quote
Unread 01-04-13, 04:54 PM  
Strange_d
Zombie

Forum posts: 1
File comments: 16
Uploads: 0
I am using the new HUD option and I love it but there seems to be an issue with it detecting out of combat? I'm not sure of the trigger?

I have the Out of Combat opacity set to 0% and sometimes the HUD just stays up. If I click the gear, select modify and then just save again it disappears and works fine again.
Strange_d is offline Report comment to moderator  
Reply With Quote
Unread 01-03-13, 08:27 PM  
BSCabral888

Forum posts: 0
File comments: 1
Uploads: 0
Lost Gear Icon

How can I get my Gear Icon back? It either disappeared or I moved it to somewhere off the screen.

Love this AddOn....

Zim
BSCabral888 is offline Report comment to moderator  
Reply With Quote
Unread 01-01-13, 06:04 AM  
Wildtide
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 155
Uploads: 6
Quote:
Originally Posted by Darkforge
-- Unless i missed it and sorry if i did . .the heal frames (new one) if possible could it be made to 'stretch' horizontally like the other raid frames.? i like the look and such but its hard for my eyes to adjust to small writing and it makes it easier if i can stretch it out and see more of the name etc .. otherwise looks good.
--Still waiting on a defiler link and/or Foul growth add .. preferably on the raid frames themselves as opposed to a seperate box (which there is a defiler one out now, but would love to see it added to the actual raid frames via gadgets).
The 5 character limit small text is due to the fact the frame started life as a "Grid" look-alike (ie. a tiny little square). I really need to add some more options; I'll have a go at this today. I think I could fairly easily add a font size and name length option for all raid frames under the appearance tab.

I have to admit, once Adelea released his Defiler addon, I stopped worrying about it myself. Raid frames tend to be so cluttered and small already that adding links and FG stacks could be a bit challenging. I can have a go though - shouldn't be that hard to add them somewhere.
Wildtide is offline Report comment to moderator  
Reply With Quote
Unread 12-31-12, 10:53 PM  
Darkforge

Forum posts: 0
File comments: 10
Uploads: 0
-- Unless i missed it and sorry if i did . .the heal frames (new one) if possible could it be made to 'stretch' horizontally like the other raid frames.? i like the look and such but its hard for my eyes to adjust to small writing and it makes it easier if i can stretch it out and see more of the name etc .. otherwise looks good.
--Still waiting on a defiler link and/or Foul growth add .. preferably on the raid frames themselves as opposed to a seperate box (which there is a defiler one out now, but would love to see it added to the actual raid frames via gadgets).

Thank you

-Long live the Defilers.!!
Darkforge is offline Report comment to moderator  
Reply With Quote
Unread 12-31-12, 08:13 AM  
Wildtide
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 155
Uploads: 6
Re: Re: Adding rare icons to unitframe gadgets

Quote:
Originally Posted by adelea
Quote:
Originally Posted by adelea
Hi,

I've added in display of an icon for 'rare' mobs, determined by the guaranteedLoot property.
I've added a rare indicator to the Simple, Standard and StandardUpsideDown templates for the next release. For reference, I implemented it like this:

Code:
{
id="imgRare", type="Image", parent="frameBackdrop", layer=35,
attach = {{ point="CENTER", element="frameBackdrop", targetPoint="CENTER" }},
texAddon="Rift", texFile="ControlPoint_Diamond_Grey.png.dds",
visibilityBinding="guaranteedLoot",
width=32, height=32,
},
Wildtide is offline Report comment to moderator  
Reply With Quote
Unread 12-31-12, 03:37 AM  
Wildtide
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 155
Uploads: 6
Quote:
Originally Posted by Khryv
Some great addon you have there ! Thanks a lot !

I've got a suggestion though, would it be possible to get an alternative setting for the rangeFinder pluggin so we could change the target to the focus ?
As a Chloro, I like to focus the tank and I would like to know if he's in range for my Veils.

Thanks again !
Yes, that's actually more possible now, as I've added in range calculation for all units as part of the new heal frame template.
Wildtide is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: