Skip to content

UI Configuration

Grisgram edited this page Apr 22, 2025 · 5 revisions

This file can be found in the __GAME_SETUP__ folder of the raptor project template.

UI Settings

Setting Default Description
Tooltip timing
`TOOLTIP_DELAY_FRAMES' 30 0.5 seconds until tooltip appears
Text input configuration (all values are frames)
`TEXT_CURSOR_BLINK_SPEED' 30 Cursor blink rate
`TEXT_CURSOR_WIDTH' 4 Width in pixels of the cursor symbol
`TEXT_KEY_REPEAT_DELAY' 30 0.5 seconds until auto-repeat starts
`TEXT_KEY_REPEAT_INTERVAL' (room_speed / 30) Characters per second while holding down a key
Mouse double click configuration (MS = milliseconds)
`MOUSE_DBL_CLICK_SPEED_MS' 500 Two clicks within 500ms are a double click (Windows default)

Keyboard Settings

SHIFT, ALT and CONTROL KEYS These macros define, how the keytranslator for key press events handles the left and right modifier keys. If set to false, no difference is made between "left" and "right" key (like the left control key and the right control key on the keyboard) and you will receive a "vk_control" key press from the translator. If set to true, each key has its own event

Setting Default Description
`SEPARATE_LALT_RALT_KEYS' false Distinguish between the two Alt keys
`SEPARATE_LSHIFT_RSHIFT_KEYS' false Distinguish between the two Shift keys
`SEPARATE_LCONTROL_RCONTROL_KEYS' false Distinguish between the two Controls keys

Flavored Skins Settings (raptorPRO)

Note

These settings are available only in the paid raptorPRO version.

By default, you should use the .json files for themes and skins as this offers great flexibility for dynamic content, when the values aren't hardcoded in your game's source code. However, if you do not want this, set this flag to false, then raptor will use the classic files (code classes) at startup.

Setting Default Description
`USE_JSON_FILE_FOR_SKINS' true Use a flavorable RichJson skin file instead of coded skins
`USE_JSON_FILE_FOR_THEMES' true Use a flavorable RichJson skin file instead of coded skins

Getting started

Raptor Tools (Work in Progress)

Raptor Free Modules

Image Raptor Pro Modules

Image Raptor Pro Libraries

Clone this wiki locally