SetPlrShowControl

Category: Player
Since engine version: 4.6.5.0 CP

Description

Controls the visual display of the keyboard control block of a given player.

The following keys can be displayed:
Number Meaning
0 Cursor Right
1 Cursor Toggle
2 Cursor Left
3 Throw
4 Jump
5 Dig
6 Left
7 Stop
8 Right
9 Options
For each key you can specify whether and how it is to be displayed. For each key there are three options: Accordingly, there are three option blocks in the string. Each block consists of 10 characters, of which "_" and " " mean "No" and any other character means "Yes" (see example).

Syntax

bool SetPlrShowControl (int iPlr, string szDefString);

Parameters

iPlr:
Player for whom to display the keys.
szDefString:
Specification of the keys to be displayed.

Example

SetPlrShowControl(0, "____4_678_          __________");
Displays the keys "Jump", "Left", "Stop", and "Right" for player 0. The numbers in the string are used for readability (see table). To separate the blocks, "_" or " " is used.
SetPlrShowControl(0, "____4_678_    4 678 ____4_678_");
Enhances the display using flashing text.
SetPlrShowControl(0, "____4_678_    4 678 ____4_____");
Only the text of the "Jump" key will flash.
SetPlrShowControl(0, "01234567890123456789__________");
The complete set of keys will be displayed with text.
See also: SetPlrShowCommand, SetPlrShowControlPos
PeterW, Juni 2003