Full screen without restart the game ?

  • #1, z wimfThursday, 28. April 2016, 14:59 hodinky 9 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

    Fanoušek fóra

    238 Posts


  • #2, z afrlmeThursday, 28. April 2016, 15:48 hodinky 9 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.

    Imperátor

    7285 Posts

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

    Fanoušek fóra

    238 Posts

  • #4, z sebastianSaturday, 30. April 2016, 11:27 hodinky 9 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()
    

    Kapitán

    2346 Posts

  • #5, z afrlmeSaturday, 30. April 2016, 12:09 hodinky 9 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).

    Imperátor

    7285 Posts

  • #6, z sebastianSaturday, 30. April 2016, 18:07 hodinky 9 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...

    Kapitán

    2346 Posts

  • #7, z wimfSaturday, 30. April 2016, 22:48 hodinky 9 years ago

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

    Fanoušek fóra

    238 Posts

  • #8, z afrlmeSaturday, 30. April 2016, 23:37 hodinky 9 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.

    Imperátor

    7285 Posts