2023-04-12 16:40:13 +00:00
|
|
|
--
|
|
|
|
-- Graphics Style Options
|
|
|
|
--
|
|
|
|
|
|
|
|
local core = require("graphics.core")
|
|
|
|
|
|
|
|
local style = {}
|
|
|
|
|
2023-05-07 01:27:36 +00:00
|
|
|
local cpair = core.cpair
|
2023-04-12 16:40:13 +00:00
|
|
|
|
|
|
|
-- GLOBAL --
|
|
|
|
|
|
|
|
style.root = cpair(colors.white, colors.black)
|
|
|
|
style.header = cpair(colors.white, colors.gray)
|
2024-05-30 02:08:36 +00:00
|
|
|
style.text_fg = cpair(colors.white, colors._INHERIT)
|
|
|
|
style.label = cpair(colors.lightGray, colors.black)
|
|
|
|
style.label_unit_pair = cpair(colors.lightGray, colors.lightGray)
|
2023-04-12 16:40:13 +00:00
|
|
|
|
|
|
|
style.colors = {
|
|
|
|
{ c = colors.red, hex = 0xdf4949 },
|
|
|
|
{ c = colors.orange, hex = 0xffb659 },
|
|
|
|
{ c = colors.yellow, hex = 0xfffc79 },
|
|
|
|
{ c = colors.lime, hex = 0x80ff80 },
|
|
|
|
{ c = colors.green, hex = 0x4aee8a },
|
|
|
|
{ c = colors.cyan, hex = 0x34bac8 },
|
|
|
|
{ c = colors.lightBlue, hex = 0x6cc0f2 },
|
|
|
|
{ c = colors.blue, hex = 0x0096ff },
|
|
|
|
{ c = colors.purple, hex = 0xb156ee },
|
|
|
|
{ c = colors.pink, hex = 0xf26ba2 },
|
|
|
|
{ c = colors.magenta, hex = 0xf9488a },
|
|
|
|
-- { c = colors.white, hex = 0xf0f0f0 },
|
|
|
|
{ c = colors.lightGray, hex = 0xcacaca },
|
|
|
|
{ c = colors.gray, hex = 0x575757 },
|
|
|
|
-- { c = colors.black, hex = 0x191919 },
|
|
|
|
-- { c = colors.brown, hex = 0x7f664c }
|
|
|
|
}
|
|
|
|
|
2024-05-30 02:08:36 +00:00
|
|
|
local states = {}
|
|
|
|
|
|
|
|
states.basic_states = {
|
|
|
|
{ color = cpair(colors.black, colors.lightGray), symbol = "\x07" },
|
|
|
|
{ color = cpair(colors.black, colors.red), symbol = "-" },
|
|
|
|
{ color = cpair(colors.black, colors.yellow), symbol = "\x1e" },
|
|
|
|
{ color = cpair(colors.black, colors.green), symbol = "+" }
|
|
|
|
}
|
|
|
|
|
|
|
|
states.mode_states = {
|
|
|
|
{ color = cpair(colors.black, colors.lightGray), symbol = "\x07" },
|
|
|
|
{ color = cpair(colors.black, colors.red), symbol = "-" },
|
|
|
|
{ color = cpair(colors.black, colors.green), symbol = "+" },
|
|
|
|
{ color = cpair(colors.black, colors.purple), symbol = "A" }
|
|
|
|
}
|
|
|
|
|
|
|
|
states.emc_ind_s = {
|
|
|
|
{ color = cpair(colors.black, colors.gray), symbol = "-" },
|
|
|
|
{ color = cpair(colors.black, colors.white), symbol = "\x07" },
|
|
|
|
{ color = cpair(colors.black, colors.green), symbol = "+" }
|
|
|
|
}
|
|
|
|
|
2024-06-01 04:50:19 +00:00
|
|
|
states.tri_ind_s = {
|
|
|
|
{ color = cpair(colors.black, colors.lightGray), symbol = "+" },
|
|
|
|
{ color = cpair(colors.black, colors.yellow), symbol = "\x1e" },
|
|
|
|
{ color = cpair(colors.black, colors.red), symbol = "-" }
|
|
|
|
}
|
|
|
|
|
2024-05-30 02:08:36 +00:00
|
|
|
states.red_ind_s = {
|
|
|
|
{ color = cpair(colors.black, colors.lightGray), symbol = "+" },
|
|
|
|
{ color = cpair(colors.black, colors.red), symbol = "-" }
|
|
|
|
}
|
|
|
|
|
|
|
|
states.yel_ind_s = {
|
|
|
|
{ color = cpair(colors.black, colors.lightGray), symbol = "+" },
|
|
|
|
{ color = cpair(colors.black, colors.yellow), symbol = "-" }
|
|
|
|
}
|
|
|
|
|
|
|
|
style.icon_states = states
|
|
|
|
|
2023-04-12 16:40:13 +00:00
|
|
|
-- MAIN LAYOUT --
|
|
|
|
|
|
|
|
style.reactor = {
|
|
|
|
-- reactor states
|
|
|
|
states = {
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.yellow),
|
2024-06-02 20:06:32 +00:00
|
|
|
text = "OFF-LINE"
|
2023-04-12 16:40:13 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.orange),
|
|
|
|
text = "NOT FORMED"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.orange),
|
|
|
|
text = "PLC FAULT"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.white, colors.gray),
|
|
|
|
text = "DISABLED"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.green),
|
|
|
|
text = "ACTIVE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.red),
|
|
|
|
text = "SCRAMMED"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.red),
|
2024-06-02 20:06:32 +00:00
|
|
|
text = "FORCE DSBL"
|
2023-04-12 16:40:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
style.boiler = {
|
|
|
|
-- boiler states
|
|
|
|
states = {
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.yellow),
|
|
|
|
text = "OFF-LINE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.orange),
|
|
|
|
text = "NOT FORMED"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.orange),
|
|
|
|
text = "RTU FAULT"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.white, colors.gray),
|
|
|
|
text = "IDLE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.green),
|
|
|
|
text = "ACTIVE"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
style.turbine = {
|
|
|
|
-- turbine states
|
|
|
|
states = {
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.yellow),
|
|
|
|
text = "OFF-LINE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.orange),
|
|
|
|
text = "NOT FORMED"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.orange),
|
|
|
|
text = "RTU FAULT"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.white, colors.gray),
|
|
|
|
text = "IDLE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.green),
|
|
|
|
text = "ACTIVE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.red),
|
|
|
|
text = "TRIP"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
style.imatrix = {
|
|
|
|
-- induction matrix states
|
|
|
|
states = {
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.yellow),
|
|
|
|
text = "OFF-LINE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.orange),
|
|
|
|
text = "NOT FORMED"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.orange),
|
|
|
|
text = "RTU FAULT"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.green),
|
|
|
|
text = "ONLINE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.yellow),
|
|
|
|
text = "LOW CHARGE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.yellow),
|
|
|
|
text = "HIGH CHARGE"
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return style
|