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: | 28,560 |
Total downloads: | 4,627,975 |
Favorites: | 2,030 |
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 |
Poalima |
View Public Profile |
Send a private message to Poalima |
Find More Posts by Poalima |
Add Poalima to Your Buddy List |
04/20/22, 02:34 PM | |||
|
Re: Re: 7.0.0. Menu shows up but not interactable
Played around a bit with /zgoo and based on this post: https://www.esoui.com/forums/showpos...29&postcount=4 When setting DrawTier, DrawLevel and DrawLayer all to 0, submenu items became interactable again :-) Code:
/script m=GetControl("LibCustomMenuSubmenu") m:SetDrawLayer(0) m:SetDrawLevel(0) m:SetDrawTier(0) only problem is now tooltip is behind the submenu.... doesnt bother me for testing my addon, but needed the interactability back :-) played a bit with the anchor settings in your code for the tooltip...managed to get make it visible if submenu opens to left of menu...but not vice versa...
Last edited by remosito : 04/20/22 at 02:41 PM.
|
||
|
remosito |
View Public Profile |
Send a private message to remosito |
Find More Posts by remosito |
Add remosito to Your Buddy List |
votan |
View Public Profile |
Send a private message to votan |
Find More Posts by votan |
Add votan to Your Buddy List |
04/19/22, 11:46 AM | |
|
7.0.0. Menu shows up but not interactable
Howdie,
maybe sth on my end. But on PTS my custom inventory menu shows up. But can't interact with it (checkboxes).. clicks dont seem to register... same for Price Tooltip "price to chat" and note entry... Edit: Btw..it's a submenu.. and the tooltips I have setup for the submenu items dont show either..
Last edited by remosito : 04/19/22 at 01:40 PM.
|
|
remosito |
View Public Profile |
Send a private message to remosito |
Find More Posts by remosito |
Add remosito to Your Buddy List |
02/06/22, 02:56 AM | ||
Forum posts: 0
File comments: 2
Uploads: 0
|
Re: UI Errors
Fixed it. The FCM Quest Tracker add-on had a post where someone else had the same error.
|
|
|
redstick94 |
View Public Profile |
Send a private message to redstick94 |
Send email to redstick94 |
Find More Posts by redstick94 |
Add redstick94 to Your Buddy List |
02/05/22, 09:03 PM | |
Forum posts: 0
File comments: 2
Uploads: 0
|
UI Errors
Hello, I've returned to the game after a few years and I updated all of my add-ons, but they're experiencing an error with LibCustomMenu.
This is the first error to appear: Failed to create control 'LibCustomMenuSubmenu'. Duplicate name. I dismiss this error and then these appear: user:/AddOns/FCMQT/Libs/LibCustomMenu.lua:86: attempt to index a nil value stack traceback: user:/AddOns/FCMQT/Libs/LibCustomMenu.lua:86: in function 'Submenu:Initialize' |caaaaaa<Locals> self = [table:1]{}, name = "LibCustomMenuSubmenu" </Locals>|r user:/AddOns/FCMQT/Libs/LibCustomMenu.lua:78: in function 'Submenu:New' |caaaaaa<Locals> self = [table:2]{__isAbstractClass = F}, object = [table:1] </Locals>|r user:/AddOns/FCMQT/Libs/LibCustomMenu.lua:648: in function 'OnAddonLoaded' |caaaaaa<Locals> event = 65536, name = "LibDebugLogger" </Locals> The error appears to be with the quest tracker, but I am unsure how to fix it. |
|
redstick94 |
View Public Profile |
Send a private message to redstick94 |
Send email to redstick94 |
Find More Posts by redstick94 |
Add redstick94 to Your Buddy List |
01/31/22, 03:15 PM | |
|
Bug report: Misalignment of checkboxes
Hey,
I just want to note that there is a misalignment when adding one or more checkox items to a custom menu. As you can see in the screenshot, there is some unintended space at the end while the entries before are getting closer and closer together. I think the checkbox element makes some trouble for the correct alignment. Would be great if the issue could be confirmed and fixed in the next update. Thank you very much in advance |
|
@DeadSoon |
View Public Profile |
Send a private message to @DeadSoon |
Send email to @DeadSoon |
Find More Posts by @DeadSoon |
Add @DeadSoon to Your Buddy List |
09/07/21, 10:44 PM | |
Forum posts: 0
File comments: 5
Uploads: 0
|
Breaks Guild Store?
Hey Votan,
I finally narrowed down an issue and after updating this library today it broke guild store functionality (searching and purchasing). At first I thought it was AwesomeGuildStore but I disabled that and the base game version didn't work either. After restoring an old backup of LibCustomMenu I had from 6/1 everything works fine. Thanks! -Nettle |
|
NettleCarrier |
View Public Profile |
Send a private message to NettleCarrier |
Send email to NettleCarrier |
Find More Posts by NettleCarrier |
Add NettleCarrier to Your Buddy List |
09/06/21, 09:49 AM | ||
|
||
|
mlq88 |
View Public Profile |
Send a private message to mlq88 |
Send email to mlq88 |
Find More Posts by mlq88 |
Add mlq88 to Your Buddy List |
09/05/21, 08:41 AM | |
|
@Dr.Barich and @mlq88
I notice you're both using Shissu's guild tools. Looks like that hasn't updated on a long while. As a test, will you disable it and see if your other context menu functionality comes back? You can turn it right back on afterwards. Thanks! |
|
mightyjo |
View Public Profile |
Send a private message to mightyjo |
Send email to mightyjo |
Find More Posts by mightyjo |
Add mightyjo to Your Buddy List |
09/05/21, 04:12 AM | |
After yesterday update LibCustomMenu we get this error when i try open context menu of guildmember, but i have disabled Dolgubon's Lazy Writ Crafter in modifications menu.
Code:
user:/AddOns/LibCustomMenu/LibCustomMenu.lua:905: operator < is not supported for nil < number stack traceback: user:/AddOns/LibCustomMenu/LibCustomMenu.lua:905: in function 'appendEntries' user:/AddOns/LibCustomMenu/LibCustomMenu.lua:930: in function 'GUILD_ROSTER_KEYBOARD.ShowMenu' /EsoUI/Ingame/Guild/Keyboard/GuildRoster_Keyboard.lua:325: in function 'ZO_KeyboardGuildRosterManager:GuildRosterRow_OnMouseUp' |caaaaaa<Locals> self = [table:1]{alternateRowBackgrounds = T, currentSortKey = "status", currentSortOrder = T, automaticallyColorRows = T}, control = ud, button = 2, upInside = T, data = [table:2]{characterName = "maxbot", sortIndex = 17, rankId = 5, MM_Sold = 0, MM_PerChg = 0, formattedZone = "Марка Смерти", MM_Count = 0, characterNameTT = "|cAFD3FF@maxbot|ceeeeee |t28:...", timeStamp = 0, goldDeposit = 0, status = 1, gender = 2, alliance = 1, type = 1, goldDepositTT = "|cAFD3FF@maxbot |ceeeeeeНет...", index = 323, hasCharacter = T, displayName = "@maxbot", level = 33, normalizedLogoffSort = -1, note = "", MM_Bought = 0, secsSinceLogoff = -1, online = T, rankIndex = 10, formattedAllianceName = "Альдмерский Доми...", class = 3, championPoints = 0, isLocalPlayer = F}, guildId = 437054, guildName = "Clawhanded Madcrabs", guildAlliance = 1, dataIndex = 323, playerIndex = 281, masterList = [table:3]{}, playerData = [table:4]{characterName = "|ceeeeeeJaqen Ghgar", sortIndex = 14, rankId = 3, MM_Sold = 0, MM_PerChg = 0, formattedZone = "Вварденфелл", MM_Count = 0, characterNameTT = "|cAFD3FF@JaqenGhgar|ceeeeee |...", timeStamp = 0, goldDeposit = 450000, status = 1, gender = 2, alliance = 2, type = 1, goldDepositTT = "|cAFD3FF@JaqenGhgar|ceeeeee |...", index = 281, hasCharacter = T, displayName = "@JaqenGhgar", level = 50, normalizedLogoffSort = -1, note = "|H1:guild:437054|hКрабов...", MM_Bought = 0, secsSinceLogoff = -1, online = T, rankIndex = 3, formattedAllianceName = "Эбонхартский Пак...", class = 4, championPoints = 387, isLocalPlayer = T}, playerHasHigherRank = T, playerIsPendingInvite = F </Locals>|r user:/AddOns/ShissuContextMenu/ShissuContextMenu.lua:167: in function '_addon.GuildRosterRow_OnMouseUp' |caaaaaa<Locals> self = [table:1], control = ud, button = 2, upInside = T, data = [table:2] </Locals>|r user:/AddOns/PortToFriendsHouse/PortToFriendsHouse.lua:919: in function 'GuildRosterRow_OnMouseUp' |caaaaaa<Locals> self = [table:1], control = ud, button = 2, upInside = T, data = [table:2] </Locals>|r /EsoUI/Ingame/Guild/Keyboard/GuildRoster_Keyboard.lua:483: in function 'ZO_KeyboardGuildRosterRow_OnMouseUp' |caaaaaa<Locals> control = ud, button = 2, upInside = T </Locals>|r ZO_GuildRosterList1Row1DisplayName_MouseUp:3: in function '(main chunk)' |caaaaaa<Locals> self = ud, button = 2, upInside = T, ctrl = F, alt = F, shift = F, command = F </Locals>|r
Last edited by Dr.Barich : 09/05/21 at 04:13 AM.
|
|
|
Dr.Barich |
View Public Profile |
Send a private message to Dr.Barich |
Send email to Dr.Barich |
Find More Posts by Dr.Barich |
Add Dr.Barich to Your Buddy List |
09/05/21, 02:20 AM | |
Forum posts: 0
File comments: 2
Uploads: 0
|
last night i crashed to desktop 3 times within two hours.
i was in cyrodiil and the crashes always happened when i just entered an enemy inner keep. the only thing that changed in my pc and software was the libcustommenu update. is there a possibility that this lib can cause the game to crash to desktop ? |
|
Dagranpa |
View Public Profile |
Send a private message to Dagranpa |
Send email to Dagranpa |
Find More Posts by Dagranpa |
Add Dagranpa to Your Buddy List |
09/05/21, 01:16 AM | |
With the latest update I've actually lost the option to right click, not quite sure where to start
Code:
user:/AddOns/LibCustomMenu/LibCustomMenu.lua:905: operator < is not supported for nil < number stack traceback: user:/AddOns/LibCustomMenu/LibCustomMenu.lua:905: in function 'appendEntries' user:/AddOns/LibCustomMenu/LibCustomMenu.lua:930: in function 'GUILD_ROSTER_KEYBOARD.ShowMenu' /EsoUI/Ingame/Guild/Keyboard/GuildRoster_Keyboard.lua:325: in function 'ZO_KeyboardGuildRosterManager:GuildRosterRow_OnMouseUp' <Locals> self = [table:1]{alternateRowBackgrounds = T, automaticallyColorRows = T, currentSortKey = "status", currentSortOrder = T}, control = ud, button = 2, upInside = T, data = [table:2]{displayName = "@blackfrost79", goldDeposit = 0, class = 3, formattedZone = "Deshaan", note = "", alliance = 1, formattedAllianceName = "Aldmeri Dominion", online = T, normalizedLogoffSort = -1, sortIndex = 2, ATT_Sales = 15240, index = 468, ATT_Purchases = 11671, goldDepositTT = "|cAFD3FF@blackfrost79 |ceeeeee...", timeStamp = 0, level = 50, secsSinceLogoff = -1, championPoints = 908, status = 1, type = 1, hasCharacter = T, gender = 1, rankIndex = 9, rankId = 1, characterName = "Anuriel Nightsky", isLocalPlayer = F}, guildId = 369982, guildName = "Tamriel Outcasts", guildAlliance = 1, dataIndex = 468, playerIndex = 247, masterList = [table:3]{}, playerData = [table:4]{displayName = "@UtopianWarrior88", goldDeposit = 0, class = 6, formattedZone = "Mathiisen Manor", note = "Vice-Guildmaster; heals/tanks/...", alliance = 1, formattedAllianceName = "Aldmeri Dominion", online = T, normalizedLogoffSort = -1, sortIndex = 27, ATT_Sales = 1784515, index = 247, ATT_Purchases = 106999, goldDepositTT = "|cAFD3FF@UtopianWarrior88|ceee...", timeStamp = 0, level = 50, secsSinceLogoff = -1, championPoints = 1809, status = 3, type = 1, hasCharacter = T, gender = 2, rankIndex = 2, rankId = 3, characterName = "|ceeeeeeMaldur Stormaire", isLocalPlayer = T}, playerHasHigherRank = T, playerIsPendingInvite = F </Locals> user:/AddOns/ShissuContextMenu/ShissuContextMenu.lua:167: in function '_addon.GuildRosterRow_OnMouseUp' <Locals> self = [table:1], control = ud, button = 2, upInside = T, data = [table:2] </Locals> user:/AddOns/GroupManager/GroupManager.lua:155: in function 'GUILD_ROSTER_KEYBOARD:GuildRosterRow_OnMouseUp' <Locals> self = [table:1], control = ud, button = 2, upInside = T </Locals> user:/AddOns/OdySupportIcons/ModGuildRoster.lua:29: in function 'GUILD_ROSTER_KEYBOARD:GuildRosterRow_OnMouseUp' <Locals> self = [table:1], control = ud, button = 2, upInside = T </Locals> /EsoUI/Ingame/Guild/Keyboard/GuildRoster_Keyboard.lua:483: in function 'ZO_KeyboardGuildRosterRow_OnMouseUp' <Locals> control = ud, button = 2, upInside = T </Locals> ZO_GuildRosterList1Row1_MouseUp:3: in function '(main chunk)' <Locals> self = ud, button = 2, upInside = T, ctrl = F, alt = F, shift = F, command = F </Locals> |
|
|
mlq88 |
View Public Profile |
Send a private message to mlq88 |
Send email to mlq88 |
Find More Posts by mlq88 |
Add mlq88 to Your Buddy List |
09/04/21, 01:07 PM | |
|
Tons of errors from LibCustomMenu on right-click
UPDATE: It was a different addon that was using LibCustomMenu causing ALL of the errors (Item Saver)
Starting today (9/4/2021) I am getting an incredibly high number of errors. Sometimes five errors when I right-click one item one time. The errors seem to be caused by different other mods that use libcustommenu, so I must assume the latest update (updated today) is causing them, because it's the only thing they all have in common. I have seen errors from Furniture Catolgue, from ATT, etc. It may be wise to rollback the latest release. Code:
/EsoUI/Libraries/ZO_ContextMenus/ZO_ContextMenus.lua:335: function expected instead of nil
Last edited by MadDachshund : 09/04/21 at 01:21 PM.
|
|
MadDachshund |
View Public Profile |
Send a private message to MadDachshund |
Send email to MadDachshund |
Find More Posts by MadDachshund |
Add MadDachshund to Your Buddy List |
08/22/21, 08:57 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 |