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

Init()client
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.
Think()client
Keeps the frame at 256 by 318 pixels in the middle of the screen.

Methods

Sets up the blurred frame, a close button that also hides the cursor, and the list holding the editor.

PANEL:PerformLayout()

client gamemodes/cwhl2rp/schema/derma/cl_data.lua:90

Stretches the editor list to fill the frame below the title bar.

PANEL:Populate(player, data)

client gamemodes/cwhl2rp/schema/derma/cl_data.lua:43

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.

Defined in