cwData panelclient
Panel defined in derma/cl_data.lua
Defines the cwData panel, a small frame for editing a player's Combine data record.
It is opened by the EditData Cable message and holds a multiline text entry limited to 500 characters.
Pressing Okay sends the text back with EditData, and the server saves it as the player's combinedata character
data.
Summary
Methods
Methods
Sets up the blurred frame, a close button that also hides the cursor, and the list holding the editor.
Stretches the editor list to fill the frame below the title bar.
Fills the panel with an editor for a player's Combine data.
The text is limited to 500 characters. Pressing Okay sends it to the server with the EditData
Cable message, which saves it as the player's combinedata character data.
Parameters
- player Player The player whose data is edited
- data String The current data
Keeps the frame at 256 by 318 pixels in the middle of the screen.