Added hints on keyboard shortcuts.
This commit is contained in:
parent
7230ac966b
commit
93002a784b
@ -107,16 +107,16 @@ func (c *GameControls) Init(ctx ui.Context) {
|
|||||||
b.DisabledColor = zntg.MustHexColor("#AFAFAF")
|
b.DisabledColor = zntg.MustHexColor("#AFAFAF")
|
||||||
}),
|
}),
|
||||||
NewIconButtonConfigure("control-save", c.askUserBeforeSave, func(b *IconButton) {
|
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) {
|
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) {
|
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) {
|
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 {
|
for i, child := range c.menu.Children {
|
||||||
|
Loading…
Reference in New Issue
Block a user