Quantcast
Channel: ESOUI - AddOns by votan
Viewing all articles
Browse latest Browse all 739

LibConsoleDialogs (1.0.2)

$
0
0
Change Log:
--------------------
version 1.0.2:
- Fixed selected item of scroll list not as expected.

version 1.0.1:
- Fixed not checking for "visible" and "enabled" in the keybind overflow dialog.

Description:
--------------------
For console addon developers only.

Dependencies

LibHarvensAddonSettings

Description
This library helps with two challenges creating UI for consoles:

Creating own dialogs (aka scenes).
Adding functionality to built-in dialogs without knowing which other addon already using the limited keybinds.


On PC you can create additional elements like buttons, context menus and so on to avoid conflict with other addons. But console does not have a mouse pointer.
You also can not create new keybindings letting the user assign one out of hundred keys to it. There is no keyboard.
The console UI is very much based on the key-strip and parametric scroll lists.

This library helps creating simple settings-like dialogs/scenes quicker. Reusing the controls of LibHarvensAddonSettings and thereby reducing the number of controls created. This is saving memory, which is limited to 100MB for consoles.
Technically the dialogs are settings not shown in the addon list.

For a description of how to create the dialog controls look at LibHarvensAddonSettings.

API:

local dialog = LibConsoleDialogs:Create(title)

Creates and returns a new dialog instance.
Use dialog:AddSetting(option) or dialog:AddSettings(options). See LibHarvensAddonSettings for details.
Use dialog:Select() or dialog:Show() to activate the dialog.

LibConsoleDialogs:RegisterKeybind(sceneOrName, buttonInfo)

Registers a keybind to the given scene. The actual used key is assigned on demand.
sceneOrName can be a scene object or a...

Viewing all articles
Browse latest Browse all 739

Trending Articles