Fix r2ed
This commit is contained in:
parent
f4399190e3
commit
fbcf921062
2 changed files with 4 additions and 1 deletions
|
@ -541,7 +541,7 @@ Translator.translateEventHandlers = function(context, hlNpc, eventHandlers, rtNp
|
||||||
while k do
|
while k do
|
||||||
local caller = nil
|
local caller = nil
|
||||||
if devMode then
|
if devMode then
|
||||||
caller = function (...) arg[1](arg[2], arg[3], arg[4], arg[5]) return true end
|
caller = function (...) local arg = {...} arg[1](arg[2], arg[3], arg[4], arg[5]) return true end
|
||||||
|
|
||||||
else
|
else
|
||||||
caller = pcall
|
caller = pcall
|
||||||
|
@ -898,6 +898,7 @@ end
|
||||||
-- Returns a RtNpcEventHandlerAction if the action is allowed
|
-- Returns a RtNpcEventHandlerAction if the action is allowed
|
||||||
--first parameter: action type
|
--first parameter: action type
|
||||||
Translator.createAction = function(...)
|
Translator.createAction = function(...)
|
||||||
|
local arg = {...}
|
||||||
local debug=config.R2EDExtendedDebug
|
local debug=config.R2EDExtendedDebug
|
||||||
local function header(toto)
|
local function header(toto)
|
||||||
|
|
||||||
|
@ -2774,6 +2775,7 @@ end
|
||||||
--third param : GroupsByName
|
--third param : GroupsByName
|
||||||
--then, parameters
|
--then, parameters
|
||||||
Translator.createEvent = function(...)
|
Translator.createEvent = function(...)
|
||||||
|
local arg = {...}
|
||||||
local event = r2.newComponent("RtNpcEventHandler")
|
local event = r2.newComponent("RtNpcEventHandler")
|
||||||
local eventType = arg[1]
|
local eventType = arg[1]
|
||||||
event.Event = eventType
|
event.Event = eventType
|
||||||
|
|
|
@ -1030,6 +1030,7 @@ end
|
||||||
--------------------
|
--------------------
|
||||||
--------------------
|
--------------------
|
||||||
function r2:updateAnimBarActions(...)
|
function r2:updateAnimBarActions(...)
|
||||||
|
local arg = {...}
|
||||||
-- forward to the real anim bar
|
-- forward to the real anim bar
|
||||||
r2.ui.AnimBar:updateActions(arg)
|
r2.ui.AnimBar:updateActions(arg)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue