Add player color Venn HUD
This commit is contained in:
parent
9b5b9ce182
commit
6f4b2fe696
3 changed files with 102 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue