From 4d3b5de7a94afcdbe2e27b2e74de02311ddb0b6b Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 23 Feb 2024 20:20:20 +0100 Subject: tmp --- src/i_insert.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/i_insert.go') diff --git a/src/i_insert.go b/src/i_insert.go index e6e7b13..321ac25 100644 --- a/src/i_insert.go +++ b/src/i_insert.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/i_insert.go - * Wed Feb 21 19:41:56 2024 + * Fri Feb 23 16:01:46 2024 * Joe * * insert a new host @@ -51,6 +51,11 @@ package main +func i_draw_text_box(ui HardUI, line int, label, content string) { + i_draw_text(ui.s, ui.dim[W] / 2 - len(label) - 1, line, ui.dim[W] / 2, line, ) + // TODO: here + // i_draw_box(ui.s, ) +} func i_draw_insert_panel(ui HardUI, in *HostNode) { if len(in.Name) == 0 { return @@ -64,5 +69,4 @@ func i_draw_insert_panel(ui HardUI, in *HostNode) { i_draw_box(ui.s, win.L, win.T, win.R, win.B, ui.style[STYLE_BOX], ui.style[STYLE_HEAD], " Insert - " + in.Name + " ", true) - // TODO: here } -- cgit v1.2.3