Skip to content

Claude/sweet planck duh b5#19

Merged
SethMorrowSoftware merged 3 commits into
mainfrom
claude/sweet-planck-duhB5
Jun 4, 2026
Merged

Claude/sweet planck duh b5#19
SethMorrowSoftware merged 3 commits into
mainfrom
claude/sweet-planck-duhB5

Conversation

@SethMorrowSoftware
Copy link
Copy Markdown
Owner

No description provided.

claude added 3 commits June 4, 2026 21:52
`colorPalette` collided with a name the LiveCode engine already knows, so
`colorPalette()` parsed as a built-in call with a missing argument
("Expression: missing factor near )"). User-defined zero-arg calls like
`shapePalette()` compile fine, confirming the name was the issue. Renamed the
two new colour helpers to non-reserved names (partSwatches, swatchIndexOf).

https://claude.ai/code/session_018VCGPT8pLd7wQhnLKdZDEx
Three release-polish items for the Contraption Builder:

- Duplicate tool (next to Delete in SHAPES): click any part to drop an
  identical copy — same size, colour, material and special settings — by
  reusing rebuildPart + partSpecial/applyPartSpecial. The copy is nudged off
  the original, auto-selected, and the tool switches to Drag so it can be moved
  immediately. The palette section gap was tightened so 9 shape buttons fit.

- Reset: toggleMode snapshots the layout (serializeText) the instant Run
  starts; the new Reset top-bar button restores it via a shared rebuildFromText
  (extracted from loadContraption) and returns to Build mode. Save now shares
  serializeText too.

- Clearer Build vs Run: the top accent bar turns amber and the subtitle reads
  "RUNNING" while live (green/neutral in Build), and picking any build tool or
  joint while running drops straight back into Build mode.

https://claude.ai/code/session_018VCGPT8pLd7wQhnLKdZDEx
The mode-cue block put single-line `if there is a field ... then set ...`
guards immediately before the block's `else`, so the parser bound that `else`
to the inner single-line if (dangling else), leaving the outer
`if gMode is "run"` block without its `end if` ("missing end if").

Compute the accent colour and subtitle text into locals inside the if/else
(no inner ifs), then apply them with the `there is a ...` guards after the
block. Scanned the whole script for the same pattern; this was the only one.

https://claude.ai/code/session_018VCGPT8pLd7wQhnLKdZDEx
@SethMorrowSoftware SethMorrowSoftware merged commit 81de4ac into main Jun 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants