sebastian.vesenmayer Posted June 15, 2018 Share Posted June 15, 2018 Hi, when multiple ObjectGui Objects are visible in my viewport the click event will not be executed anymore or very sporadic when I click on a widget which has a callback function. When only one ObjectGui is visible it works fine. Is this a bug or did I miss something. Thank you for your help. Sebastian Link to comment
silent Posted June 18, 2018 Share Posted June 18, 2018 Hi Sebastian, Could you please provide a very basic test code that represents this behavior? Is there any brief description of what functionality you are trying to implement with this multi-GUI approach (maybe a screenshots or video of similar UI)? 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
sebastian.vesenmayer Posted June 19, 2018 Author Share Posted June 19, 2018 Hi silent we are using this version at the moment: Version: 2.6.1 ver-2.6-cef3c5e Dec 21 2017 We are trying to implement a selection by label. I put a little example in the attachement. While both ObjectGui objects are visible, only one gets subsequent click events on the label, the other takes only one and then stops. Only after clicking on the other label again it is clickable again for only one time. This effect gets worser with more ObjectGuis receiving no click events at all, even when they don't overlap. When only one ObjectGui is visible in the viewport it works as expected most of the time. Thanks Sebastian appworldlogic.zip Link to comment
andrey-kozlov Posted June 20, 2018 Share Posted June 20, 2018 Hello Sebastian, This behaviour looks like engine's bug to me right now. That's workaround for it I found: void AppWorldLogic::click() { static int i = 0; std::cout << "Clicked " << ++i << std::endl; gui2->getGui()->removeFocus(); // removing focus from gui to continue recieve clicks } Link to comment
sebastian.vesenmayer Posted June 21, 2018 Author Share Posted June 21, 2018 Hi andrey-kozlov, with the workarround it is better but sometimes I have to click twice and one is still not clickable when they overlap. Is this going to be fixed? Link to comment
silent Posted June 21, 2018 Share Posted June 21, 2018 Sebastian, We will take a look at this issue more closely before the 2.8 SDK update. Right now there is no other workaround available, I'm afraid. 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
sebastian.vesenmayer Posted April 24, 2020 Author Share Posted April 24, 2020 On 6/21/2018 at 8:33 AM, silent said: Sebastian, We will take a look at this issue more closely before the 2.8 SDK update. Right now there is no other workaround available, I'm afraid. Hello silent, did you have time to take a closer look to investigate it further? We still have issues with mutiple ObjectGuis in the newest version 2.11 and 2.8. We know there is not always time to resolve problems as soon as possible, but we would like to know if you are able to provide us a bugfix until end of may 2020. We also discovered another issue when using render_border, the hardware mouse cursor is not matching the ObjectGui cursor. We can workarround this by disabling the render_border, the click events have more priority for us. I put a reproducer in the attachment. 2020-04-24 13-18-14_edit.mkv I do have another question, we tested the horiziontal box widget for click events. but it is not working. Is there any way to overlay or increase label widgets with a bigger hitbox? Thank you very much source.zip Link to comment
silent Posted April 24, 2020 Share Posted April 24, 2020 Thanks for the cursor bug with render_border, we will try to fix it prior to 2.12 update. Regarding the initial issue with GUI and clicks - we can probably take a closer look next week. As far as I understand a patch for 2.11 version will be enough? 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