Download
(22 Kb)
Download
Updated: 09/07/24 08:13 AM
Pictures
File Info
Compatibility:
Update 43 (10.1.0)
Gold Road (10.0.0)
Updated:09/07/24 08:13 AM
Created:08/10/24 06:54 AM
Monthly downloads:1,261
Total downloads:1,553
Favorites:2
MD5:
10.1.0
Volette
Version: 0.1.3
by: FeynmanRules [More]
Depends on:
- LibAddonMenu-2.0

Features

Contacts

Adds an optional "Contacts" menu next to the Friends list with "Whisper", "Invite" and "Pin" buttons. It is mostly useful when we regularly invite people who are not in our Friends list (if it's full, for raid leaders...).

Savings

Don't let your wealth sit on alts! You can automatically deposit gold, Tel Var stones and Alliance Points into the bank when they start to accumulate.

Commands

Adds several slash commands (and keybindings can be added for most of them):
- /v-craft: Port to the crafting HQ (@UserID must be added in the add-on settings)
- /v-parse: Port to the training HQ (@UserID must be added in the add-on settings)
- /v-wayshrine: Port outside a house close to a wayshrine (must be owned, limited list of houses available)
- /v-home: Port to the primary house
- /v-glead: Port to the group leader

Translation

English and French translations were written by hand, but may not be perfect, and other translations were automated, so they're very likely to be at least partially wrong. If you notice mistakes, feel free to contact me.
v0.1.3:
- Add keybindings to travel more easily.
- Add error message when HQ owner is missing in the settings.

v0.1.2:
- Can now automatically deposit/withdraw Tel Var stones and Alliance Points into the bank.
- Display an appropriate message when there is not enough currency for the automatic withdrawal.
- Saved variables for savings may be reset despite a mitigation attempt (disabled by default).

v0.1.1:
- Use "minimum gold" instead of "minimum deposit" to make savings more intuitive.
- Maximum gold can now be 0.
- Bug fix: We can now keep a constant amount of gold by setting the same value for minimum and maximum gold.
- Saved variables for Savings will be reset (disabled by default).

v0.1.0:
- Added automatic gold deposit.

v0.0.5
- We can now select a specific house in the settings for `/v-wayshrine`. Changed the set of houses.

v0.0.4
- Added missing languages.

v0.0.3
- Various optimizations.
Archived Files (7)
File Name
Version
Size
Uploader
Date
0.1.2
19kB
FeynmanRules
08/14/24 11:43 AM
0.1.1
18kB
FeynmanRules
08/14/24 03:49 AM
0.1.0
17kB
FeynmanRules
08/13/24 04:20 AM
0.0.5
14kB
FeynmanRules
08/12/24 01:40 PM
0.0.4
12kB
FeynmanRules
08/12/24 08:56 AM
0.0.3
9kB
FeynmanRules
08/10/24 11:21 AM
0.0.2
8kB
FeynmanRules
08/10/24 07:22 AM


Post A Reply Comment Options
Unread 08/12/24, 08:40 AM  
FeynmanRules
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 2
Uploads: 1
Originally Posted by Baertram
I've chosen the category "Group, guilds and friends" now as I think it fits the best.
Thanks for taking care of it!
Report comment to moderator  
Reply With Quote
Unread 08/11/24, 05:49 PM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 5189
File comments: 6259
Uploads: 78
I've chosen the category "Group, guilds and friends" now as I think it fits the best.
Report comment to moderator  
Reply With Quote
Unread 08/10/24, 09:41 AM  
FeynmanRules
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 2
Uploads: 1
Originally Posted by Baertram
Hi and welcome to ESO addon development.

Your addon is in the ESO tools and utilitis category which is not shown within Minion addon manager,
was that on purpose?

Else we should move it to another category, please tell me which one and I can do so.
Hi. Thanks a lot for the feedback. As you can probably tell, I'm new to Lua, so it really helps. I'll include all your suggestions in a new version soon.

I guess none of the categories under "Utilities" are shown in Minion, right? It was not on purpose, so it would be great if we could change it. The best category would probably be "Utility Mods", since not everything has a UI, otherwise, even "Miscellaneous" would be fine.
Report comment to moderator  
Reply With Quote
Unread 08/10/24, 08:46 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 5189
File comments: 6259
Uploads: 78
Hi and welcome to ESO addon development.

Your addon is in the ESO tools and utilitis category which is not shown within Minion addon manager,
was that on purpose?

Else we should move it to another category, please tell me which one and I can do so.


Other points and hints:
In your addons' event_add_on_loaded callback you should unregisetr your addon once it was loaded so the same func is not called for every other addon loaded again and again and again:

Code:
function Volette.OnAddonLoaded(event, addonName)
	if addonName == Volette.name then
		Volette.Initialize()
                EVENT_MANAGER:UnregisterForEvent(Volette.name, EVENT_ADD_ON_LOADED)
	end
end
Hint:
In your settings menu (LAM) you can use requiresReload = true to add a button for a reloadi once someone changed that setting.
The user is asked, if he tries to leave the addon settings, if changed values will be applied and reloadui is done, or else they will be switched back to old values automatically.
No need to manually add a warning there, that's all automatically there if you just add requiresReload = true to the widget.


Your code in slash.lua should be capsuled in a function which is 1st loaded from your EVENT_ADD_ON_LOADED callback or else you risk that the slash commands are added early where your functions are not present OR savedvariables are not present and lead to errors in the end!
So do something like:
Code:
function Volette.LoadSlashCommands()
    for shortcut, func in pairs(COMMANDS) do
        SLASH_COMMANDS["/v-" .. shortcut] = func
    end
end
And call that func Volette.LoadSlashCommands() from your Volette.OnAddonLoaded then

The notation using : in e.g. function VoletteContactsMenu:Initialize is kind of wrong as it is a control and not an object.
Using self in there works "by accident" but should not be done!
So change the function name to function VoletteContactsMenu.Initialize and instead of using self use VoletteContactsMenu then.

Using the function Volette.contacts.setPinButton(button, pinned) each time in the loop over your contacts is kind of wrong.
You only need to add the handlers for OnMouseEnter and Exit etc. once, and they stay there, so no need to re-do that overwriting them if they use fixed texts (and they do, as you use GetString(VOLETTE_CONTACTS_UNPIN_BUTTON_TOOLTIP)).

Better idea: Add the pinned state to the butonControl directly
button.pinned = pinned

And in the handlers just check
Code:
local textToShow = button.pinned and VOLETTE_CONTACTS_UNPIN_BUTTON_TOOLTIP or VOLETTE_CONTACTS_PIN_BUTTON_TOOLTIP
...
SetTooltipText(InformationTooltip, GetString(textToShow))
Something dnyamically like that is better in the end.

Hope it helps, if you got questions feel free to chat with us here:
https://app.gitter.im/#/room/#esoui_esoui:gitter.im
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: