#344 graphics assertion overhaul

This commit is contained in:
Mikayla Fischler
2023-09-30 11:46:47 -04:00
parent ed4180a072
commit 625feb3fd1
31 changed files with 126 additions and 113 deletions

View File

@@ -111,6 +111,14 @@ function core.pipe(x1, y1, x2, y2, color, thin, align_tr)
}
end
-- Assertion Handling
-- extract the custom element assert message, dropping the path to the element file
function core.extract_assert_msg(msg)
local start = string.find(msg, "@") or 1
return string.sub(msg, start)
end
-- Interactive Field Manager
---@param e graphics_base