From bd88244681276892ed4161a7028ed219d4f41a7c Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Tue, 12 Mar 2024 12:45:47 -0400 Subject: [PATCH] #439 remind user to configure peripherals and redstone, and provide buttons to do so --- rtu/configure.lua | 13 +++++++++++++ rtu/startup.lua | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/rtu/configure.lua b/rtu/configure.lua index acc419f..1ec2aec 100644 --- a/rtu/configure.lua +++ b/rtu/configure.lua @@ -710,7 +710,20 @@ local function config_view(display) PushButton{parent=sum_c_3,x=1,y=14,text="\x1b Back",callback=function()sum_pane.set_value(2)end,fg_bg=nav_fg_bg,active_fg_bg=btn_act_fg_bg} PushButton{parent=sum_c_3,x=43,y=14,min_width=7,text="Apply",callback=save_and_continue,fg_bg=cpair(colors.black,colors.green),active_fg_bg=btn_act_fg_bg} + local function jump_peri_conns() + tool_ctl.go_home() + show_peri_conns() + end + + local function jump_rs_conns() + tool_ctl.go_home() + show_rs_conns() + end + TextBox{parent=sum_c_4,x=1,y=1,height=1,text="Settings saved!"} + TextBox{parent=sum_c_4,x=1,y=3,height=4,text="Remember to configure any peripherals or redstone that you have connected to this RTU gateway if you have not already done so, or if you have added, removed, or modified any of them."} + PushButton{parent=sum_c_4,x=1,y=8,min_width=24,text="Peripheral Connections",callback=jump_peri_conns,fg_bg=cpair(colors.black,colors.yellow),active_fg_bg=btn_act_fg_bg} + PushButton{parent=sum_c_4,x=1,y=10,min_width=22,text="Redstone Connections",callback=jump_rs_conns,fg_bg=cpair(colors.black,colors.yellow),active_fg_bg=btn_act_fg_bg} PushButton{parent=sum_c_4,x=1,y=14,min_width=6,text="Exit",callback=exit,fg_bg=cpair(colors.black,colors.red),active_fg_bg=cpair(colors.white,colors.gray)} PushButton{parent=sum_c_4,x=44,y=14,min_width=6,text="Home",callback=function()tool_ctl.go_home()end,fg_bg=nav_fg_bg,active_fg_bg=btn_act_fg_bg} diff --git a/rtu/startup.lua b/rtu/startup.lua index 8888d05..4429c5d 100644 --- a/rtu/startup.lua +++ b/rtu/startup.lua @@ -31,7 +31,7 @@ local sna_rtu = require("rtu.dev.sna_rtu") local sps_rtu = require("rtu.dev.sps_rtu") local turbinev_rtu = require("rtu.dev.turbinev_rtu") -local RTU_VERSION = "v1.7.15" +local RTU_VERSION = "v1.7.16" local RTU_UNIT_TYPE = types.RTU_UNIT_TYPE local RTU_UNIT_HW_STATE = databus.RTU_UNIT_HW_STATE