Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Full screen without restart the game ?

  • #1, by wimf 10 years ago Zitieren
    Hello.

    It is possible to program in lua script so that when the player selected "full screen" or windowed mode, it should not restart the game? In "Deponia doomsday", it works.

    Thank for your help
  • #2, by afrlme 10 years ago Zitieren
    alt+enter key lets you toggle between fullscreen & window mode. You can use Lua script to force window mode / window resolution too, but I believe that it's still a little buggy in the current public build - the aspect ratio often messes up when you toggle back to fullscreen mode after already changing to window mode.
  • #3, by wimf 10 years ago Zitieren
    Ok, thank you very much for this info
  • #4, by sebastian 10 years ago Zitieren
    with this lua script line you can toggle between window and fullscreen mode.
    But as AFRLme said: its a little bit buggy when resizing the window and returning to fullscreen mode again...

    toggleWindowMode()
    
  • #5, by afrlme 10 years ago Zitieren
    with this lua script line you can toggle between window and fullscreen mode.
    But as AFRLme said: its a little bit buggy when resizing the window and returning to fullscreen mode again...

    toggleWindowMode()
    


    I'm hoping David will get around to fixing the aspect ratio issue at some point, but then again it could be related to the lib he's using, so they might be waiting until the new GUI is ready be fixing it or maybe it's already fixed & I don't know (I've not had a dev build of the engine in ages - have been using same version as you lot - then again I've not requested one).
  • #6, by sebastian 10 years ago Zitieren
    Is it possible to get the screen resolution of the monitor via lua?
    Buy that you could change the window size to its size before toggling back to fullscreen as a workaround...
  • #7, by wimf 10 years ago Zitieren

    I will still look a little to try to work around the problem; thank you for your support smile
  • #8, by afrlme 10 years ago Zitieren
    Is it possible to get the screen resolution of the monitor via lua?
    Buy that you could change the window size to its size before toggling back to fullscreen as a workaround...


    Yeah I'm sure we had a Lua command for getting the surface area / monitor size via the getProperty() function, but I don't think there was an example for it on the wiki. Although I do remember testing it at some point after it was added to the engine.