akgogl.blogg.se

Elder scrolls online wallpaper menu
Elder scrolls online wallpaper menu






elder scrolls online wallpaper menu
  1. #Elder scrolls online wallpaper menu full
  2. #Elder scrolls online wallpaper menu code
  3. #Elder scrolls online wallpaper menu download

Fix for U32 adding a divider to header menu item. If you want to add items to the inventory context-menu, look at the example for LibCustomMenu:RegisterContextMenu more below. These examples are for self-created menus. Visible: boolean or function(rootMenu, childControl), optional. if true, sub item is visible, but gray and not clickable. Label: string or function(rootMenu, childControl), required.ĭisabled: boolean or function(rootMenu, childControl), optional. Callback function for the click on the submenu open button (the one at the main menu showing the submenu) SubMenuButtonCallbackFunc: function, optional. y-padding between items.įunction AddCustomSubMenuItem(mytext, entries, myfont, normalColor, highlightColor, itemYPad, subMenuButtonCallbackFunc)Įntries: table of sub items or callback returning table of sub items, required. MENU_ADD_OPTION_LABEL or MENU_ADD_OPTION_CHECKBOX.

#Elder scrolls online wallpaper menu code

In order to have more value than avoiding a rare, just annoying "bug", sirinsidiator suggested and provided proof of concept code for sub menu items.įunction AddCustomMenuItem(mytext, myfunction, itemType, myfont, normalColor, highlightColor, itemYPad) This version was intended as proof of concept, but was successfully used in Beartram's FCO Item Saver, Circonian's FilterIt and my Fish Fillet. It is built-in code, which re-uses controls indirectly created by your add-on in AddMenuItem.Īfter you have included the lib in your add-on manifest (.txt) do a text search for the global function AddMenuItem (not any :AddMenuItem of other objects) and replace it with AddCustomMenuItem.īe careful with a simple "Replace All" over all files! You probably replace the AddMenuItem of LibCustomMenu itself It's not you, who uses private functions. It uses an own pool of controls, which look exactly the same. That's what AddCustomMenuItem of this library does. To avoid the error message, the controls of built-in menu items and add-on menu items must be strictly separated. Running into this problem with AddMenuItem is real rare, but inventory action slots still don't like custom menu entries. See here.īut this just reduces the chance of running into that problem, it does not fix it.Ĭurrently the number of preallocated controls is 30. Starting with ESO 2.0.13 ZOS preallocates 10 "secure" menu items. A crash of "Use" in the inventory afterwards was guaranteed.

#Elder scrolls online wallpaper menu full

Prior to ESO 2.0.13 if an add-on offers a full custom context-menu (no built-in menu entries) and this context-menu is shown first after (re-)load UI the first menu item controls are insecure. Once you hook AddMenuItem ALL controls created for the context-menu are "insecure".

elder scrolls online wallpaper menu

Like those of add-ons or Show On Map, Link in Chat or Get Help.īut "secured" functions like UseItem, InitiateDestroy, PickupInventoryItem raising the error message from above. But beginning with version 2.0, it does additional provide a new feature: sub menus.īeginning with version 3.0, it does additional provide a new feature: divider.Ĭontrols, created from add-on code (as part of code path) are marked as "insecure/compromissed".įunctions, which have no problem with been called from "insecure" controls, are still working perfectly. This library is written to overcome one way to get the "Access a private function XYZ from insecure code".

#Elder scrolls online wallpaper menu download

Download it, if an addon dependency tells you so.








Elder scrolls online wallpaper menu