Facepunch / sbox-issues

178 stars 12 forks source link

Hotloaded/reinstantiated huds don't show in the editor's panel view #1591

Open BlockBuilder57 opened 2 years ago

BlockBuilder57 commented 2 years ago

Describe the bug When looking in the panels view in the editor, the gamemode's hud shows up as expected. However, once the hud has been reinstantiated (ie, the original is deleted) nothing appears in the list.

To Reproduce

  1. Go to the gamemode's root panel in the Panels view, everything should be there as expected
  2. Reinstantiate the hud (through hotloading or something else)
  3. Reselect the root panel in the Panels view
  4. No more panels!

Expected behavior The editor should be able to show the current hud, no matter if has been recreated or not.

Additional context Feel free to use what I do in my own hud for some example code.

DrakeFruit commented 9 months ago

I think this has been fixed, can't repro