Text2Frame Language Support
Visual Studio Code extension for Text2Frame (RPG Maker MV/MZ) visual novel script language support.
Features
🎨 Syntax Highlighting
- Tags:
<Face: >, <WindowPosition: >, <Background: >, etc.
- Comments:
% (line comment) and <comment>...</comment> (block comment)
- Script blocks with JavaScript highlighting
- Message text highlighting
✨ IntelliSense Autocomplete
Type < to trigger autocomplete for:
<Face: Actor1(0)> - 顔グラフィック設定
<WindowPosition: Top|Middle|Bottom> - ウィンドウ位置設定
<Background: Window|Dim|Transparent> - 背景設定
<Name: > - 名前設定
<ShowChoices: > - 選択肢の表示
<PlayBGM: > - BGMの演奏
<PlaySE: > - SEの演奏
<wait: > - ウェイト
- And many more event commands...
📖 Hover Documentation
Hover over tags to see usage examples and descriptions.
🔍 Diagnostics
- Detects unclosed angle brackets
- Warns about empty tags
- Real-time error checking
Usage
Create a file with .t2f or .text2frame extension:
<comment>
* オープニングシーン
</comment>
今日も一日がんばるぞい!
<Face: Actor1(0)>
今日も一日がんばるぞい!(顔付き)
<WindowPosition: Bottom>
<Background: Dim>
<Name: 涼風青葉>
今日も一日がんばるぞい!
% コメント行
<PlayBGM: Theme1>
<ShowChoices: Window, Right, 1, 2>
<When: はい>
そうですか!
<When: いいえ>
残念です。
<End>
<wait: 60>
Supported Commands
Display Settings
<Face: > - Face graphic
<WindowPosition: > - Window position (Top/Middle/Bottom)
<Background: > - Background (Window/Dim/Transparent)
<Name: > - Character name
Event Commands
<ShowChoices: > - Show choices
<When: > / <End> - Choice branching
<Switch: >, <Set: >, <If: > - Variables and switches
<PlayBGM: >, <PlaySE: > - Audio
<wait: > - Wait
<script>...</script> - JavaScript code
- And 100+ more RPG Maker event commands...
Development
Setup
- Clone the repository
- Run
npm install
- Press
F5 to open Extension Development Host
Building
npm run compile
Watch Mode
npm run watch
File Extensions
Requirements
License
MIT
| |