Skip to content

trigscript/card and auto-restore's right-click toggle (held until played on more setups) - #98

Draft
jeany55 wants to merge 1 commit into
mainfrom
card-right-click
Draft

jeany55 wants to merge 1 commit into
mainfrom
card-right-click

Conversation

@jeany55

@jeany55 jeany55 commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

A draft that holds trigscript/card and auto-restore's right-click toggle, as they were merged in #96, until they are ready for a release. #97 took them off main; this is the one commit that puts them back, on top of the renamed autoRestore() and its Medic check. The work is @mstephenhunt's.

What it brings back

  • trigscript/card: CardButton, cardSlots, cardSetup.
  • autoRestore({ allowPlayersToTurnOffAutoCast: true }): the player turns auto-restore off and on by right-clicking Restore.
  • Their ledger rows and tests.

What it waits on

A library module's names are public from the first release that has it, and this one rests on measurements from one computer. Before it merges:

  • Played on Windows. So far: a Mac, Classic and Remastered graphics.
  • Played on a 4:3 display and on an ultrawide one. The button positions and the camera offsets that tell the two graphics apart were measured on one display.
  • A map that is not square. The minimap check that keeps the graphics current after a mid-game switch is for square maps only.
  • Two people playing. Each player's copy of the program handles every human's Medics, so one player's "off" does not hold. Either each copy handles only its own player's Medics, or the option is refused in a map with more than one human.
  • trigscript/spells imports trigscript/card whether or not the toggle is asked for, so a plain autoRestore() reserves the card's location. The location should be taken only when a CardButton is made.
  • showMeasurements prints lines that name the Marine's and the Medic's button sets. Decide whether that stays in the released module or becomes a probe script.

The same list is in docs/v4-plan.md under "Workers, spells and a unit's orders".

🤖 Generated with Claude Code

https://claude.ai/code/session_01VEdp4YG8zxHxfqFjpBsycX

…ere merged

This puts back what "trigscript/card and auto-restore's right-click toggle
wait on a branch" took off main: the card library (CardButton, cardSlots,
cardSetup), autoRestore()'s allowPlayersToTurnOffAutoCast, their ledger rows
and their tests, on top of the renamed autoRestore() and the Medic check.

What it waits on is in docs/v4-plan.md, under "Workers, spells and a unit's
orders": play on Windows, on a 4:3 and an ultrawide display and on a map that
is not square; one player's "off" holding with two people playing; the
location reserved on import.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VEdp4YG8zxHxfqFjpBsycX
jeany55 added a commit to mstephenhunt/scm-js that referenced this pull request Nov 15, 2026
…ore(), no card library

The guides were written against the TrigScript pull request as it was opened.
What was merged after it differs, so the guides change with it:

- The library calls are autoMining() and autoRestore().
- trigscript/card and auto-restore's right-click toggle are not in the release
  (they wait in scm-js/plugin-trigscript#98), so the Command card section, the
  toggle's paragraph and example, the module's table rows and its mentions
  come out. The text is in this branch's history for when the module lands.
  The module count is eleven.
- autoRestore() passes over a Medic in stasis, under Maelstrom or loaded, and a
  second call's options are not used.
- gather(), cast() and stop() are described as what they are: an order written
  into the unit, with nothing a command checks checked, and a burrowed or
  loaded unit left alone.

The language guide's lists were complete before and are again: orderState,
queuedOrders, acidSpores, opticalFlare, distanceTo(), cast(), stop() and
stats(P).allied are there, and in the main guide's reference rows.

Smaller rewordings for a first read: what the three new local fields are for,
how to test a mouse button's bit, what a button set's number is, and the
Spells example opens with the plain call.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VEdp4YG8zxHxfqFjpBsycX
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.

1 participant