Quantcast
Download
(2 Kb)
Download
Updated: 07/17/19 11:17 AM
Pictures
File Info
Compatibility:
Scalebreaker (5.1.5)
Elsweyr (5.0.5)
Updated:07/17/19 11:17 AM
Created:08/30/18 11:49 AM
Monthly downloads:13,725
Total downloads:101,629
Favorites:122
MD5:
5.1.5
LibMainMenu-2.0  Popular! (More than 5000 hits)
Version: 4.3.0
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 1.4.3:
- Update to "Scalebreaker".
- Fixed: Keep menu item selected.

version 4.2.0:
- Fixed selected menu item not been highlighted.

version 4.1.0:
- API bump 100027 "Elsweyr".
- Accessible via LibMainMenu2.
- Use of LibStub is optional.

version 3.0.2:
- Update to API 100026 "Wrathstone".

version 3.0.1:
- API bump 100025 "Murkmire".
Optional Files (0)


Archived Files (5)
File Name
Version
Size
Uploader
Date
4.2.0
2kB
votan
06/01/19 09:32 AM
4.1.0
2kB
votan
05/18/19 08:07 AM
3.0.2
11kB
votan
02/23/19 10:15 AM
3.0.1
3kB
votan
10/13/18 09:25 AM
3.0
9kB
votan
08/30/18 11:49 AM


Post A Reply Comment Options
Unread 05/21/19, 07:58 AM  
votan
 
votan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 492
File comments: 1183
Uploads: 31
Originally Posted by Grimm13
When I open Addons from the drop down menu in the game. I am getting this error.


user:/AddOns/LibMainMenu-2.0/LibVotansAddonList/Main.lua:149: attempt to index a nil value
stack traceback:
user:/AddOns/LibMainMenu-2.0/LibVotansAddonList/Main.lua:149: in function 'isLibrary'
user:/AddOns/LibMainMenu-2.0/LibVotansAddonList/Main.lua:170: in function 'ZO_AddOnManager:BuildMasterList'
EsoUI/Libraries/ZO_SortFilterList/ZO_SortFilterList.lua:135: in function 'ZO_SortFilterList:RefreshData'
EsoUI/PregameAndIngame/ZO_AddOnManager/ZO_AddOnManager.lua:491: in function 'ZO_AddOnManager:OnShow'
EsoUI/PregameAndIngame/ZO_AddOnManager/ZO_AddOnManager.lua:22: in function '(anonymous)'
[C]: in function 'SetHidden'
EsoUI/Libraries/ZO_Scene/ZO_SceneFragmentTemplates.lua:122: in function 'ZO_AnimatedSceneFragment:Show'
EsoUI/Libraries/ZO_Scene/ZO_SceneFragment.lua:162: in function 'ZO_SceneFragment:ShouldBeShown'
EsoUI/Libraries/ZO_Scene/ZO_SceneFragment.lua:232: in function 'ZO_SceneFragment:Refresh'
EsoUI/Libraries/ZO_Scene/ZO_Scene.lua:108: in function 'ZO_Scene:AddFragment'
EsoUI/Libraries/ZO_Scene/ZO_Scene.lua:137: in function 'ZO_Scene:AddTemporaryFragment'
EsoUI/Libraries/ZO_Scene/ZO_SceneManager_Base.lua:119: in function 'ZO_SceneManager_Base:AddFragment'
EsoUI/Ingame/GameMenu_Ingame/GameMenu_Ingame.lua:39: in function 'ShowAddons'
EsoUI/Common/ZO_GameMenu/ZO_GameMenu.lua:52: in function 'TreeEntryOnSelected'
EsoUI/Libraries/ZO_Tree/ZO_Tree.lua:705: in function 'ZO_TreeNode:OnSelected'
EsoUI/Libraries/ZO_Tree/ZO_Tree.lua:411: in function 'ZO_Tree:SelectNode'
(tail call): ?
EsoUI/Libraries/ZO_Tree/ZO_Tree.lua:888: in function 'ZO_TreeEntry_OnMouseUp'
ZO_CollectionsBook_TopLevelCategoriesScrollChildZO_TreeStatusLabelSubCategory1_MouseUp:3: in function '(main chunk)'



