mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +01:00
examples/windowsize: Rename -screentransparent -> -transparent
This commit is contained in:
parent
42cd923418
commit
69300f0c4e
@ -38,17 +38,17 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
flagFullscreen = flag.Bool("fullscreen", false, "fullscreen")
|
flagFullscreen = flag.Bool("fullscreen", false, "fullscreen")
|
||||||
flagResizable = flag.Bool("resizable", false, "make the window resizable")
|
flagResizable = flag.Bool("resizable", false, "make the window resizable")
|
||||||
flagWindowPosition = flag.String("windowposition", "", "window position (e.g., 100,200)")
|
flagWindowPosition = flag.String("windowposition", "", "window position (e.g., 100,200)")
|
||||||
flagScreenTransparent = flag.Bool("screentransparent", false, "screen transparent")
|
flagTransparent = flag.Bool("transparent", false, "screen transparent")
|
||||||
flagAutoAdjusting = flag.Bool("autoadjusting", false, "make the game screen auto-adjusting")
|
flagAutoAdjusting = flag.Bool("autoadjusting", false, "make the game screen auto-adjusting")
|
||||||
flagFloating = flag.Bool("floating", false, "make the window floating")
|
flagFloating = flag.Bool("floating", false, "make the window floating")
|
||||||
flagMaximize = flag.Bool("maximize", false, "maximize the window")
|
flagMaximize = flag.Bool("maximize", false, "maximize the window")
|
||||||
flagVsync = flag.Bool("vsync", true, "enable vsync")
|
flagVsync = flag.Bool("vsync", true, "enable vsync")
|
||||||
flagInitFocused = flag.Bool("initfocused", true, "whether the window is focused on start")
|
flagInitFocused = flag.Bool("initfocused", true, "whether the window is focused on start")
|
||||||
flagMinWindowSize = flag.String("minwindowsize", "", "minimum window size (e.g., 100x200)")
|
flagMinWindowSize = flag.String("minwindowsize", "", "minimum window size (e.g., 100x200)")
|
||||||
flagMaxWindowSize = flag.String("maxwindowsize", "", "maximium window size (e.g., 1920x1080)")
|
flagMaxWindowSize = flag.String("maxwindowsize", "", "maximium window size (e.g., 1920x1080)")
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@ -392,7 +392,7 @@ func main() {
|
|||||||
if x, y, ok := parseWindowPosition(); ok {
|
if x, y, ok := parseWindowPosition(); ok {
|
||||||
ebiten.SetWindowPosition(x, y)
|
ebiten.SetWindowPosition(x, y)
|
||||||
}
|
}
|
||||||
ebiten.SetScreenTransparent(*flagScreenTransparent)
|
ebiten.SetScreenTransparent(*flagTransparent)
|
||||||
|
|
||||||
g := &game{
|
g := &game{
|
||||||
width: initScreenWidth,
|
width: initScreenWidth,
|
||||||
|
Loading…
Reference in New Issue
Block a user