Drop stale engine-binding-missing NOTE comments
The draw_rect_lines and draw_line bindings exist now; the inline NOTE comments warning about missing bindings are stale.
This commit is contained in:
6
init.lua
6
init.lua
@@ -343,7 +343,6 @@ local ui = (function()
|
||||
-- Background
|
||||
engine.render.draw_rect(chip.x, chip.y, chip.w, chip.h, bg_color)
|
||||
-- Border (active only)
|
||||
-- NOTE: engine.render.draw_rect_lines does not exist yet (needs engine-binding-task)
|
||||
if is_active then
|
||||
engine.render.draw_rect_lines(chip.x, chip.y, chip.w, chip.h, rgba(COLOR_CHIP_BORDER, 0xFF))
|
||||
end
|
||||
@@ -352,7 +351,6 @@ local ui = (function()
|
||||
local text_y = chip.y + (chip.h / 2) - 8
|
||||
engine.render.draw_text(chip.label, text_x, text_y, 14, text_color)
|
||||
-- Hidden overlay (strikethrough for invisible layers)
|
||||
-- NOTE: engine.render.draw_line does not exist yet (needs engine-binding-task)
|
||||
if not chip.is_roof and not state.is_layer_visible(chip.name) then
|
||||
engine.render.draw_line(chip.x, chip.y, chip.x + chip.w, chip.y + chip.h,
|
||||
rgba(COLOR_STRIKE, 0xFF), 2)
|
||||
@@ -361,7 +359,6 @@ local ui = (function()
|
||||
if chip.divider_after then
|
||||
local dy = chip.y + chip.h + (chip.gap_after / 2)
|
||||
-- Dashed: 4 short segments
|
||||
-- NOTE: engine.render.draw_line does not exist yet (needs engine-binding-task)
|
||||
for seg = 0, 3 do
|
||||
local sx = chip.x + seg * 9
|
||||
engine.render.draw_line(sx, dy, sx + 6, dy, rgba(COLOR_DIVIDER, 0xFF), 1)
|
||||
@@ -392,7 +389,6 @@ local ui = (function()
|
||||
local function draw_picker(mx, my)
|
||||
local p = picker_layout()
|
||||
engine.render.draw_rect(p.x, p.y, p.w, p.h, rgba(COLOR_PICKER_BG, 0xE0))
|
||||
-- NOTE: engine.render.draw_rect_lines does not exist yet (needs engine-binding-task)
|
||||
engine.render.draw_rect_lines(p.x, p.y, p.w, p.h, rgba(0xFFFFFF, 0xFF))
|
||||
|
||||
if not state.is_picker_open() then
|
||||
@@ -435,7 +431,6 @@ local ui = (function()
|
||||
local ty = grid_y + row * (TILE_THUMB_SIZE + 4)
|
||||
draw_tile_thumb(active_atlas, tid, tx, ty, TILE_THUMB_SIZE)
|
||||
if tid == state.get_active_tile() then
|
||||
-- NOTE: engine.render.draw_rect_lines does not exist yet (needs engine-binding-task)
|
||||
engine.render.draw_rect_lines(tx, ty, TILE_THUMB_SIZE, TILE_THUMB_SIZE,
|
||||
rgba(0xFFFF00, 0xFF))
|
||||
end
|
||||
@@ -445,7 +440,6 @@ local ui = (function()
|
||||
local function draw_status(mx, my)
|
||||
local s = status_layout()
|
||||
engine.render.draw_rect(s.x, s.y, s.w, s.h, rgba(COLOR_STATUS_BG, 0xC0))
|
||||
-- NOTE: engine.render.draw_rect_lines does not exist yet (needs engine-binding-task)
|
||||
engine.render.draw_rect_lines(s.x, s.y, s.w, s.h, rgba(0xFFFFFF, 0xFF))
|
||||
local cell = state.get_mouse_cell()
|
||||
local cell_str
|
||||
|
||||
Reference in New Issue
Block a user