-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaker.html
More file actions
471 lines (455 loc) · 30.7 KB
/
Copy pathmaker.html
File metadata and controls
471 lines (455 loc) · 30.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Plugin Maker - Infinite Yield</title>
<meta name="description"
content="Build your own Infinite Yield plugins visually. Use our web-based IDE to create commands and download .iy files.">
<!-- Open Graph / Discord Embed Meta Tags -->
<meta property="og:title" content="Plugin Maker — Infinite Yield Plugins">
<meta property="og:description"
content="Build your own Infinite Yield plugins visually. Use our web-based IDE to create commands and download .iy files.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://iyplugins.pages.dev/maker.html">
<meta property="og:image" content="https://iyplugins.pages.dev/emb/emb.webp">
<meta name="theme-color" content="#00f7ff">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Plugin Maker — Infinite Yield Plugins">
<meta name="twitter:description"
content="Build your own Infinite Yield plugins visually. Use our web-based IDE to create commands and download .iy files.">
<meta name="twitter:image" content="https://iyplugins.pages.dev/emb/emb.webp">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/animations.css">
<link rel="stylesheet" href="css/maker.css">
<link rel="shortcut icon" href="assets/Logo_Small.png" type="image/x-icon">
</head>
<body>
<header>
<div class="header-inner">
<div class="header-left">
<a class="logo" href="/">
<img src="assets/Logo_Small.png" alt="" class="brand-logo">
Plugins
</a>
<span id="plugin-count" class="plugin-count"></span>
</div>
<div class="header-links" id="header-links">
<a href="authors.html" class="h-link h-icon" title="Authors">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
<path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
</svg>
</a>
<a href="maker.html" class="h-link h-icon" title="Plugin Maker">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path
d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z" />
</svg>
</a>
<a href="api.html" class="h-link h-icon" title="API Docs">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<polyline points="16 18 22 12 16 6"></polyline>
<polyline points="8 6 2 12 8 18"></polyline>
</svg>
</a>
<a href="tutorial.html" class="h-link h-icon" title="Help & FAQ">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path>
<line x1="12" y1="17" x2="12.01" y2="17"></line>
</svg>
</a>
<div class="h-divider"></div>
<a href="https://discord.gg/78ZuWSq" target="_blank" rel="noopener" class="h-link h-icon"
title="IY Discord">
<svg viewBox="0 0 24 24" width="18" height="18" fill="currentColor">
<path
d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z" />
</svg>
</a>
<a href="https://github.com/CarlDV/InfiniteYieldPluginStore" target="_blank" rel="noopener"
class="h-link h-icon" title="Store Repo">
<svg viewBox="0 0 24 24" width="18" height="18" fill="currentColor">
<path
d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
</svg>
</a>
<a href="https://github.com/EdgeIY/infiniteyield" target="_blank" rel="noopener" class="h-link h-icon"
title="IY GitHub">
<svg viewBox="0 0 24 24" width="18" height="18" fill="currentColor">
<path
d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
</svg>
</a>
</div>
</div>
</header>
<div id="content-area">
<main class="maker-main">
<div id="drop-zone" class="drop-zone hidden">
<div class="drop-zone-content">
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="17 8 12 3 7 8"></polyline>
<line x1="12" y1="3" x2="12" y2="15"></line>
</svg>
<h3>Drop plugin file here</h3>
<p>Upload an existing plugin to edit it</p>
</div>
</div>
<div class="maker-container">
<div class="maker-form-section">
<div class="mobile-warning">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="8" x2="12" y2="12"></line>
<line x1="12" y1="16" x2="12.01" y2="16"></line>
</svg>
<span><strong>Note:</strong> The Plugin Maker is not recommended for mobile devices. For the
best experience, please use a desktop browser.</span>
</div>
<div class="maker-header">
<div class="maker-title-row">
<h1>Plugin Maker</h1>
<div class="tour-launcher">
<span class="btn-arrow">→</span>
<button class="btn btn-secondary btn-sm" id="start-tour-btn">
Start Tutorial
</button>
</div>
</div>
<div class="maker-subtitle-row">
<p>Create a new Infinite Yield plugin visually. Use the import area below to load an
existing <code>.iy</code> or <code>.lua</code> file for editing.</p>
</div>
</div>
<div id="loader-ui" class="loader-ui">
<div class="loader-ui-icon">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path
d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z">
</path>
<polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline>
<line x1="12" y1="22.08" x2="12" y2="12"></line>
</svg>
</div>
<div class="loader-ui-content">
<h4>External Loader Detected</h4>
<p id="loader-url-preview">Fetching code from remote URL...</p>
</div>
<div class="loader-ui-actions">
<button class="btn btn-secondary btn-sm" id="loader-ui-dismiss">Dismiss</button>
<button class="btn btn-primary btn-sm" id="loader-ui-fetch">Fetch & Edit</button>
</div>
</div>
<div class="sidebar-collapsible active" id="sec-info">
<button class="sidebar-collapsible-trigger" type="button">
<span class="trigger-arrow">▼</span>
<span class="trigger-label">Plugin Settings</span>
</button>
<div class="sidebar-collapsible-content">
<div class="import-area" id="import-area">
<div class="import-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="17 8 12 3 7 8"></polyline>
<line x1="12" y1="3" x2="12" y2="15"></line>
</svg>
</div>
<div class="import-text">
<h3>Import Existing Plugin</h3>
<p>Drag & drop or Click to upload .iy or .lua file</p>
</div>
<input type="file" id="upload-plugin-file" accept=".iy,.lua" style="display: none;">
</div>
<div class="form-group">
<label for="plugin-name">Plugin Name</label>
<input type="text" id="plugin-name" placeholder="e.g. ExamplePlugin"
value="ExamplePlugin">
</div>
<div class="form-group">
<label for="plugin-desc">Plugin Description</label>
<textarea id="plugin-desc" rows="3" placeholder="Description of your plugin..."
style="resize: vertical;">This is a helpful template created using IY Plugin Maker.</textarea>
</div>
</div>
</div>
<div class="sidebar-collapsible active" id="sec-globals">
<button class="sidebar-collapsible-trigger" type="button">
<span class="trigger-arrow">▼</span>
<span class="trigger-label">Global Helpers (Lua)</span>
</button>
<div class="sidebar-collapsible-content">
<div class="form-group">
<textarea id="plugin-headers" rows="4"
placeholder="-- Add services, local helper functions, or variables here. They will be placed above the main Plugin table."
style="resize: vertical; font-family: var(--mono); font-size: 0.8rem;"></textarea>
</div>
</div>
</div>
<div class="sidebar-collapsible active" id="sec-commands">
<button class="sidebar-collapsible-trigger" type="button">
<span class="trigger-arrow">▼</span>
<span class="trigger-label">Commands</span>
</button>
<div class="sidebar-collapsible-content">
<div class="commands-header">
<div class="ch-top-row">
<div class="ch-actions">
<button class="btn btn-secondary btn-icon" id="copy-cmds-btn"
title="Copy All Commands & Descriptions">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2">
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1">
</path>
</svg>
</button>
<button class="btn btn-primary" id="add-cmd-btn">+ Add Command</button>
</div>
</div>
<div class="search-mini">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
<input type="text" id="cmd-search" placeholder="Search commands...">
</div>
</div>
<div id="commands-list" class="commands-list"></div>
</div>
</div>
</div>
<div class="maker-preview-section">
<div class="preview-header">
<div class="preview-title-container">
<h2 class="preview-title">Live Preview</h2>
<div class="ide-tab-bar" id="ide-tab-bar">
<!-- Dynamic VS Code-style tabs injected here -->
</div>
</div>
<div class="preview-actions">
<!-- IDE Mode Actions -->
<button class="btn btn-secondary btn-sm ide-only-btn" id="ide-exit-btn"
title="Exit IDE Mode">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
<polyline points="9 17 4 12 9 7"></polyline>
<line x1="4" y1="12" x2="16" y2="12"></line>
</svg>
Exit IDE
</button>
<button class="btn btn-secondary btn-sm btn-icon ide-only-btn" id="ide-format-btn"
title="Format Code (Auto-Indent)">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<line x1="21" y1="10" x2="7" y2="10"></line>
<line x1="21" y1="6" x2="3" y2="6"></line>
<line x1="21" y1="14" x2="3" y2="14"></line>
<line x1="21" y1="18" x2="7" y2="18"></line>
</svg>
</button>
<button class="btn btn-secondary btn-sm btn-icon ide-only-btn" id="ide-wrap-btn"
title="Toggle Word Wrap (Alt+Z)">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<path d="M3 6h18M3 12h13a4 4 0 0 1 0 8h-3v-3M3 18h3"></path>
</svg>
</button>
<button class="btn btn-secondary btn-sm btn-icon ide-only-btn" id="ide-minimap-btn"
title="Toggle Minimap">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
<line x1="9" y1="3" x2="9" y2="21"></line>
</svg>
</button>
<button class="btn btn-secondary btn-sm ide-only-btn" id="ide-copy-btn"
title="Copy Full Plugin Code">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
</svg>
Copy
</button>
<button class="btn btn-primary btn-sm ide-only-btn" id="ide-download-btn"
title="Download Plugin File">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7 10 12 15 17 10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
Download
</button>
<button class="btn btn-secondary btn-sm" id="browse-store-btn"
title="Browse Community Store">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7 10 12 15 17 10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
Browse Store
</button>
<button class="btn btn-secondary btn-sm" id="expand-preview-btn"
title="Toggle Full Width Preview">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<path d="M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7" />
</svg>
Expand
</button>
<button class="btn btn-secondary btn-sm" id="ide-mode-toggle" title="Full Web IDE Mode">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<path
d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2-2h3">
</path>
</svg>
IDE Mode
</button>
<button class="btn btn-primary btn-sm" id="download-btn">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7 10 12 15 17 10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
Download
</button>
</div>
</div>
<div id="sync-warning" class="sync-banner hidden">
<span>⚠️ Manual edits detected. Form syncing paused.</span>
<button class="btn btn-sm btn-primary" id="resume-sync-btn">Resume Sync</button>
</div>
<div id="monaco-preview" class="monaco-container"></div>
</div>
</div>
<!-- Command Editor Modal over the screen -->
<div id="cmd-modal" class="overlay hidden">
<div class="modal cmd-editor-modal">
<div class="modal-top">
<h2 id="cmd-modal-title">Edit Command</h2>
<div style="display:flex;gap:8px;">
<button class="close-btn" id="cmd-modal-expand" title="Toggle Fullscreen"
style="font-size: 1.1rem; line-height: 1;">⛶</button>
<button class="close-btn" id="cmd-modal-close" title="Close">×</button>
</div>
</div>
<div class="modal-content cmd-modal-content">
<div class="modal-fields-sidebar">
<div id="cmd-validation-error" class="error-banner hidden">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="8" x2="12" y2="12"></line>
<line x1="12" y1="16" x2="12.01" y2="16"></line>
</svg>
<span>A command with this key name already exists.</span>
</div>
<div class="form-group">
<label for="cmd-key">Command Internal Name (Key)</label>
<input type="text" id="cmd-key" placeholder="e.g. print">
<p class="field-help">The unique ID Infinite Yield uses to identify this command (e.g.
<code>fly</code>). Users won't usually see this.
</p>
</div>
<div class="form-group">
<label for="cmd-list-name">List Name (Usage format)</label>
<input type="text" id="cmd-list-name" placeholder="e.g. print [text]">
<p class="field-help">How the command appears in the IY command list. Use
<code>[arg]</code>
to denote arguments.</p>
</div>
<div class="form-group">
<label for="cmd-desc">Command Description</label>
<input type="text" id="cmd-desc" placeholder="e.g. Outputs text to console">
<p class="field-help">A short explanation of what the command does, shown in the IY help
menu.</p>
</div>
<div class="form-group">
<label for="cmd-aliases">Aliases (comma-separated)</label>
<input type="text" id="cmd-aliases" placeholder="e.g. p, output, log">
<p class="field-help">Other words that trigger this command. Useful for shortcuts (e.g.
<code>f</code> for <code>fly</code>).
</p>
</div>
</div>
<div class="modal-editor-main">
<div class="form-group flex-fill">
<label>Function Code</label>
<div id="monaco-cmd-editor" class="monaco-container small-monaco"></div>
<p class="field-help">The Lua logic that runs when the command is typed. Use
<code>args</code> for inputs and <code>speaker</code> for the user.
</p>
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" id="save-cmd-btn">Save Command</button>
<button class="btn btn-secondary" id="cancel-cmd-btn">Cancel</button>
</div>
</div>
</div>
<!-- Tour Overlay -->
<div id="tour-overlay" class="tour-overlay hidden">
<div id="tour-spotlight" class="tour-spotlight"></div>
<div id="tour-card" class="tour-card">
<div class="tour-card-content">
<h3 id="tour-title">Step Title</h3>
<p id="tour-desc">Step description goes here.</p>
</div>
<div class="tour-footer">
<span id="tour-progress">1 / 4</span>
<div class="tour-btns">
<button class="btn btn-secondary btn-sm" id="tour-skip">Skip</button>
<button class="btn btn-secondary btn-sm hidden" id="tour-back">Back</button>
<button class="btn btn-primary btn-sm" id="tour-next">Next</button>
</div>
</div>
</div>
</div>
<!-- Store Browser Modal -->
<div id="store-modal" class="overlay hidden">
<div class="modal store-modal">
<div class="modal-top">
<h2>Browse Community Plugins</h2>
<button class="close-btn" id="store-modal-close">×</button>
</div>
<div class="store-modal-search">
<input type="text" id="store-search-input" placeholder="Search by name or author...">
</div>
<div class="modal-content store-modal-content" id="store-plugins-list">
<div class="loading-state">Loading plugins...</div>
</div>
</div>
</div>
</main>
</div>
<script src="js/dialog.js?v=2"></script>
<script src="js/maker.js?v=2"></script>
<script src="js/router.js?v=8?v=2"></script>
</body>
</html>