Download
(11 Kb)
Download
Updated: 02-02-13 06:08 PM
Pictures
File Info
Updated:02-02-13 06:08 PM
Created:02-21-12 11:22 PM
Downloads:5,124
Favorites:11
MD5:
Money Bar  Popular! (More than 5000 hits)
Version: 1.12
by: Montage [More]
Money bar is a small bar that tracks all of your currencies.

NOTE: I completely overhauled the filtering process. If you have any errors, you may want to try /moneybar default to reset everything then /moneybar filter to set up your currencies again. Let me know what you think about the new filter system, if it's better, worse, or whatever.

NOTE: Now depends on LibSimpleWidgets
http://www.riftui.com/downloads/info...leWidgets.html


Slash Commands:
English
/moneybar move toggles the bar to be movable. When toggled on, the bar is movable by dragging with your mouse
/moneybar default sets the bar to the default position,width, orientation, and colors
/moneybar alpha <a> sets the bar's transparency. 'a' is a number between 0 and 10 with 10 being solid and 0 being invisible
/moneybar scale <w> allows you to change the width or height of the bar (default setting is 1750 for horiz and 1000 for vert
/moneybar orient <horiz/vert> sets the bar to horizontal or vertical
/moneybar filter brings up a menu that allows you to pick which currencies to track
/moneybarcolor bar <r g b/color> takes in colors or RGB numbers as r g b where r, g, and b are between 0 and 255
/moneybarcolor text <r g b/color> takes in colors or RGB numbers as r g b where r, g, and b are between 0 and 255
Current color options are black, red, green, blue, brown, white, orange, and purple

German
/moneybar bewegen wechselt die leiste, um beweglich zu sein. Wenn auf getoggelt, die leiste ist beweglichen durch ziehen mit der maus.
/moneybar default legt die messlatte an die vorgabe lage, breite, ausrichtung und farben.
/moneybar alpha <a> legt die messlatte der transparenz. 'a' eine zahl zwischen 0 und 10 mit 10 sein fester und 0 unsichtbar.
/moneybar MaBstab <w> konnen sie die breite oder hohe des balkens andern (default einstellung ist 1750).
/moneybar orient <horiz/vert> legt die messlatte fur horizontale oder vertikale.
/moneybar filtern offnet ein menu, mit dem sie auswahlen, welche wahrungen auf die spur erlaubt.
/moneybarcolor leiste <r g b/farbe> nimmt in farben oder RGB zahlen als r g b where r, g, und b sind zwischen 0 und 255.
/moneybarcolor text <r g b/farbe> nimmt in farben oder RGB zahlen als r g b where r, g, und b sind zwischen 0 und 255.
Strom farbe optionen sind schwarz, rot, grun, blau, braun, weiB, orange, und lila.

French
/moneybar deplacer permet de basculer la barre pour etre mobile. Lorsqu'il est active, la barre est mobile en faisant glisser avec votre souris.
/moneybar defaut fixe la barre a la position par defaut, la largeur, l'orientation, et les couleurs
/moneybar alpha <a> etablit la transparence de la barre. 'a' est un nombre compris entre 0 et 10 avec 10 etant solide et 0 etant invisible
/moneybar echelle <w> vous permet de changer la largeur ou la hauteur de la barre (réglage par defaut est 1750)
/moneybar orient <horiz/vert> définit la barre a l'horizontale ou verticale
/moneybar filtrer fait apparaitre un menu qui vous permet de choisir quelles devises a suivre
/moneybarcolor bar <r g b/couleur> prend des couleurs RVB ou des numeros comme r g b ou r, g, et b est compris entre 0 et 255
/moneybarcolor text <r g b/couleur> prend des couleurs RVB ou des numéros comme r g b ou r, g, et b est compris entre 0 et 255
Options de couleur actuelles sont de couleur noire, rouge, vert, bleu, brun, blanc, orange et violet

This is my first addon, so feel free to give me feedback on how I can improve.
1.2
The bar can be scaled.
Variables can now be saved.
The bar can now be moved.

1.3
Variables are not only saved, but are loaded.
Bar color can be changed.
Text color can be changed.

1.4
The bar can now be vertical!
Changed some code to attempt to fix moving text. Hopefully it works!
Please report any issues with the vertical option.

1.5
With help from Timebomb there are several changes.
The bar can no be dragged and dropped to where you want it!
Some of the scaling issues should work now
With any luck the moving issues will be fixed as well.

1.6
The filter is now in!
Fixed some of the help output to reflect some of the changes
Changed the limits for the bar size to accommodate the fact that some may only track a few currencies.


1.6.1
Now should support German!
Also I discovered the Change Log!
Removed the spam from test code that some guy who will remained unnamed didn't remove.

1.6.2
Now fully, hopefully, translated to German and French.
Fixed the issue where text would move by the distance from the edge of the screen.

1.7
Added Infernal Marks
Changed how the currencies you want to track are printed out when Okay is clicked on

1.7.1
Fixed an issue where Favor could not be removed
Corrected a typo preventing French players from tracking Infernal Marks


1.8
Added Mark of Conquest, Unique Snowflake, Prize Ticket, Glass Beads, Summerfest Merit Badge, and Summerfest Friendship Bracelet
Changed MoneyBar.GetStack() to expect a currency id rather than a currency name
Created MoneyBar.BuildFilterUI() to build the Filter UI when the addon loads rather than every time the player uses the filter slash command

1.10
Added Master Craftsman's Mark, Empyreal Stone, Infinity Stone, Autumn Harvest Signet, and Autumn Harvest Ambersap

1.11
Complete overhaul of the filtering system
Now needs LibSimpleWidget to run, this is what was used to build the filter ui
Now can only track currencies that the player has.

1.12
Fixed issue with a blank bar on log in
Optional Files (0)


Archived Files (16)
File Name
Version
Size
Author
Date
1.11
11kB
Montage
01-20-13 11:58 AM
1.10
187kB
Montage
12-18-12 11:27 PM
1.8
159kB
Montage
07-01-12 03:25 PM
1.7.1
124kB
Montage
04-28-12 11:52 AM
1.7.1
124kB
Montage
04-23-12 07:32 PM
1.7
124kB
Montage
04-20-12 07:12 PM
1.6.3
120kB
Montage
03-27-12 05:38 PM
1.6.2 Beta
10kB
Montage
03-09-12 01:38 PM
1.6.1 Beta
9kB
Montage
03-07-12 04:27 PM
1.6 Beta
8kB
Montage
03-05-12 07:15 PM
1.5 Beta
7kB
Montage
02-29-12 06:50 PM
1.4 Beta
7kB
Montage
02-28-12 06:04 PM
1.3 Beta
7kB
Montage
02-24-12 11:12 AM
1.2 Beta
6kB
Montage
02-22-12 11:16 PM
1.1 Beta
6kB
Montage
02-22-12 06:59 PM
1.0 Beta
6kB
Montage
02-21-12 11:40 PM


Post A Reply Comment Options
Unread 03-05-12, 08:47 PM  
Montage
Zombie
 
Montage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 65
Uploads: 7
Quote:
Originally Posted by TimeBomb
Quote:
Originally Posted by Montage
I just want to go on record to apologize how the filter menu currently is. I will make it look less...thrown together when I can!
Hehe, at least it's there!
Obviously the UI as an entirety needs a bit of cleaning up, but I'd also like to suggest:
- Remembering the current set filters every time you open the filter UI. If I'm only showing 5, I want everything else to be red right when I open the filter UI.
- A cancel button on the filter UI window (to close it without saving changes).
- Optional/lower priority, but I would prefer that, instead of spreading them out to fit the whole bar, it spaces them out just like it does by default, thus leaving the bar with some possible empty space (which will go bye bye if people rescale the bar after applying filters).

Bug report:
- Pressing okay without deselecting any currency causes the array to be empty (when telling me "Showing only the following:"), and thus no currencies are shown.

Overall, great job .
If none of the buttons are pressed nothing gets put into the table so yeah it ends up tracking nothing. Once I get the time (I have finals and projects galore right now) I'll get all this in there! As always thanks for the feedback!
Montage is offline Report comment to moderator  
Reply With Quote
Unread 03-05-12, 08:44 PM  
TimeBomb
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 54
Uploads: 6
Quote:
Originally Posted by Montage
I just want to go on record to apologize how the filter menu currently is. I will make it look less...thrown together when I can!
Hehe, at least it's there!
Obviously the UI as an entirety needs a bit of cleaning up, but I'd also like to suggest:
- Remembering the current set filters every time you open the filter UI. If I'm only showing 5, I want everything else to be red right when I open the filter UI.
- A cancel button on the filter UI window (to close it without saving changes).
- Optional/lower priority, but I would prefer that, instead of spreading them out to fit the whole bar, it spaces them out just like it does by default, thus leaving the bar with some possible empty space (which will go bye bye if people rescale the bar after applying filters).

Bug report:
- Pressing okay without deselecting any currency causes the array to be empty (when telling me "Showing only the following:"), and thus no currencies are shown.

Overall, great job .
TimeBomb is offline Report comment to moderator  
Reply With Quote
Unread 03-05-12, 08:18 PM  
Montage
Zombie
 
Montage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 65
Uploads: 7
I just want to go on record to apologize how the filter menu currently is. I will make it look less...thrown together when I can!
Montage is offline Report comment to moderator  
Reply With Quote
Unread 02-29-12, 09:32 PM  
Montage
Zombie
 
Montage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 65
Uploads: 7
Quote:
Originally Posted by TimeBomb
If anyone does experience further issues with text/icon shifting or poor alignment, or anything of that sort, then there are a few things that you are going to need from them:
Their RIFT game screen resolution.
MoneyBar's orientation.
MoneyBar's scale (width/height).
Perhaps a screenshot, mainly just to show exactly where it is placed. If issues continue, it may be worth adding a /moneybar debug command that shows them the current X and Y position of their bar.

With this info, you should be able to replicate any problems that they may have as best as you can. From there, you can mess with the code until it is fixed up .
Indeed!
Montage is offline Report comment to moderator  
Reply With Quote
Unread 02-29-12, 09:19 PM  
TimeBomb
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 54
Uploads: 6
If anyone does experience further issues with text/icon shifting or poor alignment, or anything of that sort, then there are a few things that you are going to need from them:
Their RIFT game screen resolution.
MoneyBar's orientation.
MoneyBar's scale (width/height).
Perhaps a screenshot, mainly just to show exactly where it is placed. If issues continue, it may be worth adding a /moneybar debug command that shows them the current X and Y position of their bar.

With this info, you should be able to replicate any problems that they may have as best as you can. From there, you can mess with the code until it is fixed up .
TimeBomb is offline Report comment to moderator  
Reply With Quote
Unread 02-29-12, 10:31 AM  
Montage
Zombie
 
Montage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 65
Uploads: 7
I kind of felt like my vertical text coding was done caveman style. Hit it with a club until it works haha! I was kind of worried someone with more Lua experience would see it, stare at it too long, and have problems with bleeding eyes. Thanks for all the help, when I get a chance I'll dig through it and see what I can glean from your changes!
Montage is offline Report comment to moderator  
Reply With Quote
Unread 02-29-12, 03:02 AM  
TimeBomb
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 54
Uploads: 6
I'm working on reworking a bit of stuff in your latest version to make it cleaner/etc. Once again, I hope you don't mind. Just trying to help out.

- I'm reimplementing the movement on drag.
- I'm redoing the way configs work. Configs will now be more integrated with the code. You won't need to save/load anything. You just use the config variables.
- I'll do what I can to lower the amount of global variables.
- I am combining the six vertical/horizontal bar functions into three, wherein they take the orientation as an argument.
- The fix you did for the text/icon alignment is a step in the right direction, but I believe that just completely 'reloading' everything will make more sure that nothing is out of place. Pretty much what I had in my previous code snippit. I'll be reimplementing this.
- Changing height default from 1750 to 1000, as no monitor goes to 1750 height (ex. 1920x1080 resolution - 1920 width, 1080 height).
- I'm going to take a look at the newly heavily messy SetText function to see if I can clean it up and slim it down at all. No promises.
- Going to change around the way the slash handler works with arguments a little bit, to allow for an unlimited number of arguments without having to add more variables.

I'm more than half way done right now. Will post the code here when I'm done.


Update: Done. I did a lot. The majority of what I was doing was making your code cleaner and easier to work with. I also fixed up a couple noticeable and not so noticeable bugs.
Money.lua Code: http://pastebin.com/Xkw4kY8i

Changes:
Soo many... please look at the code.
- Using less globals

- Configs no longer need to be loaded/saved; it's all done as the addon runs.

- I redid a LOT of your vertical alignment functionality. I combined most vertical/horizontal seperations as best I could.

- I redid the vertical UI. This was done a bit towards my bias, so I apologize. The text is no longer one character per line. So if you have 400 currency, it shows from left to right - like the horizontal orientation. The width was changed from 15 to 75 to accomodate for this change.

- Drag the UI via /moneybar move

- I realigned the icons so they are all the same amount apart.

- When changing orientation, it changes x or y to 10. Apparently, if it tries to load stuff when part of the UI is out of view, it glitches a bit. I didn't fix this, but this change should help a lot with this issue. People just have to make sure it doesn't go out of view when 'reloading'.

- I put all the functions in MoneyBar.FUNCTION NAME. This helps contain your code/variables and thus keep conflicts with other addons out.

- SlashHandler now supports unlimited arguments and specific checking of how many arguments were sent by the user. cmd[0] is first argument[main command], cmd[1] is second argument, etc. In comparison to your old code, arg is cmd[0], a is cmd[1], b is cmd[2], etc.

- Organized the loading code a bit - this goes hand and hand with the vertical alignment function changes.

- On top of the previous config change, to make sure that there are always configs, default configs are set as the configs if the user has none set. See local defaultSave.

- Added maximum and minimum amounts for /moneybar scale. Anything outside of these boundaries has been tested to ... not work/align well. This modification should be removed/modified when/if filtering specific currencies is added.


I hope that this helps you out a bit.

And I apologize for any mistakes, I coded most of this after 11:00 PM. It's 5 minutes till 4AM here, heh.

Good luck Montage.
Last edited by TimeBomb : 02-29-12 at 05:56 AM.
TimeBomb is offline Report comment to moderator  
Reply With Quote
Unread 02-28-12, 09:46 PM  
TimeBomb
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 54
Uploads: 6
Quote:
Originally Posted by Montage
Quote:
Originally Posted by TimeBomb
Quote:
Originally Posted by Montage
Quote:
Originally Posted by TimeBomb
snip
snip
Hehe, no worries.
I am a bit confused as to what you mean "slash commands from the addon itself".

You can put the slash command in a macro. You can put a specific macro in an addon frame.
You can call functions from the slash command. Change variables. Do pretty much anything. Slash commands are nothing more than a function with user input as its arguments.

If you would like to elaborate, I would be happy to do my best to help/explain.
As I understand it from reading the forums, the API doesn't allow slash commands to be operated from the addon. I thought that was the main issue with UI Addons as you lose the ability to right click to leave parties and so forth.
Technically, you can put a macro in a UI frame. It wouldn't be changable in combat, and you have to click it to make the macro activate. (Someone correct me if I'm wrong.)
I haven't played w/ macro's in addons yet, but I would assume that many commands, ex. /partyleave, are not available, as there have been lots of questions about when that will be implemented.
TimeBomb is offline Report comment to moderator  
Reply With Quote
Unread 02-28-12, 09:25 PM  
Montage
Zombie
 
