Thread Tools Display Modes
08/17/20, 08:22 AM   #1
Marazota
AddOn Author - Click to view addons
Join Date: Sep 2015
Posts: 257
Updating libEventHandler

hey guys i am trying to update this old lib
https://www.esoui.com/downloads/info...ntHandler.html

to work without libStub

1) deleted dependency from manifest adn added #isLibrary

2) next i must change this somehow, but how?

Code:
local MAJOR, MINOR = "LibEventHandler-1.1", 1.0
local LEH, LEHminor = LibStub:NewLibrary(MAJOR, MINOR)
if not LEH then return end
  Reply With Quote
08/17/20, 11:12 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
https://www.esoui.com/downloads/file...=1452#comments
  Reply With Quote
08/17/20, 02:08 PM   #3
Marazota
AddOn Author - Click to view addons
Join Date: Sep 2015
Posts: 257
thanks
something wrong
getting this error

Code:
user:/AddOns/InventoryAssistant/InventoryAssistant.lua:654: attempt to index a nil value
stack traceback:
user:/AddOns/InventoryAssistant/InventoryAssistant.lua:654: in function 'IA_InventoryAssistant:InitializeSettingsMenu'
|caaaaaa<Locals> self = [table:1]{groupLoots = T, showFCOISGearSetMarkers = T, onlyDuplicates = F, showCrafted = T, onlyMarkedItems = F, onlyLoots = F, onlyNonCP160 = F, showFCOISDynamicMarkers = T, onlyCP160 = F, showNonSetItems = T, showBuyable = T, showMonsterSets = T, showEnchants = T, showItemLevels = T, showBound = T} </Locals>|r
user:/AddOns/InventoryAssistant/InventoryAssistant.lua:502: in function 'eventToFunctionTable'
|caaaaaa<Locals> event = 65536, addonName = "InventoryAssistant" </Locals>|r
user:/AddOns/LibEventHandler/LibEventHandler.lua:21: in function 'CallEventFunctions'
|caaaaaa<Locals> eventCode = 65536, numOfFuncs = 1, i = 1 </Locals>|r
  Reply With Quote
08/17/20, 02:13 PM   #4
Marazota
AddOn Author - Click to view addons
Join Date: Sep 2015
Posts: 257
in the addon itself i changed this

Code:
-- LOCAL FUNCTIONS
-----------------------------------------------------------------------------------------------------------------------------------
local EH = LibStub:GetLibrary ( "LibEventHandler-1.1" )
local menu = LibStub:GetLibrary ( "LibCustomMenu" )
local LAM = LibStub:GetLibrary( "LibAddonMenu-2.0" )
to this

Code:
-- LOCAL FUNCTIONS
-----------------------------------------------------------------------------------------------------------------------------------
local EH = LibEventHandler
local menu = LibCustomMenu
local LAM = LibAddonMenu
and this

Code:
self.async = LibStub( "LibAsync" ):Create ( self.name )
to this

Code:
self.async = LibAsync:Create ( self.name )
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » Updating libEventHandler

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off