Commit Graph

23 Commits

Author SHA1 Message Date
73c2826273
Don't add an extra line when offering a "quit" prompt. 2024-09-29 12:59:21 -07:00
c30aca1f31
Better error management.
* "Uncooperative cards" is now a warning.
* Cards and actions get "Then" invoked before the card processor considers erroring out.
* Terminal UI: Errors and warnings from actions are displayed during the response; they're not only added to the temporary messages now.
2023-04-15 20:59:21 -07:00
65c01318f0
Fix UI urgency handling.
Only cards can block other cards or actions from being used due to urgency, so only display the `[URGENT!]` header for cards. Debug actions can't be blocked, so skip the "urgency conflict" check for those.
2023-04-15 19:43:11 -07:00
54711b36a8
Display debug enactables.
Includes some refactoring work to pull out common code and express the idea of "wait, which panel, exactly?".
2023-04-15 17:17:51 -07:00
1464070339
Fix excess divider mess in message display. 2023-04-03 01:45:38 -07:00
74a2493ef4
Clear screen before displaying panel in stats mode. 2023-04-02 19:37:55 -07:00
9796c2e970
First round of substantial bug fixes 2023-04-02 19:25:53 -07:00
0f21020647
More fencepost errors! 2023-04-02 19:08:26 -07:00
e96d81a7b4
Fencepost error!
Also the title is visible.
2023-04-02 19:07:05 -07:00
3a7bf9c2fb
Don't adjust twice. 2023-04-02 19:05:15 -07:00
2875dc5af8
Implement review mode.
This finishes the UI.
2023-04-02 13:58:56 -07:00
74ca51b21d
actions mode, prompt cleanup
Fixes some off-by-one errors. A 1-indexed UI in a 0-indexed language is always going to be prone to those and I will no doubt find more when I have enough of a test program to experiment with...
2023-04-02 13:19:26 -07:00
5a2158f525
Implement Stats Mode.
Also rewords some prompts. Might as well be thorough in accepting reasonable inputs.
2023-04-02 12:54:52 -07:00
25a9eed3f0
Prompt for player choices on cards.
Also handles errors in the display/prompt logic somewhat better.
2023-04-02 12:44:29 -07:00
592c877852
More display components. 2023-04-02 00:43:17 -07:00
e1eac9de0f
displayStatsMenu 2023-04-02 00:36:12 -07:00
7371cddab3
Add more dividers 2023-04-02 00:28:34 -07:00
aecd8683b2
Restructure loop, basic display functions 2023-04-02 00:26:34 -07:00
a62de999ea
Panel display, MultiMessage. 2023-04-02 00:20:37 -07:00
3eb087201f
more terminal utility functions 2023-04-02 00:09:17 -07:00
c73545fd07
Implement screen clear. 2023-04-02 00:02:25 -07:00
34e1f3166f
Main display mode skeleton 2023-04-01 23:59:53 -07:00
af9d9a6579
Skeleton of prototypical UI. 2023-04-01 23:22:50 -07:00