Montage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 65
Uploads: 7
Quote:
Originally Posted by TimeBomb
Quote:
Originally Posted by Montage
Quote:
Originally Posted by TimeBomb
snip
snip
Hehe, no worries.
I am a bit confused as to what you mean "slash commands from the addon itself".

You can put the slash command in a macro. You can put a specific macro in an addon frame.
You can call functions from the slash command. Change variables. Do pretty much anything. Slash commands are nothing more than a function with user input as its arguments.

If you would like to elaborate, I would be happy to do my best to help/explain.
As I understand it from reading the forums, the API doesn't allow slash commands to be operated from the addon. I thought that was the main issue with UI Addons as you lose the ability to right click to leave parties and so forth.
Montage is offline Report comment to moderator  
Reply With Quote
Unread 02-28-12, 07:51 PM  
TimeBomb
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 54
Uploads: 6
Quote:
Originally Posted by Montage
Quote:
Originally Posted by TimeBomb
snip
Thank you, I'll definitely put that in! I tried to make it a drag an move first but I couldn't get it to work.

I didn't know you could do slash commands from the addon itself, or is it fairly limited?

My only regret is that I didn't see this post before I got the new version up
Hehe, no worries.
I am a bit confused as to what you mean "slash commands from the addon itself".

You can put the slash command in a macro. You can put a specific macro in an addon frame.
You can call functions from the slash command. Change variables. Do pretty much anything. Slash commands are nothing more than a function with user input as its arguments.

