Loads and owns addons.
More...
#include <gui_addon_registry.hpp>
Loads and owns addons.
Definition at line 29 of file gui_addon_registry.hpp.
◆ addon_registry() [1/3]
Constructor.
- Parameters
-
lua | The GUI Lua state |
loc | The localizer class, to load new translation into |
emitter | The event emitter, to fire "addon loaded" events |
r | The GUI root, to create new frames into |
vr | The virtual root, to create new virtual frames into |
Definition at line 22 of file gui_addon_registry.cpp.
◆ addon_registry() [2/3]
◆ addon_registry() [3/3]
◆ get_current_addon()
const addon * lxgui::gui::addon_registry::get_current_addon |
( |
| ) |
|
Returns the addon that is being parsed.
- Returns
- The addon that is being parsed
Definition at line 247 of file gui_addon_registry.cpp.
◆ load_addon_directory()
void lxgui::gui::addon_registry::load_addon_directory |
( |
const std::string & |
directory | ) |
|
Parse all addons inside a directory.
- Parameters
-
directory | The directory to load addons from |
- Note
- The directory must contain a file named addon.txt, and listing all enabled (and possibly disabled) addons. Each addon is then a sub-directory.
Definition at line 132 of file gui_addon_registry.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ save_variables()
void lxgui::gui::addon_registry::save_variables |
( |
| ) |
const |
◆ set_current_addon()
void lxgui::gui::addon_registry::set_current_addon |
( |
const addon * |
a | ) |
|
Sets the current addon.
- Parameters
-
- Note
- The current addon is used to set the addon of each new region. This is normally set by the parser, while loading each addon. For regions created manually, after the loading stage, this is also set by frame, before each call to a handler function.
Definition at line 251 of file gui_addon_registry.cpp.
The documentation for this class was generated from the following files: