Panel classclient
Part of Active UI
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
safe_remove()client
Hides the panel and then removes it.
set_pos_ex(x, y)client
Sets the position of the panel, scaling the coordinates to the screen resolution.
set_size_ex(w, h)client
Sets the size of the panel, scaling it to the screen resolution.
undraggable()client
Makes the panel no longer draggable.
Methods
Hides the panel and then removes it.
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
Sets the size of the panel, scaling it to the screen resolution.
Parameters
- w Number width at 1080p
- h Number height at 1080p
Makes the panel no longer draggable.