Skip to content
/ FoxDB Public

FoxDB manages the SavedVariables of your addons, with EditMode included. (For World of Warcraft)

License

Notifications You must be signed in to change notification settings

00fox/FoxDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Please consider supporting the project by clicking Github Sponsorship

You can report issues by mail at issues@00fox.com

FoxDB manages the SavedVariables of your addons, with EditMode included. (For World of Warcraft)

You will be able to save variables depending on the template the user is in, not just globals and characters, and this, in an automated way in EditMode, and in a much simpler way than before, moreover, there is no need for any other library to create a complete addon.

Written in clean language and optimized code,

  • the goal of starting from scratch, in addition to EditMode, is to not let the addon go through a full chain of dependencies, having hundreds of lines of code actions before the next, each. ( and avoid too many unnecessary encapsulations ) Priority: quick launch, memory, intelligible code.

This system is not in conflict with the systems already in place,

  • so you will not encounter any problem when using it for a new addon, to make a transition from an old one or to keep an old one as it is.

Layout management is fully automated, user access is not required,

  • but some things are still doable.

You of course still have access to a simplified version of the profiles;

  • otherwise, this part remains dormant.

No nightmares with default databases,

  • you define variables in a function if they don't already exist on loading.
  • In others, do what you need when the layout/profile is changed/reset.

If you come from an already made addon in a classic way (global+profiles),

  • a transition exists internally to change these things and keep the defaults in each profile that used it, after which there is no longer a default profile. (Remember to make a backup beforehand)

The final goal being to use the globals,

  • the layout (instead of the profile), and the profile for the few variables which remain necessary to be specific to each character. But in the meantime, your base will continue to function as before,
  • as long as you don't start using the layouts yourself.

SavedVariable files are also written during /reload

Register one or several chat commands

  • and receive the arguments already split into a function.

Possibility of an Minimap icon, in ultra light code, without any inconvenience if not used.

  • Player's EditMode support to manage them, including visibility, so not conflicting with AddonCompartment.

EditMode:

  • Addons that use EditMode receive a simplified common support for the correct functioning of all (addons and system).
  • Automatic frame registration.
  • Automatic showing/hidding frames when entering/exiting EditMode.
  • Automatic hidding system menus and highlighting frames.
  • Receive a callback when a frame is clicked to hide/show your menu.

Note:

  • You manually start your addon, then load the Database, which will tell you when the layouts are ready; you therefore control everything with a feeling of the early days of wow.

Complete instructions can be found in the help that you will find in the settings of the example provided.

In your own addon you only need to include FoxDB.lua that's all.

About

FoxDB manages the SavedVariables of your addons, with EditMode included. (For World of Warcraft)

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages