Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

DComboBox #23

Open
chudders1231 opened this issue Jul 31, 2018 · 4 comments
Open

DComboBox #23

chudders1231 opened this issue Jul 31, 2018 · 4 comments

Comments

@chudders1231
Copy link

Hey matt,
This 2D3D VGUI script is perfect for me right now because i need this sort of interaction on a panel im using for entities however i have found that DComboBoxes don't stick to the the parent frame when it is open and the options aren't displayed on the 3D2D panel, instead they throw an error and display on your screen instead. How would this be fixed?

http://prntscr.com/kd27y4

The error:

[ERROR] lua/vgui/dmenu.lua:185: attempt to call field 'PerformLayout' (a nil value)

  1. PerformLayout - lua/vgui/dmenu.lua:185
  2. unknown - lua/vgui/dscrollpanel.lua:14
@handsomematt
Copy link
Owner

Can you please show the code you're using.

@chudders1231
Copy link
Author

The current code that i am using is on an entity with a 2D3D panel running from it:
https://pastebin.com/qeJpzNgX

@chudders1231
Copy link
Author

Now, there isn't an error at all but the combobox still opens up on my screen:
http://i.prntscr.com/K6e-EmntQGCf-NkLBauyNQ.png

@eggroll-bot
Copy link

I can confirm that this is indeed the case. When DComboBoxes are clicked, the DComboBox will open up on the player's screen and any buttons clicked on the screen will cause the DComboBox to disappear like normal, but will not change the option on the 3D2D panel.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants