mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
default to not even border
This commit is contained in:
parent
ea9e9288f7
commit
6980e73658
@ -12,7 +12,7 @@ local config = require("coordinator.config")
|
|||||||
local coordinator = require("coordinator.coordinator")
|
local coordinator = require("coordinator.coordinator")
|
||||||
local renderer = require("coordinator.renderer")
|
local renderer = require("coordinator.renderer")
|
||||||
|
|
||||||
local COORDINATOR_VERSION = "alpha-v0.2.0"
|
local COORDINATOR_VERSION = "alpha-v0.2.1"
|
||||||
|
|
||||||
local print = util.print
|
local print = util.print
|
||||||
local println = util.println
|
local println = util.println
|
||||||
|
@ -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}
|
TextBox{parent=root,text="Unit #" .. unit_id,alignment=TEXT_ALIGN.CENTER,height=1,fg_bg=style.header}
|
||||||
|
|
||||||
-- reactor
|
-- 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 text_fg_bg = cpair(colors.black, colors.lightGray)
|
||||||
local lu_col = cpair(colors.gray, colors.gray)
|
local lu_col = cpair(colors.gray, colors.gray)
|
||||||
|
@ -43,13 +43,13 @@ graphics.TEXT_ALIGN = {
|
|||||||
-- create a new border definition
|
-- create a new border definition
|
||||||
---@param width integer border width
|
---@param width integer border width
|
||||||
---@param color color border color
|
---@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
|
---@return graphics_border
|
||||||
function graphics.border(width, color, even)
|
function graphics.border(width, color, even)
|
||||||
return {
|
return {
|
||||||
width = width,
|
width = width,
|
||||||
color = color,
|
color = color,
|
||||||
even = even
|
even = even or false -- convert nil to false
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user