Commit Graph

175 Commits

Author SHA1 Message Date
Buhallin
cae7f99b3e
Handle duplicate connections
Some icon/ability combinations on locations results in duplicate connections.  The connection logic was parsing this as both a bidirectional and one-way connection, resulting in a one-way being drawn when it shouldn't be.

This adds a simple check to recommit an existing bidirectional connection, rather than drawing a new one-way for it.
2023-03-06 22:58:33 -08:00
Buhallin
7e09f5e780
Update token templates and handling for TokenManager
- Moves token keys from GMNotes to Memo to avoid issues attempting to parse invalid JSON
- Merges the clue and doom tokens to a single token and rotates it to properly spawn doom
- Updates the various token pools to match the TokenSource objects so spawned tokens can go back into the pools
2023-01-18 00:42:38 -08:00
Buhallin
2e5484d97b
Fix check for missing metadata in PlayArea onObjectPickup 2023-01-16 02:12:23 -08:00
Buhallin
e994a16992
Remove unnecessary blank line 2023-01-13 11:10:48 -08:00
Buhallin
8ca3ac9247
Bugfix for location lines
- Fixes a timing issue which would cause shadow lines to appear when hovering on a snap point
- Fixes a missing nil check that would cause errors during onUpdate if the card had no connections
2023-01-13 11:08:55 -08:00
Chr1Z
31006694b8
Merge pull request #184 from argonui/faster-connectors
Optimize location connection drawing during drag operations
2023-01-12 01:06:39 +01:00
Buhallin
42ce7e726e
Enable connection drawing for Devil Reef 2023-01-11 15:46:27 -08:00
Buhallin
bcc6dc5b8d
Tweak title splash
- Move position up
- Add common COLLISION_ENABLED handling to prevent splash from showing when reloading a save with the scenario card on the table
2023-01-11 14:37:30 -08:00
Buhallin
e6854801fb
Clear vector lines from cards when they're not being dragged
The events which can indicate a drag stop are varied:
- Drag a card into another on the table (tryObjectEnterContainer)
- Drag multiple cards into another on the table (onCollisionEnter, tryObjectEnterContainer)
- Group multiple cards while holding them (tryObjectEnterContainer)
2023-01-11 13:42:58 -08:00
Buhallin
67eaa646e1
Remove old lines 2023-01-11 03:39:33 -08:00
Buhallin
6b52e412e9
Turn off debug 2023-01-11 03:36:11 -08:00
Buhallin
a65cf33059
Optimize location connection drawing during drag operations
Previously the entire location map was being rebuilt and redrawn in onUpdate() during a drag operation, including the connectors which weren't changing.  This was causing notable lag on some systems.

This splits the draw operations into two separate pieces - locations on the board which are unchanging, and locations which are being dragged.  This allows only connections which are actually moving to be recalculated.