If you would like to elaborate, I would be happy to do my best to help/explain.
TimeBomb is offline Report comment to moderator  
Reply With Quote
Unread 02-28-12, 06:06 PM  
Montage
Zombie
 
Montage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 65
Uploads: 7
Quote:
Originally Posted by TimeBomb
Montage, this is a very nice addon you have. Quite useful .

I hope you don't mind, but I have taken the liberty to help you out a bit.
I have modified MoneyBar to do/fix a couple things.

1) /moneybar move now toggles on/off the free movement of MoneyBar. When it is toggled on, it is now easily moveable via click and drag. (The functions I use are modified versions of what LibSimpleWidgets uses for SimpleWindow.)

2) When changing the width, it appeared to cause some issues with the alignment of the text/icons, as others have brought forth.
I have modified the /moneybar scale and /moneybar default functions to completely reload the UI, instead of just changing a couple things - which usually wasn't enough, and resulted in visual oddities.
After testing the commands, as well as teleporting with a small(width-wise) moneybar, I have not found any issues.

The code (Money.lua): http://pastebin.com/DgQC1Vcs
Thank you, I'll definitely put that in! I tried to make it a drag an move first but I couldn't get it to work.

I didn't know you could do slash commands from the addon itself, or is it fairly limited?

My only regret is that I didn't see this post before I got the new version up
Last edited by Montage : 02-28-12 at 06:08 PM.
Montage is offline Report comment to moderator  
Reply With Quote
Unread 02-28-12, 03:52 PM  
TimeBomb
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 54
Uploads: 6
Montage, this is a very nice addon you have. Quite useful .

