在默认NPC对话框中
<关闭/@exit> 由代码关闭窗口
function exit(npc,player)`
return [[<Delete path="#DialogsLayer > #NPCDialog > #DefaultWindow"/>]]`
end`
exit 方法封装在 LuaScript\Plugins\CONST.lua 中
则可直接写成
function exit(npc,player)
Close()
end
如果用标签关闭对话框
只需在 参数中添加 class=”exit”
例如
<Button class="exit" style="left: 735px; top: 48px; width: 29px; height: 45px; background-image: UI/NPCDialog/Npc_00000.png;"/>
作者:yilin01 创建时间:2025-04-14 17:11
最后编辑:yilin01 更新时间:2025-08-20 18:55
最后编辑:yilin01 更新时间:2025-08-20 18:55