Clean up the code in general a bit

This commit is contained in:
2025-05-06 22:15:08 +02:00
parent 24e56078bd
commit 38b5dbccb1
6 changed files with 42 additions and 68 deletions

View File

@@ -2,15 +2,11 @@
## Overview
ActionBarSaver:Daved is an addon for saving and restoring action bar profiles. It is based on the original ActionBarSaver addon but is a full re-write.
ActionBarSaver:Daved is an addon for saving and restoring action bar profiles and keybindings. It is based on the original ActionBarSaver addon but is a full re-write.
All sets are saved by class rather than by character. Additionally, when you list profiles, you will only see profiles that pertain to your class.
Features such as rename have been deleted for simplicity. To perform a rename, simply save the set with a new name and delete the old set. Additionally, restoring a set will no longer try to re-create macros that do not exist. It will simply notify you of the missing macro and restore nothing for that slot. ABS:R will not work properly if you have multiple macros with the same name, and will warn you of potential issues if you restore a set that has a macro with a shared name.
A new feature has been added for setting up aliases for spells. A common use case for this would be restoring a single set for two characters that share a class but have a different race. For example, you could create a set on a troll shaman that contains `Berserking` and then add an alias for `War Stomp` using `/abs alias 20554 20549`. If you do this, when you restore a set it will first try to restore the proper spell but will also try each alias that you set up. A spell can have as many aliases as you want.
## Usage
## Action Bar Saver Usage
`/abs save <set>` - Saves your current action bar setup under the given <set>\
`/abs restore <set>` - Restores the saved <set>\
@@ -18,7 +14,20 @@ A new feature has been added for setting up aliases for spells. A common use cas
`/abs list` - Lists all saved sets\
`/abs alias <spellID> <aliasID>` - Adds an alias with <aliasID> to <spellID>\
`/abs unalias <spellID>` - Removes all aliases associated with <spellID>\
`/abs aliases` - List all spell aliases
`/abs aliases` - List all spell aliases\
`/abs export <set>` - Opens a window to export the given <set>\
`/abs import <set>` - Opens a window to import an action bar set
## Keybind Saver Usage
The addon also includes a keybind saver that allows you to save and restore your keybindings. This is useful for maintaining different keybind setups for different specs or situations.
`/kbs save <set>` - Saves your current keybinds under the given <set>\
`/kbs restore <set>` - Restores the saved <set>\
`/kbs delete <set>` - Deletes the saved <set>\
`/kbs list` - Lists all saved sets\
`/kbs export <set>` - Opens a window to export the given <set>\
`/kbs import <set>` - Opens a window to import a keybind set
## Known Issues