I hope you don't mind, but I have taken the liberty to help you out a bit.
I have modified MoneyBar to do/fix a couple things.

1) /moneybar move now toggles on/off the free movement of MoneyBar. When it is toggled on, it is now easily moveable via click and drag. (The functions I use are modified versions of what LibSimpleWidgets uses for SimpleWindow.)

2) When changing the width, it appeared to cause some issues with the alignment of the text/icons, as others have brought forth.
I have modified the /moneybar scale and /moneybar default functions to completely reload the UI, instead of just changing a couple things - which usually wasn't enough, and resulted in visual oddities.
After testing the commands, as well as teleporting with a small(width-wise) moneybar, I have not found any issues.

The code (Money.lua): http://pastebin.com/DgQC1Vcs
Last edited by TimeBomb : 02-28-12 at 03:53 PM.
TimeBomb is offline Report comment to moderator  
Reply With Quote
Unread 02-27-12, 09:06 PM  
Magi

Forum posts: 0
File comments: 2
Uploads: 0
Quote:
Originally Posted by Magi
All currencies continue to show nil.

How can I address this?
Fixed it
Magi is offline Report comment to moderator  
Reply With Quote
Unread 02-27-12, 09:02 PM  
Magi

Forum posts: 0
File comments: 2
Uploads: 0
All currencies continue to show nil.

How can I address this?
Magi is offline Report comment to moderator  
Reply With Quote
Unread 02-25-12, 10:30 PM  
Montage
Zombie
 
Montage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 65
Uploads: 7
I'll see if I can find a way to keep that from happening even though I can't get it to happen on my end. That's really weird that the icons don't budge but the text does
Montage is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: