OpenParable
Skip to content
← Back to skills

Rexui Text And Input

Development
rexui-text-and-input

Rexui Text And Input is an Agent Skill for development published in the rexrainbow/phaser3-rex-notes repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use this skill when building RexUI text, rich text, BBCodeText, tagText, dynamicText, textBox, simpleTextBox, textArea, textAreaInput, inputText, canvasInput, hiddenEdit, textEdit, textTyping, textPage, textPlayer, nameInputDialog, fileChooser, fileDropZone, fileSelectorButton, imageInputLabel, colorInput, colorPicker, or colorComponents. Triggers on: RexUI text, RexUI input, BBCodeText, tagText, textBox, textAreaInput, inputText, canvasInput, textTyping, textPlayer, colorPicker, fileChooser.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/rexrainbow/phaser3-rex-notes/blob/HEAD/skills/rexui/rexui-text-and-input/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/rexui-text-and-input, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

RexUI Text And Input

Use this skill for RexUI text rendering, rich text, dialogue text boxes, editable fields, text typing/page behavior, file selection, and color input.

Use This First

Choose the component:

NeedUse
Rich text with inline BBCode tagsBBCodeText
Rich text with tag parser behaviortagText
Low-level dynamic text layoutdynamicText
Dialogue box with paging and typingtextBox or simpleTextBox
Scrollable read-only texttextArea
Scrollable editable multiline texttextAreaInput
DOM-backed text inputinputText
Canvas-rendered editable inputcanvasInput
Edit an existing text objecttextEdit or hiddenEdit
Standalone typing behaviortextTyping
Standalone page/line splitting behaviortextPage
Rich scripted text playbacktextPlayer
First/last name modal promptnameInputDialog
Browser file selectionfileChooser, openFileChooser, fileSelectorButton
Drag/drop file targetfileDropZone
Image file picker with previewimageInputLabel
Editable color field or pickercolorInput, colorInputLite, colorPicker, colorComponents

For modal flow around nameInputDialog, use rexui-dialogs-and-popups. For scroll-only list/panel behavior, use rexui-scroll-lists-and-tables.

Required Setup

This skill assumes RexUI is available as this.rexUI. If not, use rexui-setup-and-factory.

Enable Phaser DOM support when using inputText, fileChooser, fileSelectorButton, fileDropZone, or other DOM-backed file/input helpers:

const config = {
  dom: { createContainer: true }
};

References

Read these only when needed:

  • references/text-catalog.md: component chooser, factory signatures, source files, and gotchas.
  • references/rich-text-recipes.md: rich text, text box typing, text area scrolling, and text behavior recipes.
  • references/input-recipes.md: inputText, canvasInput, textAreaInput, textEdit, and form patterns.
  • references/file-and-color-recipes.md: file selector, image input, color input, color picker, and color events.

Core Rules

  • Call .layout() after creating or mutating RexUI layout components such as textBox, simpleTextBox, textArea, textAreaInput, nameInputDialog, colorInput, colorPicker, and colorComponents.
  • Use BBCodeText with a capital factory name: this.rexUI.add.BBCodeText(...).
  • Use inputText for native DOM input behavior; ensure dom.createContainer: true.
  • Use canvasInput when the input must render inside the game canvas and integrate with RexUI layout.
  • canvasInput factory accepts a config object in current source even though Factory.d.ts also shows positional parameters.
  • Use textAreaInput for editable multiline content with scrolling; use textArea for read-only scrollable text.
  • Use textBox for dialogue text with start(), typeNextPage(), pageend, and complete.
  • Store passwords or hidden values in canvasInput.rawText when displaying masked text.
  • File chooser APIs depend on browser user interaction; trigger them from a click/tap flow.
  • Use package imports only in full setup examples; local templates/ui/... paths are source-map paths.

Source File Map

  • templates/ui/bbcodetext/BBCodeText.d.ts
  • templates/ui/tagtext/TagText.d.ts
  • templates/ui/dynamictext/DynamicText.d.ts
  • templates/ui/textbox/TextBox.d.ts
  • templates/ui/simpletextbox/SimpleTextBox.d.ts
  • templates/ui/textarea/TextArea.d.ts
  • templates/ui/textareainput/TextAreaInput.d.ts
  • templates/ui/inputtext/InputText.d.ts
  • templates/ui/canvasinput/CanvasInput.d.ts
  • templates/ui/hiddenedit/HiddenEdit.d.ts
  • templates/ui/textedit/TextEdit.d.ts
  • templates/ui/texttyping/TextTyping.d.ts
  • templates/ui/textpage/TextPage.d.ts
  • templates/ui/textplayer/TextPlayer.d.ts
  • templates/ui/nameinputdialog/NameInputDialog.d.ts
  • templates/ui/filechooser/FileChooser.d.ts
  • templates/ui/filedropzone/FileDropZone.d.ts
  • templates/ui/fileselectorbutton/FileSelectorButton.d.ts
  • templates/ui/imageinputlabel/ImageInputLabel.d.ts
  • templates/ui/colorinput/colorinput/ColorInput.d.ts
  • templates/ui/colorinput/colorinputbase/ColorInputBase.d.ts
  • templates/ui/colorinput/colorpicker/ColorPicker.d.ts
  • templates/ui/colorinput/colorcomponents/ColorComponents.d.ts

Related Skills

  • rexui-setup-and-factory: plugin setup and factory discovery.
  • rexui-components-catalog: choose the correct component family.
  • rexui-layout-sizers: form and dialogue layout.
  • rexui-basic-widgets: labels and buttons around text inputs.
  • rexui-dialogs-and-popups: modal prompts and dialog lifecycle.
  • rexui-scroll-lists-and-tables: scrollable text areas and scroll controls.