|
288 | 288 | } |
289 | 289 |
|
290 | 290 | const tutorialSimPeBhav = ` |
291 | | - 0000 : 2001 : 00 : 0001 : FFFC : 00000000000000000000000000000000 |
| 291 | + 0000 : 2001 : 01 : 0001 : FFFC : 00000000000000000000000000000000 |
292 | 292 | [semi 0x2001] Open in SimPe a package file with the BHAV (you'd like to see as a diagram) |
293 | 293 |
|
294 | | - 0001 : 2002 : 00 : 0002 : FFFC : 00000000000000000000000000000000 |
| 294 | + 0001 : 2002 : 01 : 0002 : FFFC : 00000000000000000000000000000000 |
295 | 295 | [semi 0x2002] Open the BHAV resource (from the Resource List, |
296 | 296 | in the Plugin View) |
297 | 297 |
|
298 | 298 | 0002 : 0002 : 00 : 0004 : 0003 : 00000000000000000000000000000000 |
299 | 299 | [prim 0x0002] Expression (Is the 'Special buttons' checkbox checked? (It's on the bottom right)) |
300 | 300 |
|
301 | | - 0003 : 2003 : 00 : 0004 : FFFC : 00000000000000000000000000000000 |
| 301 | + 0003 : 2003 : 01 : 0004 : FFFC : 00000000000000000000000000000000 |
302 | 302 | [semi 0x2003] Check the 'Special buttons' checkbox () |
303 | 303 |
|
304 | | - 0004 : 2004 : 00 : 0005 : FFFC : 00000000000000000000000000000000 |
| 304 | + 0004 : 2004 : 01 : 0005 : FFFC : 00000000000000000000000000000000 |
305 | 305 | [semi 0x2004] Click the 'Copy' button () |
306 | 306 |
|
307 | | - 0005 : 1004 : 00 : 0006 : FFFC : 00000000000000000000000000000000 |
| 307 | + 0005 : 1004 : 01 : 0006 : FFFC : 00000000000000000000000000000000 |
308 | 308 | [private 0x1004] Paste the copied BHAV in the tool (in the first textarea, on the left side) |
309 | 309 |
|
310 | | - 0006 : 0118 : 00 : 0007 : FFFC : 00000000000000000000000000000000 |
| 310 | + 0006 : 0118 : 01 : 0007 : FFFC : 00000000000000000000000000000000 |
311 | 311 | [global 0x0118] Idle (1 second) |
312 | 312 |
|
313 | 313 | 0007 : 0002 : 00 : 0006 : 0008 : 00000000000000000000000000000000 |
|
319 | 319 | 0009 : 0002 : 00 : FFFD : 000A : 00000000000000000000000000000000 |
320 | 320 | [prim 0x0002] Expression (Does the diagram look correct?) |
321 | 321 |
|
322 | | - 000A : 2008 : 00 : FFFE : FFFC : 00000000000000000000000000000000 |
| 322 | + 000A : 2008 : 01 : FFFE : FFFC : 00000000000000000000000000000000 |
323 | 323 | [semi 0x2008] Report a bug on GitHub or Discord (Attach the BHAV code you've pasted into the tool. Explain what's wrong with the diagram) |
324 | 324 |
|
325 | 325 | 000B : 0002 : 00 : 000C : 000D : 00000000000000000000000000000000 |
|
328 | 328 | 000C : 0002 : 00 : 0001 : 000D : 00000000000000000000000000000000 |
329 | 329 | [prim 0x0002] Expression (Does the error description in it imply that it's your fault and you think it might be true?) |
330 | 330 |
|
331 | | - 000D : 2008 : 00 : FFFE : FFFC : 00000000000000000000000000000000 |
| 331 | + 000D : 2008 : 01 : FFFE : FFFC : 00000000000000000000000000000000 |
332 | 332 | [semi 0x2008] Report a bug on GitHub or Discord (Attach the BHAV code you've pasted into the tool) |
333 | 333 |
|
334 | 334 | 000E : 0002 : 00 : FFFD : 000F : 00000000000000000000000000000000 |
335 | 335 | [prim 0x0002] Expression (Do you know what the colors of lines with arrows mean?) |
336 | 336 |
|
337 | | - 000F : 1003 : 00 : 0010 : 0010 : 00000000000000000000000000000000 |
| 337 | + 000F : 1003 : 01 : 0010 : 0010 : 00000000000000000000000000000000 |
338 | 338 | [private 0x1003] See explanation (A <b>green</b> line shows what happens after a block returns <i>true</i>) |
339 | 339 |
|
340 | | - 0010 : 1003 : 00 : 0011 : 0011 : 00000000000000000000000000000000 |
| 340 | + 0010 : 1003 : 01 : 0011 : 0011 : 00000000000000000000000000000000 |
341 | 341 | [private 0x1003] See explanation (A <b>red</b> line shows what happens after a block returns <i>false</i>) |
342 | 342 |
|
343 | | - 0011 : 1003 : 00 : FFFD : FFFD : 00000000000000000000000000000000 |
| 343 | + 0011 : 1003 : 01 : FFFD : FFFD : 00000000000000000000000000000000 |
344 | 344 | [private 0x1003] See explanation (A <b>grey</b> line shows what happens after a block returns either <i>true</i> or <i>false</i>)` |
345 | 345 |
|
346 | 346 | function setTheme() { |
|
365 | 365 | this.description = this.description ?? ''; |
366 | 366 | this.type = this.type ?? ( |
367 | 367 | this.instance < 0x0000 ? 'unknown' |
368 | | - : this.instance < 0x0100 ? 'primitive' |
| 368 | + : this.instance < 0x0100 ? 'prim' |
369 | 369 | : this.instance < 0x1000 ? 'global' |
370 | 370 | : this.instance < 0x2000 ? 'private' |
371 | | - : this.instance < 0x10000 ? 'semiglobal' |
| 371 | + : this.instance < 0x10000 ? 'semi' |
372 | 372 | : 'unknown'); |
373 | 373 | this.outgoingTransitions = this.#prepareRawOutgoingTransitions(); |
374 | 374 | delete this.trueBlockId; |
|
753 | 753 | return ''; |
754 | 754 |
|
755 | 755 | let code = `graph ${flowDirection}\r\n` |
756 | | - + '\r\nclassDef primitive fill:#1885,stroke:#188;' |
| 756 | + + '\r\nclassDef prim fill:#1885,stroke:#188;' |
757 | 757 | + '\r\nclassDef global fill:#3805,stroke:#380;' |
758 | | - + '\r\nclassDef semiglobal fill:#8705,stroke:#870;' |
| 758 | + + '\r\nclassDef semi fill:#8705,stroke:#870;' |
759 | 759 | + '\r\nclassDef private fill:#b505,stroke:#b50;' |
760 | 760 | + '\r\nclassDef specialBlock font-size:1.4em;' |
761 | 761 | + '\r\nclassDef start fill:#36f5,stroke:#36f;' |
|
844 | 844 |
|
845 | 845 | let instanceEmoji = this.#instanceEmojiMap[block.instance] ?? ''; |
846 | 846 |
|
847 | | - return `${indent}${block.id}("${toHex(block.id)} [${block.type} ${toHex(block.instance, 4)}]` |
| 847 | + return `${indent}${block.id}("${toHex(block.id)} [${block.type} ${toHex(block.instance, 4)} v.${block.version}]` |
848 | 848 | + `<br>${instanceEmoji} <b>${block.name}<\/b>` |
849 | 849 | + `<br>${block.description}")` |
850 | 850 | + `\r\n${indent}class ${block.id} ${block.type}` |
|
0 commit comments