shadowed text

This commit is contained in:
2025-12-13 19:57:50 +01:00
parent 5379e30cf3
commit 8e8d181c34
11 changed files with 36 additions and 26 deletions

View File

@@ -2,15 +2,15 @@ function InventoryWindow.draw()
UI.draw_top_bar("Inventory")
if #Context.inventory == 0 then
print("Inventory is empty.", 70, 70, Config.colors.light_grey)
Print.text("Inventory is empty.", 70, 70, Config.colors.light_grey)
else
for i, item in ipairs(Context.inventory) do
local color = Config.colors.light_grey
if i == Context.selected_inventory_item then
color = Config.colors.green
print(">", 60, 20 + i * 10, color)
Print.text(">", 60, 20 + i * 10, color)
end
print(item.name, 70, 20 + i * 10, color)
Print.text(item.name, 70, 20 + i * 10, color)
end
end
end