mayank-prasoon / world-maker

A world building app
https://chunkydev.itch.io/world-maker
MIT License
136 stars 5 forks source link

Pop menu sometimes doesn't work when Right clicked on a map pin. #13

Open mayank-prasoon opened 2 years ago

mayank-prasoon commented 2 years ago

Problem: When right clicked on a map pin. The pop up menu doesn't work sometimes.

Instead of showing edit and delete it shows delete map and add.

Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.8
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.13.0-41-generic
OS Type: 64-bit
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.6 GiB of RAM

Cause:

Godot handle inputs in a order of _Input > gui_input > unhandled_input > area2D_input.

For some reason the area2D mouse_enter and mouse_exit doesn't work properly in godot. Which is used to handle the mouse input on the map pin.

This is most likely cause of the glitchy behaviour.

mayank-prasoon commented 2 years ago

at this point i don't even know what is going on. On my old laptop Model name: Intel(R) Core(TM) i3-2330M CPU @ 2.20GHz. it works just fine without any problem. But on my other computer it sometimes doesn't works.

mayank-prasoon commented 2 years ago

New development:

well it looks like it happens because of peek (the screen recorder I use for recording my screen) i don't know how to fix this as World Maker use _area2D_input for checking if the mouses is inside any map element