Also since Sunday after I updated LibMainMenu 2.0, had several addons break and had to add in the other LibMainMenu as well to get them to run. problems are with Skyshards, Lorebooks, Treasure Maps, LazyWrit, LazyCrafter, Arkadius Trade tools, Easytravel, Unknown Tracker (may have been more, don't remember)
Please delete LibMainMenu-2.0/LibVotansAddonList. And any other location of that lib, which throws this error.
__________________
@votan73 (EU - megaserver)
Report comment to moderator  
Reply With Quote
Unread 05/21/19, 07:43 AM  
Grimm13

Forum posts: 0
File comments: 27
Uploads: 0
When I open Addons from the drop down menu in the game. I am getting this error.


user:/AddOns/LibMainMenu-2.0/LibVotansAddonList/Main.lua:149: attempt to index a nil value
stack traceback:
user:/AddOns/LibMainMenu-2.0/LibVotansAddonList/Main.lua:149: in function 'isLibrary'
user:/AddOns/LibMainMenu-2.0/LibVotansAddonList/Main.lua:170: in function 'ZO_AddOnManager:BuildMasterList'
EsoUI/Libraries/ZO_SortFilterList/ZO_SortFilterList.lua:135: in function 'ZO_SortFilterList:RefreshData'
EsoUI/PregameAndIngame/ZO_AddOnManager/ZO_AddOnManager.lua:491: in function 'ZO_AddOnManager:OnShow'
EsoUI/PregameAndIngame/ZO_AddOnManager/ZO_AddOnManager.lua:22: in function '(anonymous)'
[C]: in function 'SetHidden'
EsoUI/Libraries/ZO_Scene/ZO_SceneFragmentTemplates.lua:122: in function 'ZO_AnimatedSceneFragment:Show'
EsoUI/Libraries/ZO_Scene/ZO_SceneFragment.lua:162: in function 'ZO_SceneFragment:ShouldBeShown'
EsoUI/Libraries/ZO_Scene/ZO_SceneFragment.lua:232: in function 'ZO_SceneFragment:Refresh'
EsoUI/Libraries/ZO_Scene/ZO_Scene.lua:108: in function 'ZO_Scene:AddFragment'
EsoUI/Libraries/ZO_Scene/ZO_Scene.lua:137: in function 'ZO_Scene:AddTemporaryFragment'
EsoUI/Libraries/ZO_Scene/ZO_SceneManager_Base.lua:119: in function 'ZO_SceneManager_Base:AddFragment'
EsoUI/Ingame/GameMenu_Ingame/GameMenu_Ingame.lua:39: in function 'ShowAddons'
EsoUI/Common/ZO_GameMenu/ZO_GameMenu.lua:52: in function 'TreeEntryOnSelected'
EsoUI/Libraries/ZO_Tree/ZO_Tree.lua:705: in function 'ZO_TreeNode:OnSelected'
EsoUI/Libraries/ZO_Tree/ZO_Tree.lua:411: in function 'ZO_Tree:SelectNode'
(tail call): ?
EsoUI/Libraries/ZO_Tree/ZO_Tree.lua:888: in function 'ZO_TreeEntry_OnMouseUp'
ZO_CollectionsBook_TopLevelCategoriesScrollChildZO_TreeStatusLabelSubCategory1_MouseUp:3: in function '(main chunk)'



Also since Sunday after I updated LibMainMenu 2.0, had several addons break and had to add in the other LibMainMenu as well to get them to run. problems are with Skyshards, Lorebooks, Treasure Maps, LazyWrit, LazyCrafter, Arkadius Trade tools, Easytravel, Unknown Tracker (may have been more, don't remember)
Report comment to moderator  
Reply With Quote
Unread 05/18/19, 05:07 PM  
Anceane
 
Anceane's Avatar

Forum posts: 209
File comments: 716
Uploads: 0
Re: Re: there is 2 version of this lib

Originally Posted by Kyoma
Originally Posted by Anceane
Hervestmap is using Ayantir version 5 of this lib https://www.esoui.com/downloads/info...bMainMenu.html

So which is the good one ? is there not a risk of conflict ?

Thank you
The "-2.0" in the name is more about the major version where as "5" refers to the minor version. The change in major version is typically due to such massive changes that previous versions are no longer compatible (this was also the case with LibAddonMenu).

EDIT: Nevermind that, they are actually two different libs with different approaches
THank you, now i understand the conflict showned when loggin in
__________________
Report comment to moderator  
Reply With Quote
Unread 05/18/19, 10:10 AM  
Kyoma
AddOn Author - Click to view AddOns

Forum posts: 88
File comments: 221
Uploads: 10
Re: there is 2 version of this lib

Originally Posted by Anceane
Hervestmap is using Ayantir version 5 of this lib https://www.esoui.com/downloads/info...bMainMenu.html

So which is the good one ? is there not a risk of conflict ?

Thank you
The "-2.0" in the name is more about the major version where as "5" refers to the minor version. The change in major version is typically due to such massive changes that previous versions are no longer compatible (this was also the case with LibAddonMenu).

EDIT: Nevermind that, they are actually two different libs with different approaches
Last edited by Kyoma : 05/18/19 at 10:27 AM.
Report comment to moderator  
Reply With Quote
Unread 05/18/19, 09:58 AM  
Anceane
 
Anceane's Avatar

Forum posts: 209
File comments: 716
Uploads: 0
there is 2 version of this lib

Hervestmap is using Ayantir version 5 of this lib https://www.esoui.com/downloads/info...bMainMenu.html

So which is the good one ? is there not a risk of conflict ?

Thank you
__________________
Report comment to moderator  
Reply With Quote
Unread 04/30/19, 10:54 AM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2281
File comments: 2517
Uploads: 57
LibMainMenu-2.0 for PTS with stripped LibStub + added TXT file IsLibrray etc.

-> Global variable:
Lua Code:
  1. LibMainMenu2

Edit - 2019-05-11
Updated and fixed to be compatible without LibStub and with it
Last edited by Baertram : 05/11/19 at 09:57 AM.
Report comment to moderator  
Reply With Quote
Unread 09/02/18, 01:18 AM  
votan
 
votan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 492
File comments: 1183
Uploads: 31
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: 273
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: