# Module Editor

The Module Editor is designed to make editing modules easier through the use of a both a 3D and 2D viewport. Modules can be opened with the editor through the Main Window by going to the **Tools** menu and clicking **Module Designer**.


## Controls

You can edit the controls by going into the **Settings** window found through the **Main Window** then going into the **Module Designer** section.

Note: Double-clicking on an instance in the instance list will cause the camera to snap to the object's location.

### Default Controls (3D)

| Action                     | Keys                                 |
|----------------------------|--------------------------------------|
| Move Camera (XY)           | Hold **CTRL** and drag **LMB**       |
| Move Camera (Z)            | Hold **CTRL** and **Scroll**         |
| Move Camera (Camera Plane) | Hold **CTRL + ALT** and drag **LMB** |
| Rotate Camera              | Drag **MMB**                         |
| Zoom Camera                | **Scroll Vertically**                |
| Zoom Camera                | Hold **CTRL** and drag **RMB**       |
| Select Object              | Press object with **LMB**            |
| Move Object (XY)           | Drag **LMB**                         |
| Move Object (Z)            | Hold **SHIFT** and drag **LMB**      |
| Rotate Object (Yaw)        | Hold **ALT** and drag **LMB**        |
| Duplicate Object           | Hold **ALT** and press **LMB**       |
| Delete Object              | **DEL**                              |
| Open Context Menu          | Press **RMB**                        |
| Move Camera to Selection   | **Z**                                |
| Move Camera to Cursor      | **X**                                |
| Move Camera to Entry Point | **C**                                |
| Rotate Camera Up           | **Num1**                             |
| Rotate Camera Down         | **Num3**                             |
| Rotate Camera Left         | **Num7**                             |
| Rotate Camera Right        | **Num9**                             |
| Move Camera Forwards       | **Num8**                             |
| Move Camera Backwards      | **Num2**                             |
| Move Camera Left           | **Num4**                             |
| Move Camera Right          | **Num6**                             |
| Move Camera Up             | **Q**                                |
| Move Camera Down           | **E**                                |
| Zoom In Camera             | **+**                                |
| Zoom Out Camera            | **-**                                |

### Default Controls (3D - FreeCam Mode)

| Action                     | Keys  |
|----------------------------|-------|
| Move Camera Forwards       | **W** |
| Move Camera Backwards      | **S** |
| Move Camera Left           | **A** |
| Move Camera Right          | **D** |
| Move Camera Up             | **Q** |
| Move Camera Down           | **E** |

### Default Controls (2D)

| Action                     | Keys                           |
|----------------------------|--------------------------------|
| Move Camera                | Hold **CTRL** and drag **LMB** |
| Rotate Camera              | Drag **MMB**                   |
| Zoom Camera                | **Scroll Vertically**          |
| Zoom Camera                | Hold **CTRL** and drag **RMB** |
| Select Object              | Press object with **LMB**      |
| Move Object (XY)           | Drag **LMB**                   |
| Rotate Object (Yaw)        | Hold **ALT** and drag **LMB**  |
| Duplicate Object           | Hold **ALT** and press **LMB** |
| Delete Object              | **DEL**                        |
| Open Context Menu          | Press **RMB**                  |
| Move Camera to Selection   | **Z**                          |
