Add player color Venn HUD

This commit is contained in:
Your Name 2026-08-12 14:52:06 -04:00
parent 9b5b9ce182
commit 6f4b2fe696
3 changed files with 102 additions and 4 deletions

View file

@ -1138,10 +1138,10 @@ local function openWorldRoom(cellX, cellY)
end
function editorMouseHandler(x, y, button)
if x > width then
if x >= sideBarBox.x and x < sideBarBox.x + sideBarBox.w then
-- map from real window coords into the sidebar's fixed virtual space
-- (same transform used to scale the sidebar canvas up in love.draw)
x = (x - width) * sb.w / sideBarBox.w
x = (x - sideBarBox.x) * sb.w / sideBarBox.w
y = y * sb.h / sideBarBox.h
if editorView == "room" then