Extensions of the Panel metatable: removal that hides the panel first, positions and sizes that scale with the screen resolution, and a way to make a panel undraggable. The file also replaces the paint function of DModelPanel so that models stay visible on top of blurred backgrounds.

Summary

Methods

Hides the panel and then removes it.
Sets the position of the panel, scaling the coordinates to the screen resolution.
Sets the size of the panel, scaling it to the screen resolution.
Makes the panel no longer draggable.

Methods

Panel:safe_remove()

client packages/active_ui/lib/meta/cl_panel.lua:19

Hides the panel and then removes it.

Panel:set_pos_ex(x, y)

client packages/active_ui/lib/meta/cl_panel.lua:27

Sets the position of the panel, scaling the coordinates to the screen resolution.

Parameters

  • x Number x coordinate at 1080p
  • y Number y coordinate at 1080p

Panel:set_size_ex(w, h)

client packages/active_ui/lib/meta/cl_panel.lua:34

Sets the size of the panel, scaling it to the screen resolution.

Parameters

  • w Number width at 1080p
  • h Number height at 1080p

Panel:undraggable()

client packages/active_ui/lib/meta/cl_panel.lua:14

Makes the panel no longer draggable.

Defined in