Defines the cwObjectives panel, a small frame for editing the Combine objectives.

It is opened by the EditObjectives Cable message (see /ViewObjectives) and holds a multiline text entry limited to 500 characters. Pressing Okay sends the text back to the server with EditObjectives.

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 the Combine objectives.
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.

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

PANEL:Populate(objectives)

client gamemodes/cwhl2rp/schema/derma/cl_objectives.lua:41

Fills the panel with an editor for the Combine objectives.

The text is limited to 500 characters. Pressing Okay sends it to the server with the EditObjectives Cable message, which saves it and updates the Combine HUD.

Parameters

  • objectives String The current objectives

Keeps the frame at 256 by 318 pixels in the middle of the screen.

Defined in