Full screen without restart the game ?

  • #1, by wimfThursday, 28. April 2016, 14:59 8 years ago
    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

    Forum Fan

    238 Posts


  • #2, by afrlmeThursday, 28. April 2016, 15:48 8 years ago
    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.

    Imperator

    7278 Posts

  • #3, by wimfFriday, 29. April 2016, 10:10 8 years ago
    Ok, thank you very much for this info

    Forum Fan

    238 Posts

  • #4, by sebastianSaturday, 30. April 2016, 11:27 8 years ago
    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()
    

    Thread Captain

    2346 Posts

  • #5, by afrlmeSaturday, 30. April 2016, 12:09 8 years ago
    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).

    Imperator

    7278 Posts

  • #6, by sebastianSaturday, 30. April 2016, 18:07 8 years ago
    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...

    Thread Captain

    2346 Posts

  • #7, by wimfSaturday, 30. April 2016, 22:48 8 years ago

    I will still look a little to try to work around the problem; thank you for your support smile

    Forum Fan

    238 Posts

  • #8, by afrlmeSaturday, 30. April 2016, 23:37 8 years ago
    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.

    Imperator

    7278 Posts