Added hints on keyboard shortcuts.

This commit is contained in:
Sander Schobers 2020-05-25 22:26:08 +02:00
parent 7230ac966b
commit 93002a784b

View File

@ -107,16 +107,16 @@ func (c *GameControls) Init(ctx ui.Context) {
b.DisabledColor = zntg.MustHexColor("#AFAFAF")
}),
NewIconButtonConfigure("control-save", c.askUserBeforeSave, func(b *IconButton) {
b.Tooltip = "Save game"
b.Tooltip = "Save game (key: Ctrl+S)"
}),
NewIconButtonConfigure("control-load", c.askUserBeforeLoad, func(b *IconButton) {
b.Tooltip = "Load last saved game"
b.Tooltip = "Load last saved game (key: Ctrl+L)"
}),
NewIconButtonConfigure("control-new", c.askUserBeforeNew, func(b *IconButton) {
b.Tooltip = "Start new game"
b.Tooltip = "Start new game (key: Ctrl+N)"
}),
NewIconButtonConfigure("control-information", c.dialogs.ShowIntro, func(b *IconButton) {
b.Tooltip = "Show information/intro"
b.Tooltip = "Show information/intro (key: Escape)"
}),
}
for i, child := range c.menu.Children {