Skip to main content

TextUI

วิธีการเชื่อมต่อ TextUI
M.functions = {
    textui = {
        show = function(text)
            local key, after = text:match '%${(.-)}%s*(.*)'
            local payload = {
                key = key,
                text = after,
            }
            exports['errorism.textui']:open(payload)
        end,
        hide = function()
            exports['errorism.textui']:close()
        end,
    },
}