Claude/sweet planck duh b5#19
Merged
Merged
Conversation
`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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.