Amerio.Stephane Posted September 1, 2022 Share Posted September 1, 2022 Hi, with 2.16b, pressing the ESC key now shows the Syncker debug window. Is this intentional? How do you show the usual window? Thanks. Link to comment
silent Posted September 2, 2022 Share Posted September 2, 2022 Hi Stephane, There is no more system menu exists since it's not compatible with the new window manager concepts. In most applications default sample menu is not needed anyway (it contains not all the settings / resolutions and possible options that you can adjust on fly). Also users often didn't understand why anything in empty project is bind to ESC button and how to adjust this behavior from hardcoded. So decision was made and menu logic was removed completely. After 2.16 release we expect that every developer will create their own custom system menu (that would contains their custom logic and settings they defined) and bind it to ESC or any other button if required. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Amerio.Stephane Posted September 2, 2022 Author Share Posted September 2, 2022 This is ok for us. But in this case, how can we have access to the Syncker menu, so we can replace it with our own? My idea would be to have a callback for the ESC key, and show our own menu if SHIFT is not pressed, or the Syncker menu if SHIFT is pressed. But how can I do that? Thanks! Link to comment
silent Posted September 5, 2022 Share Posted September 5, 2022 Hi Stephane, Right now you can adjust data\core\scripts\system\system.h script. ESC press is handled here: // show/hide main window if (engine.console.isActive() == 0 && engine.gui.getMouseGrab() == 0 && engine.gui.getPermanentFocus() == NULL && engine.input.isKeyDown(INPUT_KEY_ESC)) { if (enabled == 0) show(); else hide(); } 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts