Quantcast
Download
(3 Kb)
Download
Updated: 10/13/18 09:25 AM
Pictures
File Info
Compatibility:
Murkmire (4.2)
Wolfhunter (4.1)
Updated:10/13/18 09:25 AM
Created:08/30/18 11:49 AM
Monthly downloads:1,233
Total downloads:7,620
Favorites:32
MD5:
4.2
LibMainMenu-2.0  Popular! (More than 5000 hits)
Version: 3.0.1
by: votan [More]
Description
Library to add main menu entries.
For example used in Potion Maker and Votan's Settings Menu and FCOItemSaver.

Example
Lua Code:
  1. local descriptor = "Unique Name" -- e.g. your addon name
  2.  
  3. -- this as part of the EVENT_ADD_ON_LOADED
  4. local LMM2 = LibStub("LibMainMenu-2.0")
  5. LMM2:Init()
  6.  
  7. local sceneName = "gameMenuInGame" -- Your scene name. This is just a working example.
  8.  
  9. -- Add to main menu
  10. local categoryLayoutInfo =
  11. {
  12.     binding = "YOUR_KEYBIND_ACTION_NAME",
  13.     categoryName = SI_BINDING_NAME_YOUR_KEYBIND_ACTION_NAME,
  14.     callback = function(buttonData)
  15.         if not SCENE_MANAGER:IsShowing(sceneName) then
  16.             SCENE_MANAGER:Show(sceneName)
  17.         else
  18.             SCENE_MANAGER:ShowBaseScene()
  19.         end
  20.     end,
  21.     visible = function(buttonData) return true end,
  22.  
  23.     normal = "esoui/art/inventory/inventory_tabicon_consumables_up.dds",
  24.     pressed = "esoui/art/inventory/inventory_tabicon_consumables_down.dds",
  25.     highlight = "esoui/art/inventory/inventory_tabicon_consumables_over.dds",
  26.     disabled = "esoui/art/inventory/inventory_tabicon_consumables_disabled.dds",
  27. }
  28.  
  29. LMM2:AddMenuItem(descriptor, sceneName, categoryLayoutInfo, nil)
  30. -- end part of the EVENT_ADD_ON_LOADED

Force refresh of visibility:
Code:
LMM2:Refresh()
Click on the menu entry by code:
Code:
LMM2:SelectMenuItem(descriptor)
version 3.0.1:
- API bump 100025 "Murkmire".
Optional Files (0)


Archived Files (1)
File Name
Version
Size
Uploader
Date
3.0
9kB
votan
08/30/18 11:49 AM


Post A Reply Comment Options
Unread 09/02/18, 01:18 AM  
votan
 
votan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 463
File comments: 1051
Uploads: 27
Re: LibMainMenu-2.0 ..... Who needs it?

Originally Posted by Shadowshire
Which TESO players must download and install this "add-on"?? IMHO, the developers of the add-ons which use its functions should include it with the installation of their add-on.

ZOS (?) has added a Libraries category at the bottom of the list of addons. It evidently lists the "libraries" which are installed in the respective addon folders in the ...\Elder Scrolls \live\Addons folder. Unfortunately, I haven't been able to find any mention of it in the Patch Notes for Update 17, after which it appeared. What purpose does it serve?
You need to download it, if an addon tells you, that it is missing. I include all required libs in my addons. You may just have to check if they are enabled.
Others prefer that Minion updates them automatically by explicitly downloading them.
The purpose is to filter out duplicates and older versions by the game client and not by Lua (LibStub).
__________________
@votan73 (EU - megaserver)
Report comment to moderator  
Reply With Quote
Unread 09/01/18, 05:17 PM  
Shadowshire

Forum posts: 1
File comments: 194
Uploads: 0
Arrow LibMainMenu-2.0 ..... Who needs it?

Which TESO players must download and install this "add-on"?? IMHO, the developers of the add-ons which use its functions should include it with the installation of their add-on.

ZOS (?) has added a Libraries category at the bottom of the list of addons. It evidently lists the "libraries" which are installed in the respective addon folders in the ...\Elder Scrolls \live\Addons folder. Unfortunately, I haven't been able to find any mention of it in the Patch Notes for Update 17, after which it appeared. What purpose does it serve?
__________________
---- Shadowshire ..... nil carborundum illegitimi
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: