Skyscraper 2.0
keydialog.cpp
Go to the documentation of this file.
1/*
2 Skyscraper 2.0 Alpha - Control Reference Form
3 Copyright (C)2003-2024 Ryan Thoryk
4 https://www.skyscrapersim.net
5 https://sourceforge.net/projects/skyscraper/
6 Contact - ryan@skyscrapersim.net
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21*/
22
23#include "keydialog.h"
24
25//(*InternalHeaders(KeyDialog)
26#include <wx/string.h>
27#include <wx/intl.h>
28//*)
29
30namespace Skyscraper {
31
32//(*IdInit(KeyDialog)
33const long KeyDialog::ID_TEXTCTRL1 = wxNewId();
34//*)
35
36BEGIN_EVENT_TABLE(KeyDialog,wxDialog)
37 //(*EventTable(KeyDialog)
38 //*)
39END_EVENT_TABLE()
40
41KeyDialog::KeyDialog(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size)
42{
43 //(*Initialize(KeyDialog)
44 wxBoxSizer* BoxSizer1;
45
46 Create(parent, wxID_ANY, _("Control Reference"), wxDefaultPosition, wxDefaultSize, wxCAPTION|wxDEFAULT_DIALOG_STYLE|wxSYSTEM_MENU|wxRESIZE_BORDER|wxCLOSE_BOX|wxMAXIMIZE_BOX|wxMINIMIZE_BOX, _T("wxID_ANY"));
47 BoxSizer1 = new wxBoxSizer(wxVERTICAL);
48 TextCtrl1 = new wxTextCtrl(this, ID_TEXTCTRL1, _("Simulator Keyboard and Mouse Controls from the readme.txt file:\n\n--- Keyboard ---\n\nOn a Mac, the Control key is the Command key (to the right of the Option key), and Alt is the Option key\n\nW or Up Arrow - move forwards\nS or Down Arrow - move backwards\nA or Left Arrow - move left\nD or Right Arrow - move right\nPgUp or P - Look upwards\nPgDown or L - Look downwards\nSpace - Jump\nHome or O - Float upwards (or jump if collision detection is on)\nEnd or K - Float downwards (or crouch if collision detection is on)\nF1 - show control reference\nF2 - print render statistics on console\nF3 - Reset camera rotation and zoom to default\nF4 - Enable/disable wireframe mode\nF5 - Freelook (mouse look) mode\nF6 - Full camera reset (respawn)\nF7 - Show colliders\nF8 - Show mesh bounding boxes\nF9 - Toggle statistics display\nF10 - Fullscreen mode\nF11 - Take screenshot\nF12 - Show control panel\nShift - Run (hold down with other keys)\nControl - Walk slowly (hold down with other keys)\nAlt + arrow keys - Strafe\nAlt + PgUp/P - Spin right\nAlt + PgDown/L - Spin left\nPlus or ] - Zoom in (decrease FOV angle)\nMinus or [ - Zoom out (increase FOV angle)\nEsc - exit to main menu\nV - Toggle noclip mode (gravity and collisions off)\nB - Binoculars mode (hold down), and reset FOV to default\nC - Pick up object (physics-enabled models)\nX - Crouch\n; - (semicolon) - Load an additional building\n1 to 0 - (number keys) - Switch active camera to engine instance number (ex. 2 for building engine 2)\nE - Enter/Exit a vehicle\nCtrl-R - Reload current building\nCtrl-Alt-C - crash program (throw exception), used for testing handlers\n\n--- Mouse actions ---\n-the selection order of controls (buttons and switches can be reversed by right-clicking them\n-elevator shaft doors can be manually opened and closed by holding down the Shift key and clicking on them\n-polygons (wall/floor sides) and other objects can be deleted by holding down both Ctrl and Alt, and clicking on the object\n-doors, controls/buttons, and call buttons can be locked/unlocked by holding down both the Ctrl and Shift keys while clicking on the side to lock, if you have the associated key\n"), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY, wxDefaultValidator, _T("ID_TEXTCTRL1"));
49 TextCtrl1->SetMinSize(wxSize(600,500));
50 BoxSizer1->Add(TextCtrl1, 1, wxALL|wxEXPAND, 5);
51 SetSizer(BoxSizer1);
52 BoxSizer1->Fit(this);
53 BoxSizer1->SetSizeHints(this);
54 Center();
55 //*)
56}
57
59{
60 //(*Destroy(KeyDialog)
61 //*)
62}
63
64}
static const long ID_TEXTCTRL1
Definition keydialog.h:48