1 COMMAND(ShowKeyLayout
) {
5 felist
List(CONST_S("Keyboard Layout"));
6 List
.AddDescription(CONST_S(""));
7 List
.AddDescription(CONST_S("Key Description"));
8 for (int c
= 0; (cmd
= commandsystem::GetCommand(c
)); ++c
) {
9 if (!cmd
->IsWizardModeFunction()) {
11 Buffer
<< cmd
->GetKey();
13 List
.AddEntry(Buffer
+cmd
->GetDescription(), LIGHT_GRAY
);
16 if (game::WizardModeIsActive()) {
17 List
.AddEntry(CONST_S(""), WHITE
);
18 List
.AddEntry(CONST_S("Wizard mode functions:"), WHITE
);
19 List
.AddEntry(CONST_S(""), WHITE
);
20 for (int c
= 0; (cmd
= commandsystem::GetCommand(c
)); ++c
) {
21 if (cmd
->IsWizardModeFunction()) {
23 Buffer
<< cmd
->GetKey();
25 List
.AddEntry(Buffer
+cmd
->GetDescription(), LIGHT_GRAY
);
29 game::SetStandardListAttributes(List
);