@ -191,10 +191,10 @@ function M.say(text, voiceclip)
local sd = M.getsaydialog()
-- Do variable substitution before displaying text
local subbed = fungus.sub(text)
local subbed = M.sub(text)
local e = sd.SayInternal(subbed, M.sayoptions.clearprevious, M.sayoptions.waitforinput, M.sayoptions.fadewhendone, M.sayoptions.stopvoiceover, voiceclip)
fungus.runwait(e)
M.runwait(e)
end
--------------
@ -212,7 +212,7 @@ end
-- Gets the active menu dialog, or creates one if none exists yet
function M.getmenudialog()
if (M.menuoptions.menudialog == nil) then
local md = fungus.luautils.spawn("MenuDialog").GetComponent("MenuDialog")
local md = M.luautils.spawn("MenuDialog").GetComponent("MenuDialog")
M.setmenudialog(md)
end
return M.menuoptions.menudialog
@ -226,8 +226,8 @@ function M.menu(text, callback, interactive)
local md = M.getmenudialog()
-- Do variable substitution before displaying text
local subbed = fungus.sub(text)
md.AddOption(subbed, interactive or true, fungus.luaenvironment, callback)
local subbed = M.sub(text)
md.AddOption(subbed, interactive or true, M.luaenvironment, callback)
end
-- Display a timer during which the player has to choose an option.
@ -236,8 +236,8 @@ end
function M.menutimer(duration, callback)
local md = M.getmenudialog()
local e = md.ShowTimer(duration, fungus.luaenvironment, callback)
fungus.runwait(e)
local e = md.ShowTimer(duration, M.luaenvironment, callback)