mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +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
|
var lines []string
|
||||||
if !ebiten.IsWindowMaximized() && ebiten.IsWindowResizable() {
|
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() {
|
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() {
|
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")
|
msgM := strings.Join(lines, "\n")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user