Go to Page... |
Compatibility: | Scribes of Fate (8.3.5) Firesong (8.2.5) |
Updated: | 03/13/23 03:24 PM |
Created: | 07/11/15 10:51 AM |
Monthly downloads: | 168,859 |
Total downloads: | 3,865,273 |
Favorites: | 1,764 |
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.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 |
votan |
View Public Profile |
Send a private message to votan |
Find More Posts by votan |
Add votan to Your Buddy List |
sinnereso |
View Public Profile |
Send a private message to sinnereso |
Send email to sinnereso |
Find More Posts by sinnereso |
Add sinnereso to Your Buddy List |
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 |
![]() |
|
Error after U37
Lua Error: user:/AddOns/LibCustomMenu/LibCustomMenu.lua:729: attempt to index a nil value
stack traceback: user:/AddOns/LibCustomMenu/LibCustomMenu.lua:729: in function 'AddCustomMenuItem' <Locals> mytext = "-", orgItemPool = [table:1]{m_NextControlId = 30, m_NextFree = 31}, orgCheckboxItemPool = [table:2]{m_NextControlId = 30, m_NextFree = 31}, isDivider = T </Locals> user:/AddOns/Postmaster/classes/SendMailField.lua:101: in function 'class.SendMailField:OnControlMouseUp' <Locals> self = [table:3]{settingsKeyValues = "sendmailRecipients", name = "PostmasterSendMailField", settingsKeyEnabled = "sendmailSaveRecipients", contextMenuLabel = "Recent Contacts"}, control = ud, mouseButton = 2, upInside = T, altKey = F, shiftKey = F, ctrlKey = F, commandKey = F, savedValues = [table:4]{}, removeEntries = [table:5]{} </Locals> (tail call): ?|r
Last edited by Tiara Ra : 03/13/23 at 07:45 AM.
|
|
![]() |
![]() |
Tiara Ra |
View Public Profile |
Send a private message to Tiara Ra |
Send email to Tiara Ra |
Find More Posts by Tiara Ra |
Add Tiara Ra to Your Buddy List |
![]() |
|||
|
Re: Re: any plans for friends list and group support?
|
||
![]() |
![]() |
sinnereso |
View Public Profile |
Send a private message to sinnereso |
Send email to sinnereso |
Find More Posts by sinnereso |
Add sinnereso to Your Buddy List |
![]() |
|||
|
Re: Re: any plans for friends list and group support?
*edit infact all the accessible variables from all of them would be handy to see in the addon info page
Last edited by sinnereso : 03/11/23 at 01:44 PM.
|
||
![]() |
![]() |
sinnereso |
View Public Profile |
Send a private message to sinnereso |
Send email to sinnereso |
Find More Posts by sinnereso |
Add sinnereso to Your Buddy List |
![]() |
|||
|
Re: Re: any plans for friends list and group support?
I'm trying to add context menus in guild friends group and chat to basically save a users @NAME to a variable for use within the addon. So if its possible a similar setup to guild or chat be nice like this: lib:RegisterPlayerContextMenu(func, category) local function func(playerName, rawName) end I do understand the different data formats everything uses though so whatever will do. Its a hot mess trying to get everything into @NAME for my use =p
Last edited by sinnereso : 03/11/23 at 11:59 AM.
|
||
![]() |
![]() |
sinnereso |
View Public Profile |
Send a private message to sinnereso |
Send email to sinnereso |
Find More Posts by sinnereso |
Add sinnereso to Your Buddy List |
![]() |
||
Re: any plans for friends list and group support?
/Edit: Done with version 7.2.0.
Last edited by votan : 03/11/23 at 12:00 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 |
![]() |
|
|
![]() Have any plans for:
RegisterFriendRosterContextMenu and RegisterGroupRosterContextMenu by chance? |
![]() |
![]() |
sinnereso |
View Public Profile |
Send a private message to sinnereso |
Send email to sinnereso |
Find More Posts by sinnereso |
Add sinnereso to Your Buddy List |
![]() |
|||
Forum posts: 0
File comments: 2
Uploads: 0
|
Re: Re: LibCustomMenu overlaps when right-clicking
EDIT: After some digging, I believe I found what you were referring too, and it's now fixed. Got to the SetTracker.txt in your live>AddOns folder, delete the libs\LibCustomMenu\ part and save. ![]()
Last edited by Sshoalin : 07/17/22 at 10:25 AM.
|
||
![]() |
![]() |
Sshoalin |
View Public Profile |
Send a private message to Sshoalin |
Send email to Sshoalin |
Find More Posts by Sshoalin |
Add Sshoalin to Your Buddy List |
![]() |
||
Forum posts: 0
File comments: 1
Uploads: 0
|
Re: LibCustomMenu overlaps when right-clicking
|
|
![]() |
![]() |
bruskiboy |
View Public Profile |
Send a private message to bruskiboy |
Send email to bruskiboy |
Find More Posts by bruskiboy |
Add bruskiboy to Your Buddy List |
![]() |
||
Re: LibCustomMenu overlaps when right-clicking
|
||
![]() |
![]() |
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 |
![]() |
|
Forum posts: 0
File comments: 1
Uploads: 0
|
LibCustomMenu overlaps when right-clicking
Can anybody help me with this problem. I found another post on reddit from last year that said to downgrade to 6.9.5 which I did and it worked but I like to keep things updated and I'm not even sure that the problem is LibCustomMenu.
Im trying to use tamriel trade center to look up prices in game and when I disable that addon the menus are fine, or when I downgrade the menus are fine. Is there a way to fix it so I can have the newest versions for high isle? ![]() Thanks Josh |
![]() |
![]() |
Mizeov |
View Public Profile |
Send a private message to Mizeov |
Send email to Mizeov |
Find More Posts by Mizeov |
Add Mizeov to Your Buddy List |
![]() |
|||
|
|
||
![]() |
![]() |
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 |
![]() |
|||
ARK Undaunted is outdated it was very praticle to get undaunted of the day showed on the quest journal... didn't find an other addon doing that |
|||
![]() |
![]() |
Noctume |
View Public Profile |
Send a private message to Noctume |
Send email to Noctume |
Find More Posts by Noctume |
Add Noctume to Your Buddy List |
![]() |