Getting Started - DAndrewBox/GM-EzConsole GitHub Wiki
Installation
-
Download the latest release from the releases page. (Be sure you are downloading the correct version for your GameMaker version. Check the compatible versions in the home page.)
-
(A) Import the contents into your project just draggin the
GM-EzConsole-[version].yymps
file into it. -
(B) You can also import it into your project using the top toolbar on Tools > Import Local Package > Select the
GM-EzConsole-[version].yymps
file. -
A window should appear asking you to select the resources you want to import.
-
Select the
GML-EzConsole
folder, pressAdd All
, and then clickImport
.
- You can now use the extension in your project!
Setting up on a new project
To setup the extension on a new project, you shouldn't need to do anything special.
Just import the extension and you should be good to go. :)
Setting up on an existing project
[!IMPORTANT] If you already installed this extension before and have custom commands callbacks or functions on the
ezConsole_custom_commands
script, you should not import theezConsole_custom_commands
on step 1.
If you want to set up the extension on an existing project, you can do so by following these steps:
- Import the extension into your project. (See Installation)
- Make sure you have the
GM-EzConsole
folder in your project. - Make sure you have the
__EzConsole__
object in yourEzConsole\Objects
folder. - Make sure you have the
GM-EzConsole
folder, and the following files:default_commands.json
,default-dark.skin
anddefault-light.skin
files in yourIncluded Files
folder (or try to find it on yourdatafiles
project folder). - If you have the
ezConsole_autocreate
flag deactivated (see Features customization), then place the__EzConsole__
object in the first room of your project. - Run your project and press
F1
(by default) to open the console. - If you can see the console window, you're good to go.
Features customization
You can customize some of the features of the console on the ezConsole_configurations
script.
The following table shows the available configurations and their default values:
Configuration | Description | Default value |
---|---|---|
ezConsole_files |
An array with the filenames of the files with custom commands to import. | ["default_commands.json"] |
ezConsole_skin_selected |
The skin to use for the console. | "default-dark.skin" |
ezConsole_debug_only |
If true , the console will only be available on debug mode. |
false |
ezConsole_callback_onOpen |
The function to call when the console is opened. | -1 |
ezConsole_callback_onClose |
The function to call when the console is closed. | -1 |
ezConsole_callback_onLog |
The function to call when a log is added to the console. | -1 |
ezConsole_callback_onDestroy |
The function to call when the console is destroyed. | -1 |
ezConsole_callback_onGameEnd |
The function to call when the game ends. | console_save_log_to_file |
ezConsole_enable_blur |
If true , the game will be blurred behind the console when is opened. (Will use more GPU) |
true |
ezConsole_enable_suggestions |
If true , the console will show suggestions in the console bar for the commands. |
true |
ezConsole_enable_typeahead |
If true , the console will show type-ahead suggestions for the commands. |
true |
ezConsole_enable_screenfill |
If true , the console will fill the entire screen with a color when the console is opened. |
true |
ezConsole_enable_typeahead_icons |
If true , the console will show icons for the type-ahead suggestions. |
true |
ezConsole_enable_typeahead_inst_ref |
If true , the console will show instance reference index for the type-ahead suggestions. |
true |
ezConsole_prop_depth |
The depth of the console. | -10000 |
ezConsole_prop_start_open |
If true , the console will start opened. |
true |
ezConsole_prop_typeahead_elements |
The max number of elements to show on the type-ahead suggestions. | 20 |
ezConsole_prop_nav_scroll_speed |
The speed of the scroll when navigating through the console. | 1 |
ezConsole_prop_blur_quality |
The quality of the blur effect. (1: Worse quality less GPU, 4: Best quality more GPU) | 3 |
ezConsole_prop_blur_multiplier |
The multiplier of the blur effect. | 2.5 |
ezConsole_autocreate |
If true , the console will be created automatically when the game starts. |
true |
ezConsole_key_toggle |
The key to toggle the console. | vk_f1 |
ezConsole_key_nav_up |
The key to navigate up in the console. | vk_up |
ezConsole_key_nav_down |
The key to navigate down in the console. | vk_down |
ezConsole_key_nav_left |
The key to move the console cursor left. | vk_left |
ezConsole_key_nav_right |
The key to move the console cursor right. | vk_right |
ezConsole_key_auto_complete |
The key to auto-complete the command in the console. | vk_tab |
ezConsole_key_send_line |
The key to submit the command in the console. | vk_enter |