Go to Page... |
Compatibility: | Gold Road (10.0.0) Scions of Ithelia (9.3.0) |
Updated: | 05/19/24 07:17 AM |
Created: | 07/11/15 10:51 AM |
Monthly downloads: | 27,358 |
Total downloads: | 4,633,412 |
Favorites: | 2,033 |
MD5: |
local entries = { { label = "Test 1", callback = function() d("Test 1") end, }, { label = "Test 2", callback = function() d("Test 2") end, disabled = function(rootMenu, childControl) return true end, } } ClearMenu() AddCustomSubMenuItem("Sub Menu", entries) ShowMenu()
local function GetEntries(rootMenu) d("run") return { { label = function() return GetTimeStamp() end, callback = function() d("Test 1") end, }, { label = "Test 2", callback = function() d("Test 2") end, disabled = function(rootMenu, childControl) return true end, } } end ClearMenu() AddCustomSubMenuItem("Sub Menu", GetEntries) ShowMenu()
local entries = { { label = "Test 1", callback = function() d("Test 1") end, }, { label = "-", }, { label = "Test 2", callback = function() d("Test 2") end, disabled = function(rootMenu, childControl) return true end, } } ClearMenu() AddCustomSubMenuItem("Sub Menu", entries) ShowMenu()
local myState = true local entries = { { label = "Test 1", callback = function(state) myState = state df("Test 1: %s", tostring(myState)) end, checked = function() return myState end, itemType = MENU_ADD_OPTION_CHECKBOX, }, { label = "Test 1b", callback = function() d("Test 1b") end, itemType = MENU_ADD_OPTION_LABEL, }, { label = "-", }, { label = "Test 2", callback = function() d("Test 2") end, disabled = function(rootMenu, childControl) return true end, } } ClearMenu() AddCustomSubMenuItem("Sub Menu", entries) ShowMenu()
local function func(inventorySlot, slotActions) end
local function func() end
ZO_CreateStringId("SI_BINDING_NAME_SHOW_POPUP", "Show in Popup") local function AddItem(inventorySlot, slotActions) local valid = ZO_Inventory_GetBagAndIndex(inventorySlot) if not valid then return end slotActions:AddCustomSlotAction(SI_BINDING_NAME_SHOW_POPUP, function() local bagId, slotIndex = ZO_Inventory_GetBagAndIndex(inventorySlot) local itemLink = GetItemLink(bagId, slotIndex) ZO_PopupTooltip_SetLink(itemLink) end , "") end LibCustomMenu:RegisterContextMenu(AddItem, LibCustomMenu.CATEGORY_PRIMARY)
local function AddItem(inventorySlot, slotActions) local bagId, slotIndex = ZO_Inventory_GetBagAndIndex(inventorySlot) if not CanItemBePlayerLocked(bagId, slotIndex) then return end local locked = IsItemPlayerLocked(bagId, slotIndex) slotActions:AddCustomSlotAction(locked and SI_ITEM_ACTION_UNMARK_AS_LOCKED or SI_ITEM_ACTION_MARK_AS_LOCKED, function() SetItemIsPlayerLocked(bagId, slotIndex, not locked) end, "keybind2") -- you can use: "primary", "secondary", "keybind1", "keybind2" end local menu = LibCustomMenu --menu:RegisterContextMenu(AddItem, menu.CATEGORY_PRIMARY) menu:RegisterKeyStripEnter(AddItem, menu.CATEGORY_LATE)
local function func(control, inside) end
local myState = true local entries = { { label = "Test 1", callback = function(state) myState = state df("Test 1: %s", tostring(myState)) end, checked = function() return myState end, itemType = MENU_ADD_OPTION_CHECKBOX, tooltip = "This is Test 1", }, { label = "Test 1b", callback = function() d("Test 1b") end, itemType = MENU_ADD_OPTION_LABEL, tooltip = "This is Test 2", }, { label = "-", }, { label = "Test 2", callback = function() d("Test 2") end, disabled = function(rootMenu, childControl) return true end, } } ClearMenu() AddCustomSubMenuItem("Sub Menu", entries) AddCustomMenuTooltip("A sub-menu") AddCustomMenuItem("-", function() d("soso") end) AddCustomMenuItem("Button", function() d("jojo") end) AddCustomMenuTooltip(function(control, inside) if inside then d("A great button") end end) AddCustomMenuItem("CheckBox", function() d("soso") end, MENU_ADD_OPTION_CHECKBOX) ShowMenu()
local index = AddCustomMenuItem("CheckBox", function() <your callback> end, MENU_ADD_OPTION_CHECKBOX) if needToCheckIt then ZO_CheckButton_SetChecked(ZO_Menu.items[index].checkbox) end
local function func(inventorySlot, slotActions, ctrl, alt, shift, command) end
local function func(playerName, rawName) end
local function func(rowData) end
local function AddItem(data) AddCustomMenuItem("Example", function() d(data.displayName) end) end local menu = LibCustomMenu menu:RegisterFriendsListContextMenu(AddItem, menu.CATEGORY_EARLY) menu:RegisterFriendsListContextMenu(AddItem, menu.CATEGORY_LAST)
File Name |
Version |
Size |
Uploader |
Date |
7.2.1 |
8kB |
votan |
03/13/23 03:24 PM |
|
7.2.0 |
8kB |
votan |
03/11/23 11:59 AM |
|
7.1.3 |
8kB |
votan |
04/24/22 09:04 AM |
|
7.1.2 |
8kB |
votan |
10/24/21 07:44 AM |
|
7.1.1 |
8kB |
votan |
09/05/21 07:30 AM |
|
7.1.0 |
8kB |
votan |
09/04/21 09:32 AM |
|
7.0.1 |
8kB |
votan |
07/04/21 04:46 AM |
|
7.0.0 |
8kB |
votan |
04/28/21 11:21 AM |
|
6.9.5 |
7kB |
votan |
02/20/21 09:09 AM |
|
6.9.4 |
7kB |
votan |
11/02/20 04:41 AM |
|
6.9.3 |
7kB |
votan |
08/22/20 04:55 AM |
|
6.9.2 |
7kB |
votan |
04/21/20 03:12 PM |
|
6.9.1 |
7kB |
votan |
04/04/20 06:22 AM |
|
6.9.0 |
7kB |
votan |
04/03/20 11:43 AM |
|
6.8.2 |
7kB |
votan |
02/15/20 11:44 AM |
|
6.8.1 |
7kB |
votan |
10/03/19 04:37 AM |
|
6.8.0 |
7kB |
votan |
08/07/19 01:15 PM |
|
6.7.1 |
7kB |
votan |
07/30/19 11:57 AM |
|
6.7.0 |
7kB |
votan |
05/18/19 08:07 AM |
|
6.6.3 |
16kB |
votan |
02/23/19 10:15 AM |
|
6.6.2 |
8kB |
votan |
10/21/18 09:31 AM |
|
6.6.1 |
7kB |
votan |
10/19/18 12:13 PM |
|
6.6 |
14kB |
votan |
08/13/18 11:17 AM |
|
6.5 |
8kB |
votan |
04/22/18 05:21 AM |
|
6.4 |
7kB |
votan |
04/16/18 11:45 AM |
|
6.3 |
7kB |
votan |
03/03/18 10:58 AM |
|
6.2 |
8kB |
votan |
02/02/18 12:35 AM |
|
5 |
7kB |
votan |
01/27/18 03:11 PM |
|
5 |
7kB |
votan |
08/15/17 12:34 PM |
|
4.3 |
6kB |
votan |
07/15/17 01:00 PM |
|
4.2.0 |
6kB |
votan |
10/12/16 12:56 PM |
|
4.1.1 |
6kB |
votan |
03/07/16 12:13 PM |
|
4.1.0 |
6kB |
votan |
11/22/15 02:24 PM |
|
4.0.0 |
6kB |
votan |
08/06/15 10:48 AM |
|
3.0.0 |
6kB |
votan |
07/25/15 05:36 AM |
|
2.0.0 |
5kB |
votan |
07/11/15 10:51 AM |
Comment Options |
DigitalTemerity |
View Public Profile |
Send a private message to DigitalTemerity |
Find More Posts by DigitalTemerity |
Add DigitalTemerity to Your Buddy List |
FWSWBN |
View Public Profile |
Send a private message to FWSWBN |
Find More Posts by FWSWBN |
Add FWSWBN to Your Buddy List |
05/06/21, 05:01 PM | |||
Forum posts: 2
File comments: 18
Uploads: 0
|
Re: Re: Duplicate LibCustomMenu
|
||
|
papahuge |
View Public Profile |
Send a private message to papahuge |
Find More Posts by papahuge |
Add papahuge to Your Buddy List |
05/05/21, 05:25 AM | ||
Re: Duplicate LibCustomMenu
1. open your addon folder 2. go into every addon and look if there is a LibCustomMenu and delete this lib (and only this lib, no other) 3. do this for all addons you have (open folder, look inside, is there a LibCustomMenu delete it) 4. done everything works fine without any errors. and to dolgubon.... he uses again a LibCustomMenu INSIDE his addon folder and he uses another one than the 7.0.0 (its much smaller). also delete this LibCustomMenu inside Lazy Writ Crafter. |
||
|
FWSWBN |
View Public Profile |
Send a private message to FWSWBN |
Find More Posts by FWSWBN |
Add FWSWBN to Your Buddy List |
05/04/21, 07:34 PM | |
Forum posts: 0
File comments: 2
Uploads: 0
|
Duplicate LibCustomMenu
So.. Dolgubon's 3.0.5 fixed it on his end.
I found the offending entry in FCMQT... their version was back to 2019.. So in the process I realized that FCMQT is also way out of date. Does anyone have a recommendation for something to use instead? (It's a quest tracking addon that gives you a list of quests instead of just the one you are working on) Thanks |
|
araminta |
View Public Profile |
Send a private message to araminta |
Find More Posts by araminta |
Add araminta to Your Buddy List |
05/04/21, 06:24 AM | ||
Re: Duplicate name
install the latest version of LibCustomMenu (its the 7.0.0) and delete on every addon folder the old LibCustomMenu (and only this one, not any other lib, only you know what you do). after that... no more errors, everything works fine. |
||
|
FWSWBN |
View Public Profile |
Send a private message to FWSWBN |
Find More Posts by FWSWBN |
Add FWSWBN to Your Buddy List |
05/03/21, 04:21 PM | |
Forum posts: 0
File comments: 1
Uploads: 0
|
Duplicate name
After numerous tests (like disabling/enabling addons using this Lib 1 by 1, and disabling every mods using this Lib at the same time BUT not this Lib), seemingly pointing at 'LibCustomMenu' to be the source of an error.
It seems that, ever since this addon was updated late (28) April (2021), a specific error message appears every time we connect to a character (or /reloadui) in ESO. (Content of the error box in ESO) « Failed to create control 'LibCustomMenuSubmenu'. Duplicate name. »
Last edited by Nova225 : 05/03/21 at 04:31 PM.
|
|
Nova225 |
View Public Profile |
Send a private message to Nova225 |
Find More Posts by Nova225 |
Add Nova225 to Your Buddy List |
05/03/21, 02:29 PM | ||
|
Re: Re: Re: Re: Re: i replaced the libcustommenu file
Last edited by Baertram : 05/03/21 at 02:29 PM.
|
|
|
Baertram |
View Public Profile |
Send a private message to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
05/02/21, 06:04 PM | ||
Forum posts: 10
File comments: 37
Uploads: 0
|
Re: Re: Re: Re: i replaced the libcustommenu file
Last edited by iarao : 05/02/21 at 06:44 PM.
|
|
|
iarao |
View Public Profile |
Send a private message to iarao |
Send email to iarao |
Find More Posts by iarao |
Add iarao to Your Buddy List |
05/02/21, 02:17 PM | ||
|
||
|
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/02/21, 08:59 AM | |
I can confirm disabling libs\LibCustomMenu\LibCustomMenu.lua in the txt file removes the error.
Also, Votan, how did you stickie your post? |
|
|
Hydra9268 |
View Public Profile |
Send a private message to Hydra9268 |
Send email to Hydra9268 |
Find More Posts by Hydra9268 |
Add Hydra9268 to Your Buddy List |
05/02/21, 06:59 AM | |||||
|
Re: Re: Re: i replaced the libcustommenu file
A short description what has happened here and why these problems occur (even with multiple different addons):
Libraries are reusable code. Some addons include them in subfolders (which is okay if they also include the Lib*.txt file which the game's addon manager recognizes and loads properly then). Others just add the dependency to their own addon's txt files and thus the game's addon manager wil look for ANY of th Lib*.txt files in ANY of your live/AddOns subfolders (up to sublevel 3!). If any version is found it will load that version and use it. If a newer version is found (all handled by the the Lib*.txt files, and their tag ## AddOnVersion: <number>) it will ONLY load this version then. This assures that only the newest version of a lib is loaded. But some older addons, but also (sad but true) even commonly used and recently updated addons, do not handle it like this. They will put the libs in the subfolders of the addon WITHOUT the Lib*.txt file. So there are only the Lib*.lua files. And in the addon's txt file (e.g. LazyWritCreator.txt), which the game always loads and checks what other files to include for the addon to be able to work, they call the lib's lua files "hardcoded" with lines like /libs/Lib*.lua This will make the lua code of the libs, no matter which verison was included (could be very old, or could be the most actual one), to be executed. Even if the ingame addon manager has already loaded a newer version (via the Lib*.txt file properly) before. So the old code will/might overwrite the newer one breaking several addons that way. Even if the devs include a Lib'.lua file with the most current version today: In a few days there might be a patch to that Lib and then the included version is "old again". if they do not include the Lib*.txt file as well, which will make the ingame addon manager to check and not load the old version then, as it will find a newer version elsewhere (e.g. in live/AddOns/Lib*), the old code will destroy newer ones The easiest fix is to remove the "hardcoded" calls to the libs. Either by manipulating the txt files of the addons where these hardcoded lines are in. Or by deleing the Lib*.lua files in the subfolder "libs" of addons. But attention: There might be libraries in the subfolders of addons which have NEVER been released to the public (cannot be found at www.esoui.com and thus not at Minion)! So always check if the library in the subfolder is on esoui or not. If not: Keep the files of that lib as it might be missign elese and break your addon. But if it is given at esoui: Install that library from esoui manually/via Minion to your live/AddOns folder and keep it updated there. Remove the same library from any subfolder of other addons! Benefit: The lib will be only called from live/AddOns/Lib* then. Only 1 place to check in case of errors and only 1 place to update (even works via Minion then). Downside: Some addons which had the hardcoded lines in their txt files did not specify the "## DependsOn: Lib*" or "## OptionalDependsOn: Lib*" in their addon's txt file. They did not need to as the hardcoded lines were always loaded. But these (Optional)DependsOn says the addon that the library will be needed to be called BEFORE the addon is loaded in order to provide data to the addon e.g. So either add the library name to the DependsOn lines of the addons where you have deleted the subfolder "libs" entries, like e.g. Code:
## DependsOn: LibAddonMenu-2.0 LibCustomMenu LibSets Or try if everything works okay and leave it the way it is.
Last edited by Baertram : 05/02/21 at 07:49 AM.
|
||||
|
Baertram |
View Public Profile |
Send a private message to Baertram |
Send email to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
05/02/21, 06:03 AM | ||||
Forum posts: 10
File comments: 37
Uploads: 0
|
Re: Re: i replaced the libcustommenu file
|
|||
|
iarao |
View Public Profile |
Send a private message to iarao |
Send email to iarao |
Find More Posts by iarao |
Add iarao to Your Buddy List |
05/02/21, 04:45 AM | |||
Re: i replaced the libcustommenu file
next time READ!!
you need to go in every folder of your addons and look if there is an old LibCustomMenu and delete it. |
|||
|
FWSWBN |
View Public Profile |
Send a private message to FWSWBN |
Send email to FWSWBN |
Find More Posts by FWSWBN |
Add FWSWBN to Your Buddy List |
05/01/21, 06:16 PM | |
Forum posts: 10
File comments: 37
Uploads: 0
|
i replaced the libcustommenu file
i was totally logged out. i am getting these lua errors:
'Z0_CustomMenuItem1'.Duplicate name. 'LibCustomMenuSubmenu'.Duplicate name. i also get this error with a different number other than the 1.
Last edited by iarao : 05/01/21 at 08:58 PM.
|
|
iarao |
View Public Profile |
Send a private message to iarao |
Send email to iarao |
Find More Posts by iarao |
Add iarao to Your Buddy List |