Since TTS only allows a single list of vector lines per object the dragged lines are now set on the cards themselves rather than the PlayArea.  This may possibly improve performance in itself, by keeping each list of vectors smaller.  Supporting this required some changes in how pre-built connections are handled.
2023-01-11 00:57:06 -08:00
Buhallin
5caeb47c82
Enhancements and tweaks for the scenario title splash
- Add a background gradient
- Add a wrapping panel to hold both text and gradient
- Add font resizing in case of very long scenario names.  None currently overflow, but this should ensure they stay on one line if we get a longer one
2023-01-10 18:05:19 -08:00
Chr1Z93
f9e64f5f1e typo fix 2023-01-10 19:39:59 +01:00
Chr1Z93
be65664163 adding missing line 2023-01-10 19:38:01 +01:00
Chr1Z93
c9db56be37 only trigger onpickup on playarea for cards, documentation update 2023-01-10 19:31:02 +01:00
Chr1Z
7da588bd33
Merge pull request #178 from argonui/helpers
Fix two timing-related bugs in MythosArea
2023-01-10 07:57:20 +01:00
Buhallin
b14b498558
Merge pull request #174 from argonui/replenish-fix
Bugfix for replenishing with Resource Counters
2023-01-09 16:29:29 -08:00
Buhallin
ec6f2ab585
Fix two timing-related bugs in MythosArea
- Using a frame delay in onObjectEnterContainer was causing errors.  Unclear why, but removing the delay fixes it
- Add a delay to the scenario splash screen, as load lag when placing large scenarios was causing the show to be janky
2023-01-09 16:26:59 -08:00
Chr1Z93
1683ae05ef moving downloadbutton below return to boxes 2023-01-09 23:18:54 +01:00
Chr1Z93
b54ebbe0b8 bugfix for hand zone guids 2023-01-09 20:59:37 +01:00
Chr1Z93
04bca4b998 fixing replenish for resource counters 2023-01-09 20:56:31 +01:00
Chr1Z
51102ae9e0
Merge pull request #172 from argonui/tour-update
Update tour script for new table layout and object changes
2023-01-09 07:01:07 +01:00
Chr1Z
7c396e58fc
Merge pull request #167 from argonui/accessories-positions-update
Option Panel: Accessories spawn position update
2023-01-09 06:59:24 +01:00
Buhallin
6e6d4a9d1e
Update tour script for new table layout and object changes 2023-01-08 16:44:57 -08:00
Chr1Z93
40854e43e2 object renaming 2023-01-08 16:07:38 +01:00
Chr1Z93
71dd7aee81 updated spawns and CYOA memory layout 2023-01-08 13:01:48 +01:00
Chr1Z93
cddd513840 removal of luascriptstates for boxes 2023-01-08 02:38:26 +01:00
Chr1Z
77eaaa3dfb
Merge branch 'main' into table-layout 2023-01-07 00:58:48 +01:00
Chr1Z
a046b65307
Merge pull request #158 from argonui/chaos-token-checking
New utility file: TokenChecker
2023-01-07 00:35:10 +01:00
Chr1Z
10e11a77a3
Merge pull request #162 from argonui/search-assistant
Search Assistant: Refactor and added to Option Panel
2023-01-06 10:37:15 +01:00
Chr1Z93
db52e65609 generalized utility file 2023-01-06 10:25:38 +01:00
Chr1Z93
9bf8f00399 refactor and option added 2023-01-06 02:02:24 +01:00
Chr1Z93
38abb7ea0c update position, remove personal information 2023-01-05 16:29:25 +01:00
Chr1Z93
46781a9f9e adding new util file 2023-01-05 15:59:07 +01:00
Chr1Z93
d8e8aaf3cb first commit 2023-01-05 13:03:15 +01:00
Chr1Z
817a15bec6
Merge pull request #147 from argonui/token-manager-counter-token
Token Manager: Bugfix for spawning of multiple tokens and default rotation of damage and horror tokens
2023-01-04 10:22:32 +01:00
Chr1Z
98b2298f71
Merge pull request #151 from argonui/location-snap-tags
Option: Location snap tags for play area
2023-01-04 10:04:39 +01:00
Chr1Z93
684302c3ca fix default y values (because of OCD) and increase shiftDown 2023-01-04 01:39:14 +01:00
Chr1Z93
14aa296b7f Merge branch 'main' into image-swapper-fix 2023-01-04 00:55:55 +01:00
Chr1Z93
560435a3bc Merge branch 'main' into location-snap-tags 2023-01-04 00:50:37 +01:00
Chr1Z93
568d28ac1b enable play area snaps by default 2023-01-04 00:45:48 +01:00
Chr1Z
fe13216c57
Merge pull request #148 from argonui/resource-counter-token
Option: Clickable resource tokens
2023-01-04 00:36:52 +01:00
Chr1Z93
e1106d2d3d resolving comments 2023-01-04 00:36:55 +01:00
Chr1Z93
efbf9e885f resolving comments 2023-01-03 23:47:34 +01:00
Chr1Z93
644025df7a resolving comments 2023-01-03 23:25:56 +01:00
Chr1Z93
707b977efc resolving comments 2023-01-03 23:04:59 +01:00
Chr1Z93
c9cd3f70a1 change collision condition 2023-01-03 22:17:27 +01:00
Chr1Z
b32e339540
Merge branch 'main' into chaosbagmanager 2023-01-03 22:07:34 +01:00
Chr1Z
fa9dd37d2e
add data for default options 2023-01-03 22:00:28 +01:00