Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Components

Alex "Archcannon" Chen edited this page May 14, 2020 · 1 revision

Transgenesis UI is split up into several components that make up each Editor.

Input

This component handles command input

  • Left arrow (without Shift): Cursor left
  • Right arrow (without Shift): Cursor right
  • Backspace: Delete character behind cursor
  • Delete: TO DO
  • Enter: Enters the command (handled by the Editor)

Suggest

This component lists autocomplete suggestions and lets you select one or none. It handles the selection part; option are populated manually by the Editor. The options are manually formatted into dynamically sized columns and the selected option is highlighted in inverted colors.

  • Up arrow: Move selection up
  • Down arrow: Move selection down
  • Spacebar: Enters the suggestion into the Input. Hold down Shift to place a regular space
  • Enter: Automatically clears the listing since the command is entered

Tooltip

This component displays help text below the Input. Text content is manually managed by the Editor. When the input is empty, it usually displays keyboard shortcut information; otherwise, it displays info for the current command.

History

This component allows you to select a previously entered command.

  • Up arrow + Shift: Selects the previous entry in history
  • Down arrow + Shift: Selects the next entry in history
  • Enter: Resets the index as command is entered. The Editor must call Record() to record the entered command in history.

Scroller

This component displays the visible portion of Editor content and supports scrolling. Additional scrolling options are handled by the Editor.

  • Page up: Scroll up
  • Page down: Scroll down
Clone this wiki locally