mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 10:42:42 +01:00
examples/windowsize: Improve messages
This commit is contained in:
parent
b7d555e724
commit
569f684d9b
@ -295,13 +295,13 @@ func (g *game) Draw(screen *ebiten.Image) {
|
||||
|
||||
var lines []string
|
||||
if !ebiten.IsWindowMaximized() && ebiten.IsWindowResizable() {
|
||||
lines = append(lines, "[M] Maximize the window")
|
||||
lines = append(lines, "[M] Maximize the window (only for desktops)")
|
||||
}
|
||||
if !ebiten.IsWindowMinimized() {
|
||||
lines = append(lines, "[N] Minimize the window")
|
||||
lines = append(lines, "[N] Minimize the window (only for desktops)")
|
||||
}
|
||||
if ebiten.IsWindowMaximized() || ebiten.IsWindowMinimized() {
|
||||
lines = append(lines, "[E] Restore the window from maximized/minimized state")
|
||||
lines = append(lines, "[E] Restore the window from maximized/minimized state (only for desktops)")
|
||||
}
|
||||
msgM := strings.Join(lines, "\n")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user