From 2158b0c231665d1841bbff1dfaaf11d6d45a7b9f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 23 Jul 2021 10:25:20 +0300 Subject: Implemented help message for account page and put in proper chatWindow help message --- go-src/windows.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'go-src/windows.go') diff --git a/go-src/windows.go b/go-src/windows.go index 7401536..50bc5d5 100644 --- a/go-src/windows.go +++ b/go-src/windows.go @@ -221,7 +221,7 @@ func chatWindow(values ...string) { lastLine = -2 // Practically stops execution of the paginated subwindow routine } -func accountWindow(...string) { +func accountWindow(values ...string) { csi.ClearScreen() ui.NormalBox(true, chatNavTitle, directMessagesNavTitle, logoutNavTitle) @@ -232,9 +232,16 @@ func accountWindow(...string) { ) ui.EmptyLine() + if len(values) > 0 { + if values[0] == showHelp { + ui.TextField(accountWindowHelpMsg) + } + } input := ui.InputField(accountWindowSpec) - nextWindow := handleInputActions(input, true) + nextWindow := handleInputActions(input, true, + inputAction{"H", accountWindow, []string{showHelp}}, + ) if nextWindow == nil { userProp, _ := strconv.Atoi(input) -- cgit v1.2.3