Summary

Methods

Returns up to six players whose names contain the search text.
Returns the PDA's height in the main menu.
Returns the PDA's width in the main menu.
Init()client
Creates the PDA's search bar and registers the panel as Schema.pdaPanel.
Draws the search engine name and up to six players whose names match the search text.
Rebuild()client
Lays out the PDA with a random browser and search engine name.
Think()client
Hides the frame's close, minimise and maximise buttons.

Methods

Returns up to six players whose names contain the search text.

Refugees and rebels are left out of the matches.

Parameters

  • text String The search text, in lower case

Returns

  • List The matching players

Returns the PDA's height in the main menu.

Returns

  • Number 60% of the screen height

Returns the PDA's width in the main menu.

Returns

  • Number Half the screen width

Creates the PDA's search bar and registers the panel as Schema.pdaPanel.

PANEL:PaintOver(width, height)

client gamemodes/cwhl2rp/plugins/cca/plugin/derma/cl_pda.lua:110

Draws the search engine name and up to six players whose names match the search text.

The matches are looked up when the search text changes and twice a second after that.

Parameters

  • width
  • height

Lays out the PDA with a random browser and search engine name.

Pressing enter in the search bar opens a cwCombinePlayerCard for the player whose name matches.

Hides the frame's close, minimise and maximise buttons.

Defined in