Linus045 / e2_vgui_core

Wiremod Expression 2 Extension to Create Vgui Elements
MIT License
8 stars 5 forks source link

dmodelpanel(xdk): the click doesn't work? #30

Closed enrico002 closed 5 months ago

enrico002 commented 5 months ago

Hi, using the usual test if( ID == Model:id() ) { Number = 1 String = Model:getModel(Player) } the click doesn't seem to work for the dmodelpanel(xdk) object. The Number variable nor the String are not updated. Any action seems ignored. Am I doing something wrong?

Linus045 commented 5 months ago

No your code is correct.

It seems that I forgot to implement the OnClick event for DModelPanel. Therefore clicking on the model does nothing at the moment. Thank you for bringing this to my attention.

I will implement the OnClick event to fix this.