Go to Page... |
Compatibility: | Flames of Ambition (6.3.5) Markarth (6.2.5) |
Updated: | 04/12/21 10:54 AM |
Created: | 08/30/18 11:49 AM |
Monthly downloads: | 12,595 |
Total downloads: | 2,071,175 |
Favorites: | 1,187 |
MD5: |
## DependsOn: LibMainMenu-2.0 |
local LMM = LibMainMenu2
local descriptor = "Unique Name" -- e.g. your addon name -- this as part of the EVENT_ADD_ON_LOADED local LMM2 = LibMainMenu2 LMM2:Init() local sceneName = "gameMenuInGame" -- Your scene name. This is just a working example. -- Add to main menu local categoryLayoutInfo = { binding = "YOUR_KEYBIND_ACTION_NAME", categoryName = SI_BINDING_NAME_YOUR_KEYBIND_ACTION_NAME, callback = function(buttonData) if not SCENE_MANAGER:IsShowing(sceneName) then SCENE_MANAGER:Show(sceneName) else SCENE_MANAGER:ShowBaseScene() end end, visible = function(buttonData) return true end, normal = "esoui/art/inventory/inventory_tabicon_consumables_up.dds", pressed = "esoui/art/inventory/inventory_tabicon_consumables_down.dds", highlight = "esoui/art/inventory/inventory_tabicon_consumables_over.dds", disabled = "esoui/art/inventory/inventory_tabicon_consumables_disabled.dds", } LMM2:AddMenuItem(descriptor, sceneName, categoryLayoutInfo, nil) -- end part of the EVENT_ADD_ON_LOADED
LMM2:Refresh()
LMM2:SelectMenuItem(descriptor)
local menuIndex = LMM:MainMenuAddCategory(arrayOfCategoryData) LMM:MainMenuAddSceneGroup(menuIndex, GroupSceneString, iconData)
-- Toggle LMM:ToggleCategory(menuIndex) -- Specific scene LMM:Update(menuIndex, "MyAddonAnotherScene")
binding = stringOfYourKeyBinding categoryName = stringOfCategoryName normal = texturePath pressed = texturePath highlight = texturePath |
MYADDON_MAIN_MENU_CATEGORY_DATA = { binding = "MYADDON_SHOW_PANEL", categoryName = SI_MYADDON_MAIN_MENU_TITLE, normal = "EsoUI/Art/MainMenu/menuBar_champion_up.dds", pressed = "EsoUI/Art/MainMenu/menuBar_champion_down.dds", highlight = "EsoUI/Art/MainMenu/menuBar_champion_over.dds", }
categoryName = string descriptor = integer normal = texturePath pressed = texturePath highlight = texturePath |
local iconData = { { categoryName = SI_MYADDON_MAIN_MENU_TITLE, -- the title at the right (near the buttons) descriptor = "MyAddonMain", normal = "EsoUI/Art/MainMenu/menuBar_champion_up.dds", pressed = "EsoUI/Art/MainMenu/menuBar_champion_down.dds", highlight = "EsoUI/Art/MainMenu/menuBar_champion_over.dds", }, { categoryName = SI_MYADDON_ANOTHER_MENU_TITLE, -- the title at the right (near the buttons) visible = function() return IsChampionSystemUnlocked() end, -- is tab visible ? descriptor = "MyAddonAnother", normal = "EsoUI/Art/Guild/tabicon_history_up.dds", pressed = "EsoUI/Art/Guild/tabicon_history_down.dds", highlight = "EsoUI/Art/Guild/tabicon_history_over.dds", }, } -- Register the group and add the buttons LMM:MainMenuAddSceneGroup(menuIndex, "MyAddonSceneGroup", iconData)
<GuiXml> <Controls> <TopLevelControl name="MyUINameInXML" inherits="ZO_RightPanelFootPrint" hidden="true"> <OnInitialized> MyAddon.initData(self) </OnInitialized> <Controls> </Controls> </TopLevelControl> </Controls> </GuiXml>
function MyAddon.CreateScene() -- Main Scene MYADDON_MAIN_SCENE = ZO_Scene:New("MyAddonMain", SCENE_MANAGER) -- Mouse standard position and background MYADDON_MAIN_SCENE:AddFragmentGroup(FRAGMENT_GROUP.MOUSE_DRIVEN_UI_WINDOW) MYADDON_MAIN_SCENE:AddFragmentGroup(FRAGMENT_GROUP.FRAME_TARGET_STANDARD_RIGHT_PANEL) -- Background Right, it will set ZO_RightPanelFootPrint and its stuff. MYADDON_MAIN_SCENE:AddFragment(RIGHT_BG_FRAGMENT) -- The title fragment MYADDON_MAIN_SCENE:AddFragment(TITLE_FRAGMENT) -- Set Title ZO_CreateStringId("SI_MYADDON_MAIN_MENU_TITLE", "My Addon Name") MYADDON_MAIN_TITLE_FRAGMENT = ZO_SetTitleFragment:New(SI_MYADDON_MAIN_MENU_TITLE) MYADDON_MAIN_SCENE:AddFragment(MYADDON_MAIN_TITLE_FRAGMENT) -- Add the XML to our scene MYADDON_MAIN_WINDOW = ZO_FadeSceneFragment:New(MyUINameInXML) MYADDON_MAIN_SCENE:AddFragment(MYADDON_MAIN_WINDOW) end
-- Build the Menu -- Its name for the menu (the meta scene) ZO_CreateStringId("SI_MYADDON_MAIN_MENU_TITLE", "My Addon Name") -- Its infos, ZO_CreateStringId("SI_BINDING_NAME_MYADDON_SHOW_PANEL", "Toggle My Addon") -- you also need to use a bindings.xml in order to display your keybind in options. MYADDON_MAIN_MENU_CATEGORY_DATA = { binding = "MYADDON_SHOW_PANEL", categoryName = SI_MYADDON_MAIN_MENU_TITLE, normal = "EsoUI/Art/MainMenu/menuBar_champion_up.dds", pressed = "EsoUI/Art/MainMenu/menuBar_champion_down.dds", highlight = "EsoUI/Art/MainMenu/menuBar_champion_over.dds", } -- Then the scenes -- Main Scene is created trought our function described in 1st section MyAddon.CreateScene() -- Another Scene , because using main menu without having 2 scenes should be avoided. MYADDON_ANOTHER_SCENE = ZO_Scene:New("MyAddonAnother", SCENE_MANAGER) -- Mouse standard position and background MYADDON_ANOTHER_SCENE:AddFragmentGroup(FRAGMENT_GROUP.MOUSE_DRIVEN_UI_WINDOW) MYADDON_ANOTHER_SCENE:AddFragmentGroup(FRAGMENT_GROUP.FRAME_TARGET_STANDARD_RIGHT_PANEL) -- Background Right, it will set ZO_RightPanelFootPrint and its stuff. MYADDON_ANOTHER_SCENE:AddFragment(RIGHT_BG_FRAGMENT) -- The title fragment MYADDON_ANOTHER_SCENE:AddFragment(TITLE_FRAGMENT) -- Set Title ZO_CreateStringId("SI_MYADDON_IMPORT_MENU_TITLE", "Another title") MYADDON_ANOTHER_TITLE_FRAGMENT = ZO_SetTitleFragment:New(SI_MYADDON_MAIN_MENU_TITLE) -- The title at the left of the scene is the "global one" but we can change it MYADDON_ANOTHER_SCENE:AddFragment(MYADDON_ANOTHER_TITLE_FRAGMENT) -- Add the XML to our scene MYADDON_ANOTHER_WINDOW = ZO_FadeSceneFragment:New(AnotherPieceofXML) MYADDON_ANOTHER_SCENE:AddFragment(MYADDON_ANOTHER_WINDOW) -- Set tabs and visibility, etc do local iconData = { { categoryName = SI_MYADDON_MAIN_MENU_TITLE, -- the title at the right (near the buttons) descriptor = "MyAddonMain", normal = "EsoUI/Art/MainMenu/menuBar_champion_up.dds", pressed = "EsoUI/Art/MainMenu/menuBar_champion_down.dds", highlight = "EsoUI/Art/MainMenu/menuBar_champion_over.dds", }, { categoryName = SI_MYADDON_ANOTHER_MENU_TITLE, -- the title at the right (near the buttons) visible = function() return IsChampionSystemUnlocked() end, -- is tab visible ? descriptor = "MyAddonAnother", normal = "EsoUI/Art/Guild/tabicon_history_up.dds", pressed = "EsoUI/Art/Guild/tabicon_history_down.dds", highlight = "EsoUI/Art/Guild/tabicon_history_over.dds", }, } -- Register Scenes and the group name SCENE_MANAGER:AddSceneGroup("MyAddonSceneGroup", ZO_SceneGroup:New("MyAddonMain", "MyAddonAnother")) -- ZOS have hardcoded its categories, so here is LibMainMenu utility. MENU_CATEGORY_MYADDON = LMM:MainMenuAddCategory(MYADDON_MAIN_MENU_CATEGORY_DATA) -- Register the group and add the buttons LMM:MainMenuAddSceneGroup(MENU_CATEGORY_MYADDON, "MyAddonSceneGroup", iconData) end
-- Toggle LMM:ToggleCategory(MENU_CATEGORY_MYADDON)
-- Toggle LMM:Update(MENU_CATEGORY_MYADDON, "MyAddonAnother")
File Name |
Version |
Size |
Uploader |
Date |
4.3.6 |
2kB |
votan |
02/20/21 09:11 AM |
|
4.3.5 |
2kB |
votan |
11/01/20 08:58 AM |
|
4.3.4 |
2kB |
votan |
08/22/20 04:55 AM |
|
4.3.3 |
2kB |
votan |
05/24/20 10:39 AM |
|
4.3.2 |
2kB |
votan |
02/15/20 11:44 AM |
|
4.3.1 |
2kB |
votan |
10/19/19 08:27 AM |
|
4.3.0 |
2kB |
votan |
07/17/19 11:17 AM |
|
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 |
Comment Options |
01/31/22, 07:58 AM | |
Forum posts: 2
File comments: 5
Uploads: 0
|
Will this be getting an update soon?
|
|
Xariama |
View Public Profile |
Send a private message to Xariama |
Send email to Xariama |
Find More Posts by Xariama |
Add Xariama to Your Buddy List |
Xariama |
View Public Profile |
Send a private message to Xariama |
Send email to Xariama |
Find More Posts by Xariama |
Add Xariama to Your Buddy List |
01/18/22, 11:02 AM | ||
Forum posts: 1
File comments: 3
Uploads: 0
|
Re: Needs to be fixed
https://www.esoui.com/downloads/info...llsOfAlts.html
Last edited by Roflbob : 01/18/22 at 11:02 AM.
|
|
|
Roflbob |
View Public Profile |
Send a private message to Roflbob |
Send email to Roflbob |
Find More Posts by Roflbob |
Add Roflbob to Your Buddy List |
01/17/22, 10:54 PM | |
Forum posts: 2
File comments: 5
Uploads: 0
|
Needs to be fixed
This is what I get every time. Add-ons say it's out of date. This needs to be updated.
user:/AddOns/ElderScrollsOfAlts/ESOA_UI_Lookups.lua:82: operator / is not supported for nil / nil stack traceback: user:/AddOns/ElderScrollsOfAlts/ESOA_UI_Lookups.lua:82: in function 'ElderScrollsOfAlts.GuiCharLineLookupPopulateData' user:/AddOns/ElderScrollsOfAlts/ESOA_UI.lua:859: in function 'ElderScrollsOfAlts.LoadDataEntriesForSetView' user:/AddOns/ElderScrollsOfAlts/ESOA_UI.lua:671: in function 'ElderScrollsOfAlts:ShowSetView' user:/AddOns/ElderScrollsOfAlts/ESOA_UI.lua:249: in function 'ElderScrollsOfAlts:ShowGuiByChoice' user:/AddOns/ElderScrollsOfAlts/ESOA_UI.lua:290: in function 'ElderScrollsOfAlts.DoUiButtonClicked' ESOA_ButtonFrameButton_Clicked:2: in function '(main chunk)' |
|
Xariama |
View Public Profile |
Send a private message to Xariama |
Send email to Xariama |
Find More Posts by Xariama |
Add Xariama to Your Buddy List |
09/17/21, 05:08 AM | |
|
…by it's global variable LibMainMenu2…
It's 2 main functions were added… both it's should be its Sorry, it's a Grammar Nazi/OCD thing. |
|
Rhynchelma |
View Public Profile |
Send a private message to Rhynchelma |
Send email to Rhynchelma |
Find More Posts by Rhynchelma |
Add Rhynchelma to Your Buddy List |
08/14/21, 01:40 AM | ||
Re: Bad
|
||
|
votan |
View Public Profile |
Send a private message to votan |
Send email to votan |
Find More Posts by votan |
Add votan to Your Buddy List |
08/13/21, 12:15 PM | |
Forum posts: 0
File comments: 1
Uploads: 0
|
Bad
This broke most of my add-ons and even after removing it they are still screwed for some reason I can't figure out.
|
|
BoomStar |
View Public Profile |
Send a private message to BoomStar |
Send email to BoomStar |
Find More Posts by BoomStar |
Add BoomStar to Your Buddy List |
04/12/21, 11:45 AM | |
Hmm, is there supposed to be a manifest for LibMainMenu after the recent update? If I install the update, then I get an error because both of them are getting run.
Code:
Failed to create control 'LMMXML'. Duplicate name. If I uninstall my current standalone LibMainMenu, then my addons that require LibMainMenu can't be enabled because they complain about dependency, since LibMainMenu is not declared in 2.0. Will this be on the authors to update to LibMainMenu-2.0 or is there something I'm missing? Edit: Ah, nevermind... the update to LibMainMenu popped up just now and I see it indicates it's on the authors. Oh well, easy enough changes.
Last edited by Kyzeragon : 04/12/21 at 11:48 AM.
|
|
|
Kyzeragon |
View Public Profile |
Send a private message to Kyzeragon |
Send email to Kyzeragon |
Find More Posts by Kyzeragon |
Add Kyzeragon to Your Buddy List |
08/21/20, 09:44 AM | |
Forum posts: 0
File comments: 8
Uploads: 0
|
Please update
This is causing other LUA errors in other mods
|
|
Vampiregoat69 |
View Public Profile |
Send a private message to Vampiregoat69 |
Send email to Vampiregoat69 |
Find More Posts by Vampiregoat69 |
Add Vampiregoat69 to Your Buddy List |
10/26/19, 12:08 PM | ||
The one shipped with Potion Maker is the older one. |
||
|
votan |
View Public Profile |
Send a private message to votan |
Send email to votan |
Find More Posts by votan |
Add votan to Your Buddy List |
10/26/19, 11:53 AM | |
Forum posts: 0
File comments: 1
Uploads: 0
|
Hi, since the Dragonhold update, at which time I also updated all addons which had an available update, I have been receiving the following error when I try to view the addon settings menu.
Code:
bad argument #1 to 'ipairs' (table/struct expected, got nil) stack traceback: [C]: in function 'ipairs' EsoUI/PregameAndIngame/ZO_Options/Keyboard/ZO_Options_Keyboard.lua:162: in function 'ZO_KeyboardOptions:PanelRequiresDeferredLoading' EsoUI/PregameAndIngame/ZO_Options/Keyboard/ZO_Options_Keyboard.lua:146: in function 'ZO_KeyboardOptions:ChangePanels' user:/AddOns/PotionMaker/Libs/LibAddonMenu-2.0/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:964: in function 'panelData.callback' 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' EsoUI/Libraries/ZO_Tree/ZO_Tree.lua:888: in function 'ZO_TreeEntry_OnMouseUp' ZO_CollectionsBook_TopLevelCategoriesScrollChildZO_CollectionsBook_SubCategory1_MouseUp:3: in function '(main chunk)' |
|
SilverCookieDust |
View Public Profile |
Send a private message to SilverCookieDust |
Send email to SilverCookieDust |
Find More Posts by SilverCookieDust |
Add SilverCookieDust to Your Buddy List |
05/21/19, 07:58 AM | ||
|
||
|
votan |
View Public Profile |
Send a private message to votan |
Send email to votan |
Find More Posts by votan |
Add votan to Your Buddy List |
05/21/19, 07:43 AM | |
Forum posts: 0
File comments: 33
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) |
|
Grimm13 |
View Public Profile |
Send a private message to Grimm13 |
Send email to Grimm13 |
Find More Posts by Grimm13 |
Add Grimm13 to Your Buddy List |
05/18/19, 05:07 PM | |||
Re: Re: there is 2 version of this lib
|
|||
|
Anceane |
View Public Profile |
Send a private message to Anceane |
Send email to Anceane |
Find More Posts by Anceane |
Add Anceane to Your Buddy List |
05/18/19, 10:10 AM | ||
|
Re: there is 2 version of this lib
EDIT: Nevermind that, they are actually two different libs with different approaches
Last edited by Kyoma : 05/18/19 at 10:27 AM.
|
|
|
Kyoma |
View Public Profile |
Send a private message to Kyoma |
Send email to Kyoma |
Find More Posts by Kyoma |
Add Kyoma to Your Buddy List |