scrollbar

This commit is contained in:
2019-11-08 23:51:00 +03:00
parent 4ba69bfe75
commit bc00262ead
3 changed files with 118 additions and 41 deletions

View File

@ -106,7 +106,7 @@ func main() {
SetBgColor("#ef1d494f").
SetFgColor("white").
SetItems([]interface{}{
"hjklyubn 12346789 or arrow keys - move",
"hjklyubn, NumPad 12346789, arrow keys - move",
"s or . - pass turn",
"g or , - pick up item",
"i - inventory",
@ -116,9 +116,35 @@ func main() {
"z or Z - cast a spell",
"p - pray",
"Ctrl+p - message log",
}),
}).MakeList(),
)
screenMgr.AddScreen("inventory", screens.NewMenuScreen(
mw,
screenMgr,
"Inventory",
"Items in your backpack:",
//"[color=yellow]Note[/color]: Many of these are not implemented yet",
"",
types.NewCenteredRect(mw.Rect, 50, 15),
true, ).
SetBgColor("#ef305c70").
SetFgColor("white").
SetItems([]interface{}{
"hjklyubn, NumPad 12346789, arrow keys - move",
"s or . - pass turn",
"g or , - pick up item",
"i - inventory",
"? - this screen",
"Ctrl+q - exit",
"f or F - fire or throw weapon",
"z or Z - cast a spell",
"p - pray",
"Ctrl+p - message log",
}).MakeList(),
)
screenMgr.SetScreenByName("title")
//fixme