diff --git a/coordinator/startup.lua b/coordinator/startup.lua index 6dee519..2668f5a 100644 --- a/coordinator/startup.lua +++ b/coordinator/startup.lua @@ -12,7 +12,7 @@ local config = require("coordinator.config") local coordinator = require("coordinator.coordinator") local renderer = require("coordinator.renderer") -local COORDINATOR_VERSION = "alpha-v0.2.0" +local COORDINATOR_VERSION = "alpha-v0.2.1" local print = util.print local println = util.println diff --git a/coordinator/ui/components/unit_overview.lua b/coordinator/ui/components/unit_overview.lua index 413a97a..b00c380 100644 --- a/coordinator/ui/components/unit_overview.lua +++ b/coordinator/ui/components/unit_overview.lua @@ -23,7 +23,7 @@ local function make(parent, x, y, unit_id) TextBox{parent=root,text="Unit #" .. unit_id,alignment=TEXT_ALIGN.CENTER,height=1,fg_bg=style.header} -- reactor - local reactor = Rectangle{parent=root,border=border(1, colors.gray, false),width=30,height=10,x=1,y=3} + local reactor = Rectangle{parent=root,border=border(1, colors.gray),width=30,height=10,x=1,y=3} local text_fg_bg = cpair(colors.black, colors.lightGray) local lu_col = cpair(colors.gray, colors.gray) diff --git a/graphics/core.lua b/graphics/core.lua index 4bd0d9e..9e7ae4b 100644 --- a/graphics/core.lua +++ b/graphics/core.lua @@ -43,13 +43,13 @@ graphics.TEXT_ALIGN = { -- create a new border definition ---@param width integer border width ---@param color color border color ----@param even boolean whether to pad width extra to account for rectangular pixels +---@param even? boolean whether to pad width extra to account for rectangular pixels, defaults to false ---@return graphics_border function graphics.border(width, color, even) return { width = width, color = color, - even = even + even = even or false -- convert nil to false } end