handsomematt / 3d2d-vgui

:eyes: Render and control 2D VGUI in 3D world space for Garry's Mod
MIT License
91 stars 24 forks source link

DPropertySheet not detecting the click on the right tab #9

Closed ExtReMLapin closed 8 years ago

ExtReMLapin commented 8 years ago

TL;DR : Video with debugs instructions (I mean Lua instruction, so Lua code)

https://www.youtube.com/watch?v=M3GgOIgpm10

Sorry for baguette accent

Some times (yes, you have to try about 6 time to make it work), when switching between tabs, the function postPanelEvent, will not call the mouse even on the right tab.

The non 3d2d version of my derma works great.

MattJeanes commented 8 years ago

This is most likely related to Z-ordering while trying to find the button that the user is looking at. AFAIK there is no method to find which element is on top so it sorta guesses. I've looked at the issue but was unable to find a fix for it. @HandsomeMatt may however be able to.

ExtReMLapin commented 8 years ago

The Menu looks right (the visual part).

The "hover" function is working, i mean it's detecting when the cursor (i mean where the player aim) is in the button.

I can't find gmod's original function which call DoClick so i can't really compare both.

I really hope it will be fixed

handsomematt commented 8 years ago

you're probably better off asking on FP sorry, I don't even have gmod installed currently - will leave the issue open though since it is a bug.

ExtReMLapin commented 8 years ago

I'm banned from FP, but tbh i just used a DPanel so it's okay.

axelbm commented 8 years ago

I have fixed this bug :)

handsomematt commented 8 years ago

Fixed in #13