parent
fa9aa9f4ad
commit
5c0455b7b9
|
@ -35,7 +35,6 @@ func NewMainMenu() *MainMenu {
|
||||||
"visit your subscriptions", // TODO
|
"visit your subscriptions", // TODO
|
||||||
"scribble some graffiti", // TODO
|
"scribble some graffiti", // TODO
|
||||||
"change your settings",
|
"change your settings",
|
||||||
"send some feedback", // TODO
|
|
||||||
"see credits",
|
"see credits",
|
||||||
"read documentation",
|
"read documentation",
|
||||||
}),
|
}),
|
||||||
|
@ -56,7 +55,7 @@ func (menu *MainMenu) Event(state *ui.State, event vaxis.Event) (processed bool)
|
||||||
menu.list.End()
|
menu.list.End()
|
||||||
case "Home", "g":
|
case "Home", "g":
|
||||||
menu.list.Home()
|
menu.list.Home()
|
||||||
case "0", "1", "2", "3", "4", "5", "6", "7", "8", "9":
|
case "0", "1", "2", "3", "4", "5", "6", "7", "8":
|
||||||
i, _ := strconv.Atoi(key.String())
|
i, _ := strconv.Atoi(key.String())
|
||||||
menu.list.SetIndex(i)
|
menu.list.SetIndex(i)
|
||||||
case "Enter", "l", "Right":
|
case "Enter", "l", "Right":
|
||||||
|
@ -67,9 +66,9 @@ func (menu *MainMenu) Event(state *ui.State, event vaxis.Event) (processed bool)
|
||||||
ui.ViewChange <- NewManagement()
|
ui.ViewChange <- NewManagement()
|
||||||
case 6:
|
case 6:
|
||||||
ui.ViewChange <- NewConfig()
|
ui.ViewChange <- NewConfig()
|
||||||
case 8:
|
case 7:
|
||||||
ui.ViewChange <- NewCredits()
|
ui.ViewChange <- NewCredits()
|
||||||
case 9:
|
case 8:
|
||||||
showManpage(state)
|
showManpage(state)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,7 +84,7 @@ func (menu *MainMenu) Event(state *ui.State, event vaxis.Event) (processed bool)
|
||||||
Width: 28,
|
Width: 28,
|
||||||
Height: 10,
|
Height: 10,
|
||||||
})
|
})
|
||||||
win.New(win.Width/2-14, win.Height/2+9, 28, 1).Print(vaxis.Segment{Text: menu.help})
|
win.New(win.Width/2-14, win.Height/2+8, 28, 1).Print(vaxis.Segment{Text: menu.help})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue