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,154
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 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-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, 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, 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 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 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: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-06-12, 06:17 AM  
gwynnbleiidd

Forum posts: 0
File comments: 20
Uploads: 0
please add lang file, i add russian lang
Now i translate in file, and addon full work with russian)
gwynnbleiidd is offline Report comment to moderator  
Reply With Quote
Unread 03-06-12, 10:28 AM  
Montage
Zombie
 
Montage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 65
Uploads: 7
Quote:
Originally Posted by gwynnbleiidd
please add lang file, i add russian lang
Now i translate in file, and addon full work with russian)
For the slash commands to translate them to Russian? I could do that, might take me a little while as my Russian is very rusty!
Montage is offline Report comment to moderator  
Reply With Quote
Unread 03-06-12, 01:14 PM  
gwynnbleiidd

Forum posts: 0
File comments: 20
Uploads: 0
These commands can be translated, I would just file derived variables and the field for the translation.
An example of how it is done in nkadvisor.

By the way, another question, the basic position of the band at the bottom, I placed it on top.
But when he is rejoining the basement forever with the screen.
This is a fix or a permanent hands to prescribe?
gwynnbleiidd is offline Report comment to moderator  
Reply With Quote
Unread 03-06-12, 02:18 PM  
Montage
Zombie
 
Montage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 65
Uploads: 7
Quote:
Originally Posted by gwynnbleiidd
These commands can be translated, I would just file derived variables and the field for the translation.
An example of how it is done in nkadvisor.

By the way, another question, the basic position of the band at the bottom, I placed it on top.
But when he is rejoining the basement forever with the screen.
This is a fix or a permanent hands to prescribe?
\

It shouldn't be moving back to the bottom of the screen as the variables are saved when it's moved. I'll look into it and see what I can find.
Montage is offline Report comment to moderator  
Reply With Quote
Unread 03-07-12, 04:34 PM  
Montage
Zombie
 
Montage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 65
Uploads: 7
I apologize for not removing all of my test code, new code is up that doesn't spew tables of currency information at you.
Montage is offline Report comment to moderator  
Reply With Quote
Unread 03-07-12, 09:25 PM  
TimeBomb
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 54
Uploads: 6
Uhh... did I have debug code in a pastebin that I forgot to remove? If so, then g'damn, I apologize dearly.
TimeBomb is offline Report comment to moderator  
Reply With Quote
Unread 03-07-12, 10:26 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
Uhh... did I have debug code in a pastebin that I forgot to remove? If so, then g'damn, I apologize dearly.
No it was me from when I was implementing the German Support >.<

Also is anyone else experiencing text drift if they have the bar moved away from the left side of the screen? If I move the bar away from the left side of the screen and reload the UI the text moves that distance away from the icon. I cannot see why it's doing it!
Montage is offline Report comment to moderator  
Reply With Quote
Unread 03-08-12, 06:29 AM  
gwynnbleiidd

Forum posts: 0
File comments: 20
Uploads: 0
I saw in the update that the variables are derived, but if I will make changes, then the addon will be appropriately only in Russian.
Or language support you put on the next update?
gwynnbleiidd is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: