Commit 187e4eb
GaeaGraph deep duplication + Duplicate button (#431)
* Added a custom _duplicate method for to GaeaGraph
Still needs to be set up to properly duplicate collections
* Added a duplicate button to the Gaea editor panel; used GaeaGraph.duplicate and a file dialog to duplicate the graph.
* Light tweaks to GaeaGraph (added _get_unique_resources method), added duplicate_test (just a copy of generate_test for now).
* Gave the Duplicate button an icon
* GaeaGraph now properly initializes (by calling _setup_local_to_scene) when assigned to a generator.
* Removed (incomplete) duplicate test
* Simplified GaeaGraph's _duplicate method to only what actually gets saved to it's resource file.
* Added a class name to walker_demo
* Added a series of graph tests (assign_to_generator, duplicate, assign_duplicate)
* Added github workflow for new Graph testing
* Added the contents of testing\graph\graph_test.gd into testing\other\gaea_graph.gd
* generator.gd is no longer calling GaeaGraph's private _refresh method. Instead _refresh gets called upon setting the generator property.
* Using duplicate_deep for duplication of GaeaGraph.
* Added tooltip for the Duplicate button, and elaborated the Load button.
* Added compare_dictionaries helper method to gaea_graph testing class
* Added proper assertions to duplicate and assign_to_generator methods. Deleted assign_duplicate test (it was redundant).
* Renamed "duplicate" stuff to "duplicate_graph" for clarity, in case other kinds of duplication appear later.
* Naming, typos and formatting tweaks.
* Added get_raw_connections and get_all_node_data as getters for _connections and _node_data respectively
* Fixed trailing whitespace
---------
Co-authored-by: BenjaTK <73806216+BenjaTK@users.noreply.github.com>1 parent d6acc78 commit 187e4eb
File tree
6 files changed
+657
-17
lines changed- addons/gaea
- editor
- resources
- scenes/walker_demo
- testing/other
6 files changed
+657
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
| |||
539 | 544 | | |
540 | 545 | | |
541 | 546 | | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
542 | 551 | | |
543 | 552 | | |
544 | 553 | | |
| |||
547 | 556 | | |
548 | 557 | | |
549 | 558 | | |
550 | | - | |
| 559 | + | |
551 | 560 | | |
552 | 561 | | |
553 | | - | |
| 562 | + | |
554 | 563 | | |
555 | 564 | | |
556 | 565 | | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
557 | 571 | | |
558 | 572 | | |
559 | 573 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | 131 | | |
133 | | - | |
| 132 | + | |
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
137 | 143 | | |
138 | | - | |
139 | 144 | | |
140 | 145 | | |
141 | 146 | | |
| |||
373 | 378 | | |
374 | 379 | | |
375 | 380 | | |
376 | | - | |
| 381 | + | |
377 | 382 | | |
378 | 383 | | |
379 | 384 | | |
380 | 385 | | |
381 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
382 | 392 | | |
383 | 393 | | |
384 | 394 | | |
385 | 395 | | |
386 | 396 | | |
387 | 397 | | |
388 | 398 | | |
| 399 | + | |
389 | 400 | | |
390 | 401 | | |
391 | 402 | | |
| |||
419 | 430 | | |
420 | 431 | | |
421 | 432 | | |
422 | | - | |
| 433 | + | |
| 434 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
54 | | - | |
| 56 | + | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
76 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
| |||
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
87 | 97 | | |
| 98 | + | |
88 | 99 | | |
89 | 100 | | |
90 | 101 | | |
| |||
293 | 304 | | |
294 | 305 | | |
295 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
296 | 312 | | |
297 | 313 | | |
298 | 314 | | |
| |||
356 | 372 | | |
357 | 373 | | |
358 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
359 | 380 | | |
360 | 381 | | |
361 | 382 | | |
| |||
487 | 508 | | |
488 | 509 | | |
489 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
490 | 518 | | |
491 | 519 | | |
492 | 520 | | |
| |||
495 | 523 | | |
496 | 524 | | |
497 | 525 | | |
498 | | - | |
| 526 | + | |
499 | 527 | | |
500 | | - | |
| 528 | + | |
| 529 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
0 commit comments