Compare commits
732 Commits
100fa7e4ef
...
release/0.
| Author | SHA1 | Date | |
|---|---|---|---|
| d075963a77 | |||
| 1d777b422b | |||
| c5ea76f7de | |||
| 62e5a044c1 | |||
| 459d1a121b | |||
| afcf8530e6 | |||
| 022d4c8a22 | |||
| 985d03c716 | |||
| 88f1973e97 | |||
| 0da6bcad9c | |||
| 8a66bd18f9 | |||
| 734a3a6bc2 | |||
| 33035e29b7 | |||
| 5490162365 | |||
| 4274570e2f | |||
| 9d1b8e069f | |||
| be10ebf97a | |||
| b22be297c4 | |||
| 3085622579 | |||
| 392e042615 | |||
| 22ed3a0fba | |||
| 712c5bc7e2 | |||
| 29ae3ae5ef | |||
| ed0ac3c59f | |||
| 3946947331 | |||
| 27820d6d99 | |||
| cc060d6147 | |||
| fba8c70103 | |||
| 2af4bea9b8 | |||
| d47b4f40cc | |||
| 7aeab80166 | |||
| 0a986268cb | |||
| f86bebd7ca | |||
| eca4cc1d7b | |||
| 372d7cb3fe | |||
| 8432bcd3f8 | |||
| a86ebb6526 | |||
| f90b094fb4 | |||
| 333b6d6824 | |||
| 9bcb4445cc | |||
| 0acd750bf5 | |||
| db03051a8d | |||
| d1dc2d1219 | |||
| d4ff624914 | |||
| 947ecc08f0 | |||
| 20098b250d | |||
| 233723e47e | |||
| 1562bcb4bb | |||
| 07b3208dfc | |||
| 7254168f23 | |||
| 05c88881db | |||
| 50e5402c40 | |||
| 1665d77602 | |||
| f367f31d28 | |||
| c41165c193 | |||
| 537a082f20 | |||
| 5bc0362918 | |||
| 13ec6d6080 | |||
| 2a5a0dfbfb | |||
| 703193513f | |||
| 2c8f2fed4b | |||
| 420a4c5cd2 | |||
| 7d32cbb659 | |||
| 8377181bef | |||
| d7d73351fc | |||
| 369628256e | |||
| 0303316c4b | |||
| ffc5491733 | |||
| cd067dd8b0 | |||
| 77520ddaea | |||
| fa0e43982d | |||
| 3e68c2eeeb | |||
| 43728d8190 | |||
| 8b7ad7fe4a | |||
| b5202e462c | |||
| 78eb9f5235 | |||
| 98ef52a19e | |||
| d1c5d159a5 | |||
| eddd73036e | |||
| 2e5895a36f | |||
| 2a15b5466d | |||
| 784236fe5c | |||
| 378780a5f3 | |||
| 0ef823b500 | |||
| f271d13877 | |||
| ecb266ec34 | |||
| f645e8055c | |||
| c013f5412a | |||
| 00a43ccbdb | |||
| 3430fe2e7c | |||
| 54a8ba491e | |||
| 076f666125 | |||
| 44b1f0b884 | |||
| 1df26a6b28 | |||
| 02dcf8ed64 | |||
| d04cca26f8 | |||
| 3e1bf6a8af | |||
| dcd1082e67 | |||
| 9c435b7777 | |||
| 6c9ab5775a | |||
| c625c15f9d | |||
| d36b5010f9 | |||
| 96b0de7405 | |||
| 5f4ab5354e | |||
| fb8b7541f5 | |||
| 12dcdc4c86 | |||
| 5f58980496 | |||
| fdda79be2d | |||
| e1a74ed87d | |||
| 6230a219fd | |||
| c0bc458440 | |||
| 6b9b57dbd4 | |||
| 33fb914ea0 | |||
| 0c14d68393 | |||
| 5a3feeb5a3 | |||
| 36423bfa54 | |||
| 378e11d8a5 | |||
| c6fcab6b11 | |||
| 1c1f32e2aa | |||
| 325aacaae6 | |||
| 1d4bc3bb6d | |||
| 9d17301d52 | |||
| ab7af66259 | |||
| debf48ad15 | |||
| 57db233d4e | |||
| 016210c1d9 | |||
| 36b8d58d9e | |||
| 81dcfb2bff | |||
| 78350d5533 | |||
| f52ea5d9fd | |||
| c97c49e902 | |||
| 8ebd345dd2 | |||
| 279b427b32 | |||
| a316c1fe60 | |||
| 22c2e40203 | |||
| fc868cf6f7 | |||
| 8a006ac0ff | |||
| d743c77244 | |||
| a01fcfbd8f | |||
| 34d0002af3 | |||
| 9dca9affe3 | |||
| 60dce58ad0 | |||
| 38f6065055 | |||
| 21ed959322 | |||
| 1e67ec9d54 | |||
| 08165cd59d | |||
| f9abe054b2 | |||
| 91fa8cdf6b | |||
| 2f85e28aea | |||
| be1b6a2541 | |||
| 1742cc0f6e | |||
| a52fac3b09 | |||
| 5905309c44 | |||
| 990801a79e | |||
| 10c8d59442 | |||
| 7c528361eb | |||
| 33109267dd | |||
| 84697ca929 | |||
| 4f24c77a39 | |||
| e9a2b67673 | |||
| 45b8c9236c | |||
| 472d936623 | |||
| 128ab47aef | |||
| 2227e58ae3 | |||
| 19820c3d00 | |||
| 257945a5fe | |||
| e6033823cb | |||
| f5e48a95b9 | |||
| 28efc6af3d | |||
| 59044135d5 | |||
| 6b670fd6e5 | |||
| 9ad12a5d8e | |||
| 2d94dbc04d | |||
| 06082fe0ad | |||
| 4071daef78 | |||
| f4c369e744 | |||
| 514307a8ad | |||
| c6abbba1cb | |||
| eaaca3bc34 | |||
| aed598afbe | |||
| b06abcaea3 | |||
| 59136e5295 | |||
| 38da699d25 | |||
| feb6029ee6 | |||
| 83a3d257fd | |||
| 54ebc3222b | |||
| dbbb514963 | |||
| 145142bd64 | |||
| 33c4fda635 | |||
| 07678d7c06 | |||
| 3fb93c35a3 | |||
| 020ce32a06 | |||
| d9c027854d | |||
| 328feea5d8 | |||
| 0af698d76a | |||
| 884db14b39 | |||
| 059c573801 | |||
| 181bb8074c | |||
| 0f54667255 | |||
| 7196ebab75 | |||
| 942c77e996 | |||
| 8f8cfeae0a | |||
| 6bc8dc7321 | |||
| 82c6505a09 | |||
| bef7e48535 | |||
| 1cb61b20b3 | |||
| 6957802020 | |||
| b490f57c0d | |||
| a71727fba5 | |||
| 59b670b9df | |||
| 3b3adbf5cc | |||
| b06040a207 | |||
| 65af07b9d3 | |||
| b63f4b0b12 | |||
| 469441f7c3 | |||
| a142e7f16e | |||
| 28b54607c1 | |||
| bb7bdd7421 | |||
| 5231e3cdfb | |||
| 40fee71ef3 | |||
| 7e7ae506ea | |||
| e98a0e1dab | |||
| 8e4137368a | |||
| e4d01b69bf | |||
| 87f8976fdc | |||
| 6adb6cd67d | |||
| 68fc06ce2a | |||
| b4448c2b72 | |||
| 2d3a05b165 | |||
| 9af76bec8a | |||
| e800a02116 | |||
| b3df127bab | |||
| 13c89d2784 | |||
| 6df0f5e45b | |||
| cd8288427a | |||
| c7f96b9e05 | |||
| 3b28d00a46 | |||
| bf9e745339 | |||
| 53ce951c5a | |||
| fb43ffd17d | |||
| e903e380d4 | |||
| d7de450985 | |||
| 223428147a | |||
| 0cded3aff2 | |||
| 33fcc6a200 | |||
| 02ebee0c6d | |||
| d563ba2aeb | |||
| 41b21daec0 | |||
| 02ebbe4c03 | |||
| 83322d1517 | |||
| 0d9d29786c | |||
| 5c85bbd0f7 | |||
| 6ebb94ee02 | |||
| 0eee2aaee6 | |||
| 4ababd46d3 | |||
| 357a36e873 | |||
| 73ad27cbb0 | |||
| 7ec529ddf9 | |||
| 4fe0c7b4ab | |||
| 60adcefe22 | |||
| 93dfbf3488 | |||
| 8e5c54a4e8 | |||
| db0f023d21 | |||
| b8def1a7f9 | |||
| ff586fe294 | |||
| 2fccf79bb6 | |||
| d95e77f034 | |||
| eb42727f2f | |||
| 01811713a4 | |||
| cc01689116 | |||
| bced7eeba6 | |||
| aab51de647 | |||
| a55ee7e77a | |||
| 328525c8fe | |||
| a624b95f74 | |||
| 951e0e9cd1 | |||
| ef6f448b6c | |||
| 5c11e38a24 | |||
| 8cb9337f05 | |||
| 321c7608be | |||
| be1e9be9d5 | |||
| 3299e6c369 | |||
| 9c200600bb | |||
| aa74656925 | |||
| 13fed6a6ca | |||
| d3eff4e006 | |||
| a88b015faa | |||
| 6c8d542e53 | |||
| d7c00892a3 | |||
| 69c47ccfa2 | |||
| 4ff49696fa | |||
| 121f056d0d | |||
| e7f672ced7 | |||
| 9189fb3a8f | |||
| a4424a3caf | |||
| cc18b0505c | |||
| 08c1a73d02 | |||
| e7e9dbb796 | |||
| 838776d259 | |||
| cbbf507992 | |||
| 9e06ff86c6 | |||
| e2f0105e4d | |||
| f41fc361b8 | |||
| 5e1d88c333 | |||
| 8823132e8e | |||
| 2d74a87b14 | |||
| 365fe26bd1 | |||
| 5e63ef4576 | |||
| 1feef5c5cb | |||
| 359ceed121 | |||
| 77d84d1bfa | |||
| 03b6a9383a | |||
| 7d26982bb8 | |||
| 639551f23c | |||
| 928a1848ef | |||
| 973dcaf37d | |||
| d7055d412e | |||
| 253a23a68a | |||
| 2875cd2507 | |||
| 8d0fb7d395 | |||
| 20efe0465b | |||
| 68048d5562 | |||
| 54653e13f1 | |||
| 51c9e0dd8e | |||
| 4bd417870a | |||
| acffe34023 | |||
| c75601c06d | |||
| 020df3533c | |||
| d7926d64c8 | |||
| ae2276866a | |||
| 1b46372bbf | |||
| d363de412b | |||
| ea1e2cbce5 | |||
| 7c6d7f0729 | |||
| 2b7d57c802 | |||
| d987b6a03c | |||
| 7d7a2a8e9e | |||
| 3d694755c4 | |||
| 1ba6fe4c3f | |||
| f8feee5fd7 | |||
| e068e4160b | |||
| c9a13afbe8 | |||
| 9c2a6cb7e7 | |||
| 11a7724c58 | |||
| 7479320aab | |||
| e580db794d | |||
| 021b5a0491 | |||
| e108de7f0e | |||
| c4e15dcc2f | |||
| 8a7624e807 | |||
| 797ac739d4 | |||
| 66d3416b91 | |||
| 334270582c | |||
| d347b50472 | |||
| ba3634b3cc | |||
| 1b14040025 | |||
| 660a65ba0b | |||
| 6f6cd7fc55 | |||
| bd9665c67d | |||
| 8746be31c4 | |||
| dd16a02508 | |||
| 8fed526fd2 | |||
| 7a113bf151 | |||
| b6e148c2ef | |||
| 80c19824a0 | |||
| 7cdb0f5028 | |||
| 19f4f57987 | |||
| cbc4eb0181 | |||
| 777dafffab | |||
| 86ed25c512 | |||
| 37ab5a4511 | |||
| a38774b4de | |||
| 23188c463f | |||
| 5f9ede68c2 | |||
| c9d090dab8 | |||
| 0993fdb8d6 | |||
| 02c1b28580 | |||
| 86ad5965c2 | |||
| 15ee1e3ba2 | |||
| ddbcf5581e | |||
| b588754f07 | |||
| 166da8ba8e | |||
| eaf16df0c2 | |||
| c91589ec89 | |||
| 2c42dff6e5 | |||
| 4fcc62e176 | |||
| a7aab5dfb5 | |||
| b57f56eb9f | |||
| 97a57d5f3f | |||
| 3676c0ca08 | |||
| 4a1025a43b | |||
| 1d23db63c4 | |||
| 2bb1fa5b31 | |||
| e8d929bab7 | |||
| c08e04f00b | |||
| afb3fc9230 | |||
| 33e4c4c8f7 | |||
| b4dc4691e6 | |||
| 07f2b3b76d | |||
| 82dd13b017 | |||
| 0a859038bf | |||
| 0fb120466b | |||
| 9cbf8d17b2 | |||
| b377f06be0 | |||
| 0e9bb9d2c7 | |||
| d666c9e469 | |||
| 21647df329 | |||
| d706383011 | |||
| ad92def20b | |||
| 4f1e647d56 | |||
| 18cf6822e7 | |||
| d18a9ed102 | |||
| cac9055f64 | |||
| c800f04092 | |||
| 6c772da846 | |||
| 21cb204d9a | |||
| 757792a76b | |||
| 5cb741d8a7 | |||
| d624bda258 | |||
| a03bed73d7 | |||
| 9a124830c5 | |||
| aaa3953b9c | |||
| 6521b2f807 | |||
| a996af25cb | |||
| 09b02a210a | |||
| 93ee35362b | |||
| 95b7a8aa2a | |||
| 42bae89496 | |||
| f538ab07b6 | |||
| 137d696a21 | |||
| 5a5f5466f0 | |||
| 54c6ff85c8 | |||
| 351060c697 | |||
| ee81ffa5fd | |||
| 061c7b1e03 | |||
| 3b2c4855d8 | |||
| a8be2672d1 | |||
| a8c527c3e4 | |||
| f34f96e87f | |||
| c6e768f18e | |||
| 9fd73fe5e3 | |||
| e269ff97a0 | |||
| e9aee74c2b | |||
| b619a4c126 | |||
| d80e3d4b36 | |||
| 7905433217 | |||
| 53f730960b | |||
| 64c28e0387 | |||
| 36457cf3f9 | |||
| c7079bfc08 | |||
| bde4587c76 | |||
| 8d9c3523d2 | |||
| aa6fc435c5 | |||
| d0ea96d261 | |||
| d958a2934d | |||
| 5f4914d30e | |||
| 4be604b1d4 | |||
| a4050ad8c1 | |||
| 1b2c65086d | |||
| 7846dd082f | |||
| 047fe53533 | |||
| b83a46b820 | |||
| 94d44153a6 | |||
| 27badc4b67 | |||
| 2bf4e069c3 | |||
| a0ba8c827c | |||
| 3aa4661781 | |||
| 963ca95f59 | |||
| 7db2491c7d | |||
| b5d57bd2e3 | |||
| bcf185231d | |||
| d4f9cdb48f | |||
| 220c390597 | |||
| 6cfa1d1a05 | |||
| 416d208ab5 | |||
| b2673e71ac | |||
| d4506ab174 | |||
| 346472df17 | |||
| 39d0d2f1e9 | |||
| f142ea1b5d | |||
| 62e07c83fe | |||
| dc3fb56053 | |||
| 1241cf9c09 | |||
| 267d7fd569 | |||
| 05fd08acc3 | |||
| 8ec9c4c4f2 | |||
| 531731a5fd | |||
| 0eb91db3a5 | |||
| d29e128afe | |||
| a866a6b7cf | |||
| 068c4c982c | |||
| 6255c6cef2 | |||
| f6d5e50811 | |||
| 3304b5ead4 | |||
| 18529f8e29 | |||
| b42adccace | |||
| 80c6ba277b | |||
| c58ff4a06b | |||
| 26328155df | |||
| 3d3e7220ec | |||
| bd48e7a619 | |||
| 8c6b360dea | |||
| f1e612f602 | |||
| 5c7d3e7f3f | |||
| 4a27efa9a8 | |||
| eb2c2a6977 | |||
| 15f88c8203 | |||
| 073431e11e | |||
| b0ff374dc1 | |||
| 33e04e13e5 | |||
| b6801b811f | |||
| f1ee9c5ed7 | |||
| f73091268c | |||
| 5125428b1f | |||
| 47161be549 | |||
| 4bfea61e3d | |||
| 89fa3a28d6 | |||
| 34131da469 | |||
| a123b5446f | |||
| d2ba565140 | |||
| d7a65133f7 | |||
| 9f9cebeda9 | |||
| e56b3149c8 | |||
| 19ef4704d4 | |||
| ffd09bf308 | |||
| 68ff21c0f2 | |||
| 48e4f693d7 | |||
| e341aadc66 | |||
| 559cb294f2 | |||
| eed5e64a53 | |||
| 96ff7ea842 | |||
| 55a473d40c | |||
| 4809a22c71 | |||
| 5a86567a97 | |||
| 30d3f0bc69 | |||
| 277dc9e10a | |||
| a0225e9c4f | |||
| b65b5806f5 | |||
| f678fb7d5f | |||
| 4b39b6e26f | |||
| a8569b96f4 | |||
| e262edb7ff | |||
| 438270455f | |||
| 6030adc6db | |||
| b26823bbeb | |||
| 803d5ff71d | |||
| f3d067054c | |||
| 20940e566c | |||
| e33601f081 | |||
| bcc9a97205 | |||
| 51d062e734 | |||
| c36ad18989 | |||
| 815df6a67a | |||
| 396db338cf | |||
| 8f9e8680b3 | |||
| cd285d24f4 | |||
| 0d6c98f852 | |||
| 1e2eb6bd98 | |||
| 089c19d95f | |||
| 5957f1db64 | |||
| fdcf425425 | |||
| 83d7aac5ee | |||
| 1bb1fd9b5a | |||
| 4389701319 | |||
| 03d78da002 | |||
| 30dbbf437d | |||
| bcc43712cf | |||
| 3d6545ad79 | |||
| d7d97d1440 | |||
| e4d58dbd1c | |||
| d07b3fc4b2 | |||
| 83c8b2e6be | |||
| ca87c01104 | |||
| d388616668 | |||
| bf639419d1 | |||
| f69a7d071b | |||
| 356ddde0a4 | |||
| 7eefcba2f4 | |||
| 8ca06c0345 | |||
| 2e10ae13da | |||
| 854cba768c | |||
| 393afb4a83 | |||
| f0c61093e3 | |||
| 8ea9b4602a | |||
| 6806956a73 | |||
| cc398f2ae8 | |||
| 04272190f5 | |||
| a938b5d38c | |||
| c62f42f4f6 | |||
| 09269a28d6 | |||
| 5e47ade5ba | |||
| edac94e5b0 | |||
| ea0a232732 | |||
| 33895e8ec0 | |||
| 8396487246 | |||
| b6761cc828 | |||
| a2f26f7306 | |||
| b752b1aef4 | |||
| 220a180a0a | |||
| 6a358943e2 | |||
| 9ee8daccdd | |||
| 05cf4407ee | |||
| 923a40c8f1 | |||
| 72dd717df1 | |||
| f0347fa6d8 | |||
| 68f68357a6 | |||
| 8138d3055b | |||
| 9c0af41ddd | |||
| bc0894573f | |||
| 7a03853106 | |||
| 11984b506d | |||
| 8379e71713 | |||
| fd3a648161 | |||
| 876a19b932 | |||
| 0c734c6998 | |||
| aeacaa09cd | |||
| ca1a0fd73b | |||
| cacdc03ab0 | |||
| 38fb731c87 | |||
| d649a7f4a8 | |||
| d12028a24c | |||
| 3e0d68cb5c | |||
| 275458a8a4 | |||
|
|
ea5ad7dd8d | ||
| 937e0fd8d3 | |||
| fd77e04cba | |||
| 574fa5941b | |||
| 5d50f3e188 | |||
| cdf85cd1c5 | |||
| e6de1f1323 | |||
| d4643568c4 | |||
| d1fc5995d4 | |||
| 2787adb648 | |||
| dffda5cce3 | |||
| a857d326ce | |||
| ef05793d1d | |||
| 824980ab0f | |||
| 157f20b0e8 | |||
| c25cfd0061 | |||
| 0294394542 | |||
| f04736e943 | |||
| c0a52682d8 | |||
| 3c623156bc | |||
| 72fa2931bf | |||
| 6e1fe599f2 | |||
| a776252bb7 | |||
| 9c4df0d4d7 | |||
| 401de66a9f | |||
| 2d32f4b312 | |||
| 6cbd466f76 | |||
| c307f2e5c6 | |||
| fec381dd1f | |||
| c633ad511d | |||
| 9705ca14a4 | |||
| 38dece6947 | |||
| 0b21813e77 | |||
| 92bfd3bbc2 | |||
| ebbaec2abf | |||
| d309c9fb88 | |||
| 5f15bca474 | |||
| 8674ffffa4 | |||
| 1394861ee7 | |||
| 34d8747643 | |||
| 1727cbe63e | |||
| 2fdbdaaa6a | |||
| 344408f23c | |||
| ef82e45e10 | |||
| 81dbb521b7 | |||
| fc4f4ed8d5 | |||
| 36651bf490 | |||
| 0d5c490a9f | |||
| 049d18327f | |||
| 2618b52008 | |||
| 59384da8ac | |||
| 5949f0713b | |||
| c4e732701f | |||
| 7900f2a464 | |||
| 0ad2605b65 | |||
| 0a1e8e4d7c | |||
| 2cc01f0326 | |||
| 9015186b5a | |||
| c20964a17c | |||
| bc2ce9dbf6 | |||
| 494af4dd0e | |||
| 0a748b63d0 | |||
| d1e467651e | |||
| ceb6dd1244 | |||
| 42e504f5b2 | |||
| 50ccb0f25b | |||
| beb244a01e | |||
| 1a159efa20 | |||
| e6f4beeab6 | |||
| a6408ffc1a | |||
| 73b2a8be5d | |||
| c83015309a | |||
| 1ee9c339db | |||
| fa08453e65 | |||
| 85062ea912 | |||
| b30dcbc29d | |||
| 3cbc77f308 | |||
| 4a5db47371 | |||
| 19d38e5e1c | |||
| b8bf76241f | |||
| 982ca1812c | |||
| ad4f4fdc94 | |||
| 552affc1d7 | |||
| 8f5627d41e | |||
| 6e7a5e82a7 | |||
| 64a362f384 | |||
| 916c4003be | |||
| a3cb90b96b | |||
| a3633ddd3b | |||
| 17911fa1b5 | |||
| f80d717388 | |||
| 4ef6ac6d6e | |||
| 1f36dd5ad6 | |||
| 51368502c2 | |||
| fcabc37482 | |||
| 774aab70eb | |||
| 2eab18d7e8 | |||
| 08f7596bc1 | |||
| 4e33628a20 | |||
| 7e2f3131ae | |||
| f3930ea69d | |||
| c064a62a97 | |||
| 7306c62ebd | |||
| 7d9aa7c808 | |||
| c2471ad598 | |||
| 6956b60c5b | |||
| fae7e50a39 | |||
| 7169516f37 | |||
| f750eeced6 |
3
.editorconfig
Normal file
@@ -0,0 +1,3 @@
|
||||
[*.esc]
|
||||
indent_style = tab
|
||||
indent_size = 2
|
||||
47
.gdlintrc
Normal file
@@ -0,0 +1,47 @@
|
||||
class-definitions-order:
|
||||
- tools
|
||||
- classnames
|
||||
- extends
|
||||
- docstrings
|
||||
- signals
|
||||
- enums
|
||||
- consts
|
||||
- staticvars
|
||||
- exports
|
||||
- pubvars
|
||||
- prvvars
|
||||
- onreadypubvars
|
||||
- onreadyprvvars
|
||||
- others
|
||||
class-load-variable-name: (([A-Z][a-z0-9]*)+|_?[a-z][a-z0-9]*(_[a-z0-9]+)*)
|
||||
class-name: ([A-Z][a-z0-9]*)+
|
||||
class-variable-name: _?[a-z][a-z0-9]*(_[a-z0-9]+)*
|
||||
comparison-with-itself: null
|
||||
constant-name: _?[A-Z][A-Z0-9]*(_[A-Z0-9]+)*
|
||||
disable: []
|
||||
duplicated-load: null
|
||||
enum-element-name: '[A-Z][A-Z0-9]*(_[A-Z0-9]+)*'
|
||||
enum-name: ([A-Z][a-z0-9]*)+
|
||||
excluded_directories: !!set
|
||||
.git: null
|
||||
expression-not-assigned: null
|
||||
function-argument-name: _?[a-z][a-z0-9]*(_[a-z0-9]+)*
|
||||
function-arguments-number: 10
|
||||
function-name: (_on_([A-Z][a-z0-9]*)+(_[a-z0-9]+)*|_?[a-z][a-z0-9]*(_[a-z0-9]+)*)
|
||||
function-preload-variable-name: ([A-Z][a-z0-9]*)+
|
||||
function-variable-name: '[a-z][a-z0-9]*(_[a-z0-9]+)*'
|
||||
load-constant-name: (([A-Z][a-z0-9]*)+|_?[A-Z][A-Z0-9]*(_[A-Z0-9]+)*)
|
||||
loop-variable-name: _?[a-z][a-z0-9]*(_[a-z0-9]+)*
|
||||
max-file-lines: 1000
|
||||
max-line-length: 300
|
||||
max-public-methods: 20
|
||||
max-returns: 6
|
||||
mixed-tabs-and-spaces: null
|
||||
no-elif-return: null
|
||||
no-else-return: null
|
||||
signal-name: '[a-z][a-z0-9]*(_[a-z0-9]+)*'
|
||||
sub-class-name: _?([A-Z][a-z0-9]*)+
|
||||
tab-characters: 1
|
||||
trailing-whitespace: null
|
||||
unnecessary-pass: null
|
||||
unused-argument: null
|
||||
9
.gitea/PULL_REQUEST_TEMPLATE.md
Normal file
@@ -0,0 +1,9 @@
|
||||
## Changes
|
||||
|
||||
|
||||
|
||||
## Notes
|
||||
|
||||
|
||||
|
||||
## How to test
|
||||
41
.gitea/workflows/push-release.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Gymkhana exports
|
||||
run-name: ${{ gitea.actor }} is building Gymkhanikas 🚀
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'release/*'
|
||||
- '!main'
|
||||
env:
|
||||
GODOT_VERSION: 4.5
|
||||
EXPORT_NAME: LasGymkhanikasDeUli
|
||||
PROJECT_PATH: .
|
||||
|
||||
jobs:
|
||||
all-exports:
|
||||
name: All exports
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: oierbravo/godot-ci-with-node:4.5
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: true
|
||||
- name: Setup
|
||||
run: |
|
||||
git clone https://github.com/godot-escoria/escoria-demo-game $PROJECT_PATH/../escoria-demo-game
|
||||
- name: Setup
|
||||
run: |
|
||||
mkdir -p $PROJECT_PATH/secret
|
||||
echo ${{ secrets.APPWRITE_API_CFG }} > $PROJECT_PATH/secret/api.cfg
|
||||
- name: All builds
|
||||
run: |
|
||||
./apply_patches.sh
|
||||
./build.sh
|
||||
- name: Upload Artifact
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
with:
|
||||
files: |
|
||||
build/**/*.appimage
|
||||
build/**/*.tar.gz
|
||||
build/**/*.zip
|
||||
56
.github/workflows/apidoc.yml
vendored
@@ -1,56 +0,0 @@
|
||||
name: "Update API docs"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "develop"
|
||||
|
||||
concurrency: api-${{ github.ref }}
|
||||
|
||||
jobs:
|
||||
apidoc:
|
||||
name: Update API docs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.ESCORIA_DEPLOYMENT_TOKEN }}
|
||||
repository: godot-escoria/escoria-demo-game
|
||||
ref: "develop"
|
||||
path: game
|
||||
- name: "Checkout docs repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.ESCORIA_DEPLOYMENT_TOKEN }}
|
||||
repository: godot-escoria/escoria-docs
|
||||
ref: "devel"
|
||||
fetch-depth: 0
|
||||
path: docs
|
||||
- name: Remove existing docs
|
||||
run: |
|
||||
mv docs/api/index.rst .
|
||||
rm -rf docs/api/*
|
||||
mv index.rst docs/api
|
||||
- name: "Update docs"
|
||||
uses: docker://gdquest/gdscript-docs-maker:1
|
||||
with:
|
||||
entrypoint: "bash"
|
||||
args: "-c \"BASEDIR=$(pwd) && cd /app && ./generate_reference $BASEDIR/game -o $BASEDIR/docs/api -d addons/escoria-core\""
|
||||
- name: "Update ESC reference"
|
||||
run: |
|
||||
apt update && apt install -y python3 python3-pip
|
||||
pip3 install m2r2
|
||||
cd docs
|
||||
python3 extractesc.py
|
||||
git status
|
||||
- name: "Commit"
|
||||
uses: EndBug/add-and-commit@v7.2.1
|
||||
with:
|
||||
add: '["api", "scripting/z_esc_reference.rst"]'
|
||||
message: 'docs: Automatic update of API docs'
|
||||
push: true
|
||||
cwd: "docs"
|
||||
branch: "devel"
|
||||
|
||||
|
||||
20
.github/workflows/assetlib.yml
vendored
@@ -1,20 +0,0 @@
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
name: "Push to assetlib"
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
name: "Publish new version to asset lib"
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Godot Asset Lib
|
||||
uses: deep-entertainment/godot-asset-lib-action@main
|
||||
with:
|
||||
username: escoria
|
||||
password: ${{ secrets.ASSET_STORE_PASSWORD }}
|
||||
assetId: 1080
|
||||
approveDirectly: "true"
|
||||
71
.github/workflows/fanout.yml
vendored
@@ -1,71 +0,0 @@
|
||||
name: "Fan out changes to distinct repositories"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
- "develop"
|
||||
|
||||
concurrency: fanout-${{ github.ref }}
|
||||
|
||||
jobs:
|
||||
fanout:
|
||||
strategy:
|
||||
matrix:
|
||||
parts:
|
||||
- dir: "addons/escoria-core"
|
||||
repo: "godot-escoria/escoria-core"
|
||||
- dir: "addons/escoria-ui-simplemouse"
|
||||
repo: "godot-escoria/escoria-ui-simplemouse"
|
||||
- dir: "addons/escoria-ui-9verbs"
|
||||
repo: "godot-escoria/escoria-ui-9verbs"
|
||||
- dir: "addons/escoria-core"
|
||||
repo: "godot-escoria/escoria-game-template"
|
||||
- dir: "addons/escoria-dialog-simple"
|
||||
repo: "godot-escoria/escoria-dialog-simple"
|
||||
name: "Fanout ${{ matrix.parts.dir }} to ${{ matrix.parts.repo }}"
|
||||
runs-on: "ubuntu-20.04"
|
||||
env:
|
||||
DIR: "${{matrix.parts.dir}}"
|
||||
REPO: "${{matrix.parts.repo}}"
|
||||
steps:
|
||||
- name: "Configure git"
|
||||
run: |
|
||||
if ! git --version | grep 2.33 >/dev/null
|
||||
then
|
||||
sudo add-apt-repository ppa:git-core/ppa -y
|
||||
sudo apt-get update
|
||||
sudo apt-get install git -y
|
||||
fi
|
||||
- name: "Checkout"
|
||||
uses: "actions/checkout@v3"
|
||||
with:
|
||||
repository: "godot-escoria/escoria-demo-game"
|
||||
ref: "develop"
|
||||
path: "demo-game"
|
||||
token: "${{ secrets.ESCORIA_DEPLOYMENT_TOKEN }}"
|
||||
fetch-depth: 0
|
||||
- name: "Filtering out ${{ env.DIR }}"
|
||||
run: |
|
||||
curl -s https://raw.githubusercontent.com/newren/git-filter-repo/main/git-filter-repo -o git-filter-repo
|
||||
chmod +x git-filter-repo
|
||||
cd demo-game
|
||||
git remote -v
|
||||
../git-filter-repo --path $DIR --prune-empty auto --force
|
||||
git clean -fd
|
||||
git status
|
||||
- name: "Checkout"
|
||||
uses: "actions/checkout@v3"
|
||||
with:
|
||||
repository: "${{ env.REPO }}"
|
||||
ref: "develop"
|
||||
path: "target"
|
||||
token: "${{ secrets.ESCORIA_DEPLOYMENT_TOKEN }}"
|
||||
fetch-depth: 0
|
||||
- name: "Apply changes"
|
||||
run: |
|
||||
cd target
|
||||
git config --global user.email "contact@escoria-framework.org"
|
||||
git config --global user.name "Escoria merge bot"
|
||||
git pull ../demo-game develop --rebase
|
||||
git push --force
|
||||
79
.github/workflows/prerelease.yml
vendored
@@ -1,79 +0,0 @@
|
||||
name: "Release new prerelease version"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
|
||||
jobs:
|
||||
prerelease:
|
||||
if: "github.event.head_commit.message != 'chore: storing version and changelog'"
|
||||
name: Preparing release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.ESCORIA_DEPLOYMENT_TOKEN }}
|
||||
- name: Remove trailing whitespace
|
||||
run: |
|
||||
OUTPUT=$(find . -name "*.gd" -type f | xargs sed -i 's/[[:space:]]$//')
|
||||
RC=$?
|
||||
if [[ $RC -ne 0 ]] && [[ $RC -ne 128 ]]
|
||||
then
|
||||
echo $OUTPUT
|
||||
exit $RC
|
||||
fi
|
||||
exit 0
|
||||
- name: Calculate version
|
||||
id: calculate_version
|
||||
uses: mathieudutour/github-tag-action@v5.6
|
||||
with:
|
||||
github_token: ${{ secrets.ESCORIA_DEPLOYMENT_TOKEN }}
|
||||
dry_run: true
|
||||
pre_release_branches: "develop"
|
||||
append_to_pre_release_tag: "alpha"
|
||||
default_bump: "release"
|
||||
custom_release_rules: "fix:prerelease,feat:prerelease"
|
||||
- name: "Write changelog"
|
||||
if: "steps.calculate_version.outputs.changelog != ''"
|
||||
run: |
|
||||
CHANGELOG=""
|
||||
if [ -e CHANGELOG.md ]
|
||||
then
|
||||
CHANGELOG=$(cat CHANGELOG.md)
|
||||
fi
|
||||
echo -e "${{steps.calculate_version.outputs.changelog}}\n\n${CHANGELOG}" > CHANGELOG.md
|
||||
- name: "Commit"
|
||||
if: "steps.calculate_version.outputs.changelog != ''"
|
||||
uses: EndBug/add-and-commit@v7.2.1
|
||||
with:
|
||||
message: "chore: storing version and changelog"
|
||||
push: true
|
||||
release:
|
||||
if: "github.event.head_commit.message == 'chore: storing version and changelog'"
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.ESCORIA_DEPLOYMENT_TOKEN }}
|
||||
- name: Create version
|
||||
id: create_version
|
||||
uses: mathieudutour/github-tag-action@v5.6
|
||||
with:
|
||||
github_token: ${{ secrets.ESCORIA_DEPLOYMENT_TOKEN }}
|
||||
dry_run: true
|
||||
pre_release_branches: "develop"
|
||||
append_to_pre_release_tag: "alpha"
|
||||
default_bump: "release"
|
||||
custom_release_rules: "fix:prerelease,feat:prerelease"
|
||||
- name: Create a GitHub release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ESCORIA_DEPLOYMENT_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.create_version.outputs.new_tag }}
|
||||
release_name: ${{ steps.create_version.outputs.new_tag }}
|
||||
body: ${{ steps.create_version.outputs.changelog }}
|
||||
12
.gitignore
vendored
@@ -3,7 +3,6 @@ bin
|
||||
.import
|
||||
*.translation
|
||||
.godot
|
||||
saves/
|
||||
|
||||
# Local overrides to project.godot go in override.cfg.
|
||||
/override.cfg
|
||||
@@ -11,3 +10,14 @@ saves/
|
||||
# Disable accidental changes to the default bus layout. If a change to this
|
||||
# file is required, use git add --force
|
||||
addons/escoria-core/default_bus_layout.tres
|
||||
|
||||
.idea/
|
||||
|
||||
# Optional Addons per environment.
|
||||
addons/godot-plugin-refresher/
|
||||
addons/script-ide/
|
||||
build/
|
||||
.env
|
||||
|
||||
# API credentials
|
||||
secret/
|
||||
|
||||
9
.tmp
@@ -1,9 +0,0 @@
|
||||
:look
|
||||
say player "It's a bottle."
|
||||
stop
|
||||
|
||||
:pickup
|
||||
inventory_add r9_bottle true
|
||||
set_active r9_bottle_left false
|
||||
set_active r9_bottle_middle false
|
||||
set_active r9_bottle_right false
|
||||
5
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"editor.tabSize": 4,
|
||||
"editor.insertSpaces": false,
|
||||
"editor.detectIndentation": false
|
||||
}
|
||||
9
AUTHORS.md
Normal file
@@ -0,0 +1,9 @@
|
||||
## Development
|
||||
- Oier
|
||||
- Eneko
|
||||
|
||||
## Collaborations
|
||||
- Pico
|
||||
- Miette
|
||||
- Niko
|
||||
- Urtzi
|
||||
16
GYMKHANA.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Gymkhana
|
||||
> Las gymkhanikas de Uli
|
||||
|
||||
## ESC Commands
|
||||
- `item_count_add item_id value`
|
||||
- `play_lib_snd filename namespace`
|
||||
- `play_video "res://file"`
|
||||
- `set_tooltip object action text`
|
||||
- `say_random player list_id lenght`
|
||||
- Generates a global variable `{list_id}_count`
|
||||
- `say_sequence player list_id lenght [loop]`
|
||||
- Generates a global variable `{list_id}_current_index`
|
||||
- Generates a global variable `{list_id}_count`
|
||||
|
||||
## Sounds
|
||||
- ZOOM0046-1239-24s-loop.ogg -> music_loop
|
||||
83
Itch_io_publishing.patch
Normal file
@@ -0,0 +1,83 @@
|
||||
Subject: [PATCH] feat(deploy): Itch.io publishing. #203
|
||||
---
|
||||
Index: .gitea/workflows/push-release.yml
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
diff --git a/.gitea/workflows/push-release.yml b/.gitea/workflows/push-release.yml
|
||||
--- a/.gitea/workflows/push-release.yml (revision 1c1f32e2aa839ccf963326d88f5f21bb3085ba1d)
|
||||
+++ b/.gitea/workflows/push-release.yml (revision 8d2907c071001995b91dc6234ec511729fd49137)
|
||||
@@ -34,16 +34,6 @@
|
||||
files: |
|
||||
build/**/*.appimage
|
||||
build/**/*.tar.gz
|
||||
- - name: Publish AMD to itch.io
|
||||
- uses: yeslayla/butler-publish-itchio-action@master
|
||||
- env:
|
||||
- BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }}
|
||||
- CHANNEL: linux
|
||||
- PACKAGE: build/debug/amd64/*.appimage
|
||||
- - name: Publish ARM to itch.io
|
||||
- uses: yeslayla/butler-publish-itchio-action@master
|
||||
- env:
|
||||
- BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }}
|
||||
- CHANNEL: linux
|
||||
- PACKAGE: build/debug/arm64/*.appimage
|
||||
- VERSION_FILE: build/version.txt
|
||||
\ No newline at end of file
|
||||
+ - name: Publishing
|
||||
+ run: |
|
||||
+ ./publish.sh
|
||||
\ No newline at end of file
|
||||
Index: bash_colors.sh
|
||||
===================================================================
|
||||
diff --git a/bash_colors.sh b/bash_colors.sh
|
||||
new file mode 100644
|
||||
--- /dev/null (revision 8d2907c071001995b91dc6234ec511729fd49137)
|
||||
+++ b/bash_colors.sh (revision 8d2907c071001995b91dc6234ec511729fd49137)
|
||||
@@ -0,0 +1,6 @@
|
||||
+NOCOLOR='\033[0m' # No Color
|
||||
+BLUE='\e[34m' # BrightBlue
|
||||
+BOLD_BLUE='\033[1;94m' # BrightBlue
|
||||
+GREEN='\e[49;32m' # Green
|
||||
+ORANGE='\033[1;33m'
|
||||
+RED='\033[1;31m'
|
||||
\ No newline at end of file
|
||||
Index: publish.sh
|
||||
===================================================================
|
||||
diff --git a/publish.sh b/publish.sh
|
||||
new file mode 100644
|
||||
--- /dev/null (revision 8d2907c071001995b91dc6234ec511729fd49137)
|
||||
+++ b/publish.sh (revision 8d2907c071001995b91dc6234ec511729fd49137)
|
||||
@@ -0,0 +1,29 @@
|
||||
+#!/bin/bash
|
||||
+source bash_colors.sh
|
||||
+
|
||||
+ITCHIO_ENABLED=true
|
||||
+
|
||||
+VERSION=`cat build/version.txt`
|
||||
+echo -e "Publishing ${GREEN}v${VERSION}${NOCOLOR}"
|
||||
+
|
||||
+# Publish to Itch.io
|
||||
+if [ "$ITCHIO_ENABLED" = true ] ; then
|
||||
+ echo -e "${BLUE}Publishing to Itch.io${NOCOLOR}"
|
||||
+ if ! command -v butler >/dev/null 2>&1
|
||||
+ then
|
||||
+ echo -e "${RED}butler could not be found. Aborting!${NOCOLOR}"
|
||||
+ exit 1
|
||||
+ fi
|
||||
+
|
||||
+
|
||||
+
|
||||
+ echo -e "${ORANGE}Publishing AMD64${NOCOLOR}"
|
||||
+ butler push build/debug/amd64/LasGymkhanikasDeUli--debug.x86_64.appimage uliwood/las-gymkhanikas-de-uli-turno-cocina:linux-amd64 --userversion $VERSION
|
||||
+
|
||||
+ echo -e "${ORANGE}Publishing ARM64${NOCOLOR}"
|
||||
+ butler push build/debug/arm64/LasGymkhanikasDeUli--debug.arm_64.appimage uliwood/las-gymkhanikas-de-uli-turno-cocina:linux-arm64 --userversion $VERSION
|
||||
+
|
||||
+
|
||||
+ else
|
||||
+ echo -e "${ORANGE}Itch.io not enabled.{NOCOLOR}"
|
||||
+fi
|
||||
\ No newline at end of file
|
||||
82
README.md
@@ -1,63 +1,35 @@
|
||||
# Escoria Demo Game
|
||||
# Las Gymkhanikas de Uli
|
||||
|
||||

|
||||
Point-and-click adventure game developed using Escoria framework and Godot engine.
|
||||
|
||||
[](https://discord.com/invite/jMxJjuBY5Z)
|
||||
## Building from source
|
||||
### Assumed folder structure
|
||||
```
|
||||
any-folder
|
||||
├── gymkhana -> This project.
|
||||
└── escoria-demo-game -> Folder for escoria core.
|
||||
|
||||
Libre framework for the creation of point-and-click adventure games with the multi-platform game engine [Godot Engine](https://godotengine.org).
|
||||
```
|
||||
### Steps
|
||||
1) Clone `gymkhana` repo
|
||||
2) Clone `escoria-demo-game` repo (main branch)
|
||||
3) Apply patches from the root folder. Run: `./apply_patches.sh`
|
||||
|
||||
Check out the [Escoria documentation](https://docs.escoria-framework.org), especially the Getting Started Guide for further details.
|
||||
## Video export.
|
||||
- 1280 x 720 | 25fps
|
||||
- Export to MP4
|
||||
- Convert to ogv `ffmpeg -i input.mp4 -c:v libtheora -q:v 6 -c:a libvorbis -q:a 4 output.ogv`
|
||||
|
||||
If you want to contribute to the development of Escoria, please read our [Contribution guidelines](https://github.com/godot-escoria/.github/blob/main/CONTRIBUTING.md).
|
||||
## Export
|
||||
- Web: `godot -v --export "HTML5" ../gymkhana-export-html/index.html`
|
||||
- Linux: `godot -v --export "Linux/X11" ../LasGymkhanikasDeUli-1.0-RC1.appimage`
|
||||
- ~~Windows: godot -v --export "Windows Desktop x64" ../LasGymkhanikasDeUli-1.0-RC1.exe~~
|
||||
|
||||
This is the demo game that acts as a testing ground for future Escoria development and a general showcase of its features.
|
||||
|
||||
## Art credits
|
||||
## Sound attributions:
|
||||
- button_clicking.ogg | Button Clicking 1 by Sheyvan -- https://freesound.org/s/475188/ -- License: Creative Commons 0
|
||||
- menu_button.ogg | Videogame Menu BUTTON CLICK by Christopherderp -- https://freesound.org/s/342200/ -- License: Creative Commons 0
|
||||
- birds_ambient_loop.ogg | https://freesound.org/people/Garuda1982/sounds/691629/ -- License: Creative Commons 0
|
||||
|
||||
### Characters
|
||||
|
||||
- Mark spritesheet by Marco Giorgini - marcogiorgini.com
|
||||
Licence : CC0 Licence
|
||||
https://opengameart.org/content/mark-2d-adventure-game-sprite
|
||||
with some additions (talk animations) by Julian Murgia
|
||||
- Worker spritesheet based on Mark spritesheet by Marco Giorgini - marcogiorgini.com
|
||||
Licence: CC0 Licence
|
||||
edited by Julian Murgia
|
||||
|
||||
### Items
|
||||
|
||||
* Generic items by Kenney
|
||||
* Animal pack redux by Kenney
|
||||
Licence: CC0 Licence
|
||||
https://www.kenney.nl/assets/generic-items
|
||||
|
||||
## Sound credits
|
||||
|
||||
* Concrete footstep
|
||||
Licence: CC0 Licence
|
||||
https://www.kenney.nl/
|
||||
* “Game Menu Looping” (Licence CC-BY 4.0)
|
||||
* “Mystical Ocean Puzzle Game” (Licence CC-BY 4.0)
|
||||
by Eric Matyas
|
||||
www.soundimage.org
|
||||
|
||||
## Cursors
|
||||
|
||||
* Pointers part 4 by "yd"
|
||||
Licence: CC0 Licence
|
||||
https://opengameart.org/content/pointers-part-4x
|
||||
edited by Julian Murgia
|
||||
|
||||
## Font
|
||||
|
||||
These fonts are provided as an example. Please mind checking the licence before redistributing with your game.
|
||||
|
||||
- Caslon Antique
|
||||
https://www.1001fonts.com/caslon-antique-font.html#license
|
||||
Licence: Free for personal use - Free for commercial use
|
||||
This is the font used in LucasArt's game Curse of Monkey Island.
|
||||
|
||||
- Onesize
|
||||
https://www.whatfontis.com/Onesize.font
|
||||
Licence: Free for personal use
|
||||
This is the font used in LucasArt's games The Secret of Monkey Island and Monkey Island 2: Lechuck's Revenge.
|
||||
## Icon attributions:
|
||||
- Translate button: Noun Project. Public domain
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
:use | TK
|
||||
say current_player "I can't use this!"
|
||||
say($player, "I can't use this!", "action_default_say")
|
||||
|
||||
1
addons/escoria-core
Symbolic link
@@ -0,0 +1 @@
|
||||
../../escoria-demo-game/addons/escoria-core
|
||||
@@ -1,300 +0,0 @@
|
||||
extends Control
|
||||
|
||||
|
||||
func _test_basic() -> bool:
|
||||
var esc = """
|
||||
:test
|
||||
# first group
|
||||
>
|
||||
say player "Test"
|
||||
# Second group
|
||||
> [test]
|
||||
say player "Test2 BLANK"
|
||||
say player "Test3" [test2]
|
||||
# Third group
|
||||
>
|
||||
|
||||
say player "Test4"
|
||||
# Fourth group
|
||||
>
|
||||
say player "Test5"
|
||||
say player "Test 6"
|
||||
say player TEST:"Test 7"
|
||||
"""
|
||||
var script = escoria.esc_compiler.compile(esc.split("\n"))
|
||||
|
||||
var subject = script
|
||||
assert(subject is ESCScript)
|
||||
|
||||
subject = script.events.keys()
|
||||
assert(subject.size() == 1)
|
||||
assert(subject[0] == "test")
|
||||
|
||||
subject = script.events["test"].statements
|
||||
assert(subject.size() == 2)
|
||||
|
||||
subject = script.events["test"].statements[0]
|
||||
assert(subject is ESCGroup)
|
||||
assert(subject.statements.size() == 4)
|
||||
|
||||
subject = script.events["test"].statements[0].statements[0]
|
||||
assert(subject is ESCCommand)
|
||||
assert(subject.name == "say")
|
||||
assert(subject.parameters.size() == 2)
|
||||
assert(subject.parameters[0] == "player")
|
||||
assert(subject.parameters[1] == '"Test"')
|
||||
|
||||
subject = script.events["test"].statements[0].statements[1]
|
||||
assert(subject is ESCGroup)
|
||||
assert(subject.conditions.size() == 1)
|
||||
assert(subject.conditions[0] is ESCCondition)
|
||||
assert(subject.conditions[0].flag == "test")
|
||||
|
||||
subject = script.events["test"].statements[0].statements[1].statements[0]
|
||||
assert(subject is ESCCommand)
|
||||
assert(subject.name == "say")
|
||||
assert(subject.parameters.size() == 2)
|
||||
assert(subject.parameters[0] == "player")
|
||||
assert(subject.parameters[1] == '"Test2 BLANK"')
|
||||
|
||||
subject = script.events["test"].statements[0].statements[2]
|
||||
assert(subject is ESCCommand)
|
||||
assert(subject.name == "say")
|
||||
assert(subject.parameters.size() == 2)
|
||||
assert(subject.parameters[0] == "player")
|
||||
assert(subject.parameters[1] == '"Test3"')
|
||||
assert(subject.conditions.size() == 1)
|
||||
assert(subject.conditions[0].flag == "test2")
|
||||
|
||||
subject = script.events["test"].statements[0].statements[3]
|
||||
assert(subject is ESCGroup)
|
||||
assert(subject.statements.size() == 1)
|
||||
|
||||
subject = script.events["test"].statements[1]
|
||||
assert(subject is ESCGroup)
|
||||
assert(subject.statements.size() == 3)
|
||||
|
||||
subject = script.events["test"].statements[1].statements[1]
|
||||
assert(subject is ESCCommand)
|
||||
assert(subject.name == "say")
|
||||
assert(subject.parameters[1] == '"Test 6"')
|
||||
|
||||
subject = script.events["test"].statements[1].statements[2]
|
||||
assert(subject is ESCCommand)
|
||||
assert(subject.name == "say")
|
||||
assert(subject.parameters[1] == "TEST:\"Test 7\"")
|
||||
|
||||
return true
|
||||
|
||||
|
||||
func _test_conditions() -> bool:
|
||||
var esc = """
|
||||
:test
|
||||
say player "Test" [flag]
|
||||
say player "Test" [flag1,flag2]
|
||||
say player "Test" [!flag]
|
||||
say player "Test" [i/flag]
|
||||
say player "Test" [i/flag,flag]
|
||||
say player "Test" [i/flag,flag,!flag2]
|
||||
say player "Test" [eq flag 3]
|
||||
say player "Test" [eq flag 3,gt flag 5]
|
||||
say player "Test" [!eq flag 3]
|
||||
"""
|
||||
var script = escoria.esc_compiler.compile(esc.split("\n"))
|
||||
|
||||
var subject = script.events["test"].statements[0]
|
||||
assert(subject is ESCCommand)
|
||||
assert(subject.conditions.size() == 1)
|
||||
|
||||
subject = script.events["test"].statements[0].conditions[0]
|
||||
assert(subject.flag == "flag")
|
||||
assert(not subject.negated)
|
||||
assert(not subject.inventory)
|
||||
assert(subject.comparison == ESCCondition.COMPARISON_NONE)
|
||||
|
||||
subject = script.events["test"].statements[1].conditions
|
||||
assert(subject.size() == 2)
|
||||
assert(subject[0].flag == "flag1")
|
||||
assert(subject[1].flag == "flag2")
|
||||
|
||||
subject = script.events["test"].statements[2].conditions
|
||||
assert(subject.size() == 1)
|
||||
assert(subject[0].flag == "flag")
|
||||
assert(subject[0].negated)
|
||||
|
||||
subject = script.events["test"].statements[3].conditions
|
||||
assert(subject.size() == 1)
|
||||
assert(subject[0].flag == "flag")
|
||||
assert(subject[0].inventory)
|
||||
|
||||
subject = script.events["test"].statements[4].conditions
|
||||
assert(subject.size() == 2)
|
||||
assert(subject[0].flag == "flag")
|
||||
assert(subject[0].inventory)
|
||||
assert(subject[1].flag == "flag")
|
||||
assert(not subject[1].inventory)
|
||||
|
||||
subject = script.events["test"].statements[5].conditions
|
||||
assert(subject.size() == 3)
|
||||
assert(subject[0].flag == "flag")
|
||||
assert(subject[0].inventory)
|
||||
assert(subject[1].flag == "flag")
|
||||
assert(not subject[1].inventory)
|
||||
assert(subject[2].flag == "flag2")
|
||||
assert(not subject[2].inventory)
|
||||
assert(subject[2].negated)
|
||||
|
||||
subject = script.events["test"].statements[6].conditions
|
||||
assert(subject.size() == 1)
|
||||
assert(subject[0].flag == "flag")
|
||||
assert(subject[0].comparison == ESCCondition.COMPARISON_EQ)
|
||||
assert(subject[0].comparison_value == 3)
|
||||
|
||||
subject = script.events["test"].statements[7].conditions
|
||||
assert(subject.size() == 2)
|
||||
assert(subject[0].flag == "flag")
|
||||
assert(subject[0].comparison == ESCCondition.COMPARISON_EQ)
|
||||
assert(subject[0].comparison_value == 3)
|
||||
assert(subject[1].flag == "flag")
|
||||
assert(subject[1].comparison == ESCCondition.COMPARISON_GT)
|
||||
assert(subject[1].comparison_value == 5)
|
||||
|
||||
subject = script.events["test"].statements[8].conditions
|
||||
assert(subject.size() == 1)
|
||||
assert(subject[0].flag == "flag")
|
||||
assert(subject[0].comparison == ESCCondition.COMPARISON_EQ)
|
||||
assert(subject[0].comparison_value == 3)
|
||||
assert(subject[0].negated)
|
||||
|
||||
return true
|
||||
|
||||
|
||||
func _test_event_flags() -> bool:
|
||||
var esc = """
|
||||
:test | TK
|
||||
:test2 | TK NO_TT
|
||||
:test3 | TK NO_TT NO_UI
|
||||
"""
|
||||
var script = escoria.esc_compiler.compile(esc.split("\n"))
|
||||
|
||||
var subject = script.events
|
||||
assert(subject.keys().size() == 3)
|
||||
assert("test" in subject.keys())
|
||||
assert("test2" in subject.keys())
|
||||
assert("test3" in subject.keys())
|
||||
|
||||
subject = script.events["test"]
|
||||
assert(subject.name == "test")
|
||||
assert(subject.flags & ESCEvent.FLAG_TK != 0)
|
||||
assert(subject.flags & ESCEvent.FLAG_NO_TT == 0)
|
||||
|
||||
subject = script.events["test2"]
|
||||
assert(subject.name == "test2")
|
||||
assert(subject.flags & ESCEvent.FLAG_TK != 0)
|
||||
assert(subject.flags & ESCEvent.FLAG_NO_TT != 0)
|
||||
|
||||
subject = script.events["test3"]
|
||||
assert(subject.name == "test3")
|
||||
assert(subject.flags & ESCEvent.FLAG_TK != 0)
|
||||
assert(subject.flags & ESCEvent.FLAG_NO_TT != 0)
|
||||
assert(subject.flags & ESCEvent.FLAG_NO_UI != 0)
|
||||
|
||||
return true
|
||||
|
||||
|
||||
func _test_dialog() -> bool:
|
||||
var esc = """
|
||||
:test
|
||||
?
|
||||
- "Option 1"
|
||||
say player "test"
|
||||
say player "testb"
|
||||
say player "testb?"
|
||||
- "Option 2" [flag]
|
||||
say player "test2"
|
||||
?
|
||||
- "Suboption 1"
|
||||
say player "test21"
|
||||
- "Suboption 2"
|
||||
say player "test22"
|
||||
!
|
||||
- "Option 3"
|
||||
>
|
||||
say player "test3"
|
||||
- TEST:"Option 4"
|
||||
say player "test4"
|
||||
!
|
||||
"""
|
||||
var script = escoria.esc_compiler.compile(esc.split("\n"))
|
||||
|
||||
var subject = script.events["test"].statements
|
||||
assert(subject.size() == 1)
|
||||
|
||||
assert(subject[0] is ESCDialog)
|
||||
assert(subject[0].options.size() == 4)
|
||||
|
||||
subject = script.events["test"].statements[0].options[0]
|
||||
assert(subject is ESCDialogOption)
|
||||
assert(subject.option == "Option 1")
|
||||
|
||||
subject = script.events["test"].statements[0].options[0].statements
|
||||
assert(subject.size() == 3)
|
||||
assert(subject[0] is ESCCommand)
|
||||
assert(subject[0].name == "say")
|
||||
assert(subject[0].parameters.size() == 2)
|
||||
assert(subject[1] is ESCCommand)
|
||||
assert(subject[1].name == "say")
|
||||
assert(subject[1].parameters.size() == 2)
|
||||
assert(subject[1].parameters[1] == '"testb"')
|
||||
assert(subject[2] is ESCCommand)
|
||||
assert(subject[2].name == "say")
|
||||
assert(subject[2].parameters.size() == 2)
|
||||
assert(subject[2].parameters[1] == '"testb?"')
|
||||
|
||||
subject = script.events["test"].statements[0].options[1]
|
||||
assert(subject is ESCDialogOption)
|
||||
assert(subject.option == "Option 2")
|
||||
assert(subject.conditions.size() == 1)
|
||||
assert(subject.conditions[0].flag == "flag")
|
||||
|
||||
subject = script.events["test"].statements[0].options[1].statements
|
||||
assert(subject.size() == 2)
|
||||
assert(subject[0] is ESCCommand)
|
||||
assert(subject[0].name == "say")
|
||||
assert(subject[0].parameters.size() == 2)
|
||||
|
||||
assert(subject[1] is ESCDialog)
|
||||
assert(subject[1].options.size() == 2)
|
||||
|
||||
subject = script.events["test"].statements[0].options[2]
|
||||
assert(subject is ESCDialogOption)
|
||||
assert(subject.option == "Option 3")
|
||||
|
||||
subject = script.events["test"].statements[0].options[2].statements
|
||||
assert(subject.size() == 1)
|
||||
assert(subject[0] is ESCGroup)
|
||||
assert(subject[0].statements.size() == 1)
|
||||
assert(subject[0].statements[0] is ESCCommand)
|
||||
assert(subject[0].statements[0].parameters.size() == 2)
|
||||
|
||||
subject = script.events["test"].statements[0].options[3]
|
||||
assert(subject is ESCDialogOption)
|
||||
assert(subject.option == "TEST")
|
||||
|
||||
return true
|
||||
|
||||
|
||||
func _on_BasicFunctionality_pressed():
|
||||
$VBoxContainer/VBoxContainer/BasicFunctionality.pressed = self._test_basic()
|
||||
|
||||
|
||||
func _on_Conditions_pressed():
|
||||
$VBoxContainer/VBoxContainer/Conditions.pressed = self._test_conditions()
|
||||
|
||||
|
||||
func _on_EventFlags_pressed():
|
||||
$VBoxContainer/VBoxContainer/EventFlags.pressed = self._test_event_flags()
|
||||
|
||||
|
||||
func _on_Dialog_pressed():
|
||||
$VBoxContainer/VBoxContainer/Dialog.pressed = self._test_dialog()
|
||||
@@ -1,58 +0,0 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://addons/escoria-core/_test/test_esc_compiler.gd" type="Script" id=1]
|
||||
|
||||
[node name="Testsuite" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_right = 1.0
|
||||
margin_bottom = 1.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer"]
|
||||
margin_right = 1281.0
|
||||
margin_bottom = 172.0
|
||||
|
||||
[node name="BasicFunctionality" type="CheckButton" parent="VBoxContainer/VBoxContainer"]
|
||||
margin_right = 1281.0
|
||||
margin_bottom = 40.0
|
||||
text = "Basic Functionality"
|
||||
align = 1
|
||||
|
||||
[node name="Conditions" type="CheckButton" parent="VBoxContainer/VBoxContainer"]
|
||||
margin_top = 44.0
|
||||
margin_right = 1281.0
|
||||
margin_bottom = 84.0
|
||||
text = "Check conditions"
|
||||
align = 1
|
||||
|
||||
[node name="EventFlags" type="CheckButton" parent="VBoxContainer/VBoxContainer"]
|
||||
margin_top = 88.0
|
||||
margin_right = 1281.0
|
||||
margin_bottom = 128.0
|
||||
text = "Check event flags"
|
||||
align = 1
|
||||
|
||||
[node name="Dialog" type="CheckButton" parent="VBoxContainer/VBoxContainer"]
|
||||
margin_top = 132.0
|
||||
margin_right = 1281.0
|
||||
margin_bottom = 172.0
|
||||
text = "Check dialogs"
|
||||
align = 1
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/VBoxContainer/BasicFunctionality" to="." method="_on_BasicFunctionality_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/VBoxContainer/Conditions" to="." method="_on_Conditions_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/VBoxContainer/EventFlags" to="." method="_on_EventFlags_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/VBoxContainer/Dialog" to="." method="_on_Dialog_pressed"]
|
||||
@@ -1,20 +0,0 @@
|
||||
extends Control
|
||||
|
||||
|
||||
|
||||
func _on_CheckESCMigrationManager_pressed() -> bool:
|
||||
var savegame: ESCSaveGame = ESCSaveGame.new()
|
||||
|
||||
savegame.globals["test"] = "testa"
|
||||
|
||||
var migration_manager: ESCMigrationManager = ESCMigrationManager.new()
|
||||
savegame = migration_manager.migrate(
|
||||
savegame,
|
||||
"1.0.0",
|
||||
"2.0.0",
|
||||
"res://addons/escoria-core/_test/testversions"
|
||||
)
|
||||
|
||||
assert(savegame.globals["test"] == "testc")
|
||||
|
||||
return true
|
||||
@@ -1,25 +0,0 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://addons/escoria-core/_test/test_migrations.gd" type="Script" id=1]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="CheckESCMigrationManager" type="CheckButton" parent="VBoxContainer"]
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 40.0
|
||||
text = "Check ESCMigrationManager"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/CheckESCMigrationManager" to="." method="_on_CheckESCMigrationManager_pressed"]
|
||||
@@ -1,5 +0,0 @@
|
||||
extends ESCMigration
|
||||
|
||||
func migrate():
|
||||
self._savegame.globals["test"] = "testb"
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
extends ESCMigration
|
||||
|
||||
func migrate():
|
||||
self._savegame.globals["test"] = "testc"
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
[gd_resource type="AudioBusLayout" format=2]
|
||||
|
||||
[resource]
|
||||
bus/1/name = "SFX"
|
||||
bus/1/solo = false
|
||||
bus/1/mute = false
|
||||
bus/1/bypass_fx = false
|
||||
bus/1/volume_db = 0.0
|
||||
bus/1/send = "Master"
|
||||
bus/2/name = "Music"
|
||||
bus/2/solo = false
|
||||
bus/2/mute = false
|
||||
bus/2/bypass_fx = false
|
||||
bus/2/volume_db = 0.0
|
||||
bus/2/send = "Master"
|
||||
bus/3/name = "Speech"
|
||||
bus/3/solo = false
|
||||
bus/3/mute = false
|
||||
bus/3/bypass_fx = false
|
||||
bus/3/volume_db = 0.0
|
||||
bus/3/send = "Master"
|
||||
@@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>esc_background</title>
|
||||
<defs>
|
||||
<linearGradient x1="0%" y1="78.125%" x2="100%" y2="21.875%" id="linearGradient-1">
|
||||
<stop stop-color="#D4FF2A" offset="0%"></stop>
|
||||
<stop stop-color="#81D135" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="esc_background" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<rect id="Rectangle" stroke="#1B2F0D" fill="url(#linearGradient-1)" transform="translate(7.500000, 4.835358) scale(1, -1) translate(-7.500000, -4.835358) " x="3.5" y="1.83535782" width="8" height="6" rx="1"></rect>
|
||||
<line x1="3.5" y1="8.5" x2="11.5" y2="8.5" id="Line-3" stroke="#1B2F0D" stroke-linecap="round" stroke-linejoin="round"></line>
|
||||
<line x1="7.5" y1="8.5" x2="7.5" y2="14.5" id="Line-2" stroke="#1B2F0D" stroke-linecap="round"></line>
|
||||
<line x1="6.5" y1="8.5" x2="3.5" y2="14.5" id="Line" stroke="#1B2F0D" stroke-linecap="round" stroke-linejoin="bevel"></line>
|
||||
<line x1="12.1583333" y1="8.5" x2="9.15833333" y2="14.5" id="Line-Copy" stroke="#1B2F0D" stroke-linecap="round" stroke-linejoin="bevel" transform="translate(10.329167, 11.500000) scale(-1, 1) translate(-10.329167, -11.500000) "></line>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.4 KiB |
@@ -1,24 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>esc_exit</title>
|
||||
<defs>
|
||||
<linearGradient x1="32%" y1="0%" x2="68%" y2="100%" id="linearGradient-1">
|
||||
<stop stop-color="#D4FF2A" offset="0%"></stop>
|
||||
<stop stop-color="#81D135" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="36.7305357%" y1="0%" x2="63.2694643%" y2="100%" id="linearGradient-2">
|
||||
<stop stop-color="#D4FF2A" offset="0%"></stop>
|
||||
<stop stop-color="#81D135" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="esc_exit" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="Group" transform="translate(4.000000, 2.000000)" fill-rule="nonzero">
|
||||
<polygon id="Rectangle-Copy" fill="url(#linearGradient-1)" points="6 10 0 10 0 0 6 0"></polygon>
|
||||
<path d="M7,0 L7,10 L0,10 L0,0 L7,0 Z M6,1 L1,1 L1,9 L6,9 L6,1 Z" id="Rectangle" fill="#1B2F0D"></path>
|
||||
</g>
|
||||
<g id="Group-Copy" transform="translate(4.000000, 2.000000)" fill-rule="nonzero">
|
||||
<polygon id="Rectangle-Copy" fill="url(#linearGradient-2)" points="6 11.6468788 0 10 0 0 6 1.64687882"></polygon>
|
||||
<path d="M7,1.92135862 L7,11.9213586 L0,10 L0,0 L7,1.92135862 Z M6,2.64687882 L1,1.2744798 L1,9.2744798 L6,10.6468788 L6,2.64687882 Z" id="Rectangle" fill="#1B2F0D"></path>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.5 KiB |
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>esc_item</title>
|
||||
<defs>
|
||||
<linearGradient x1="0%" y1="0%" x2="100%" y2="100%" id="linearGradient-1">
|
||||
<stop stop-color="#D4FF2A" offset="0%"></stop>
|
||||
<stop stop-color="#81D135" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="esc_item" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<path d="M13,3 L13,13 L3,13 L3,3 L13,3 Z" id="Rectangle-Copy" fill="url(#linearGradient-1)" fill-rule="nonzero"></path>
|
||||
<path d="M13,3 L13,13 L3,13 L3,3 L13,3 Z M12,4 L4,4 L4,12 L12,12 L12,4 Z" id="Rectangle" fill="#1B2F0D" fill-rule="nonzero"></path>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 832 B |
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>esc_location</title>
|
||||
<defs>
|
||||
<linearGradient x1="30.5473974%" y1="11.0848793%" x2="65.1733111%" y2="67.1344559%" id="linearGradient-1">
|
||||
<stop stop-color="#D4FF2A" offset="0%"></stop>
|
||||
<stop stop-color="#81D135" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="esc_location" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<path d="M8,1 C10.7614237,1 13,3.23857625 13,6 C13,7.03229916 12.6871639,7.99153151 12.1511242,8.78806444 L12,9 L8,15 L4,9 C3.37230087,8.16533354 3,7.12614453 3,6 C3,3.3112453 5.12230671,1.11818189 7.78311038,1.00461951 L8,1 Z M8,2 C5.790861,2 4,3.790861 4,6 C4,6.79127405 4.22941289,7.54564844 4.67538853,8.22257987 L4.83205029,8.4452998 L8,13.196 L11.1857974,8.41941917 L11.3214939,8.22975135 C11.7616659,7.57567374 12,6.80688718 12,6 C12,3.790861 10.209139,2 8,2 Z" id="Oval-2" fill="#1B2F0D" fill-rule="nonzero"></path>
|
||||
<path d="M8,2 C10.209139,2 12,3.790861 12,6 C12,6.80688718 11.7616659,7.57567374 11.3214939,8.22975135 L11.3214939,8.22975135 L11.1857974,8.41941917 L8,13.196 L4.83205029,8.4452998 L4.67538853,8.22257987 C4.22941289,7.54564844 4,6.79127405 4,6 C4,3.790861 5.790861,2 8,2 Z M8,5 C7.44771525,5 7,5.44771525 7,6 C7,6.55228475 7.44771525,7 8,7 C8.55228475,7 9,6.55228475 9,6 C9,5.44771525 8.55228475,5 8,5 Z" id="Path-2" fill="url(#linearGradient-1)" fill-rule="nonzero"></path>
|
||||
<path d="M8,4 C9.1045695,4 10,4.8954305 10,6 C10,7.1045695 9.1045695,8 8,8 C6.8954305,8 6,7.1045695 6,6 C6,4.8954305 6.8954305,4 8,4 Z M8,5 C7.44771525,5 7,5.44771525 7,6 C7,6.55228475 7.44771525,7 8,7 C8.55228475,7 9,6.55228475 9,6 C9,5.44771525 8.55228475,5 8,5 Z" id="Oval" fill="#1B2F0D" fill-rule="nonzero"></path>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.9 KiB |
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>esc_player</title>
|
||||
<defs>
|
||||
<linearGradient x1="0%" y1="9.5%" x2="100%" y2="90.5%" id="linearGradient-1">
|
||||
<stop stop-color="#D4FF2A" offset="0%"></stop>
|
||||
<stop stop-color="#81D135" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="esc_player" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<path d="M8.48310297,6.50090902 C9.93623249,6.52397585 10.9918184,6.58559799 11.6732841,7.31692964 C12.2190722,7.90265542 12.5,8.89312953 12.5000018,10.4986497 C12.4997458,10.5934498 12.499603,10.6858861 12.4995224,10.7760225 L12.4990955,11.5268775 C12.4959135,12.9882048 12.4598451,13.6884582 12.0405176,14.0658529 C11.531509,14.5239607 10.5323938,14.4945664 8.73719674,14.4993779 C8.52323835,14.4990469 8.31890122,14.4989282 8.12369826,14.4988553 L7.30529662,14.498275 C5.19409137,14.4944003 4.39593747,14.4586625 3.95948237,14.0658529 C3.4625018,13.6185704 3.50584875,12.7218979 3.50069164,11.1622589 L3.50069164,11.1622589 L3.5,10.5 C3.5,8.89312953 3.78092784,7.90265542 4.32671587,7.31692964 C5.0007391,6.59358511 6.0388866,6.52417866 7.1903288,6.50449816 L7.1903288,6.50449816 Z" id="Oval-Copy" stroke="#1B2F0D" fill="url(#linearGradient-1)"></path>
|
||||
<ellipse id="Oval" stroke="#1B2F0D" fill="url(#linearGradient-1)" cx="8" cy="5.5" rx="4.5" ry="4"></ellipse>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.5 KiB |
@@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>esc_room</title>
|
||||
<defs>
|
||||
<linearGradient x1="0%" y1="14.2011834%" x2="100%" y2="85.7988166%" id="linearGradient-1">
|
||||
<stop stop-color="#D4FF2A" offset="0%"></stop>
|
||||
<stop stop-color="#81D135" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="esc_room" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<path d="M14.5,2.84069305 L14.5,5.54514386 L14.5,10.8358258 L14.5,13.840693 L1.5,13.840693 L1.5,10.3358258 L2,10.3358258 C4.04857623,10.3358258 5.11403175,9.3925116 5.30106353,7.35966319 L5.315,7.16769305 L1.5,7.16854556 L1.5,2.84069305 L14.5,2.84069305 Z" id="Path-Copy" fill="url(#linearGradient-1)" fill-rule="nonzero"></path>
|
||||
<g id="Group" transform="translate(1.500000, 2.840693)" fill="#1B2F0D" fill-rule="nonzero">
|
||||
<path d="M13,0 L13,2.70445081 L12,2.70445081 L12,1 L1,1 L1,3.327 L4.83105783,3.32785252 L4.83105783,3.82785252 C4.83105783,6.6121956 3.58466403,8.20663376 1.2004667,8.45950961 L1,8.477 L1,10 L12,10 L12,7.99513276 L13,7.99513276 L13,11 L0,11 L0,7.49513276 L0.5,7.49513276 C2.54857623,7.49513276 3.61403175,6.55181855 3.80106353,4.51897014 L3.815,4.327 L0,4.32785252 L0,0 L13,0 Z" id="Rectangle"></path>
|
||||
<polygon id="Line-3" points="13.5 2.20445081 13.5 3.20445081 11.5 3.20445081 11.5 2.20445081"></polygon>
|
||||
<polygon id="Line" points="13.5 7.49513276 13.5 8.49513276 11.5 8.49513276 11.5 7.49513276"></polygon>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.6 KiB |
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>esc_terrain</title>
|
||||
<defs>
|
||||
<linearGradient x1="23.0422805%" y1="44.7555583%" x2="96.9021896%" y2="75.5102041%" id="linearGradient-1">
|
||||
<stop stop-color="#D4FF2A" offset="0%"></stop>
|
||||
<stop stop-color="#81D135" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="esc_terrain" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<path d="M10.5986658,2.5 L15,12.5 L1,12.5 L5.77792486,5.1574418 L7.54781394,7.5 L10.5986658,2.5 Z" id="Rectangle-Copy" fill="url(#linearGradient-1)" fill-rule="nonzero"></path>
|
||||
<path d="M10.5986658,2.5 L15,12.5 L1,12.5 L5.77792486,5.1574418 L7.54781394,7.5 L10.5986658,2.5 Z M13.467,11.499 L10.454,4.655 L7.63592431,9.27547964 L5.839,6.897 L2.844,11.499 L13.467,11.499 Z" id="Rectangle" fill="#1B2F0D" fill-rule="nonzero"></path>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 110 KiB |
@@ -1,594 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="210mm"
|
||||
height="297mm"
|
||||
viewBox="0 0 210 297"
|
||||
version="1.1"
|
||||
id="svg3926"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
|
||||
sodipodi:docname="escoria-logo.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<defs
|
||||
id="defs3920">
|
||||
<inkscape:perspective
|
||||
sodipodi:type="inkscape:persp3d"
|
||||
inkscape:vp_x="0 : 148.5 : 1"
|
||||
inkscape:vp_y="0 : 1000 : 0"
|
||||
inkscape:vp_z="210 : 148.5 : 1"
|
||||
inkscape:persp3d-origin="105 : 99 : 1"
|
||||
id="perspective4883" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient4283">
|
||||
<stop
|
||||
style="stop-color:#71c837;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop4279" />
|
||||
<stop
|
||||
style="stop-color:#d4ff2a;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop4281" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient6342"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="-313.79291"
|
||||
y1="4263.0801"
|
||||
x2="-313.79291"
|
||||
y2="4156.5371" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient6344"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="-313.79291"
|
||||
y1="4263.0801"
|
||||
x2="-313.79291"
|
||||
y2="4156.5371" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient6346"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="-313.79291"
|
||||
y1="4263.0801"
|
||||
x2="-313.79291"
|
||||
y2="4156.5371" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient6348"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="-313.79291"
|
||||
y1="4263.0801"
|
||||
x2="-313.79291"
|
||||
y2="4156.5371" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient6350"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="-310.535"
|
||||
y1="4116.6665"
|
||||
x2="-607.86578"
|
||||
y2="4116.6665" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient6352"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="-6179.8599"
|
||||
y1="6275.8198"
|
||||
x2="-6179.8599"
|
||||
y2="6166.0386" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient6354"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="-6179.8599"
|
||||
y1="6275.8198"
|
||||
x2="-6179.8599"
|
||||
y2="6166.0386" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient6356"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="-6179.8599"
|
||||
y1="6275.8198"
|
||||
x2="-6179.8599"
|
||||
y2="6166.0386" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient6358"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="-6179.8599"
|
||||
y1="6275.8198"
|
||||
x2="-6179.8599"
|
||||
y2="6166.0386" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient1300"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="-310.535"
|
||||
y1="4116.6665"
|
||||
x2="-607.86578"
|
||||
y2="4116.6665" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient1370"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="-310.535"
|
||||
y1="4116.6665"
|
||||
x2="-607.86578"
|
||||
y2="4116.6665" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient283"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="-310.535"
|
||||
y1="4116.6665"
|
||||
x2="-607.86578"
|
||||
y2="4116.6665" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient7072"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="-310.535"
|
||||
y1="4116.6665"
|
||||
x2="-607.86578"
|
||||
y2="4116.6665" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient12122"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.26458333,0,0,0.26458333,109.17355,-80.073949)"
|
||||
x1="-313.79291"
|
||||
y1="4263.0801"
|
||||
x2="-313.79291"
|
||||
y2="4156.5371" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient12124"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.26458333,0,0,0.26458333,109.17355,-80.073949)"
|
||||
x1="-313.79291"
|
||||
y1="4263.0801"
|
||||
x2="-313.79291"
|
||||
y2="4156.5371" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient12126"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.26458333,0,0,0.26458333,109.17355,-80.073949)"
|
||||
x1="-313.79291"
|
||||
y1="4263.0801"
|
||||
x2="-313.79291"
|
||||
y2="4156.5371" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient12128"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.03706806,0.06833511,-0.06833511,0.03706806,265.09351,916.52134)"
|
||||
x1="-310.535"
|
||||
y1="4116.6665"
|
||||
x2="-607.86578"
|
||||
y2="4116.6665" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient12130"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.26458333,0,0,0.26458333,1519.0252,-611.8713)"
|
||||
x1="-6179.8599"
|
||||
y1="6275.8198"
|
||||
x2="-6179.8599"
|
||||
y2="6166.0386" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient12132"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.26458333,0,0,0.26458333,1519.0252,-611.8713)"
|
||||
x1="-6179.8599"
|
||||
y1="6275.8198"
|
||||
x2="-6179.8599"
|
||||
y2="6166.0386" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4283"
|
||||
id="linearGradient12134"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.26458333,0,0,0.26458333,1519.0252,-611.8713)"
|
||||
x1="-6179.8599"
|
||||
y1="6275.8198"
|
||||
x2="-6179.8599"
|
||||
y2="6166.0386" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.37763633"
|
||||
inkscape:cx="-974.48251"
|
||||
inkscape:cy="1469.6679"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
showborder="false"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1011"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="32"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:lockguides="false"
|
||||
inkscape:pagecheckerboard="0" />
|
||||
<metadata
|
||||
id="metadata3923">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<rect
|
||||
style="opacity:0.509;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#ff0000;stroke-width:3.05878;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="rect4471"
|
||||
width="690.93744"
|
||||
height="290.39264"
|
||||
x="-492.16605"
|
||||
y="-105.54419" />
|
||||
<g
|
||||
id="g1885"
|
||||
transform="matrix(0.58267536,0,0,0.58267536,15.656304,-914.40014)" />
|
||||
<g
|
||||
transform="matrix(1.9244583,0,0,1.9244583,-58.446902,-1925.0775)"
|
||||
id="g2198">
|
||||
<flowRoot
|
||||
xml:space="preserve"
|
||||
id="flowRoot1729"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Jellee;-inkscape-font-specification:Jellee;letter-spacing:0px;word-spacing:0px;fill:#d4ff2a;fill-opacity:1;stroke:#1b2f0d;stroke-width:56.6929;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
transform="matrix(0.26458333,0,0,0.26458333,1519.0252,-612.12873)"><flowRegion
|
||||
style="fill:#d4ff2a;fill-opacity:1;stroke:#1b2f0d;stroke-width:56.6929;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="flowRegion1725"><rect
|
||||
style="fill:#d4ff2a;fill-opacity:1;stroke:#1b2f0d;stroke-width:56.69291306;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect1723"
|
||||
width="2296.6829"
|
||||
height="605.28339"
|
||||
x="-6363.9609"
|
||||
y="6123.1787" /></flowRegion><flowPara
|
||||
id="flowPara1727"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:192px;font-family:Jellee;-inkscape-font-specification:Jellee;fill:#d4ff2a;fill-opacity:1;stroke:#1b2f0d;stroke-width:56.6929;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1">ESC</flowPara></flowRoot>
|
||||
<flowRoot
|
||||
xml:space="preserve"
|
||||
id="flowRoot1737"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Jellee;-inkscape-font-specification:Jellee;letter-spacing:0px;word-spacing:0px;fill:#d4ff2a;fill-opacity:1;stroke:#1b2f0d;stroke-width:56.6929;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
transform="matrix(0.26458333,0,0,0.26458333,109.17355,-80.073949)"><flowRegion
|
||||
id="flowRegion1733"
|
||||
style="fill:#d4ff2a;fill-opacity:1;stroke:#1b2f0d;stroke-width:56.6929;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"><rect
|
||||
id="rect1731"
|
||||
width="548.71484"
|
||||
height="203.64674"
|
||||
x="-478.00418"
|
||||
y="4112.167"
|
||||
style="fill:#d4ff2a;fill-opacity:1;stroke:#1b2f0d;stroke-width:56.69291306;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /></flowRegion><flowPara
|
||||
id="flowPara1735"
|
||||
style="font-size:192px;stroke:#1b2f0d;stroke-width:56.6929;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1">RIA</flowPara></flowRoot>
|
||||
<g
|
||||
aria-label="RIA"
|
||||
transform="matrix(0.26458333,0,0,0.26458333,109.17355,-80.073949)"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Jellee;-inkscape-font-specification:Jellee;letter-spacing:0px;word-spacing:0px;fill:url(#linearGradient6348);fill-opacity:1;stroke:#1b2f0d;stroke-opacity:1"
|
||||
id="flowRoot1715">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
d="m -447.47591,4263.08 q -7.68,0 -13.056,-5.376 -5.376,-5.376 -5.376,-13.056 v -111.744 q 0,-7.872 4.224,-12.096 4.224,-4.224 12.096,-4.224 h 47.04 q 24.96,0 39.168,11.712 14.4,11.52 14.4,32.64 0,14.016 -6.72,24.576 -6.72,10.56 -19.008,16.512 v 0.384 l 18.048,34.752 q 2.112,3.648 2.112,8.256 0,7.296 -5.184,12.48 -5.184,5.184 -12.672,5.184 -4.992,0 -9.408,-2.496 -4.224,-2.688 -6.336,-7.104 l -21.504,-41.472 h -19.392 v 32.64 q 0,7.68 -5.376,13.056 -5.376,5.376 -13.056,5.376 z m 37.056,-80.256 q 10.752,0 17.088,-4.224 6.528,-4.224 6.528,-15.168 0,-11.328 -6.336,-15.552 -6.336,-4.224 -17.28,-4.224 h -18.624 v 39.168 z"
|
||||
style="font-size:192px;fill:url(#linearGradient6342);fill-opacity:1;stroke:#1b2f0d;stroke-opacity:1"
|
||||
id="path2076" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
d="m -313.79291,4263.08 q -7.68,0 -13.056,-5.376 -5.376,-5.376 -5.376,-13.056 V 4133.48 q 0,-7.68 5.376,-13.056 5.376,-5.376 13.056,-5.376 7.68,0 13.056,5.376 5.376,5.376 5.376,13.056 v 111.168 q 0,7.68 -5.376,13.056 -5.376,5.376 -13.056,5.376 z"
|
||||
style="font-size:192px;fill:url(#linearGradient6344);fill-opacity:1;stroke:#1b2f0d;stroke-opacity:1"
|
||||
id="path2078" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
d="m -263.79491,4263.08 q -6.912,0 -11.904,-4.8 -4.8,-4.992 -4.8,-11.904 0,-2.496 0.96,-5.376 l 36.48,-105.6 q 3.072,-9.024 10.944,-14.592 7.872,-5.76 17.856,-5.76 9.792,0 17.664,5.76 7.872,5.568 10.944,14.592 l 36.096,104.448 q 0.96,3.264 0.96,5.76 0,7.104 -5.184,12.288 -4.992,5.184 -12.288,5.184 -5.76,0 -10.368,-3.264 -4.608,-3.456 -6.336,-8.832 l -6.336,-20.16 h -52.224 l -6.336,20.544 q -1.536,5.184 -5.952,8.448 -4.416,3.264 -10.176,3.264 z m 65.664,-60.672 -9.216,-29.376 q -2.88,-9.216 -4.8,-16.896 l -1.92,-7.488 h -2.304 l -1.92,7.488 q -1.92,7.68 -4.8,16.896 l -9.216,29.376 z"
|
||||
style="font-size:192px;fill:url(#linearGradient6346);fill-opacity:1;stroke:#1b2f0d;stroke-opacity:1"
|
||||
id="path2080" />
|
||||
</g>
|
||||
<g
|
||||
id="g1908"
|
||||
transform="matrix(0.59424771,1.0292672,-1.0292672,0.59424771,1156.6208,812.41899)">
|
||||
<path
|
||||
id="path1869"
|
||||
transform="matrix(0.0674036,0,0,0.0674036,-306.71149,683.99286)"
|
||||
d="m -548.03711,3773.5391 a 344.24474,337.98426 0 0 1 17.03125,0.8359 c -0.31189,-0.024 -0.6226,-0.052 -0.93555,-0.072 -1.76454,-0.116 -3.53934,-0.1977 -5.31054,-0.2929 -1.53249,-0.082 -3.06037,-0.1812 -4.59766,-0.2481 -0.0227,0 -0.0338,-6e-4 -0.0527,0 -2.04041,-0.089 -4.08551,-0.1589 -6.13477,-0.2207 z"
|
||||
style="opacity:1;fill:#c83737;fill-opacity:1;stroke:none;stroke-width:6.79609;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
id="path1871"
|
||||
transform="matrix(0.0674036,0,0,0.0674036,-306.71149,683.99286)"
|
||||
d="m -499.00391,4444.8438 a 344.24474,337.98426 0 0 1 -19.28906,2.2988 c 0.0599,-0.01 0.11976,-0.012 0.17969,-0.018 1.83269,-0.1776 3.66935,-0.3446 5.49414,-0.5449 1.81478,-0.2003 3.61714,-0.4336 5.42383,-0.6543 1.37782,-0.1701 2.7599,-0.3236 4.13281,-0.5039 1.35772,-0.1788 2.7072,-0.3817 4.05859,-0.5781 z"
|
||||
style="opacity:1;fill:#c83737;fill-opacity:1;stroke:none;stroke-width:6.79609;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
style="opacity:1;fill:#c83737;fill-opacity:1;stroke:none;stroke-width:6.79609;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
d="m -548.03711,3773.5391 a 344.24474,337.98426 0 0 1 17.03125,0.8359 c -0.31189,-0.024 -0.6226,-0.052 -0.93555,-0.072 -1.76454,-0.116 -3.53934,-0.1977 -5.31054,-0.2929 -1.53249,-0.082 -3.06037,-0.1812 -4.59766,-0.2481 -0.0227,0 -0.0338,-6e-4 -0.0527,0 -2.04041,-0.089 -4.08551,-0.1589 -6.13477,-0.2207 z"
|
||||
transform="matrix(0.0674036,0,0,0.0674036,-306.71149,683.99286)"
|
||||
id="path1875"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
style="opacity:1;fill:#c83737;fill-opacity:1;stroke:none;stroke-width:6.79609;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
d="m -499.00391,4444.8438 a 344.24474,337.98426 0 0 1 -19.28906,2.2988 c 0.0599,-0.01 0.11976,-0.012 0.17969,-0.018 1.83269,-0.1776 3.66935,-0.3446 5.49414,-0.5449 1.81478,-0.2003 3.61714,-0.4336 5.42383,-0.6543 1.37782,-0.1701 2.7599,-0.3236 4.13281,-0.5039 1.35772,-0.1788 2.7072,-0.3817 4.05859,-0.5781 z"
|
||||
transform="matrix(0.0674036,0,0,0.0674036,-306.71149,683.99286)"
|
||||
id="path1877"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path1881"
|
||||
transform="matrix(0.25475377,0,0,0.25475377,-306.71149,683.99286)"
|
||||
style="opacity:1;fill:#1b2f0d;fill-opacity:1;stroke:none;stroke-width:1.79813;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
d="m -342.56353,1151.6482 c -7.0772,0 -12.7748,5.6975 -12.7748,12.7748 0,7.0772 5.6976,12.7747 12.7748,12.7747 h 13.2842 c 7.0773,0 12.7748,-5.6975 12.7748,-12.7748 0,-7.0772 -5.6975,-12.7747 -12.7748,-12.7747 z m 0,-153.30048 c -7.0772,-2e-5 -12.7748,5.69758 -12.7748,12.77478 0,7.0772 5.6976,12.7748 12.7748,12.7748 h 13.2843 c 7.0772,0 12.7747,-5.6976 12.7747,-12.7748 0,-7.0772 -5.6975,-12.77478 -12.7747,-12.7748 z m 64.35054,10e-5 -8.85836,0.003 c -8.72831,0 -15.75512,5.69718 -15.75512,12.77438 0,7.0772 7.02681,12.775 15.75512,12.775 h 8.85836 14.96602 c 8.72832,0 15.75511,5.6976 15.75511,12.7749 -2e-5,7.0772 -7.02682,12.7744 -15.75511,12.7744 h -78.04123 -7.32203 c -8.72831,0 -15.75512,5.6977 -15.75512,12.7749 0,7.0772 7.02681,12.7749 15.75512,12.7749 h 7.32203 6.89364 c 8.72828,0 15.75511,5.6978 15.75511,12.775 0,7.0772 -7.02683,12.7745 -15.75511,12.7744 h -6.77686 -7.32202 c -8.72831,0 -15.75512,5.6977 -15.75512,12.7749 0,7.0773 7.02681,12.775 15.75512,12.775 h 7.32202 92.99861 c 8.72831,0 15.75511,5.6972 15.75512,12.7744 0,7.0772 -7.02681,12.7749 -15.75512,12.7749 h -8.92193 -10.81898 c -8.7282,0 -15.75511,5.6976 -15.75511,12.7749 0,7.0772 7.02691,12.7744 15.75511,12.7744 h 10.81898 40.33604 68.16829 c 0.62444,0 1.24701,-0.01 1.86862,-0.016 0.1154,0.01 0.23081,0.012 0.34623,0.017 50.302833,0 91.081283,-40.037 91.081262,-89.425 2.1e-5,-49.388 -40.778429,-89.42493 -91.081262,-89.42501 -0.22706,0.007 -0.45409,0.0151 -0.68109,0.0238 -8e-4,0 -0.002,3e-5 -0.003,0 -0.50883,-0.007 -1.0184,-0.0109 -1.52911,-0.0109 h -83.24395 z m 40.75566,89.42508 c 0.003,2.0372 0.0763,4.0737 0.22065,6.106 -0.14437,-2.0323 -0.21796,-4.0688 -0.22065,-6.106 z m 0.8108,11.036 c 0.13325,1.3242 0.29658,2.6454 0.48989,3.9625 -0.19331,-1.3171 -0.35664,-2.6383 -0.48989,-3.9625 z m 1.67741,9.2495 c 0.23768,1.1446 0.49819,2.2844 0.78135,3.419 -0.28316,-1.1346 -0.54367,-2.2744 -0.78135,-3.419 z m 2.61793,8.9153 c 0.31876,1.0001 15.72957,1.9947 16.08393,2.9832 -0.35436,-0.9885 -15.76517,-1.9831 -16.08393,-2.9832 z m 18.64036,8.6485 c 0.36472,0.8342 0.74234,1.6628 1.13275,2.4856 -0.39041,-0.8228 -0.76803,-1.6514 -1.13275,-2.4856 z m 4.50361,8.3054 c 0.36769,0.6478 0.74358,1.2911 1.12757,1.9297 -0.38399,-0.6386 -0.75988,-1.2819 -1.12757,-1.9297 z m -9.82333,7.6368 c 0.37594,0.5279 0.75768,1.0517 1.14515,1.5715 -0.38747,-0.5198 -0.76921,-1.0436 -1.14515,-1.5715 z m 6.0849,7.1339 c 0.34214,0.3892 0.6877,0.7754 1.03662,1.1586 -0.34892,-0.3832 -0.69448,-0.7694 -1.03662,-1.1586 z m 6.69313,6.3723 c 0.32401,0.3008 0.65027,0.5993 0.97875,0.8955 -0.32848,-0.2962 -0.65474,-0.5947 -0.97875,-0.8955 z m 7.34684,5.6859 c 0.28312,0.2137 0.56751,0.4257 0.85317,0.6361 -0.28566,-0.2104 -0.57005,-0.4224 -0.85317,-0.6361 z m 8.00933,4.9801 c 0.19145,0.1163 0.38334,0.2318 0.57567,0.3467 -0.19233,-0.1149 -0.38422,-0.2304 -0.57567,-0.3467 z m 8.25944,4.0261 c 0.16529,0.079 0.33083,0.1576 0.49661,0.2356 -0.16578,-0.078 -0.33132,-0.1566 -0.49661,-0.2356 z m 8.78138,3.2391 c 0.0818,0.03 0.1636,0.059 0.24546,0.088 -0.0819,-0.029 -0.16369,-0.059 -0.24546,-0.088 z m 8.79843,2.2665 c 0.0868,0.022 0.17359,0.043 0.26044,0.065 -0.0868,-0.022 -0.17366,-0.043 -0.26044,-0.065 z m 9.09866,1.4097 0.154,0.023 z" />
|
||||
<path
|
||||
transform="matrix(0.0674036,0,0,0.0674036,-306.71149,683.99286)"
|
||||
id="path1883"
|
||||
d="m -548.98438,3869.0234 c -6.41901,0.032 -12.83422,0.3183 -19.23046,0.8594 -0.4722,-0.014 -0.94238,-0.035 -1.41797,-0.035 h -204.81765 c -26.74885,0 -48.28321,21.5347 -48.28321,48.2832 0,26.7484 21.53436,48.2832 48.28321,48.2832 h 15.24218 -22.51475 33.61133 c 26.74885,0 48.2832,21.5327 48.2832,48.2812 0,26.7489 -21.53435,48.2832 -48.2832,48.2832 h -5.55166 l -0.002,0.012 h -136.92063 c -26.74885,0 -48.2832,21.5348 -48.2832,48.2832 0,26.7485 21.53435,48.2832 48.2832,48.2832 h 147.23808 12.12305 3.3027 c 26.74885,0 48.28321,21.5328 48.28321,48.2813 0,26.7488 -21.53436,48.2832 -48.28321,48.2832 h -15.42575 -8.91601 c -26.74885,0 -48.28321,21.5347 -48.28321,48.2832 0,26.7485 21.53436,48.2812 48.28321,48.2812 h 182.63106 c 0.88706,0 1.76758,-0.027 2.64258,-0.074 5.9887,0.5234 11.99481,0.8238 18.00585,0.9004 133.7876,-3e-4 242.2438,-108.4565 242.24415,-242.2441 -2.9e-4,-133.7876 -108.45651,-242.2439 -242.24415,-242.2442 z m -535.34762,193.9668 c -26.7489,0 -48.2832,21.5348 -48.2832,48.2832 0,26.7485 21.5343,48.2832 48.2832,48.2832 h 45.1797 c 26.7484,0 48.28323,-21.5347 48.28316,-48.2832 7e-5,-26.7484 -21.53476,-48.2832 -48.28316,-48.2832 z"
|
||||
style="opacity:1;fill:url(#linearGradient6350);fill-opacity:1;stroke:none;stroke-width:2.81481;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccssssccsssccsssccssccsssscccccsssscss" />
|
||||
</g>
|
||||
<g
|
||||
aria-label="ESC"
|
||||
transform="matrix(0.26458333,0,0,0.26458333,1519.0252,-612.12873)"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Jellee;-inkscape-font-specification:Jellee;letter-spacing:0px;word-spacing:0px;fill:url(#linearGradient6358);fill-opacity:1;stroke:none"
|
||||
id="flowRoot1713">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
d="m -6335.5449,6272.5557 q -7.872,0 -12.096,-4.224 -4.224,-4.224 -4.224,-12.096 v -112.32 q 0,-7.872 4.224,-12.096 4.224,-4.224 12.096,-4.224 h 70.656 q 6.144,0 10.368,4.416 4.416,4.416 4.416,10.56 0,5.952 -4.416,10.368 -4.224,4.416 -10.368,4.416 h -50.496 v 28.224 h 41.664 q 5.952,0 10.176,4.224 4.224,4.224 4.224,10.176 0,5.952 -4.224,10.368 -4.224,4.224 -10.176,4.224 h -41.664 v 28.224 h 54.336 q 6.144,0 10.368,4.416 4.416,4.224 4.416,10.368 0,6.144 -4.416,10.56 -4.224,4.416 -10.368,4.416 z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:192px;font-family:Jellee;-inkscape-font-specification:Jellee;fill:url(#linearGradient6352);fill-opacity:1"
|
||||
id="path2069" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
d="m -6179.8599,6275.8197 q -15.936,0 -28.8,-4.608 -12.864,-4.608 -21.504,-12.672 -2.304,-2.304 -3.648,-5.76 -1.344,-3.648 -1.344,-7.488 0,-7.296 5.184,-12.288 5.184,-5.184 12.288,-5.184 4.608,0 8.448,2.304 3.84,2.112 6.144,5.76 3.84,5.76 9.984,8.832 6.144,2.88 14.016,2.88 11.52,0 17.28,-4.224 5.76,-4.224 5.76,-11.52 0,-5.568 -3.84,-9.216 -3.84,-3.84 -13.632,-5.952 l -23.616,-4.992 q -20.352,-4.416 -30.336,-14.784 -9.792,-10.56 -9.792,-28.224 0,-12.672 6.72,-22.848 6.912,-10.176 19.968,-15.936 13.056,-5.76 31.104,-5.76 29.376,0 45.696,15.36 4.8,4.608 4.8,12.672 0,6.912 -4.992,11.904 -4.8,4.992 -11.712,4.992 -4.416,0 -8.256,-2.112 -3.648,-2.304 -5.952,-5.76 -5.952,-9.6 -19.776,-9.6 -10.56,0 -15.552,3.84 -4.992,3.84 -4.992,9.408 0,5.76 3.84,9.6 4.032,3.84 14.4,5.952 l 23.424,4.992 q 21.504,4.608 31.296,15.36 9.792,10.752 9.792,27.648 0,13.056 -6.336,23.808 -6.144,10.56 -20.16,17.088 -14.016,6.528 -35.904,6.528 z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:192px;font-family:Jellee;-inkscape-font-specification:Jellee;fill:url(#linearGradient6354);fill-opacity:1"
|
||||
id="path2071" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
d="m -6036.6609,6275.8197 q -34.56,0 -52.8,-19.584 -18.24,-19.776 -18.24,-54.912 0,-22.656 8.64,-39.936 8.832,-17.472 24.768,-27.072 16.128,-9.792 37.632,-9.792 17.664,0 31.104,5.76 13.44,5.568 21.888,15.936 3.456,4.032 3.456,11.328 0,7.296 -5.184,12.48 -4.992,4.992 -12.288,4.992 -4.608,0 -8.832,-2.304 -4.032,-2.304 -6.336,-6.144 -7.68,-13.056 -23.808,-13.056 -14.592,0 -23.424,11.52 -8.832,11.328 -8.832,34.56 0,23.808 9.024,35.52 9.024,11.712 23.232,11.712 16.896,0 24.96,-14.592 2.304,-4.224 6.528,-6.72 4.224,-2.688 9.216,-2.688 7.296,0 12.48,5.376 5.376,5.184 5.376,12.672 0,5.76 -3.456,10.752 -17.664,24.192 -55.104,24.192 z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:192px;font-family:Jellee;-inkscape-font-specification:Jellee;fill:url(#linearGradient6356);fill-opacity:1"
|
||||
id="path2073" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
id="g7164"
|
||||
transform="matrix(0.34566325,-0.59870631,0.59870631,0.34566325,46.553206,-1019.4322)" />
|
||||
<g
|
||||
transform="matrix(1.5594927,2.7011205,-2.7011205,1.5594927,2467.9041,-478.22072)"
|
||||
id="g1335">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path1276"
|
||||
style="opacity:1;fill:#1b2f0d;fill-opacity:1;stroke:none;stroke-width:1.79813;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
d="m -342.56353,1151.6482 c -7.0772,0 -12.7748,5.6975 -12.7748,12.7748 0,7.0772 5.6976,12.7747 12.7748,12.7747 h 13.2842 c 7.0773,0 12.7748,-5.6975 12.7748,-12.7748 0,-7.0772 -5.6975,-12.7747 -12.7748,-12.7747 z m 0,-153.30048 c -7.0772,-2e-5 -12.7748,5.69758 -12.7748,12.77478 0,7.0772 5.6976,12.7748 12.7748,12.7748 h 13.2843 c 7.0772,0 12.7747,-5.6976 12.7747,-12.7748 0,-7.0772 -5.6975,-12.77478 -12.7747,-12.7748 z m 64.35054,10e-5 -8.85836,0.003 c -8.72831,0 -15.75512,5.69718 -15.75512,12.77438 0,7.0772 7.02681,12.775 15.75512,12.775 h 8.85836 14.96602 c 8.72832,0 15.75511,5.6976 15.75511,12.7749 -2e-5,7.0772 -7.02682,12.7744 -15.75511,12.7744 h -78.04123 -7.32203 c -8.72831,0 -15.75512,5.6977 -15.75512,12.7749 0,7.0772 7.02681,12.7749 15.75512,12.7749 h 7.32203 6.89364 c 8.72828,0 15.75511,5.6978 15.75511,12.775 0,7.0772 -7.02683,12.7745 -15.75511,12.7744 h -6.77686 -7.32202 c -8.72831,0 -15.75512,5.6977 -15.75512,12.7749 0,7.0773 7.02681,12.775 15.75512,12.775 h 7.32202 92.99861 c 8.72831,0 15.75511,5.6972 15.75512,12.7744 0,7.0772 -7.02681,12.7749 -15.75512,12.7749 h -8.92193 -10.81898 c -8.7282,0 -15.75511,5.6976 -15.75511,12.7749 0,7.0772 7.02691,12.7744 15.75511,12.7744 h 10.81898 40.33604 68.16829 c 0.62444,0 1.24701,-0.01 1.86862,-0.016 0.1154,0.01 0.23081,0.012 0.34623,0.017 50.302833,0 91.081283,-40.037 91.081262,-89.425 2.1e-5,-49.388 -40.778429,-89.42493 -91.081262,-89.42501 -0.22706,0.007 -0.45409,0.0151 -0.68109,0.0238 -8e-4,0 -0.002,3e-5 -0.003,0 -0.50883,-0.007 -1.0184,-0.0109 -1.52911,-0.0109 h -83.24395 z m 40.75566,89.42508 c 0.003,2.0372 0.0763,4.0737 0.22065,6.106 -0.14437,-2.0323 -0.21796,-4.0688 -0.22065,-6.106 z m 0.8108,11.036 c 0.13325,1.3242 0.29658,2.6454 0.48989,3.9625 -0.19331,-1.3171 -0.35664,-2.6383 -0.48989,-3.9625 z m 1.67741,9.2495 c 0.23768,1.1446 0.49819,2.2844 0.78135,3.419 -0.28316,-1.1346 -0.54367,-2.2744 -0.78135,-3.419 z m 2.61793,8.9153 c 0.31876,1.0001 15.72957,1.9947 16.08393,2.9832 -0.35436,-0.9885 -15.76517,-1.9831 -16.08393,-2.9832 z m 18.64036,8.6485 c 0.36472,0.8342 0.74234,1.6628 1.13275,2.4856 -0.39041,-0.8228 -0.76803,-1.6514 -1.13275,-2.4856 z m 4.50361,8.3054 c 0.36769,0.6478 0.74358,1.2911 1.12757,1.9297 -0.38399,-0.6386 -0.75988,-1.2819 -1.12757,-1.9297 z m -9.82333,7.6368 c 0.37594,0.5279 0.75768,1.0517 1.14515,1.5715 -0.38747,-0.5198 -0.76921,-1.0436 -1.14515,-1.5715 z m 6.0849,7.1339 c 0.34214,0.3892 0.6877,0.7754 1.03662,1.1586 -0.34892,-0.3832 -0.69448,-0.7694 -1.03662,-1.1586 z m 6.69313,6.3723 c 0.32401,0.3008 0.65027,0.5993 0.97875,0.8955 -0.32848,-0.2962 -0.65474,-0.5947 -0.97875,-0.8955 z m 7.34684,5.6859 c 0.28312,0.2137 0.56751,0.4257 0.85317,0.6361 -0.28566,-0.2104 -0.57005,-0.4224 -0.85317,-0.6361 z m 8.00933,4.9801 c 0.19145,0.1163 0.38334,0.2318 0.57567,0.3467 -0.19233,-0.1149 -0.38422,-0.2304 -0.57567,-0.3467 z m 8.25944,4.0261 c 0.16529,0.079 0.33083,0.1576 0.49661,0.2356 -0.16578,-0.078 -0.33132,-0.1566 -0.49661,-0.2356 z m 8.78138,3.2391 c 0.0818,0.03 0.1636,0.059 0.24546,0.088 -0.0819,-0.029 -0.16369,-0.059 -0.24546,-0.088 z m 8.79843,2.2665 c 0.0868,0.022 0.17359,0.043 0.26044,0.065 -0.0868,-0.022 -0.17366,-0.043 -0.26044,-0.065 z m 9.09866,1.4097 0.154,0.023 z"
|
||||
transform="matrix(0.25475377,0,0,0.25475377,-306.71149,683.99286)" />
|
||||
<path
|
||||
id="path1278"
|
||||
d="m -548.98438,3869.0234 c -6.41901,0.032 -12.83422,0.3183 -19.23046,0.8594 -0.4722,-0.014 -0.94238,-0.035 -1.41797,-0.035 h -204.81765 c -26.74885,0 -48.28321,21.5347 -48.28321,48.2832 0,26.7484 21.53436,48.2832 48.28321,48.2832 h 15.24218 -22.51475 33.61133 c 26.74885,0 48.2832,21.5327 48.2832,48.2812 0,26.7489 -21.53435,48.2832 -48.2832,48.2832 h -5.55166 l -0.002,0.012 h -136.92063 c -26.74885,0 -48.2832,21.5348 -48.2832,48.2832 0,26.7485 21.53435,48.2832 48.2832,48.2832 h 147.23808 12.12305 3.3027 c 26.74885,0 48.28321,21.5328 48.28321,48.2813 0,26.7488 -21.53436,48.2832 -48.28321,48.2832 h -15.42575 -8.91601 c -26.74885,0 -48.28321,21.5347 -48.28321,48.2832 0,26.7485 21.53436,48.2812 48.28321,48.2812 h 182.63106 c 0.88706,0 1.76758,-0.027 2.64258,-0.074 5.9887,0.5234 11.99481,0.8238 18.00585,0.9004 133.7876,-3e-4 242.2438,-108.4565 242.24415,-242.2441 -2.9e-4,-133.7876 -108.45651,-242.2439 -242.24415,-242.2442 z m -535.34762,193.9668 c -26.7489,0 -48.2832,21.5348 -48.2832,48.2832 0,26.7485 21.5343,48.2832 48.2832,48.2832 h 45.1797 c 26.7484,0 48.28323,-21.5347 48.28316,-48.2832 7e-5,-26.7484 -21.53476,-48.2832 -48.28316,-48.2832 z"
|
||||
style="opacity:1;fill:url(#linearGradient1300);fill-opacity:1;stroke:none;stroke-width:2.81481;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccssssccsssccsssccssccsssscccccsssscss"
|
||||
transform="matrix(0.0674036,0,0,0.0674036,-306.71149,683.99286)" />
|
||||
</g>
|
||||
<rect
|
||||
y="-105.54419"
|
||||
x="-838.6853"
|
||||
height="290.39264"
|
||||
width="290.39264"
|
||||
id="rect1346"
|
||||
style="opacity:0.509;fill:#000000;fill-opacity:0;fill-rule:nonzero;stroke:#ff0000;stroke-width:2.34519;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||
<g
|
||||
id="g1376"
|
||||
transform="translate(-334.8262,324.11459)">
|
||||
<g
|
||||
transform="matrix(3.1189853,-4.1386156e-8,4.1386156e-8,3.1189853,429.86477,-3282.1415)"
|
||||
id="g1366">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path1362"
|
||||
transform="matrix(0.25475377,0,0,0.25475377,-306.71149,683.99286)"
|
||||
style="opacity:1;fill:#1b2f0d;fill-opacity:1;stroke:none;stroke-width:1.79813;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
d="m -342.56353,1151.6482 c -7.0772,0 -12.7748,5.6975 -12.7748,12.7748 0,7.0772 5.6976,12.7747 12.7748,12.7747 h 13.2842 c 7.0773,0 12.7748,-5.6975 12.7748,-12.7748 0,-7.0772 -5.6975,-12.7747 -12.7748,-12.7747 z m 0,-153.30048 c -7.0772,-2e-5 -12.7748,5.69758 -12.7748,12.77478 0,7.0772 5.6976,12.7748 12.7748,12.7748 h 13.2843 c 7.0772,0 12.7747,-5.6976 12.7747,-12.7748 0,-7.0772 -5.6975,-12.77478 -12.7747,-12.7748 z m 64.35054,10e-5 -8.85836,0.003 c -8.72831,0 -15.75512,5.69718 -15.75512,12.77438 0,7.0772 7.02681,12.775 15.75512,12.775 h 8.85836 14.96602 c 8.72832,0 15.75511,5.6976 15.75511,12.7749 -2e-5,7.0772 -7.02682,12.7744 -15.75511,12.7744 h -78.04123 -7.32203 c -8.72831,0 -15.75512,5.6977 -15.75512,12.7749 0,7.0772 7.02681,12.7749 15.75512,12.7749 h 7.32203 6.89364 c 8.72828,0 15.75511,5.6978 15.75511,12.775 0,7.0772 -7.02683,12.7745 -15.75511,12.7744 h -6.77686 -7.32202 c -8.72831,0 -15.75512,5.6977 -15.75512,12.7749 0,7.0773 7.02681,12.775 15.75512,12.775 h 7.32202 92.99861 c 8.72831,0 15.75511,5.6972 15.75512,12.7744 0,7.0772 -7.02681,12.7749 -15.75512,12.7749 h -8.92193 -10.81898 c -8.7282,0 -15.75511,5.6976 -15.75511,12.7749 0,7.0772 7.02691,12.7744 15.75511,12.7744 h 10.81898 40.33604 68.16829 c 0.62444,0 1.24701,-0.01 1.86862,-0.016 0.1154,0.01 0.23081,0.012 0.34623,0.017 50.302833,0 91.081283,-40.037 91.081262,-89.425 2.1e-5,-49.388 -40.778429,-89.42493 -91.081262,-89.42501 -0.22706,0.007 -0.45409,0.0151 -0.68109,0.0238 -8e-4,0 -0.002,3e-5 -0.003,0 -0.50883,-0.007 -1.0184,-0.0109 -1.52911,-0.0109 h -83.24395 z m 40.75566,89.42508 c 0.003,2.0372 0.0763,4.0737 0.22065,6.106 -0.14437,-2.0323 -0.21796,-4.0688 -0.22065,-6.106 z m 0.8108,11.036 c 0.13325,1.3242 0.29658,2.6454 0.48989,3.9625 -0.19331,-1.3171 -0.35664,-2.6383 -0.48989,-3.9625 z m 1.67741,9.2495 c 0.23768,1.1446 0.49819,2.2844 0.78135,3.419 -0.28316,-1.1346 -0.54367,-2.2744 -0.78135,-3.419 z m 2.61793,8.9153 c 0.31876,1.0001 15.72957,1.9947 16.08393,2.9832 -0.35436,-0.9885 -15.76517,-1.9831 -16.08393,-2.9832 z m 18.64036,8.6485 c 0.36472,0.8342 0.74234,1.6628 1.13275,2.4856 -0.39041,-0.8228 -0.76803,-1.6514 -1.13275,-2.4856 z m 4.50361,8.3054 c 0.36769,0.6478 0.74358,1.2911 1.12757,1.9297 -0.38399,-0.6386 -0.75988,-1.2819 -1.12757,-1.9297 z m -9.82333,7.6368 c 0.37594,0.5279 0.75768,1.0517 1.14515,1.5715 -0.38747,-0.5198 -0.76921,-1.0436 -1.14515,-1.5715 z m 6.0849,7.1339 c 0.34214,0.3892 0.6877,0.7754 1.03662,1.1586 -0.34892,-0.3832 -0.69448,-0.7694 -1.03662,-1.1586 z m 6.69313,6.3723 c 0.32401,0.3008 0.65027,0.5993 0.97875,0.8955 -0.32848,-0.2962 -0.65474,-0.5947 -0.97875,-0.8955 z m 7.34684,5.6859 c 0.28312,0.2137 0.56751,0.4257 0.85317,0.6361 -0.28566,-0.2104 -0.57005,-0.4224 -0.85317,-0.6361 z m 8.00933,4.9801 c 0.19145,0.1163 0.38334,0.2318 0.57567,0.3467 -0.19233,-0.1149 -0.38422,-0.2304 -0.57567,-0.3467 z m 8.25944,4.0261 c 0.16529,0.079 0.33083,0.1576 0.49661,0.2356 -0.16578,-0.078 -0.33132,-0.1566 -0.49661,-0.2356 z m 8.78138,3.2391 c 0.0818,0.03 0.1636,0.059 0.24546,0.088 -0.0819,-0.029 -0.16369,-0.059 -0.24546,-0.088 z m 8.79843,2.2665 c 0.0868,0.022 0.17359,0.043 0.26044,0.065 -0.0868,-0.022 -0.17366,-0.043 -0.26044,-0.065 z m 9.09866,1.4097 0.154,0.023 z" />
|
||||
<path
|
||||
id="path1364"
|
||||
d="m -548.98438,3869.0234 c -6.41901,0.032 -12.83422,0.3183 -19.23046,0.8594 -0.4722,-0.014 -0.94238,-0.035 -1.41797,-0.035 h -204.81765 c -26.74885,0 -48.28321,21.5347 -48.28321,48.2832 0,26.7484 21.53436,48.2832 48.28321,48.2832 h 15.24218 -22.51475 33.61133 c 26.74885,0 48.2832,21.5327 48.2832,48.2812 0,26.7489 -21.53435,48.2832 -48.2832,48.2832 h -5.55166 l -0.002,0.012 h -136.92063 c -26.74885,0 -48.2832,21.5348 -48.2832,48.2832 0,26.7485 21.53435,48.2832 48.2832,48.2832 h 147.23808 12.12305 3.3027 c 26.74885,0 48.28321,21.5328 48.28321,48.2813 0,26.7488 -21.53436,48.2832 -48.28321,48.2832 h -15.42575 -8.91601 c -26.74885,0 -48.28321,21.5347 -48.28321,48.2832 0,26.7485 21.53436,48.2812 48.28321,48.2812 h 182.63106 c 0.88706,0 1.76758,-0.027 2.64258,-0.074 5.9887,0.5234 11.99481,0.8238 18.00585,0.9004 133.7876,-3e-4 242.2438,-108.4565 242.24415,-242.2441 -2.9e-4,-133.7876 -108.45651,-242.2439 -242.24415,-242.2442 z m -535.34762,193.9668 c -26.7489,0 -48.2832,21.5348 -48.2832,48.2832 0,26.7485 21.5343,48.2832 48.2832,48.2832 h 45.1797 c 26.7484,0 48.28323,-21.5347 48.28316,-48.2832 7e-5,-26.7484 -21.53476,-48.2832 -48.28316,-48.2832 z"
|
||||
style="opacity:1;fill:url(#linearGradient1370);fill-opacity:1;stroke:none;stroke-width:2.81481;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccssssccsssccsssccssccsssscccccsssscss"
|
||||
transform="matrix(0.0674036,0,0,0.0674036,-306.71149,683.99286)" />
|
||||
</g>
|
||||
<rect
|
||||
y="-429.65878"
|
||||
x="-838.6853"
|
||||
height="290.39264"
|
||||
width="290.39264"
|
||||
id="rect1368"
|
||||
style="opacity:0.509;fill:#000000;fill-opacity:0;fill-rule:nonzero;stroke:#ff0000;stroke-width:2.34519;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||
</g>
|
||||
<g
|
||||
id="g1376-3"
|
||||
transform="translate(-330.14387,684.56317)">
|
||||
<g
|
||||
transform="matrix(3.1189853,-4.1386156e-8,4.1386156e-8,3.1189853,429.86477,-3282.1415)"
|
||||
id="g1366-7">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path1362-5"
|
||||
style="opacity:1;fill:#1b2f0d;fill-opacity:1;stroke:none;stroke-width:1.79813;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
d="m -324.23855,1151.6482 c -7.0772,0 -12.7748,5.6975 -12.7748,12.7748 0,7.0772 5.6976,12.7747 12.7748,12.7747 h 13.2842 c 7.0773,0 12.7748,-5.6975 12.7748,-12.7748 0,-7.0772 -5.6975,-12.7747 -12.7748,-12.7747 z m -18.32498,-153.30048 c -7.0772,-2e-5 -12.7748,5.69758 -12.7748,12.77478 0,7.0772 5.6976,12.7748 12.7748,12.7748 h 13.2843 c 7.0772,0 12.7747,-5.6976 12.7747,-12.7748 0,-7.0772 -5.6975,-12.77478 -12.7747,-12.7748 z m 64.35054,10e-5 -8.85836,0.003 c -8.72831,0 -15.75512,5.69718 -15.75512,12.77438 0,7.0772 7.02681,12.775 15.75512,12.775 h 11.67507 c 8.72832,0 15.75511,5.6976 15.75511,12.7749 -2e-5,7.0772 -7.02682,12.7744 -15.75511,12.7744 h -39.12391 -7.32203 c -8.72831,0 -15.75512,5.6977 -15.75512,12.7749 0,7.0772 7.02681,12.7749 15.75512,12.7749 h 7.32203 6.89364 c 8.72828,0 15.75511,5.6978 15.75511,12.775 0,7.0772 -7.02683,12.7744 -15.75511,12.7744 h -2.64639 c -8.72831,0 -15.75512,5.6977 -15.75512,12.7749 0,7.0773 7.02681,12.775 15.75512,12.775 h 28.0398 34.06033 c 8.72831,0 15.75511,5.6972 15.75512,12.7744 0,7.0772 -7.02681,12.7749 -15.75512,12.7749 h -8.92193 -10.81898 c -8.7282,0 -15.75511,5.6976 -15.75511,12.7749 0,7.0772 7.02691,12.7744 15.75511,12.7744 h 10.81898 40.33604 68.16829 c 0.62444,0 1.24701,-0.01 1.86862,-0.016 0.1154,0.01 0.23081,0.012 0.34623,0.017 50.302833,0 91.081283,-40.037 91.081262,-89.425 2.1e-5,-49.388 -40.778429,-89.42493 -91.081262,-89.42501 -0.22706,0.007 -0.45409,0.0151 -0.68109,0.0238 -8e-4,0 -0.002,3e-5 -0.003,0 -0.50883,-0.007 -1.0184,-0.0109 -1.52911,-0.0109 h -83.24395 z m 64.50216,127.27438 c 0.36472,0.8342 0.74234,1.6628 1.13275,2.4856 -0.39041,-0.8228 -0.76803,-1.6514 -1.13275,-2.4856 z m 4.50361,8.3054 c 0.36769,0.6478 0.74358,1.2911 1.12757,1.9297 -0.38399,-0.6386 -0.75988,-1.2819 -1.12757,-1.9297 z m -9.82333,7.6368 c 0.37594,0.5279 0.75768,1.0517 1.14515,1.5715 -0.38747,-0.5198 -0.76921,-1.0436 -1.14515,-1.5715 z m 6.0849,7.1339 c 0.34214,0.3892 0.6877,0.7754 1.03662,1.1586 -0.34892,-0.3832 -0.69448,-0.7694 -1.03662,-1.1586 z m 6.69313,6.3723 c 0.32401,0.3008 0.65027,0.5993 0.97875,0.8955 -0.32848,-0.2962 -0.65474,-0.5947 -0.97875,-0.8955 z m 7.34684,5.6859 c 0.28312,0.2137 0.56751,0.4257 0.85317,0.6361 -0.28566,-0.2104 -0.57005,-0.4224 -0.85317,-0.6361 z m 8.00933,4.9801 c 0.19145,0.1163 0.38334,0.2318 0.57567,0.3467 -0.19233,-0.1149 -0.38422,-0.2304 -0.57567,-0.3467 z m 8.25944,4.0261 c 0.16529,0.079 0.33083,0.1576 0.49661,0.2356 -0.16578,-0.078 -0.33132,-0.1566 -0.49661,-0.2356 z m 8.78138,3.2391 c 0.0818,0.03 0.1636,0.059 0.24546,0.088 -0.0819,-0.029 -0.16369,-0.059 -0.24546,-0.088 z m 8.79843,2.2665 c 0.0868,0.022 0.17359,0.043 0.26044,0.065 -0.0868,-0.022 -0.17366,-0.043 -0.26044,-0.065 z m 9.09866,1.4097 0.154,0.023 z"
|
||||
sodipodi:nodetypes="ssssssssssssssccsccsscssscssccsscssscsssccsccscscsccccccccccccccccccccccccccccccccccc"
|
||||
transform="matrix(0.25475377,0,0,0.25475377,-306.71149,683.99286)" />
|
||||
<path
|
||||
id="path1364-4"
|
||||
d="m -548.98438,3869.0234 c -6.41901,0.032 -12.83422,0.3183 -19.23046,0.8594 -0.4722,-0.014 -0.94238,-0.035 -1.41797,-0.035 h -300.17467 c -26.74885,0 -48.28321,21.5347 -48.28321,48.2832 0,26.7484 21.53436,48.2832 48.28321,48.2832 h 110.5992 -117.87177 128.96835 c 26.74885,0 48.2832,21.5327 48.2832,48.2812 0,26.7489 -21.53435,48.2832 -48.2832,48.2832 h -5.55166 l -0.002,0.012 h -57.97188 c -26.74885,0 -48.2832,21.5348 -48.2832,48.2832 0,26.7485 21.53435,48.2832 48.2832,48.2832 h 68.28933 12.12305 3.3027 c 26.74885,0 48.28321,21.5328 48.28321,48.2813 0,26.7488 -21.53436,48.2832 -48.28321,48.2832 h -15.42575 -8.91601 c -26.74885,0 -48.28321,21.5347 -48.28321,48.2832 0,26.7485 21.53436,48.2812 48.28321,48.2812 h 182.63106 c 0.88706,0 1.76758,-0.027 2.64258,-0.074 5.9887,0.5234 11.99481,0.8238 18.00585,0.9004 133.7876,-3e-4 242.2438,-108.4565 242.24415,-242.2441 -2.9e-4,-133.7876 -108.45651,-242.2439 -242.24415,-242.2442 z m -461.21452,193.9668 c -26.7489,0 -48.2832,21.5348 -48.2832,48.2832 0,26.7485 21.5343,48.2832 48.2832,48.2832 h 45.17973 c 26.7484,0 48.28323,-21.5347 48.28316,-48.2832 7e-5,-26.7484 -21.53476,-48.2832 -48.28316,-48.2832 z"
|
||||
style="opacity:1;fill:url(#linearGradient283);fill-opacity:1;stroke:none;stroke-width:2.81481;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccssssccsssccsssccssccsssscccccsssscss"
|
||||
transform="matrix(0.0674036,0,0,0.0674036,-306.71149,683.99286)" />
|
||||
</g>
|
||||
<rect
|
||||
y="-429.65878"
|
||||
x="-838.6853"
|
||||
height="290.39264"
|
||||
width="290.39264"
|
||||
id="rect1368-8"
|
||||
style="opacity:0.509;fill:#000000;fill-opacity:0;fill-rule:nonzero;stroke:#ff0000;stroke-width:2.34519;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||
</g>
|
||||
<g
|
||||
id="g1376-3-3"
|
||||
transform="translate(-0.7510756,683.02321)"
|
||||
inkscape:export-filename="/home/julianmurgia/Programming/godot/escoria-reloaded/icon.png"
|
||||
inkscape:export-xdpi="5.5979385"
|
||||
inkscape:export-ydpi="5.5979385">
|
||||
<g
|
||||
transform="matrix(1.5729749,2.6932915,-2.6932915,1.5729749,2467.4248,-814.62747)"
|
||||
id="g1366-7-8">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path1362-5-8"
|
||||
style="opacity:1;fill:#1b2f0d;fill-opacity:1;stroke:none;stroke-width:1.79813;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
d="m -324.23855,1151.6482 c -7.0772,0 -12.7748,5.6975 -12.7748,12.7748 0,7.0772 5.6976,12.7747 12.7748,12.7747 h 13.2842 c 7.0773,0 12.7748,-5.6975 12.7748,-12.7748 0,-7.0772 -5.6975,-12.7747 -12.7748,-12.7747 z m -18.32498,-153.30048 c -7.0772,-2e-5 -12.7748,5.69758 -12.7748,12.77478 0,7.0772 5.6976,12.7748 12.7748,12.7748 h 13.2843 c 7.0772,0 12.7747,-5.6976 12.7747,-12.7748 0,-7.0772 -5.6975,-12.77478 -12.7747,-12.7748 z m 64.35054,10e-5 -8.85836,0.003 c -8.72831,0 -15.75512,5.69718 -15.75512,12.77438 0,7.0772 7.02681,12.775 15.75512,12.775 h 11.67507 c 8.72832,0 15.75511,5.6976 15.75511,12.7749 -2e-5,7.0772 -7.02682,12.7744 -15.75511,12.7744 h -39.12391 -7.32203 c -8.72831,0 -15.75512,5.6977 -15.75512,12.7749 0,7.0772 7.02681,12.7749 15.75512,12.7749 h 7.32203 6.89364 c 8.72828,0 15.75511,5.6978 15.75511,12.775 0,7.0772 -7.02683,12.7744 -15.75511,12.7744 h -2.64639 c -8.72831,0 -15.75512,5.6977 -15.75512,12.7749 0,7.0773 7.02681,12.775 15.75512,12.775 h 28.0398 34.06033 c 8.72831,0 15.75511,5.6972 15.75512,12.7744 0,7.0772 -7.02681,12.7749 -15.75512,12.7749 h -8.92193 -10.81898 c -8.7282,0 -15.75511,5.6976 -15.75511,12.7749 0,7.0772 7.02691,12.7744 15.75511,12.7744 h 10.81898 40.33604 68.16829 c 0.62444,0 1.24701,-0.01 1.86862,-0.016 0.1154,0.01 0.23081,0.012 0.34623,0.017 50.302833,0 91.081283,-40.037 91.081262,-89.425 2.1e-5,-49.388 -40.778429,-89.42493 -91.081262,-89.42501 -0.22706,0.007 -0.45409,0.0151 -0.68109,0.0238 -8e-4,0 -0.002,3e-5 -0.003,0 -0.50883,-0.007 -1.0184,-0.0109 -1.52911,-0.0109 h -83.24395 z m 64.50216,127.27438 c 0.36472,0.8342 0.74234,1.6628 1.13275,2.4856 -0.39041,-0.8228 -0.76803,-1.6514 -1.13275,-2.4856 z m 4.50361,8.3054 c 0.36769,0.6478 0.74358,1.2911 1.12757,1.9297 -0.38399,-0.6386 -0.75988,-1.2819 -1.12757,-1.9297 z m -9.82333,7.6368 c 0.37594,0.5279 0.75768,1.0517 1.14515,1.5715 -0.38747,-0.5198 -0.76921,-1.0436 -1.14515,-1.5715 z m 6.0849,7.1339 c 0.34214,0.3892 0.6877,0.7754 1.03662,1.1586 -0.34892,-0.3832 -0.69448,-0.7694 -1.03662,-1.1586 z m 6.69313,6.3723 c 0.32401,0.3008 0.65027,0.5993 0.97875,0.8955 -0.32848,-0.2962 -0.65474,-0.5947 -0.97875,-0.8955 z m 7.34684,5.6859 c 0.28312,0.2137 0.56751,0.4257 0.85317,0.6361 -0.28566,-0.2104 -0.57005,-0.4224 -0.85317,-0.6361 z m 8.00933,4.9801 c 0.19145,0.1163 0.38334,0.2318 0.57567,0.3467 -0.19233,-0.1149 -0.38422,-0.2304 -0.57567,-0.3467 z m 8.25944,4.0261 c 0.16529,0.079 0.33083,0.1576 0.49661,0.2356 -0.16578,-0.078 -0.33132,-0.1566 -0.49661,-0.2356 z m 8.78138,3.2391 c 0.0818,0.03 0.1636,0.059 0.24546,0.088 -0.0819,-0.029 -0.16369,-0.059 -0.24546,-0.088 z m 8.79843,2.2665 c 0.0868,0.022 0.17359,0.043 0.26044,0.065 -0.0868,-0.022 -0.17366,-0.043 -0.26044,-0.065 z m 9.09866,1.4097 0.154,0.023 z"
|
||||
sodipodi:nodetypes="ssssssssssssssccsccsscssscssccsscssscsssccsccscscsccccccccccccccccccccccccccccccccccc"
|
||||
transform="matrix(0.25475377,0,0,0.25475377,-306.71149,683.99286)" />
|
||||
<path
|
||||
id="path1364-4-0"
|
||||
d="m -548.98438,3869.0234 c -6.41901,0.032 -12.83422,0.3183 -19.23046,0.8594 -0.4722,-0.014 -0.94238,-0.035 -1.41797,-0.035 h -300.17467 c -26.74885,0 -48.28321,21.5347 -48.28321,48.2832 0,26.7484 21.53436,48.2832 48.28321,48.2832 h 110.5992 -117.87177 128.96835 c 26.74885,0 48.2832,21.5327 48.2832,48.2812 0,26.7489 -21.53435,48.2832 -48.2832,48.2832 h -5.55166 l -0.002,0.012 h -57.97188 c -26.74885,0 -48.2832,21.5348 -48.2832,48.2832 0,26.7485 21.53435,48.2832 48.2832,48.2832 h 68.28933 12.12305 3.3027 c 26.74885,0 48.28321,21.5328 48.28321,48.2813 0,26.7488 -21.53436,48.2832 -48.28321,48.2832 h -15.42575 -8.91601 c -26.74885,0 -48.28321,21.5347 -48.28321,48.2832 0,26.7485 21.53436,48.2812 48.28321,48.2812 h 182.63106 c 0.88706,0 1.76758,-0.027 2.64258,-0.074 5.9887,0.5234 11.99481,0.8238 18.00585,0.9004 133.7876,-3e-4 242.2438,-108.4565 242.24415,-242.2441 -2.9e-4,-133.7876 -108.45651,-242.2439 -242.24415,-242.2442 z m -461.21452,193.9668 c -26.7489,0 -48.2832,21.5348 -48.2832,48.2832 0,26.7485 21.5343,48.2832 48.2832,48.2832 h 45.17973 c 26.7484,0 48.28323,-21.5347 48.28316,-48.2832 7e-5,-26.7484 -21.53476,-48.2832 -48.28316,-48.2832 z"
|
||||
style="opacity:1;fill:url(#linearGradient7072);fill-opacity:1;stroke:none;stroke-width:2.81481;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccssssccsssccsssccssccsssscccccsssscss"
|
||||
transform="matrix(0.0674036,0,0,0.0674036,-306.71149,683.99286)" />
|
||||
</g>
|
||||
<rect
|
||||
y="-429.65878"
|
||||
x="-838.6853"
|
||||
height="290.39264"
|
||||
width="290.39264"
|
||||
id="rect1368-8-9"
|
||||
style="opacity:0.509;fill:#000000;fill-opacity:0;fill-rule:nonzero;stroke:none;stroke-width:2.34519;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||
</g>
|
||||
<rect
|
||||
style="opacity:0.509;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#ff0000;stroke-width:3.05878;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="rect4471-0"
|
||||
width="690.93744"
|
||||
height="290.39264"
|
||||
x="-486.20316"
|
||||
y="244.59445" />
|
||||
<g
|
||||
transform="matrix(1.9244583,0,0,1.9244583,-29.774328,-1551.8082)"
|
||||
id="g2198-8-6-5"
|
||||
inkscape:export-filename="/home/julianmurgia/Programming/godot/escoria-reloaded/addons/escoria-core/design/escoria-logo-small.png"
|
||||
inkscape:export-xdpi="32.48"
|
||||
inkscape:export-ydpi="32.48">
|
||||
<g
|
||||
id="g12164">
|
||||
<g
|
||||
id="g12315">
|
||||
<g
|
||||
id="g9982-9-9"
|
||||
transform="translate(4.6744763)">
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Jellee;-inkscape-font-specification:Jellee;letter-spacing:0px;word-spacing:0px;fill:#1b2f0d;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-linejoin:round;stroke-opacity:1;-inkscape-stroke:none"
|
||||
d="m -9.7799111,1001.8305 c -2.6897089,0 -6.0013589,0.9056 -8.3441939,3.2484 -2.342835,2.3428 -3.248379,5.655 -3.248379,8.3447 v 29.5657 c 0,3.0521 1.379717,6.4254 3.552753,8.5984 2.173036,2.173 5.546331,3.5533 8.5984427,3.5533 3.0521115,0 6.4254035,-1.3803 8.5984396,-3.5533 0.50127958,-0.5013 0.94889636,-1.0795 1.35857455,-1.6898 0.92771915,1.3773 2.15923805,2.5851 3.51089645,3.4452 a 7.2755018,7.2755018 0 0 0 0.3260778,0.1954 c 1.801188,1.0181 3.9758884,1.6025 6.0688799,1.6025 2.999592,0 6.344378,-1.3499 8.497157,-3.5026 2.121025,-2.1211 3.502113,-5.4361 3.502113,-8.446 0,-1.9243 -0.499896,-4.0362 -1.537891,-5.8291 l 0.160195,0.2919 -2.025716,-3.901 c 0.717642,-0.7836 1.389618,-1.6078 1.96112,-2.5058 1.967995,-3.0926 2.915587,-6.7733 2.915587,-10.4082 -3e-6,-5.3629 -2.295306,-10.8949 -6.50503,-14.2844 -4.113141,-3.3681 -9.4233602,-4.7253 -14.9432749,-4.7253 z m 18.9197745,29.7362 -0.083198,0.055 c 0.015055,-0.01 0.026863,-0.023 0.041857,-0.033 0.013441,-0.01 0.027924,-0.013 0.041341,-0.022 z"
|
||||
id="path8479-0-0" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Jellee;-inkscape-font-specification:Jellee;letter-spacing:0px;word-spacing:0px;fill:#1b2f0d;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1;-inkscape-stroke:none"
|
||||
d="m 26.149161,1001.4244 c -3.052112,0 -6.425403,1.3802 -8.598442,3.5532 -2.173036,2.1731 -3.55327,5.5464 -3.55327,8.5985 v 29.4132 c 0,3.0521 1.380234,6.4254 3.55327,8.5984 2.173039,2.173 5.54633,3.5533 8.598442,3.5533 3.052112,0 6.425406,-1.3803 8.598442,-3.5533 2.173036,-2.173 3.553272,-5.5463 3.553272,-8.5984 v -29.4132 c 0,-3.0521 -1.380236,-6.4254 -3.553272,-8.5985 -2.173036,-2.173 -5.54633,-3.5532 -8.598442,-3.5532 z"
|
||||
id="path8375-4-1" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Jellee;-inkscape-font-specification:Jellee;letter-spacing:0px;word-spacing:0px;fill:url(#linearGradient12122);fill-opacity:1;stroke:none;stroke-width:14.5495;stroke-linejoin:round;stroke-opacity:1;-inkscape-stroke:none"
|
||||
d="m -9.2211164,1047.866 q -2.0319996,0 -3.4543996,-1.4224 -1.4224,-1.4224 -1.4224,-3.4544 v -29.5656 q 0,-2.0828 1.1176,-3.2004 1.1176,-1.1176 3.2003996,-1.1176 H 2.6660835 q 6.6039999,0 10.3631995,3.0988 3.81,3.048 3.81,8.636 0,3.7084 -1.778,6.5024 -1.778,2.794 -5.0292,4.3688 v 0.1016 l 4.7752,9.1948 q 0.5588,0.9652 0.5588,2.1844 0,1.9304 -1.3716,3.302 -1.3716,1.3716 -3.3528,1.3716 -1.3207996,0 -2.4891996,-0.6604 -1.1176,-0.7112 -1.6764,-1.8796 L 0.78648351,1034.3532 H -4.3443164 v 8.636 q 0,2.032 -1.4224,3.4544 -1.4224,1.4224 -3.4544,1.4224 z m 9.80439991,-21.2344 q 2.84479999,0 4.52119999,-1.1176 1.7271999,-1.1176 1.7271999,-4.0132 0,-2.9972 -1.6763999,-4.1148 -1.6764,-1.1176 -4.57199999,-1.1176 H -4.3443164 v 10.3632 z"
|
||||
id="path8477-6-3" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Jellee;-inkscape-font-specification:Jellee;letter-spacing:0px;word-spacing:0px;fill:#1b2f0d;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1;-inkscape-stroke:none"
|
||||
d="m 52.483987,1001.4244 c -3.140761,0 -6.405653,1.0376 -8.969994,2.8975 -2.514471,1.7942 -4.536528,4.4809 -5.536097,7.416 -1.72e-4,0 -2.65e-4,0 -5.29e-4,0 l -9.654191,27.9466 -0.01241,0.037 c -0.368707,1.1061 -0.627351,2.3504 -0.627351,3.7233 0,2.9032 1.291733,6.102 3.30109,8.1917 l 0.0987,0.1029 0.102836,0.099 c 2.089732,2.0093 5.288576,3.3011 8.191748,3.3011 2.390122,0 5.021882,-0.8139 7.016626,-2.2883 1.935144,-1.4303 3.53332,-3.6823 4.225581,-6.0187 l -0.02326,0.077 0.09405,-0.3049 h 3.108854 l 0.08268,0.263 0.0072,0.023 c 0.742309,2.3094 2.32537,4.4963 4.237468,5.9304 l 0.07907,0.059 0.08062,0.057 c 1.979488,1.4021 4.558289,2.2024 6.94841,2.2024 2.987972,0 6.327617,-1.3942 8.43928,-3.5569 2.06288,-2.0913 3.458186,-5.3417 3.458186,-8.3411 0,-1.3729 -0.238863,-2.5192 -0.549836,-3.5765 l -0.04754,-0.1628 -9.595281,-27.7642 c -0.999231,-2.9352 -3.0207,-5.6221 -5.535062,-7.4166 -2.541918,-1.8442 -5.78607,-2.8985 -8.920903,-2.8985 z"
|
||||
id="path9877-6-5" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Jellee;-inkscape-font-specification:Jellee;letter-spacing:0px;word-spacing:0px;fill:url(#linearGradient12124);fill-opacity:1;stroke:none;stroke-width:14.5495;stroke-opacity:1;-inkscape-stroke:none"
|
||||
d="m 26.149177,1047.866 q -2.032,0 -3.4544,-1.4224 -1.4224,-1.4224 -1.4224,-3.4544 v -29.4132 q 0,-2.032 1.4224,-3.4544 1.4224,-1.4224 3.4544,-1.4224 2.032,0 3.4544,1.4224 1.4224,1.4224 1.4224,3.4544 v 29.4132 q 0,2.032 -1.4224,3.4544 -1.4224,1.4224 -3.4544,1.4224 z"
|
||||
id="path8373-2-5" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Jellee;-inkscape-font-specification:Jellee;letter-spacing:0px;word-spacing:0px;fill:url(#linearGradient12126);fill-opacity:1;stroke:none;stroke-width:14.5495;stroke-opacity:1;-inkscape-stroke:none"
|
||||
d="m 39.377814,1047.866 q -1.8288,0 -3.1496,-1.27 -1.27,-1.3208 -1.27,-3.1496 0,-0.6604 0.254,-1.4224 l 9.652,-27.94 q 0.8128,-2.3876 2.8956,-3.8608 2.0828,-1.524 4.7244,-1.524 2.5908,0 4.6736,1.524 2.0828,1.4732 2.8956,3.8608 l 9.5504,27.6352 q 0.254,0.8636 0.254,1.524 0,1.8796 -1.3716,3.2512 -1.3208,1.3716 -3.2512,1.3716 -1.524,0 -2.7432,-0.8636 -1.2192,-0.9144 -1.6764,-2.3368 l -1.6764,-5.334 h -13.8176 l -1.6764,5.4356 q -0.4064,1.3716 -1.5748,2.2352 -1.1684,0.8636 -2.6924,0.8636 z m 17.3736,-16.0528 -2.4384,-7.7724 q -0.762,-2.4384 -1.27,-4.4704 l -0.508,-1.9812 h -0.6096 l -0.508,1.9812 q -0.508,2.032 -1.27,4.4704 l -2.4384,7.7724 z"
|
||||
id="path9875-5-2" />
|
||||
</g>
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Jellee;-inkscape-font-specification:Jellee;letter-spacing:0px;word-spacing:0px;fill:#1b2f0d;fill-opacity:1;stroke:none;stroke-width:21.4086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;-inkscape-stroke:none;paint-order:markers stroke fill"
|
||||
d="m -157.25437,1002.4513 c -2.62929,0 -5.83681,0.8811 -8.10545,3.1497 -2.26865,2.2687 -3.14968,5.4762 -3.14968,8.1055 v 29.718 c 0,2.6293 0.88103,5.8368 3.14968,8.1055 2.26864,2.2686 5.47616,3.1491 8.10545,3.1491 h 19.71043 c 2.72209,0 5.78951,-1.2996 7.69977,-3.2638 1.88518,-1.9192 3.14865,-4.9165 3.14865,-7.6352 0,-2.6964 -1.27963,-5.725 -3.21273,-7.6388 -0.6019,-0.6075 -1.32689,-1.1228 -2.10579,-1.5803 1.14652,-1.7736 1.86446,-3.9669 1.86446,-6.0208 0,-2.1835 -0.85053,-4.5456 -2.17506,-6.3841 0.53398,-0.3686 1.03005,-0.7742 1.46246,-1.2186 1.852,-1.8839 3.15071,-4.8477 3.15071,-7.5866 0,-2.7199 -1.26465,-5.7192 -3.15124,-7.6383 -1.91045,-1.9628 -4.97628,-3.2613 -7.6972,-3.2613 z"
|
||||
id="path7896-2-9" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Jellee;-inkscape-font-specification:Jellee;letter-spacing:0px;word-spacing:0px;fill:#1b2f0d;fill-opacity:1;stroke:none;stroke-width:21.4086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;-inkscape-stroke:none;paint-order:markers stroke fill"
|
||||
d="m -78.174458,1001.301 c -4.890981,0 -9.649063,1.1729 -13.716476,3.638 -3.970258,2.3934 -7.176743,5.9353 -9.286236,10.1085 a 7.2755018,7.2755018 0 0 0 -0.0146,0.028 c -2.09274,4.1855 -3.05355,8.8988 -3.05355,13.8198 0,7.4564 2.07999,14.3942 6.753064,19.4609 a 7.2755018,7.2755018 0 0 0 0.02381,0.026 c 4.779089,5.1312 11.823779,7.4982 19.293892,7.4982 8.170889,0 15.895373,-3.1413 20.454567,-9.3854 a 7.2755018,7.2755018 0 0 0 0.105939,-0.1494 c 1.354958,-1.9571 2.208133,-4.5147 2.208133,-6.9856 0,-3.0184 -1.406789,-6.3526 -3.562059,-8.4868 -1.129982,-1.1416 -2.607151,-2.0591 -4.204387,-2.6857 1.3893,-0.5921 2.686155,-1.4092 3.705198,-2.4282 2.121032,-2.1211 3.502634,-5.4366 3.502634,-8.4465 0,-2.4182 -0.643097,-5.3294 -2.6298,-7.6781 -2.262426,-2.7436 -5.231791,-4.8645 -8.52715,-6.2368 -3.420243,-1.4582 -7.162112,-2.0971 -11.053075,-2.0971 z m -11.934666,13.5201 c -0.0061,0.01 -0.01085,0.016 -0.01693,0.024 -0.0061,0.01 -0.01349,0.015 -0.01958,0.023 z m 24.433662,1.0899 c 0.01032,0.016 0.02868,0.031 0.03823,0.047 l 0.03204,0.054 c -0.02064,-0.035 -0.04916,-0.066 -0.07027,-0.1013 z m -12.815755,7.5235 c -0.02408,0.012 -0.01296,0.087 0.316759,0.087 0.06379,0 0.05524,-0.017 0.09975,-0.022 1.039257,1.7076 2.580878,3.1797 4.266406,4.1429 a 7.2755018,7.2755018 0 0 0 0.125572,0.07 c 0.451246,0.2462 0.928634,0.462 1.421103,0.6527 -0.484478,0.2153 -0.946362,0.4654 -1.386469,0.739 -1.741673,1.0559 -3.298296,2.651 -4.291727,4.4596 -0.04175,0.077 -0.02355,0.095 -0.0336,0.1417 -0.05802,-0.018 -0.07636,-0.045 -0.201031,-0.045 -0.507206,0 0.08065,0.3396 -0.384466,-0.2641 -0.13716,-0.178 -0.8754,-1.6775 -0.8754,-4.9578 0,-3.176 0.724323,-4.5747 0.799438,-4.6711 a 7.2755018,7.2755018 0 0 0 0.03617,-0.046 c 0.19042,-0.2483 0.131471,-0.2985 0.1075,-0.2863 z"
|
||||
id="path7920-8-2" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Jellee;-inkscape-font-specification:Jellee;letter-spacing:0px;word-spacing:0px;fill:#1b2f0d;fill-opacity:1;stroke:none;stroke-width:21.4086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;-inkscape-stroke:none;paint-order:markers stroke fill"
|
||||
d="m -115.9613,1001.1992 c -3.95737,0 -7.7302,0.6274 -11.1657,2.143 -3.31666,1.4632 -6.30791,3.7563 -8.36489,6.7846 a 7.2755018,7.2755018 0 0 0 -0.0527,0.079 c -1.95054,2.9536 -2.98225,6.533 -2.98225,10.0541 0,4.2252 1.30162,8.5702 4.07418,11.8618 l 0.0853,-0.084 c -0.0156,0.015 -0.0269,0.036 -0.0424,0.051 -0.0124,0.012 -0.0294,0.022 -0.0418,0.034 0.003,0 0.004,0.01 0.007,0.01 -2.14122,2.1136 -3.52279,5.4268 -3.52279,8.3974 0,1.5261 0.28077,3.076 0.80409,4.4964 a 7.2755018,7.2755018 0 0 0 0.046,0.122 c 0.54811,1.4094 1.40909,2.8389 2.60138,4.0312 a 7.2755018,7.2755018 0 0 0 0.18037,0.1742 c 2.33526,2.1796 5.1494,3.7901 8.20002,4.8829 3.16687,1.1344 6.56116,1.6454 10.07327,1.6454 4.58401,0 8.78472,-0.6437 12.5708,-2.4071 3.45744,-1.6103 6.571508,-4.0704 8.537468,-7.4378 1.765935,-3.0029 2.67634,-6.503 2.67634,-9.9772 0,-4.3856 -1.482566,-8.9146 -4.487069,-12.2137 -0.309007,-0.3393 -0.636958,-0.6494 -0.966364,-0.9576 1.458568,-2.0019 2.405539,-4.5763 2.405539,-6.9964 0,-2.8658 -1.130724,-6.3201 -3.506761,-8.601 a 7.2755018,7.2755018 0 0 0 -0.05218,-0.049 c -4.465003,-4.2023 -10.626963,-6.0414 -17.076493,-6.0414 z m 11.16005,12.9692 c 0.0236,0.031 0.0544,0.044 0.0749,0.074 l 0.12972,0.202 c -0.0605,-0.098 -0.14089,-0.181 -0.20465,-0.2765 z m 6.123674,9.9142 -0.09975,0.1018 c 0.01693,-0.017 0.02918,-0.04 0.04598,-0.057 0.01588,-0.016 0.03802,-0.028 0.05376,-0.044 z m -7.091574,5.1774 0.13385,0.1303 c -0.0274,-0.027 -0.0548,-0.041 -0.0822,-0.068 -0.0191,-0.018 -0.0326,-0.044 -0.0517,-0.062 z m -14.56034,0.8811 0.2372,0.1364 c -0.0358,-0.021 -0.0766,-0.036 -0.11266,-0.057 -0.0425,-0.024 -0.0819,-0.056 -0.12454,-0.08 z"
|
||||
id="path7540-7-5" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Jellee;-inkscape-font-specification:Jellee;letter-spacing:0px;word-spacing:0px;fill:url(#linearGradient12130);fill-opacity:1;stroke:none;stroke-width:13.874;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;-inkscape-stroke:none;paint-order:markers stroke fill"
|
||||
d="m -157.25437,1047.7424 q -2.0828,0 -3.2004,-1.1176 -1.1176,-1.1176 -1.1176,-3.2004 v -29.718 q 0,-2.0828 1.1176,-3.2004 1.1176,-1.1176 3.2004,-1.1176 h 18.6944 q 1.6256,0 2.7432,1.1684 1.1684,1.1684 1.1684,2.794 0,1.5748 -1.1684,2.7432 -1.1176,1.1684 -2.7432,1.1684 h -13.3604 v 7.4676 h 11.0236 q 1.5748,0 2.6924,1.1176 1.1176,1.1176 1.1176,2.6924 0,1.5748 -1.1176,2.7432 -1.1176,1.1176 -2.6924,1.1176 h -11.0236 v 7.4676 h 14.3764 q 1.6256,0 2.7432,1.1684 1.1684,1.1176 1.1684,2.7432 0,1.6256 -1.1684,2.794 -1.1176,1.1684 -2.7432,1.1684 z"
|
||||
id="path7898-0-1" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Jellee;-inkscape-font-specification:Jellee;letter-spacing:0px;word-spacing:0px;fill:url(#linearGradient12132);fill-opacity:1;stroke:none;stroke-width:14.5495;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;-inkscape-stroke:none;paint-order:markers stroke fill"
|
||||
d="m -116.06271,1048.606 q -4.2164,0 -7.62,-1.2192 -3.4036,-1.2192 -5.6896,-3.3528 -0.6096,-0.6096 -0.9652,-1.524 -0.3556,-0.9652 -0.3556,-1.9812 0,-1.9304 1.3716,-3.2512 1.3716,-1.3716 3.2512,-1.3716 1.2192,0 2.2352,0.6096 1.016,0.5588 1.6256,1.524 1.016,1.524 2.6416,2.3368 1.6256,0.762 3.7084,0.762 3.048,0 4.572,-1.1176 1.524,-1.1176 1.524,-3.048 0,-1.4732 -1.016,-2.4384 -1.016,-1.016 -3.6068,-1.5748 l -6.2484,-1.3208 q -5.3848,-1.1684 -8.0264,-3.9116 -2.5908,-2.794 -2.5908,-7.4676 0,-3.3528 1.778,-6.0452 1.8288,-2.6924 5.2832,-4.2164 3.4544,-1.524 8.2296,-1.524 7.7724,0 12.0904,4.064 1.27,1.2192 1.27,3.3528 0,1.8288 -1.3208,3.1496 -1.27,1.3208 -3.0988,1.3208 -1.1684,0 -2.1844,-0.5588 -0.9652,-0.6096 -1.5748,-1.524 -1.5748,-2.54 -5.2324,-2.54 -2.794,0 -4.1148,1.016 -1.3208,1.016 -1.3208,2.4892 0,1.524 1.016,2.54 1.0668,1.016 3.81,1.5748 l 6.1976,1.3208 q 5.6896,1.2192 8.2804,4.064 2.590799,2.8448 2.590799,7.3152 0,3.4544 -1.676399,6.2992 -1.6256,2.794 -5.334,4.5212 -3.7084,1.7272 -9.4996,1.7272 z"
|
||||
id="path7542-2-7" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path1362-5-8-1-3-3"
|
||||
style="fill:#1b2f0d;fill-opacity:1;stroke:none;stroke-width:0.528336;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
d="m -77.773509,994.12445 c -0.991513,-1.82785 -3.261269,-2.50118 -5.089148,-1.50965 -1.827858,0.99151 -2.501148,3.26127 -1.509635,5.08913 l 1.861116,3.43097 c 0.991531,1.8279 3.261269,2.5012 5.089159,1.5097 1.827847,-0.9915 2.501155,-3.26128 1.509625,-5.08917 z m 37.02627,-26.21023 c -0.991513,-1.82786 -3.261279,-2.50118 -5.089148,-1.50966 -1.827858,0.99151 -2.501159,3.26128 -1.509646,5.08914 l 1.861128,3.431 c 0.991513,1.82786 3.261268,2.50115 5.089126,1.50964 1.827868,-0.99152 2.501181,-3.26127 1.509668,-5.08913 z m 9.015465,16.62012 -1.241825,-2.28748 c -1.222835,-2.2543 -3.678724,-3.27097 -5.506582,-2.27945 -1.827858,0.99151 -2.315005,3.60461 -1.092169,5.85891 l 1.635675,3.01537 c 1.222835,2.25431 0.735742,4.86738 -1.092148,5.85891 -1.827858,0.99151 -4.283747,-0.0252 -5.506582,-2.27945 l -5.481248,-10.1047 -1.025815,-1.8911 c -1.222835,-2.2543 -3.678852,-3.27089 -5.50672,-2.27938 -1.827858,0.99152 -2.314973,3.6046 -1.092138,5.8589 l 1.025816,1.8911 0.965795,1.78044 c 1.222829,2.25429 0.735688,4.8674 -1.09217,5.85892 -1.827857,0.99151 -4.283763,-0.0252 -5.506592,-2.27945 l -0.370759,-0.6835 c -1.222835,-2.2543 -3.678858,-3.2709 -5.506715,-2.27939 -1.82789,0.99153 -2.314999,3.60463 -1.092164,5.85893 l 3.92837,7.24198 4.771844,8.7969 c 1.222835,2.2543 0.735854,4.8673 -1.092014,5.8588 -1.827858,0.9915 -4.283881,-0.025 -5.506716,-2.2794 l -1.249959,-2.3043 -1.515734,-2.7942 c -1.222818,-2.2543 -3.678842,-3.2709 -5.506721,-2.2794 -1.827858,0.9915 -2.314827,3.6046 -1.092009,5.8588 l 1.515734,2.7943 5.651068,10.4178 9.550363,17.6061 c 0.08749,0.1613 0.177907,0.3203 0.26606,0.4803 0.01295,0.032 0.02916,0.061 0.04424,0.092 7.04741,12.9919 23.100994,17.9148 35.85665,10.9956 12.755667,-6.9193 17.3831278,-23.0605 10.335739,-36.0524 -0.03391,-0.058 -0.0679,-0.115 -0.101831,-0.1725 -1.1e-4,-2e-4 -2.82e-4,-5e-4 -4.16e-4,-7e-4 -0.06916,-0.1326 -0.139477,-0.2648 -0.211028,-0.3967 l -11.662459,-21.4998 z m -23.834978,34.49036 c -0.164334,0.2111 -0.325446,0.4247 -0.483263,0.6408 0.157869,-0.216 0.318923,-0.4297 0.483263,-0.6408 z m -1.514113,2.3268 c -0.115793,0.1857 -0.229283,0.3729 -0.340426,0.5615 0.111166,-0.1886 0.224627,-0.3758 0.340426,-0.5615 z m -3.348636,-1.4673 c -0.08368,0.1711 -0.165476,0.3431 -0.245443,0.516 0.07996,-0.1729 0.161758,-0.3449 0.245443,-0.516 z m -0.990016,2.5711 c -0.05264,0.143 -0.103919,0.2862 -0.153998,0.43 0.05001,-0.1438 0.101417,-0.2871 0.153998,-0.43 z m -0.708091,2.6214 c -0.0323,0.1258 -0.06368,0.2519 -0.09416,0.3782 0.03049,-0.1263 0.06186,-0.2524 0.09416,-0.3782 z m -0.439237,2.6941 c -0.01552,0.103 -0.03043,0.2062 -0.04475,0.3095 0.01426,-0.1033 0.02922,-0.2064 0.04475,-0.3095 z m -0.164122,2.7663 c -0.0031,0.066 -0.0062,0.1314 -0.0089,0.1973 0.0027,-0.066 0.0057,-0.1316 0.0089,-0.1973 z m 0.117313,2.6973 c 0.0028,0.054 0.0056,0.1076 0.0087,0.1612 -0.003,-0.054 -0.006,-0.1075 -0.0087,-0.1612 z m 0.393687,2.7218 c 0.0029,0.026 0.0078,0.05 0.01165,0.076 -0.0041,-0.025 -0.0078,-0.051 -0.01165,-0.076 z m 0.647271,2.5899 c 0.0058,0.026 0.01321,0.051 0.01961,0.076 -0.0058,-0.026 -0.01321,-0.051 -0.01961,-0.076 z m 0.91064,2.5475 0.01513,0.043 z"
|
||||
sodipodi:nodetypes="ssssssssssssssccsccsscssscssccsscssscsssccsccscscsccccccccccccccccccccccccccccccccccc" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Jellee;-inkscape-font-specification:Jellee;letter-spacing:0px;word-spacing:0px;fill:url(#linearGradient12134);fill-opacity:1;stroke:none;stroke-width:14.5495;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill"
|
||||
d="m -78.174643,1048.606 q -9.144,0 -13.97,-5.1816 -4.826,-5.2324 -4.826,-14.5288 0,-5.9944 2.286,-10.5664 2.3368,-4.6228 6.5532,-7.1628 4.2672,-2.5908 9.9568,-2.5908 4.6736,0 8.2296,1.524 3.556,1.4732 5.7912,4.2164 0.9144,1.0668 0.9144,2.9972 0,1.9304 -1.3716,3.302 -1.3208,1.3208 -3.2512,1.3208 -1.2192,0 -2.3368,-0.6096 -1.0668,-0.6096 -1.6764,-1.6256 -2.032,-3.4544 -6.2992,-3.4544 -3.8608,0 -6.1976,3.048 -2.3368,2.9972 -2.3368,9.144 0,6.2992 2.3876,9.398 2.3876,3.0988 6.1468,3.0988 4.4704,0 6.604,-3.8608 0.6096,-1.1176 1.7272,-1.778 1.1176,-0.7112 2.4384,-0.7112 1.9304,0 3.302,1.4224 1.4224,1.3716 1.4224,3.3528 0,1.524 -0.9144,2.8448 -4.6736,6.4008 -14.5796,6.4008 z"
|
||||
id="path7922-5-4" />
|
||||
<path
|
||||
id="path1364-4-0-4-3-4"
|
||||
d="m -19.646414,1022.4236 c -0.240073,-0.4374 -0.497506,-0.8652 -0.771527,-1.2822 -0.01652,-0.033 -0.03277,-0.065 -0.05042,-0.098 l -11.126893,-20.5125 c -0.991524,-1.82783 -3.261339,-2.50114 -5.089197,-1.50962 -1.827858,0.99152 -2.501206,3.26132 -1.509682,5.08922 l 4.099701,7.5578 -4.369278,-8.0548 4.780608,8.8131 c 0.991524,1.8279 0.318325,4.0976 -1.509533,5.0891 -1.82789,0.9915 -4.097672,0.3182 -5.089197,-1.5097 l -0.205789,-0.3793 -8.97e-4,3e-4 -2.148905,-3.9615 c -0.99153,-1.8279 -3.261355,-2.5012 -5.089213,-1.5097 -1.827858,0.9915 -2.501196,3.2613 -1.509666,5.0892 l 2.53135,4.6665 0.449377,0.8285 0.122425,0.2257 c 0.99153,1.8278 0.31832,4.0976 -1.509538,5.0891 -1.827879,0.9915 -4.097672,0.3182 -5.089203,-1.5097 l -0.571801,-1.0541 -0.330501,-0.6093 c -0.991524,-1.8279 -3.261339,-2.5012 -5.089207,-1.5097 -1.827858,0.9916 -2.501058,3.2613 -1.509533,5.0892 l 6.769781,12.4801 c 0.03288,0.061 0.06765,0.1196 0.103293,0.1777 0.186243,0.4286 0.388282,0.8502 0.605872,1.2638 4.959265,9.1424 16.390891,12.5335 25.533292,7.5743 9.142383,-4.9593 12.533492,-16.3909 7.574269,-25.5333 z m -30.35107,-24.32713 c -0.99153,-1.82789 -3.261345,-2.50119 -5.089203,-1.50968 -1.827858,0.99151 -2.501196,3.26132 -1.509665,5.08921 l 1.674724,3.0874 c 0.991513,1.8278 3.261339,2.5011 5.089197,1.5096 1.827858,-0.9915 2.501184,-3.2613 1.509671,-5.0892 z"
|
||||
style="fill:url(#linearGradient12128);fill-opacity:1;stroke:none;stroke-width:0.218827;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccssssccsssccsssccssccsssscccccsssscss" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -1,34 +0,0 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/no_image.png-7e4632ad2d21010b279ddaa4725bacb7.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/escoria-core/game/assets/images/no_image.png"
|
||||
dest_files=[ "res://.import/no_image.png-7e4632ad2d21010b279ddaa4725bacb7.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
||||
|
Before Width: | Height: | Size: 174 B |
@@ -1,517 +0,0 @@
|
||||
# Node that performs the moving (walk, teleport, terrain scaling...) actions on
|
||||
# its parent node.
|
||||
extends Node
|
||||
class_name ESCMovable
|
||||
|
||||
|
||||
# Tasks carried out by this walkable node
|
||||
# NONE - The node is inactive
|
||||
# WALK - The node walks the parent somewhere
|
||||
# SLIDE - The node slides the parent somewhere
|
||||
enum MovableTask {
|
||||
NONE,
|
||||
WALK,
|
||||
SLIDE
|
||||
}
|
||||
|
||||
|
||||
# Character path through the scene as calculated by the Pathfinder
|
||||
var walk_path: Array = []
|
||||
|
||||
# Current active walk path entry
|
||||
var path_ofs: int
|
||||
|
||||
# The destination where the character should be moving to
|
||||
var walk_destination: Vector2
|
||||
|
||||
# The walk context currently carried out by this movable node
|
||||
var walk_context: ESCWalkContext = null
|
||||
|
||||
# Whether the character was moved at all
|
||||
var moved: bool
|
||||
|
||||
# Player Direction used to reflect the movement to the new position
|
||||
var last_dir: int
|
||||
|
||||
# The last scaling applied to the parent
|
||||
var last_scale: Vector2
|
||||
|
||||
# Whether the current direction animation is flipped
|
||||
var is_mirrored: bool
|
||||
|
||||
|
||||
var _orig_speed: float = 0.0
|
||||
|
||||
|
||||
# Shortcut variable that references the node's parent
|
||||
onready var parent = get_parent()
|
||||
|
||||
|
||||
# Currenly running task
|
||||
onready var task = MovableTask.NONE
|
||||
|
||||
|
||||
# Add the signal "arrived" to the parent node, which is emitted when
|
||||
# the destination position was reached
|
||||
func _ready() -> void:
|
||||
if not parent.has_user_signal("arrived"):
|
||||
parent.add_user_signal("arrived")
|
||||
|
||||
|
||||
# Main processing loop
|
||||
#
|
||||
# #### Parameters
|
||||
#
|
||||
# - delta: Time that has passed since the last call to this function
|
||||
func _process(delta: float) -> void:
|
||||
if Engine.is_editor_hint():
|
||||
return
|
||||
|
||||
if task == MovableTask.WALK or task == MovableTask.SLIDE:
|
||||
var old_pos = parent.get_position()
|
||||
var new_pos = _calculate_movement(delta)
|
||||
if new_pos == null:
|
||||
return
|
||||
|
||||
if task == MovableTask.WALK:
|
||||
# Get the angle of the object to face the position to reach.
|
||||
var angle: float = (old_pos.angle_to_point(new_pos))
|
||||
_perform_walk_orientation(angle)
|
||||
|
||||
update_terrain()
|
||||
else:
|
||||
moved = false
|
||||
set_process(false)
|
||||
|
||||
|
||||
# Calculates the next position of the object.
|
||||
#
|
||||
# #### Parameters
|
||||
#
|
||||
# - delta: the time elapsed from last frame
|
||||
#
|
||||
# *Returns*
|
||||
# The new Vector2 position of the object, or null if stop walking.
|
||||
func _calculate_movement(delta: float):
|
||||
# Initialize the current pos and previous pos variables
|
||||
var pos: Vector2 = parent.get_position()
|
||||
var old_pos: Vector2 = pos
|
||||
|
||||
# Get next waypoint from the walkpath array.
|
||||
var next: Vector2
|
||||
if walk_path.size() > 1:
|
||||
next = walk_path[path_ofs + 1]
|
||||
else:
|
||||
next = walk_path[path_ofs]
|
||||
|
||||
# Movement speed calculation
|
||||
var movement_speed: float = parent.speed * delta * pow(last_scale.x, 2) * \
|
||||
parent.terrain.player_speed_multiplier
|
||||
if walk_context.fast:
|
||||
movement_speed *= parent.terrain.player_doubleclick_speed_multiplier
|
||||
|
||||
# Calculate the direction vector from current position and next waypoint
|
||||
var dir: Vector2 = (next - pos).normalized()
|
||||
|
||||
# If we're close to the next waypoint (ie. distance < necessary movement
|
||||
# speed to get to this waypoint, we consider the waypoint reached
|
||||
# and pass to the next one.
|
||||
# Else, calculate the new position.
|
||||
var new_pos: Vector2
|
||||
if pos.distance_to(next) < movement_speed:
|
||||
new_pos = next
|
||||
path_ofs += 1
|
||||
else:
|
||||
new_pos = pos + dir * movement_speed * parent.v_speed_damp
|
||||
|
||||
# If current waypoint id is >= the number of waypoints, were're at the
|
||||
# end of the walk: stop walking.
|
||||
if path_ofs >= walk_path.size() - 1:
|
||||
walk_stop(walk_destination)
|
||||
return
|
||||
|
||||
# Update current position variable
|
||||
pos = new_pos
|
||||
parent.set_position(pos)
|
||||
return pos
|
||||
|
||||
# Calculates the orientation of the object while walking, to play the right
|
||||
# animation according to this orientation.
|
||||
#
|
||||
# #### Parameters
|
||||
#
|
||||
# - angle: the angle X axis and object's facing direction.
|
||||
func _perform_walk_orientation(angle: float):
|
||||
last_dir = _get_dir_deg(ESCUtils.get_deg_from_rad(angle),
|
||||
parent.animations)
|
||||
|
||||
var animation_player: ESCAnimationPlayer = \
|
||||
parent.get_animation_player()
|
||||
|
||||
var current_animation = animation_player.get_animation()
|
||||
|
||||
var animation_to_play = \
|
||||
parent.animations.directions[last_dir].animation
|
||||
if current_animation != animation_to_play and \
|
||||
animation_player.has_animation(animation_to_play):
|
||||
animation_player.play(animation_to_play)
|
||||
elif current_animation != animation_to_play and \
|
||||
not animation_player.has_animation(animation_to_play):
|
||||
current_animation = animation_to_play
|
||||
escoria.logger.warn(
|
||||
self,
|
||||
"Character %s has no animation %s\nBypassing the missing animation and movement command."
|
||||
% [parent.global_id, animation_to_play]
|
||||
)
|
||||
|
||||
is_mirrored = parent.animations.directions[last_dir].mirrored
|
||||
|
||||
|
||||
# Teleports this item to the target position.
|
||||
#
|
||||
# #### Parameters
|
||||
#
|
||||
# - target: Position2d or ESCItem to teleport to
|
||||
func teleport(target: Node) -> void:
|
||||
if target.has_method("get_interact_position"):
|
||||
parent.global_position = target.get_interact_position()
|
||||
escoria.logger.info(
|
||||
self,
|
||||
"Object %s is teleported to position %s."
|
||||
% [target.name, parent.global_position]
|
||||
)
|
||||
elif "position" in target:
|
||||
escoria.logger.info(
|
||||
self,
|
||||
"Object %s teleported to position %s."
|
||||
% [parent.global_id, str(target.global_position)]
|
||||
)
|
||||
parent.global_position = target.global_position
|
||||
else:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"Target %s could not be teleported. Please configure the interact position parameter or create a child ESCLocation node." % target
|
||||
)
|
||||
|
||||
|
||||
# Teleports this item to the target position.
|
||||
#
|
||||
# #### Parameters
|
||||
#
|
||||
# - target: Vector2 target position to teleport to
|
||||
func teleport_to(target: Vector2) -> void:
|
||||
escoria.logger.info(
|
||||
self,
|
||||
"Object %s teleported to position %s."
|
||||
% [parent.global_id, str(target)]
|
||||
)
|
||||
parent.global_position = target
|
||||
|
||||
|
||||
# Walk to a given position
|
||||
#
|
||||
# #### Parameters
|
||||
#
|
||||
# - pos: Position to walk to
|
||||
# - p_walk_context: Walk context to use
|
||||
func walk_to(pos: Vector2, p_walk_context: ESCWalkContext = null) -> void:
|
||||
if not parent.terrain:
|
||||
walk_stop(parent.get_position())
|
||||
return
|
||||
|
||||
if task == MovableTask.WALK:
|
||||
if walk_context.target_object == p_walk_context.target_object \
|
||||
or walk_context.target_position \
|
||||
== p_walk_context.target_position:
|
||||
walk_context.fast = p_walk_context.fast
|
||||
|
||||
walk_context = p_walk_context
|
||||
|
||||
if task == MovableTask.NONE:
|
||||
task = MovableTask.WALK
|
||||
|
||||
walk_path = parent.terrain.get_simple_path(parent.get_position(), pos, true)
|
||||
|
||||
if walk_path.size() == 0:
|
||||
task = MovableTask.NONE
|
||||
walk_stop(parent.get_position())
|
||||
set_process(false)
|
||||
return
|
||||
moved = true
|
||||
walk_destination = walk_path[walk_path.size()-1]
|
||||
path_ofs = 0
|
||||
task = MovableTask.WALK
|
||||
set_process(true)
|
||||
|
||||
|
||||
# We have finished walking. Set the idle pose and complete
|
||||
#
|
||||
# #### Parameters
|
||||
#
|
||||
# - pos: Final target position
|
||||
func walk_stop(pos: Vector2) -> void:
|
||||
parent.global_position = pos
|
||||
# parent.interact_status = parent.INTERACT_STATES.INTERACT_NONE
|
||||
walk_path = []
|
||||
|
||||
if _orig_speed > 0:
|
||||
parent.speed = _orig_speed
|
||||
_orig_speed = 0.0
|
||||
|
||||
task = MovableTask.NONE
|
||||
moved = false
|
||||
set_process(false)
|
||||
|
||||
# If we're heading to an object and reached its interaction position,
|
||||
# orient towards the defined interaction direction set on the object
|
||||
# (if any), can be ESCItem or ESCLocation
|
||||
if walk_context.target_object and \
|
||||
walk_context.target_object.node.player_orients_on_arrival:
|
||||
var orientation = walk_context.target_object.node.interaction_direction
|
||||
last_dir = orientation
|
||||
parent.get_animation_player().play(
|
||||
parent.animations.idles[orientation].animation
|
||||
)
|
||||
is_mirrored = parent.animations.idles[orientation].mirrored
|
||||
else:
|
||||
parent.get_animation_player().play(
|
||||
parent.animations.idles[last_dir].animation
|
||||
)
|
||||
is_mirrored = parent.animations.idles[last_dir].mirrored
|
||||
|
||||
update_terrain()
|
||||
|
||||
if walk_context.target_object:
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"%s arrived at %s." % [
|
||||
parent.global_id,
|
||||
walk_context.target_object.global_id
|
||||
]
|
||||
)
|
||||
else:
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"%s arrived at %s." % [
|
||||
parent.global_id,
|
||||
walk_context.target_position
|
||||
]
|
||||
)
|
||||
parent.emit_signal("arrived", walk_context)
|
||||
|
||||
|
||||
# Update the sprite scale and lighting
|
||||
#
|
||||
# #### Parameters
|
||||
#
|
||||
# - on_event_finished_name: Used if this function is called from an ESC event
|
||||
func update_terrain(on_event_finished_name = null) -> void:
|
||||
if !parent.terrain or parent.terrain == null \
|
||||
or !is_instance_valid(parent.terrain):
|
||||
return
|
||||
if on_event_finished_name != null \
|
||||
and on_event_finished_name != ESCEventManager.EVENT_SETUP:
|
||||
return
|
||||
if parent.get("is_exit"):
|
||||
return
|
||||
if parent.get("dont_apply_terrain_scaling"):
|
||||
return
|
||||
if not parent.is_inside_tree():
|
||||
return
|
||||
|
||||
var pos = parent.global_position
|
||||
if pos.y <= VisualServer.CANVAS_ITEM_Z_MAX:
|
||||
parent.z_index = pos.y
|
||||
else:
|
||||
parent.z_index = VisualServer.CANVAS_ITEM_Z_MAX
|
||||
|
||||
var factor = parent.terrain.get_terrain(pos)
|
||||
var scal = parent.terrain.get_scale_range(factor)
|
||||
if scal != parent.get_scale():
|
||||
last_scale = scal
|
||||
parent.scale = last_scale
|
||||
|
||||
var color = parent.terrain.get_light(pos)
|
||||
parent.modulate = color
|
||||
|
||||
var sprite: Node = parent.get_sprite()
|
||||
|
||||
# Do not flip the entire character, because that would conflict
|
||||
# with shadows that expect to be siblings of $texture
|
||||
#
|
||||
# - Current sprite scale is >0, meaning it's currently heading to right
|
||||
# - but calculated is_mirrored is <0, meaning it's going to head to left
|
||||
# Or, on the contrary:
|
||||
# - current sprite scale is <0, meaning it's currently heading to left
|
||||
# - but calculated is_mirrored is >0, meaning it's going to head to right
|
||||
# We're operating a 180° turn (from right to left, or from left to right)
|
||||
# So we just inverse the sprite scale.
|
||||
if is_mirrored and sprite.scale.x > 0 \
|
||||
or not is_mirrored and sprite.scale.x < 0:
|
||||
sprite.scale.x *= -1
|
||||
parent.collision.scale.x *= -1
|
||||
|
||||
|
||||
# Get the player direction index based on degrees
|
||||
#
|
||||
# #### Parameters
|
||||
#
|
||||
# - deg: Degrees
|
||||
# - animations: Player animations script
|
||||
func _get_dir_deg(deg: int, animations: ESCAnimationResource) -> int:
|
||||
# We turn the angle by -90° because angle_to_point gives the angle
|
||||
# against X axis, not Y
|
||||
deg = wrapi(deg - 90, 0, 360)
|
||||
var dir = -1
|
||||
var i = 0
|
||||
|
||||
for direction_angle in animations.dir_angles:
|
||||
if _is_angle_in_interval(deg, direction_angle):
|
||||
dir = i
|
||||
break
|
||||
else:
|
||||
i += 1
|
||||
continue
|
||||
|
||||
# It's an error to have the animations misconfigured
|
||||
if dir == -1:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"No animation has been configured for angle %s." % str(deg)
|
||||
)
|
||||
|
||||
return dir
|
||||
|
||||
|
||||
# Returns true if given angle is inside the interval given by a starting_angle
|
||||
# and the size.
|
||||
#
|
||||
# #### Parameters
|
||||
#
|
||||
# - angle: Angle to test
|
||||
# - direction_angle: ESCDirectionAngle resource, containing the starting angle,
|
||||
# and the size of interval
|
||||
# eg: angle_start=90, angle_size=40 corresponds to angle between 90° and 130°
|
||||
func _is_angle_in_interval(
|
||||
angle: float,
|
||||
direction_angle: ESCDirectionAngle
|
||||
) -> bool:
|
||||
var start_angle = direction_angle.angle_start
|
||||
var end_angle = direction_angle.angle_start + direction_angle.angle_size
|
||||
|
||||
if end_angle > 360 and angle < start_angle:
|
||||
angle += 360
|
||||
|
||||
return (start_angle <= angle and angle <= end_angle)
|
||||
|
||||
|
||||
# Sets character's angle and plays according animation.
|
||||
#
|
||||
# #### Parameters
|
||||
#
|
||||
# - deg int angle to set the character
|
||||
# - wait float Wait this amount of seconds until continuing with turning around
|
||||
func set_angle(deg: int, wait: float = 0.0) -> void:
|
||||
if deg < 0 or deg > 360:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"Invalid degree to turn to : %s. Valid angles are between 0 and 360." % str(deg)
|
||||
)
|
||||
moved = true
|
||||
|
||||
var current_dir = last_dir
|
||||
var target_dir = _get_dir_deg(deg, parent.animations)
|
||||
|
||||
var way_to_turn = get_shortest_way_to_dir(current_dir, target_dir)
|
||||
|
||||
var dir = current_dir
|
||||
while dir != target_dir:
|
||||
dir += way_to_turn
|
||||
if dir >= parent.animations.dir_angles.size():
|
||||
dir = 0
|
||||
if dir < 0:
|
||||
dir = parent.animations.dir_angles.size() - 1
|
||||
|
||||
parent.get_animation_player().play(
|
||||
parent.animations.idles[dir].animation
|
||||
)
|
||||
if wait > 0.0:
|
||||
yield(get_tree().create_timer(wait), "timeout")
|
||||
is_mirrored = parent.animations.idles[dir].mirrored
|
||||
|
||||
last_dir = _get_dir_deg(deg, parent.animations)
|
||||
|
||||
# The character may have a state animation from before, which would be
|
||||
# resumed, so we immediately force the correct idle animation
|
||||
if parent.get_animation_player().get_animation() != \
|
||||
parent.animations.idles[last_dir].animation:
|
||||
parent.get_animation_player().play(
|
||||
parent.animations.idles[last_dir].animation
|
||||
)
|
||||
update_terrain()
|
||||
|
||||
|
||||
# Turns the character to face another item or character.
|
||||
#
|
||||
# #### Parameters
|
||||
#
|
||||
# - item_id id of the object to face.
|
||||
# - float Wait this amount of seconds until continuing with turning around
|
||||
func turn_to(item: Node, wait: float = 0.0) -> void:
|
||||
set_angle(
|
||||
wrapi(
|
||||
rad2deg(parent.get_position().angle_to_point(item.get_position())),
|
||||
0,
|
||||
360
|
||||
),
|
||||
wait
|
||||
)
|
||||
|
||||
|
||||
# Returns the angle that corresponds to the current direction of the object.
|
||||
func _get_angle() -> int:
|
||||
return parent.animations.dir_angles[last_dir].angle_start
|
||||
|
||||
|
||||
# Return the shortest way to turn from a direction to another. Returned way is
|
||||
# either:
|
||||
# -1 (shortest way is to turn anti-clockwise)
|
||||
# 0 (already at the right direction)
|
||||
# 1 (clockwise).
|
||||
#
|
||||
# ####Parameters
|
||||
# - current_dir: integer corresponding to the starting direction as defined in
|
||||
# the attached ESCAnimationResource.directions.
|
||||
# - target_dir: integer corresponding to the target direction as defined in
|
||||
# the attached ESCAnimationResource.directions.
|
||||
#
|
||||
# *Returns*
|
||||
# Integer: -1 (anti-clockwise), 1 (clockwise) or 0 (no movement needed).
|
||||
func get_shortest_way_to_dir(current_dir: int, target_dir: int) -> int:
|
||||
if current_dir < 0 or current_dir > parent.animations.dir_angles.size() - 1:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"Invalid direction (current_dir) %s" % str(current_dir)
|
||||
)
|
||||
|
||||
if target_dir < 0 or target_dir > parent.animations.dir_angles.size() - 1:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"Invalid direction (target_dir) %s " % str(target_dir)
|
||||
)
|
||||
|
||||
if current_dir == target_dir:
|
||||
return 0
|
||||
|
||||
var internal = false
|
||||
if max(current_dir, target_dir) - min(current_dir, target_dir) \
|
||||
< parent.animations.dir_angles.size() / 2:
|
||||
internal = true
|
||||
else:
|
||||
internal = false
|
||||
|
||||
if internal and current_dir < target_dir or \
|
||||
(not internal and current_dir > target_dir):
|
||||
return 1
|
||||
else:
|
||||
return -1
|
||||
@@ -1,74 +0,0 @@
|
||||
# `accept_input [type]`
|
||||
#
|
||||
# Sets how much input the game is to accept. This allows for cut scenes
|
||||
# in which dialogue can be skipped (if [type] is set to SKIP), and ones where
|
||||
# it can't (if [type] is set to NONE).
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *type*: Type of inputs to accept (ALL)
|
||||
# `ALL`: Accept all types of user input
|
||||
# `SKIP`: Accept skipping dialogues but nothing else
|
||||
# `NONE`: Deny all inputs (including opening menus)
|
||||
#
|
||||
# **Warning**: `SKIP` and `NONE` also disable autosaves.
|
||||
#
|
||||
# **Warning**: The type of user input accepted will persist even after the
|
||||
# current event has ended. Remember to reset the input type at the end of
|
||||
# cut-scenes!
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name AcceptInputCommand
|
||||
|
||||
|
||||
# The list of supported input types
|
||||
const SUPPORTED_INPUT_TYPES = ["ALL", "NONE", "SKIP"]
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[TYPE_STRING],
|
||||
["ALL"]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not arguments[0] in SUPPORTED_INPUT_TYPES:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid parameter. %s is not a valid parameter value." +
|
||||
"Should be one of %s"
|
||||
% [
|
||||
get_command_name(),
|
||||
arguments[0],
|
||||
str(SUPPORTED_INPUT_TYPES)
|
||||
]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
var mode = escoria.inputs_manager.INPUT_ALL
|
||||
match command_params[0]:
|
||||
"NONE":
|
||||
mode = escoria.inputs_manager.INPUT_NONE
|
||||
"SKIP":
|
||||
mode = escoria.inputs_manager.INPUT_SKIP
|
||||
|
||||
escoria.inputs_manager.input_mode = mode
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,61 +0,0 @@
|
||||
# `anim object name [reverse]`
|
||||
#
|
||||
# Executes the animation specified in "name" on "object" without blocking.
|
||||
# The next command in the event will be executed immediately after the
|
||||
# animation is started.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# * *object*: Global ID of the object with the animation
|
||||
# * *name*: Name of the animation to play
|
||||
# * *reverse*: Plays the animation in reverse when true
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name AnimCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_STRING, TYPE_BOOL],
|
||||
[null, null, false]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid object. Object with global id %s not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
var obj = escoria.object_manager.get_object(command_params[0])
|
||||
var anim_id = command_params[1]
|
||||
var reverse = command_params[2]
|
||||
var animator: ESCAnimationPlayer = \
|
||||
(obj.node as ESCItem).get_animation_player()
|
||||
if reverse:
|
||||
animator.play_backwards(anim_id)
|
||||
else:
|
||||
animator.play(anim_id)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,67 +0,0 @@
|
||||
# `anim_block object name [reverse]`
|
||||
#
|
||||
# Executes the animation specified in "name" on "object" while blocking other
|
||||
# events from starting.
|
||||
# The next command in the event will be executed when the animation is
|
||||
# finished playing.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# * *object*: Global ID of the object with the animation
|
||||
# * *name*: Name of the animation to play
|
||||
# * *reverse*: Plays the animation in reverse when true
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name AnimBlockCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_STRING, TYPE_BOOL],
|
||||
[null, null, false]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: Object with global id %s not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
var obj = escoria.object_manager.get_object(command_params[0])
|
||||
var anim_id = command_params[1]
|
||||
var reverse = command_params[2]
|
||||
var animator: ESCAnimationPlayer = \
|
||||
(obj.node as ESCItem).get_animation_player()
|
||||
if reverse:
|
||||
animator.play_backwards(anim_id)
|
||||
else:
|
||||
animator.play(anim_id)
|
||||
if animator.get_length(anim_id) < 1.0:
|
||||
return ESCExecution.RC_OK
|
||||
var animation_finished = yield(animator, "animation_finished")
|
||||
while animation_finished != anim_id:
|
||||
animation_finished = yield(animator, "animation_finished")
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,62 +0,0 @@
|
||||
# `block_say`
|
||||
#
|
||||
# `say` commands called subsequent to using the `block_say` command will reuse the
|
||||
# dialog box type of the previous `say` command if both dialog box types between the two `say`
|
||||
# commands match.
|
||||
#
|
||||
# Different dialog box types can be used across multiple `say` commands, with the latest one
|
||||
# used being preserved for reuse by the next `say` command should the dialog box type specified by
|
||||
# both `say` commands match.
|
||||
#
|
||||
# This reuse will continue until a call to `end_block_say` is made.
|
||||
#
|
||||
# Using `block_say` more than once prior to calling `end_block_say` is idempotent and has the
|
||||
# following behaviour:
|
||||
#
|
||||
# - If no `say` command has yet been encountered since the first use of `block_say`,
|
||||
# the result of using this command will be as described above.
|
||||
# - If a `say` command has been encountered since the previous use of `block_say`,
|
||||
# the dialog box used with that `say` command will continue to be reused for subsequent
|
||||
# `say` commands should the dialog box type requested match. Note that the dialog box used with
|
||||
# the next `say` command may be different than the one currently being reused.
|
||||
#
|
||||
# Example:
|
||||
# `block say`
|
||||
# `say player "Picture's looking good."`
|
||||
# `say player "And so am I."`
|
||||
# `end_block_say`
|
||||
#
|
||||
# This example will reuse the same dialog box type since they are the same between both `say` calls.
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name BlockSayCommand
|
||||
|
||||
|
||||
# Constructor
|
||||
func _init() -> void:
|
||||
pass
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(0)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.dialog_player.enable_preserve_dialog_box()
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,112 +0,0 @@
|
||||
# `camera_push target [time] [type]`
|
||||
#
|
||||
# Pushes (moves) the camera so it points at a specific `target`. If the camera
|
||||
# was following a target (like the player) previously, it will no longer follow
|
||||
# this target.
|
||||
#
|
||||
# Make sure the target is reachable if camera limits have been configured.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *target*: Global ID of the `ESCItem` to push the camera to. `ESCItem`s have
|
||||
# a "camera_node" property that can be set to point to a node (usually an
|
||||
# `ESCLocation` node). If the "camera_node" property is empty, `camera_push`
|
||||
# will point the camera at the `ESCItem`s location. If however, the `ESCItem`
|
||||
# has its "camera_node" property set, the command will instead point the
|
||||
# camera at the node referenced by the `ESCItem`s "camera_node" property.
|
||||
# - *time*: Number of seconds the transition should take (default: `1`)
|
||||
# - *type*: Transition type to use (default: `QUAD`)
|
||||
#
|
||||
# Supported transitions include the names of the values used
|
||||
# in the "TransitionType" enum of the "Tween" type (without the "TRANS_" prefix):
|
||||
#
|
||||
# See https://docs.godotengine.org/en/stable/classes/class_tween.html?highlight=tween#enumerations
|
||||
#
|
||||
# For more details see: https://docs.escoria-framework.org/camera
|
||||
#
|
||||
# @ESC
|
||||
extends ESCCameraBaseCommand
|
||||
class_name CameraPushCommand
|
||||
|
||||
# The list of supported transitions as per the link mentioned above
|
||||
const SUPPORTED_TRANSITIONS = ["LINEAR","SINE","QUINT","QUART","QUAD" ,"EXPO","ELASTIC","CUBIC",
|
||||
"CIRC","BOUNCE","BACK"]
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[TYPE_STRING, [TYPE_REAL, TYPE_INT], TYPE_STRING],
|
||||
[null, 1, "QUAD"]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid object. Object global id %s not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
|
||||
var target_pos = _get_target_pos(arguments[0])
|
||||
var camera: ESCCamera = escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera
|
||||
|
||||
if not camera.check_point_is_inside_viewport_limits(target_pos):
|
||||
generate_viewport_warning(target_pos, camera)
|
||||
return false
|
||||
|
||||
if not arguments[2] in SUPPORTED_TRANSITIONS:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
(
|
||||
"[{command_name}]: invalid transition type. Transition type {t_type} " +
|
||||
"is not one of the accepted types : {allowed_types}"
|
||||
).format(
|
||||
{
|
||||
"command_name":get_command_name(),
|
||||
"t_type":arguments[2],
|
||||
"allowed_types":SUPPORTED_TRANSITIONS
|
||||
}
|
||||
)
|
||||
)
|
||||
return false
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera)\
|
||||
.push(
|
||||
escoria.object_manager.get_object(command_params[0]).node,
|
||||
command_params[1],
|
||||
ClassDB.class_get_integer_constant("Tween", "TRANS_%s" % command_params[2])
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
|
||||
|
||||
# Gets the appropriate target position from the `ESCItem`, as used by the camera.
|
||||
#
|
||||
# #### Parameters
|
||||
#
|
||||
# - target_global_id: The `global_id` of the `ESCItem` to check.
|
||||
#
|
||||
# **Returns** the item's position based on its camera node.
|
||||
func _get_target_pos(target_global_id: String) -> Vector2:
|
||||
var target = escoria.object_manager.get_object(target_global_id).node as ESCItem
|
||||
return target.get_camera_node().global_position
|
||||
@@ -1,127 +0,0 @@
|
||||
# `camera_push_block target [time] [type]`
|
||||
#
|
||||
# Pushes (moves) the camera so it points at a specific `target`. If the camera
|
||||
# was following a target (like the player) previously, it will no longer follow
|
||||
# this target. Blocks until the command completes.
|
||||
#
|
||||
# Make sure the target is reachable if camera limits have been configured.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *target*: Global ID of the `ESCItem` to push the camera to. `ESCItem`s have
|
||||
# a "camera_node" property that can be set to point to a node (usually an
|
||||
# `ESCLocation` node). If the "camera_node" property is empty, `camera_push_block`
|
||||
# will point the camera at the `ESCItem`s location. If however, the `ESCItem`
|
||||
# has its "camera_node" property set, the command will instead point the
|
||||
# camera at the node referenced by the `ESCItem`s "camera_node" property.
|
||||
# - *time*: Number of seconds the transition should take (default: `1`)
|
||||
# - *type*: Transition type to use (default: `QUAD`)
|
||||
#
|
||||
# Supported transitions include the names of the values used
|
||||
# in the "TransitionType" enum of the "Tween" type (without the "TRANS_" prefix).
|
||||
#
|
||||
# See https://docs.godotengine.org/en/stable/classes/class_tween.html?highlight=tween#enumerations
|
||||
#
|
||||
# For more details see: https://docs.escoria-framework.org/camera
|
||||
#
|
||||
# @ESC
|
||||
extends ESCCameraBaseCommand
|
||||
class_name CameraPushBlockCommand
|
||||
|
||||
|
||||
# The list of supported transitions as per the link mentioned above
|
||||
const SUPPORTED_TRANSITIONS = ["LINEAR","SINE","QUINT","QUART","QUAD" ,"EXPO","ELASTIC","CUBIC",
|
||||
"CIRC","BOUNCE","BACK"]
|
||||
|
||||
|
||||
# Tween for blocking
|
||||
var _camera_tween: Tween
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[TYPE_STRING, [TYPE_REAL, TYPE_INT], TYPE_STRING],
|
||||
[null, 1, "QUAD"]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid object. Object global id %s not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
|
||||
var target_pos = _get_target_pos(arguments[0])
|
||||
var camera: ESCCamera = escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera
|
||||
|
||||
if not camera.check_point_is_inside_viewport_limits(target_pos):
|
||||
generate_viewport_warning(target_pos, camera)
|
||||
return false
|
||||
|
||||
if not arguments[2] in SUPPORTED_TRANSITIONS:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
(
|
||||
"[{command_name}]: invalid transition type. Transition type {t_type} " +
|
||||
"is not one of the accepted types : {allowed_types}"
|
||||
).format(
|
||||
{
|
||||
"command_name":get_command_name(),
|
||||
"t_type":arguments[2],
|
||||
"allowed_types":SUPPORTED_TRANSITIONS
|
||||
}
|
||||
)
|
||||
)
|
||||
return false
|
||||
|
||||
_camera_tween = camera.get_tween()
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera)\
|
||||
.push(
|
||||
escoria.object_manager.get_object(command_params[0]).node,
|
||||
command_params[1],
|
||||
ClassDB.class_get_integer_constant("Tween", "TRANS_%s" % command_params[2])
|
||||
)
|
||||
|
||||
if command_params[1] > 0.0:
|
||||
yield(_camera_tween, "tween_completed")
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"camera_push_block tween complete."
|
||||
)
|
||||
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
|
||||
|
||||
# Gets the appropriate target position from the `ESCItem`, as used by the camera.
|
||||
#
|
||||
# #### Parameters
|
||||
#
|
||||
# - target_global_id: The `global_id` of the `ESCItem` to check.
|
||||
#
|
||||
# **Returns** the ESCitem's position based on its camera node.
|
||||
func _get_target_pos(target_global_id: String) -> Vector2:
|
||||
var target = escoria.object_manager.get_object(target_global_id).node as ESCItem
|
||||
return target.get_camera_node().global_position
|
||||
@@ -1,64 +0,0 @@
|
||||
# `camera_set_limits camlimits_id`
|
||||
#
|
||||
# Limits the current camera's movement to a limit defined in the `ESCRoom`'s
|
||||
# definition. A limit is defined as an upper-left (x, y) coordinate, a width
|
||||
# and a height that the camera must stay within. Multiple limits can be
|
||||
# defined for a room, allowing for new areas to be seen once they have
|
||||
# been 'unlocked'.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *camlimits_id*: Index of the camera limit defined in the `camera limits`
|
||||
# list of the current `ESCRoom`
|
||||
#
|
||||
# For more details see: https://docs.escoria-framework.org/camera
|
||||
#
|
||||
# @ESC
|
||||
extends ESCCameraBaseCommand
|
||||
class_name CameraSetLimitsCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[TYPE_INT],
|
||||
[null]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if escoria.main.current_scene.camera_limits.size() < arguments[0]:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid limits id. Camera limit id (%d) is larger than the number of limits defined in this scene (%d)."
|
||||
% [
|
||||
get_command_name(),
|
||||
arguments[0],
|
||||
escoria.main.current_scene.camera_limits.size()
|
||||
]
|
||||
)
|
||||
return false
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
var camera: ESCCamera = escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera
|
||||
camera.clamp_to_viewport_limits()
|
||||
escoria.main.set_camera_limits(command_params[0])
|
||||
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,57 +0,0 @@
|
||||
# `camera_set_pos time x y`
|
||||
#
|
||||
# Moves the camera to the given absolute position over a time period.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *time*: Number of seconds the transition should take
|
||||
# - *x*: Target X coordinate
|
||||
# - "y*: Target Y coordinate
|
||||
#
|
||||
# For more details see: https://docs.escoria-framework.org/camera
|
||||
#
|
||||
# @ESC
|
||||
extends ESCCameraBaseCommand
|
||||
class_name CameraSetPosCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
3,
|
||||
[[TYPE_REAL, TYPE_INT], TYPE_INT, TYPE_INT],
|
||||
[null, null, null]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
var new_pos: Vector2 = Vector2(arguments[1], arguments[2])
|
||||
var camera: ESCCamera = escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera
|
||||
|
||||
if not camera.check_point_is_inside_viewport_limits(new_pos):
|
||||
generate_viewport_warning(new_pos, camera)
|
||||
return false
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera)\
|
||||
.set_target(
|
||||
Vector2(command_params[1], command_params[2]),
|
||||
command_params[0]
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,73 +0,0 @@
|
||||
# `camera_set_pos_block time x y`
|
||||
#
|
||||
# Moves the camera to the given absolute position over a time period. Blocks
|
||||
# until the command completes.
|
||||
#
|
||||
# Make sure the coordinates are reachable if camera limits have been configured.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *time*: Number of seconds the transition should take
|
||||
# - *x*: Target X coordinate
|
||||
# - "y*: Target Y coordinate
|
||||
#
|
||||
# For more details see: https://docs.escoria-framework.org/camera
|
||||
#
|
||||
# @ESC
|
||||
extends ESCCameraBaseCommand
|
||||
class_name CameraSetPosBlockCommand
|
||||
|
||||
|
||||
# Tween for blocking
|
||||
var _camera_tween: Tween
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
3,
|
||||
[[TYPE_REAL, TYPE_INT], TYPE_INT, TYPE_INT],
|
||||
[null, null, null]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
var new_pos: Vector2 = Vector2(arguments[1], arguments[2])
|
||||
var camera: ESCCamera = escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera
|
||||
|
||||
if not camera.check_point_is_inside_viewport_limits(new_pos):
|
||||
generate_viewport_warning(new_pos, camera)
|
||||
return false
|
||||
|
||||
_camera_tween = camera.get_tween()
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera)\
|
||||
.set_target(
|
||||
Vector2(command_params[1], command_params[2]),
|
||||
command_params[0]
|
||||
)
|
||||
|
||||
if command_params[0] > 0.0:
|
||||
yield(_camera_tween, "tween_completed")
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"camera_set_pos_block tween complete."
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,60 +0,0 @@
|
||||
# `camera_set_target time object`
|
||||
#
|
||||
# Configures the camera to follow the specified target `object` as it moves
|
||||
# around the current room. The transition to focus on the `object` will happen
|
||||
# over a time period.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *time*: Number of seconds the transition should take to move the camera
|
||||
# to follow `object`
|
||||
# - *object*: Global ID of the target object
|
||||
#
|
||||
# For more details see: https://docs.escoria-framework.org/camera
|
||||
#
|
||||
# @ESC
|
||||
extends ESCCameraBaseCommand
|
||||
class_name CameraSetTargetCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[[TYPE_REAL, TYPE_INT], TYPE_STRING],
|
||||
[null, null]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[1]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: Invalid object: Object with global id %s not found."
|
||||
% [get_command_name(), arguments[1]]
|
||||
)
|
||||
return false
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera)\
|
||||
.set_target(
|
||||
escoria.object_manager.get_object(command_params[1]).node,
|
||||
command_params[0]
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,77 +0,0 @@
|
||||
# `camera_set_target_block time object`
|
||||
#
|
||||
# Configures the camera to follow the specified target `object` (ESCItem) as it moves
|
||||
# around the current room. The transition to focus on the `object` will happen
|
||||
# over a time period. Blocks until the command completes.
|
||||
#
|
||||
# The camera will move as close as it can if camera limits have been configured
|
||||
# and the `object` is at coordinates that are not reachable.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *time*: Number of seconds the transition should take to move the camera
|
||||
# to follow `object`
|
||||
# - *object*: Global ID of the target object
|
||||
#
|
||||
# For more details see: https://docs.escoria-framework.org/camera
|
||||
#
|
||||
# @ESC
|
||||
extends ESCCameraBaseCommand
|
||||
class_name CameraSetTargetBlockCommand
|
||||
|
||||
|
||||
# Tween for blocking
|
||||
var _camera_tween: Tween
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[[TYPE_REAL, TYPE_INT], TYPE_STRING],
|
||||
[null, null]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[1]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: Invalid object: Object with global id %s not found."
|
||||
% [get_command_name(), arguments[1]]
|
||||
)
|
||||
return false
|
||||
|
||||
var camera: ESCCamera = escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera
|
||||
_camera_tween = camera.get_tween()
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera)\
|
||||
.set_target(
|
||||
escoria.object_manager.get_object(command_params[1]).node,
|
||||
command_params[0]
|
||||
)
|
||||
|
||||
if command_params[0] > 0.0:
|
||||
yield(_camera_tween, "tween_completed")
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"camera_set_target_block tween complete."
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,46 +0,0 @@
|
||||
# `camera_set_zoom magnitude [time]`
|
||||
#
|
||||
# Zooms the camera in/out to the desired `magnitude`. Values larger than '1' zoom
|
||||
# the camera out while smaller values zoom in. These values are relative to the
|
||||
# default zoom value of '1', not the current value. As such, while using a value
|
||||
# of '0.5' would double the size of the graphics, running the same command again
|
||||
# would result in no change. The zoom will happen over the given time period.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *magnitude*: Magnitude of zoom
|
||||
# - *time*: Number of seconds the transition should take, with a value of `0`
|
||||
# meaning the zoom should happen instantly (default: `0`)
|
||||
#
|
||||
# For more details see: https://docs.escoria-framework.org/camera
|
||||
#
|
||||
# @ESC
|
||||
extends ESCCameraBaseCommand
|
||||
class_name CameraSetZoomCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[[TYPE_REAL, TYPE_INT], [TYPE_REAL, TYPE_INT]],
|
||||
[null, 0.0]
|
||||
)
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera)\
|
||||
.set_camera_zoom(
|
||||
command_params[0],
|
||||
command_params[1]
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,73 +0,0 @@
|
||||
# `camera_set_zoom_block magnitude [time]`
|
||||
#
|
||||
# Zooms the camera in/out to the desired `magnitude`. Values larger than '1' zoom
|
||||
# the camera out while smaller values zoom in. These values are relative to the
|
||||
# default zoom value of '1', not the current value. As such, while using a value
|
||||
# of '0.5' would double the size of the graphics, running the same command again
|
||||
# would result in no change. The zoom will happen over the given time period.
|
||||
# Blocks until the command completes.
|
||||
#
|
||||
# Zoom operations might not be as smooth as desired if the requested zoom
|
||||
# level results in an edge of the camera meeting any defined camera limits.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *magnitude*: Magnitude of zoom
|
||||
# - *time*: Number of seconds the transition should take, with a value of `0`
|
||||
# meaning the zoom should happen instantly (default: `0`)
|
||||
#
|
||||
# For more details see: https://docs.escoria-framework.org/camera
|
||||
#
|
||||
# @ESC
|
||||
extends ESCCameraBaseCommand
|
||||
class_name CameraSetZoomBlockCommand
|
||||
|
||||
|
||||
var _camera_tween: Tween
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[[TYPE_REAL, TYPE_INT], [TYPE_REAL, TYPE_INT]],
|
||||
[null, 0.0]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
var camera: ESCCamera = escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera
|
||||
_camera_tween = camera.get_tween()
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
var camera: ESCCamera = escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera
|
||||
|
||||
camera\
|
||||
.set_camera_zoom(
|
||||
command_params[0],
|
||||
command_params[1]
|
||||
)
|
||||
|
||||
if command_params[1] > 0.0:
|
||||
yield(_camera_tween, "tween_completed")
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"camera_set_zoom_block tween complete."
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,58 +0,0 @@
|
||||
# `camera_set_zoom_height pixels [time]`
|
||||
#
|
||||
# Zooms the camera in/out so it occupies the given height in pixels.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *pixels*: Target height in pixels
|
||||
# - *time*: Number of seconds the transition should take, with a value of `0`
|
||||
# meaning the zoom should happen instantly (default: `0`)
|
||||
#
|
||||
# For more details see: https://docs.escoria-framework.org/camera
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name CameraSetZoomHeightCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[TYPE_INT, [TYPE_INT, TYPE_REAL]],
|
||||
[null, 0.0]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if arguments[0] < 0:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid height. Can't zoom to a negative height (%d)."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera)\
|
||||
.set_camera_zoom(
|
||||
command_params[0] / escoria.game_size.y,
|
||||
command_params[1]
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,73 +0,0 @@
|
||||
# `camera_set_zoom_height_block pixels [time]`
|
||||
#
|
||||
# Zooms the camera in/out so it occupies the given height in pixels.
|
||||
# Blocks until the command completes.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *pixels*: Target height in pixels (integer values only)
|
||||
# - *time*: Number of seconds the transition should take, with a value of `0`
|
||||
# meaning the zoom should happen instantly (default: `0`)
|
||||
#
|
||||
# For more details see: https://docs.escoria-framework.org/camera
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name CameraSetZoomHeightBlockCommand
|
||||
|
||||
|
||||
# Tween for blocking
|
||||
var _camera_tween: Tween
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[TYPE_INT, [TYPE_INT, TYPE_REAL]],
|
||||
[null, 0.0]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if arguments[0] <= 0:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid height. Can't zoom to a negative height (%d)."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
|
||||
var camera: ESCCamera = escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera
|
||||
_camera_tween = camera.get_tween()
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera)\
|
||||
.set_camera_zoom(
|
||||
command_params[0] / escoria.game_size.y,
|
||||
command_params[1]
|
||||
)
|
||||
|
||||
if command_params[1] > 0.0:
|
||||
yield(_camera_tween, "tween_completed")
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"camera_set_zoom_height_block tween complete."
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,94 +0,0 @@
|
||||
# `camera_shift x y [time] [type]`
|
||||
#
|
||||
# Shifts the camera by the given horizontal and vertical amounts relative to the
|
||||
# current location.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *x*: Shift by x pixels along the x-axis
|
||||
# - *y*: Shift by y pixels along the y-axis
|
||||
# - *time*: Number of seconds the transition should take, with a value of `0`
|
||||
# meaning the zoom should happen instantly (default: `1`)
|
||||
# - *type*: Transition type to use (default: `QUAD`)
|
||||
#
|
||||
# Supported transitions include the names of the values used
|
||||
# in the "TransitionType" enum of the "Tween" type (without the "TRANS_" prefix):
|
||||
#
|
||||
# https://docs.godotengine.org/en/stable/classes/class_tween.html?highlight=tween#enumerations
|
||||
#
|
||||
# For more details see: https://docs.escoria-framework.org/camera
|
||||
#
|
||||
# @ESC
|
||||
extends ESCCameraBaseCommand
|
||||
class_name CameraShiftCommand
|
||||
|
||||
# The list of supported transitions as per the link mentioned above
|
||||
const SUPPORTED_TRANSITIONS = ["LINEAR","SINE","QUINT","QUART","QUAD" ,"EXPO","ELASTIC","CUBIC",
|
||||
"CIRC","BOUNCE","BACK"]
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[
|
||||
[TYPE_INT, TYPE_REAL],
|
||||
[TYPE_INT, TYPE_REAL],
|
||||
[TYPE_INT, TYPE_REAL],
|
||||
TYPE_STRING
|
||||
],
|
||||
[null, null, 1, "QUAD"]
|
||||
)
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera)\
|
||||
.shift(
|
||||
Vector2(
|
||||
command_params[0],
|
||||
command_params[1]
|
||||
),
|
||||
command_params[2],
|
||||
ClassDB.class_get_integer_constant("Tween", "TRANS_%s" % command_params[3])
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not arguments[3] in SUPPORTED_TRANSITIONS:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
(
|
||||
"[{command_name}]: invalid transition type" +
|
||||
"Transition type {t_type} is not one of the accepted types : {allowed_types}"
|
||||
).format(
|
||||
{
|
||||
"command_name": get_command_name(),
|
||||
"t_type":arguments[3],
|
||||
"allowed_types":SUPPORTED_TRANSITIONS
|
||||
}
|
||||
)
|
||||
)
|
||||
return false
|
||||
|
||||
var camera: ESCCamera = escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera
|
||||
var shift_by: Vector2 = Vector2(arguments[0], arguments[1])
|
||||
var new_pos: Vector2 = Vector2(camera.position.x + shift_by.x, camera.position.y + shift_by.y)
|
||||
|
||||
if not camera.check_point_is_inside_viewport_limits(new_pos):
|
||||
generate_viewport_warning(new_pos, camera)
|
||||
return false
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,112 +0,0 @@
|
||||
# `camera_shift_block x y [time] [type]`
|
||||
#
|
||||
# Shifts the camera by the given horizontal and vertical amounts relative to the
|
||||
# current location. Blocks until the command completes.
|
||||
#
|
||||
# Make sure the destination coordinates are reachable if
|
||||
# camera limits have been configured.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *x*: Shift by x pixels along the x-axis
|
||||
# - *y*: Shift by y pixels along the y-axis
|
||||
# - *time*: Number of seconds the transition should take, with a value of `0`
|
||||
# meaning the zoom should happen instantly (default: `1`)
|
||||
# - *type*: Transition type to use (default: `QUAD`)
|
||||
#
|
||||
# Supported transitions include the names of the values used
|
||||
# in the "TransitionType" enum of the "Tween" type (without the "TRANS_" prefix).
|
||||
#
|
||||
# See https://docs.godotengine.org/en/stable/classes/class_tween.html?highlight=tween#enumerations
|
||||
#
|
||||
# For more details see: https://docs.escoria-framework.org/camera
|
||||
#
|
||||
# @ESC
|
||||
extends ESCCameraBaseCommand
|
||||
class_name CameraShiftBlockCommand
|
||||
|
||||
|
||||
# The list of supported transitions as per the link mentioned above
|
||||
const SUPPORTED_TRANSITIONS = ["LINEAR","SINE","QUINT","QUART","QUAD" ,"EXPO","ELASTIC","CUBIC",
|
||||
"CIRC","BOUNCE","BACK"]
|
||||
|
||||
|
||||
# Tween for blocking
|
||||
var _camera_tween: Tween
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[
|
||||
[TYPE_INT, TYPE_REAL],
|
||||
[TYPE_INT, TYPE_REAL],
|
||||
[TYPE_INT, TYPE_REAL],
|
||||
TYPE_STRING
|
||||
],
|
||||
[null, null, 1, "QUAD"]
|
||||
)
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera)\
|
||||
.shift(
|
||||
Vector2(
|
||||
command_params[0],
|
||||
command_params[1]
|
||||
),
|
||||
command_params[2],
|
||||
ClassDB.class_get_integer_constant("Tween", "TRANS_%s" % command_params[3])
|
||||
)
|
||||
|
||||
if command_params[2] > 0.0:
|
||||
yield(_camera_tween, "tween_completed")
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"camera_shift_block tween complete."
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not arguments[3] in SUPPORTED_TRANSITIONS:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
(
|
||||
"[{command_name}]: invalid transition type" +
|
||||
"Transition type {t_type} is not one of the accepted types : {allowed_types}"
|
||||
).format(
|
||||
{
|
||||
"command_name": get_command_name(),
|
||||
"t_type":arguments[3],
|
||||
"allowed_types":SUPPORTED_TRANSITIONS
|
||||
}
|
||||
)
|
||||
)
|
||||
return false
|
||||
|
||||
var camera: ESCCamera = escoria.object_manager.get_object(escoria.object_manager.CAMERA).node as ESCCamera
|
||||
var shift_by: Vector2 = Vector2(arguments[0], arguments[1])
|
||||
var new_pos: Vector2 = Vector2(camera.position.x + shift_by.x, camera.position.y + shift_by.y)
|
||||
|
||||
if not camera.check_point_is_inside_viewport_limits(new_pos):
|
||||
generate_viewport_warning(new_pos, camera)
|
||||
return false
|
||||
|
||||
_camera_tween = camera.get_tween()
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,80 +0,0 @@
|
||||
# `change_scene path [enable_automatic_transition] [run_events]`
|
||||
#
|
||||
# Switches the game from the current scene to another scene. Use this to move
|
||||
# the player to a new room when they walk through an unlocked door, for
|
||||
# example.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *path*: Path of the new scene
|
||||
# - *enable_automatic_transition*: Automatically transition to the new scene
|
||||
# (default: `true`)
|
||||
# - *run_events*: Run the standard ESC events of the new scene (default: `true`)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name ChangeSceneCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[TYPE_STRING, TYPE_BOOL, TYPE_BOOL],
|
||||
[null, true, true]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array) -> bool:
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not ResourceLoader.exists(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: Invalid scene. Scene %s was not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
if not ResourceLoader.exists(
|
||||
ESCProjectSettingsManager.get_setting(ESCProjectSettingsManager.GAME_SCENE)
|
||||
):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: Game scene not found. The path set in 'ui/game_scene' was not found: %s."
|
||||
% [
|
||||
get_command_name(),
|
||||
ESCProjectSettingsManager.get_setting(
|
||||
ESCProjectSettingsManager.GAME_SCENE
|
||||
)
|
||||
]
|
||||
)
|
||||
return false
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.logger.info(
|
||||
self,
|
||||
"[%s] Changing scene to %s (enable_automatic_transition = %s)."
|
||||
% [
|
||||
get_command_name(),
|
||||
command_params[0], # scene file
|
||||
command_params[1] # enable_automatic_transition
|
||||
]
|
||||
)
|
||||
|
||||
escoria.room_manager.change_scene(command_params[0], command_params[1])
|
||||
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,100 +0,0 @@
|
||||
# `custom object node func_name [params...]`
|
||||
#
|
||||
#
|
||||
# Executes the specified Godot function. This function must be in a script
|
||||
# attached to a child node of a registered `ESCItem`.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *object*: Global ID of the target `ESCItem`
|
||||
# - *node*: Name of the child node of the target `ESCItem`
|
||||
# - *func_name*: Name of the function to be called
|
||||
# - params: Any arguments to be passed to the function (array and object parameters are not supported).
|
||||
# Multiple parameters can be passed by simply passing them in as additional arguments separated by
|
||||
# spaces, e.g. `custom the_object the_node the_function arg1 arg2 arg3`
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name CustomCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
3,
|
||||
[TYPE_STRING, TYPE_STRING, TYPE_STRING, TYPE_ARRAY],
|
||||
[null, null, null, []],
|
||||
[true],
|
||||
true
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid object. Object with global id %s not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
elif not escoria.object_manager.get_object(arguments[0]).node.has_node(
|
||||
arguments[1]
|
||||
):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid node. Object with global id %s has no child node called %s."
|
||||
% [
|
||||
get_command_name(),
|
||||
arguments[0],
|
||||
arguments[1],
|
||||
]
|
||||
)
|
||||
return false
|
||||
elif not escoria.object_manager.get_object(arguments[0]).node\
|
||||
.get_node(
|
||||
arguments[1]
|
||||
)\
|
||||
.has_method(
|
||||
arguments[2]
|
||||
):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid function. Object with global id %s and node %s has no function called %s."
|
||||
% [
|
||||
get_command_name(),
|
||||
arguments[0],
|
||||
arguments[1],
|
||||
arguments[2],
|
||||
]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
var object = escoria.object_manager.get_object(
|
||||
command_params[0]
|
||||
)
|
||||
# Global variables can be substituted into the command arguments by wrapping the global
|
||||
# name in braces.
|
||||
for loop in command_params[3].size():
|
||||
command_params[3][loop] = escoria.globals_manager.replace_globals(command_params[3][loop])
|
||||
|
||||
object.node.get_node(command_params[1]).call(
|
||||
command_params[2],
|
||||
command_params[3]
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,52 +0,0 @@
|
||||
# `dec_global name value`
|
||||
#
|
||||
# Subtract the given value from the specified global.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *name*: Name of the global to be changed
|
||||
# - *value*: Value to be subtracted (default: 1)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name DecGlobalCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[TYPE_STRING, TYPE_INT],
|
||||
[null, 1]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.globals_manager.get_global(arguments[0]) is int:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid global. Global %s isn't an integer value."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.globals_manager.set_global(
|
||||
command_params[0],
|
||||
escoria.globals_manager.get_global(command_params[0]) - \
|
||||
command_params[1]
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,50 +0,0 @@
|
||||
# `enable_terrain node_name`
|
||||
#
|
||||
# Enables the `ESCTerrain`'s `NavigationPolygonInstance` specified by the given
|
||||
# node name. It will also disable the previously-activated
|
||||
# `NavigationPolygonInstance`.
|
||||
# Use this to change where the player can walk, allowing them to walk into the
|
||||
# next room once a door has been opened, for example.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *node_name*: Name of the `NavigationPolygonInstance` node to activate
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name EnableTerrainCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[TYPE_STRING],
|
||||
[null]
|
||||
)
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
var name: String = command_params[0]
|
||||
if escoria.room_terrain.has_node(name):
|
||||
var new_active_navigation_instance = \
|
||||
escoria.room_terrain.get_node(name)
|
||||
escoria.room_terrain.current_active_navigation_instance.enabled = false
|
||||
escoria.room_terrain.current_active_navigation_instance = \
|
||||
new_active_navigation_instance
|
||||
escoria.room_terrain.current_active_navigation_instance.enabled = true
|
||||
return ESCExecution.RC_OK
|
||||
else:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: Can not find terrain node. Terrain node %s could not be found."
|
||||
% [get_command_name(), name]
|
||||
)
|
||||
return ESCExecution.RC_ERROR
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,47 +0,0 @@
|
||||
# `end_block_say`
|
||||
#
|
||||
# `say` commands used subsequent to using the `end_block_say` command will no longer
|
||||
# reuse the dialog box type used by the previous `say` command(s) encountered.
|
||||
#
|
||||
# Using `end_block_say` more than once is safe and idempotent.
|
||||
#
|
||||
# Example:
|
||||
# `block say`
|
||||
# `say player "Picture's looking good."`
|
||||
# `say player "And so am I."`
|
||||
# `end_block_say`
|
||||
#
|
||||
# This example will reuse the same dialog box type since they are the same between both `say` calls.
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name EndBlockSayCommand
|
||||
|
||||
|
||||
# Constructor
|
||||
func _init() -> void:
|
||||
pass
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(0)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.dialog_player.disable_preserve_dialog_box()
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,76 +0,0 @@
|
||||
# `hide_menu menu_type`
|
||||
#
|
||||
# Hides either the main menu or the pause menu. Transitions from the menu using
|
||||
# the default transition type (set in the Escoria project settings).
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *menu_type*: Which menu to hide. Can be either `main` or `pause` (default: `main`)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name HideMenuCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
0,
|
||||
[TYPE_STRING],
|
||||
["main"]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not arguments[0] in ["main", "pause"]:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: menu %s is invalid." % [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
var transition_id: int
|
||||
|
||||
# Transition out from menu
|
||||
transition_id = escoria.main.scene_transition.transition(
|
||||
"",
|
||||
ESCTransitionPlayer.TRANSITION_MODE.OUT
|
||||
)
|
||||
|
||||
if transition_id != ESCTransitionPlayer.TRANSITION_ID_INSTANT:
|
||||
while yield(
|
||||
escoria.main.scene_transition,
|
||||
"transition_done"
|
||||
) != transition_id:
|
||||
pass
|
||||
|
||||
if command_params[0] == "main":
|
||||
escoria.game_scene.hide_main_menu()
|
||||
elif command_params[0] == "pause":
|
||||
escoria.game_scene.unpause_game()
|
||||
|
||||
if escoria.main.current_scene != null:
|
||||
transition_id = escoria.main.scene_transition.transition()
|
||||
|
||||
if transition_id != ESCTransitionPlayer.TRANSITION_ID_INSTANT:
|
||||
while yield(
|
||||
escoria.main.scene_transition,
|
||||
"transition_done"
|
||||
) != transition_id:
|
||||
pass
|
||||
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,59 +0,0 @@
|
||||
# `inc_global name value`
|
||||
#
|
||||
# Adds the given value to the specified global.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *name*: Name of the global to be changed
|
||||
# - *value*: Value to be added (default: 1)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name IncGlobalCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[TYPE_STRING, TYPE_INT],
|
||||
[null, 1]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.globals_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid global. Global %s does not exist."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
if not escoria.globals_manager.get_global(arguments[0]) is int:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid global. Global %s isn't an integer value."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.globals_manager.set_global(
|
||||
command_params[0],
|
||||
escoria.globals_manager.get_global(command_params[0]) +\
|
||||
command_params[1]
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,54 +0,0 @@
|
||||
# `inventory_add item`
|
||||
#
|
||||
# Adds an item to the inventory. If the player is picking up an object, you may
|
||||
# want to use this command in conjunction with the `set_active` command so that
|
||||
# the object 'disappears' from the scene as it's added to the inventory.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *item*: Global ID of the `ESCItem` to add to the inventory
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name InventoryAddCommand
|
||||
|
||||
|
||||
const ILLEGAL_STRINGS = ["/"]
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[TYPE_STRING],
|
||||
[null]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
for s in ILLEGAL_STRINGS:
|
||||
if s in arguments[0]:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid item name. Item name %s cannot contain the string '%s'."
|
||||
% [get_command_name(), arguments[0], s]
|
||||
)
|
||||
return false
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.inventory_manager.add_item(command_params[0])
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,54 +0,0 @@
|
||||
# `inventory_remove item`
|
||||
#
|
||||
# Removes an item from the inventory. You may wish to use this command in
|
||||
# conjuction with the `set_active` command to show an item in the scene,
|
||||
# simulating placing the item somewhere, for example.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *item*: Global ID of the `ESCItem` to remove from the inventory
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name InventoryRemoveCommand
|
||||
|
||||
|
||||
const ILLEGAL_STRINGS = ["/"]
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[TYPE_STRING],
|
||||
[null]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
for s in ILLEGAL_STRINGS:
|
||||
if s in arguments[0]:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid item name. Item name %s cannot contain the string '%s'."
|
||||
% [get_command_name(), arguments[0], s]
|
||||
)
|
||||
return false
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.inventory_manager.remove_item(command_params[0])
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,58 +0,0 @@
|
||||
# `play_snd file [player]`
|
||||
#
|
||||
# Plays the specified sound without blocking the currently running event.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *file*: Sound file to play
|
||||
# - *player*: Sound player to use. Can either be `_sound`, which is used to play non-
|
||||
# looping sound effects; `_music`, which plays looping music; or `_speech`, which
|
||||
# plays non-looping voice files (default: `_sound`)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name PlaySndCommand
|
||||
|
||||
|
||||
# The specified sound player
|
||||
var _snd_player: String
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[TYPE_STRING, TYPE_STRING],
|
||||
[null, "_sound"]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[1]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid sound player. Sound player %s not registered."
|
||||
% [get_command_name(), arguments[1]]
|
||||
)
|
||||
return false
|
||||
if not ResourceLoader.exists(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid parameter. File %s not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
_snd_player = arguments[1]
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.object_manager.get_object(command_params[1]).node.set_state(
|
||||
command_params[0]
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
@@ -1,34 +0,0 @@
|
||||
# `print string`
|
||||
#
|
||||
# Prints a message to the Godot debug window.
|
||||
# Use this for debugging game state.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *string*: The string to log
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name PrintCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[TYPE_STRING],
|
||||
[""]
|
||||
)
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
# Replace the names of any globals in "{ }" with their value
|
||||
print(escoria.globals_manager.replace_globals(command_params[0]))
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,89 +0,0 @@
|
||||
# `queue_event object event [channel] [block]`
|
||||
#
|
||||
# Queue an event to run.
|
||||
#
|
||||
# If you queue multiple events on a channel and none of them are blocking
|
||||
# events, all events will effectively run at the same time. As the events are
|
||||
# placed on the channel's queue, if one event contains a blocking command, the
|
||||
# next event on that channel's queue won't be processed until the blocking
|
||||
# command finishes.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - object: Object that holds the ESC script with the event
|
||||
# - event: Name of the event to queue
|
||||
# - channel: Channel to run the event on (default: `_front`). Using a
|
||||
# previously unused channel name will create a new channel.
|
||||
# - block: Whether to wait for the queue to finish. This is only possible, if
|
||||
# the queued event is not to be run on the same event as this command
|
||||
# (default: `false`)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name QueueEventCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_STRING, TYPE_STRING, TYPE_BOOL],
|
||||
[null, null, "_front", false]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"Object with global id %s not found." % arguments[0]
|
||||
)
|
||||
return false
|
||||
var node = escoria.object_manager.get_object(
|
||||
arguments[0]
|
||||
).node
|
||||
if not "esc_script" in node or node.esc_script == "":
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"Object with global id %s has no ESC script." % arguments[0]
|
||||
)
|
||||
return false
|
||||
var esc_script = escoria.esc_compiler.load_esc_file(node.esc_script)
|
||||
if not arguments[1] in esc_script.events:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"Event with name %s not found." % arguments[1]
|
||||
)
|
||||
return false
|
||||
if arguments[3] and not escoria.event_manager.is_channel_free(arguments[2]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"The queue %s doesn't accept a new event." % arguments[2]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(arguments: Array) -> int:
|
||||
var node = escoria.object_manager.get_object(
|
||||
arguments[0]
|
||||
).node
|
||||
var esc_script = escoria.esc_compiler.load_esc_file(node.esc_script)
|
||||
|
||||
return escoria.event_manager.queue_event_from_esc(
|
||||
esc_script,
|
||||
arguments[1], # event name
|
||||
arguments[2], # channel name
|
||||
arguments[3] # whether to block
|
||||
)
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,52 +0,0 @@
|
||||
# `queue_resource path [front_of_queue]`
|
||||
#
|
||||
# Queues the loading of the given resource into the resource cache.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *path*: Path of the resource to cache
|
||||
# - *front_of_queue*: Whether to put the resource at the front of the
|
||||
# queue in order to load it as soon as possible (default: `false`)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name QueueResourceCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[],
|
||||
[null, false]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array) -> bool:
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not ResourceLoader.exists(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: Invalid resource. Resource %s was not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.resource_cache.queue_resource(
|
||||
command_params[0],
|
||||
command_params[1]
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,40 +0,0 @@
|
||||
# `rand_global name max_value`
|
||||
#
|
||||
# Sets the given global to a random integer between 0 and `max_value`
|
||||
# (inclusive). e.g. Setting `max_value` to 2 could result in '0', '1' or '2'
|
||||
# being returned.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *name*: Name of the global to set
|
||||
# - *max_value*: Maximum possible integer value (inclusive) (default: 1)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name RandGlobalCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[TYPE_STRING, TYPE_INT],
|
||||
[null, 1]
|
||||
)
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
randomize()
|
||||
var rnd = randi() % (command_params[1] + 1)
|
||||
escoria.globals_manager.set_global(
|
||||
command_params[0],
|
||||
rnd
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,29 +0,0 @@
|
||||
# `repeat`
|
||||
#
|
||||
# Makes the current script loop back to the start. Currently the only way to
|
||||
# exit the loop is via the `stop` command which will stop the script
|
||||
# completely.
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name RepeatCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
0,
|
||||
[],
|
||||
[]
|
||||
)
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
return ESCExecution.RC_CANCEL
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,130 +0,0 @@
|
||||
# `say player text [type]`
|
||||
#
|
||||
# Displays the specified string as dialog spoken by the player. This command
|
||||
# blocks further event execution until the dialog has finished being 'said'
|
||||
# (either as displayed text or as audible speech from a file).
|
||||
#
|
||||
# Global variables can be substituted into the text by wrapping the global
|
||||
# name in braces.
|
||||
# e.g. say player "I have {coin_count} coins remaining".
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *player*: Global ID of the `ESCPlayer` or `ESCItem` object that is active.
|
||||
# You can specify `current_player` in order to refer to the currently active
|
||||
# player, e.g. in cases where multiple players are playable such as in games
|
||||
# like Maniac Mansion or Day of the Tentacle.
|
||||
# - *text*: Text to display.
|
||||
# - *type*: Dialog type to use. One of `floating` or `avatar`.
|
||||
# (default: the value set in the setting "Escoria/UI/Default Dialog Type")
|
||||
#
|
||||
# The text supports translation keys by prepending the key followed by
|
||||
# a colon (`:`) to the text.
|
||||
# For more details see: https://docs.escoria-framework.org/en/devel/getting_started/dialogs.html#translations
|
||||
#
|
||||
# Playing an audio file while the text is being
|
||||
# displayed is also supported by this mechanism.
|
||||
# For more details see: https://docs.escoria-framework.org/en/devel/getting_started/dialogs.html#recorded_speech
|
||||
#
|
||||
# Example: `say player ROOM1_PICTURE:"Picture's looking good."`
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name SayCommand
|
||||
|
||||
|
||||
const CURRENT_PLAYER_KEYWORD = "CURRENT_PLAYER"
|
||||
|
||||
|
||||
var globals_regex : RegEx # Regex to match global variables in strings
|
||||
|
||||
|
||||
# Constructor
|
||||
func _init() -> void:
|
||||
globals_regex = RegEx.new()
|
||||
# Use look-ahead/behind to capture the term (i.e. global) in braces
|
||||
globals_regex.compile("(?<=\\{)(.*)(?=\\})")
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_STRING, TYPE_STRING],
|
||||
[
|
||||
null,
|
||||
null,
|
||||
""
|
||||
],
|
||||
[
|
||||
true,
|
||||
false,
|
||||
true
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if arguments[0].to_upper() != CURRENT_PLAYER_KEYWORD \
|
||||
and not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: Invalid object: Object with global id %s not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
var dict: Dictionary
|
||||
|
||||
escoria.current_state = escoria.GAME_STATE.DIALOG
|
||||
|
||||
if !escoria.dialog_player:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: No dialog player was registered and the say command was encountered."
|
||||
% get_command_name()
|
||||
)
|
||||
escoria.current_state = escoria.GAME_STATE.DEFAULT
|
||||
return ESCExecution.RC_ERROR
|
||||
|
||||
if not escoria.main.current_scene.player:
|
||||
escoria.logger.warn(
|
||||
self,
|
||||
"[%s]: No player item in the current scene was registered and the say command was encountered."
|
||||
% get_command_name()
|
||||
)
|
||||
escoria.current_state = escoria.GAME_STATE.DEFAULT
|
||||
return ESCExecution.RC_CANCEL
|
||||
|
||||
# Replace the names of any globals in "{ }" with their value
|
||||
command_params[1] = escoria.globals_manager.replace_globals(command_params[1])
|
||||
|
||||
var speaking_character_global_id = escoria.main.current_scene.player.global_id \
|
||||
if command_params[0].to_upper() == CURRENT_PLAYER_KEYWORD \
|
||||
else command_params[0]
|
||||
|
||||
escoria.dialog_player.say(
|
||||
speaking_character_global_id,
|
||||
command_params[2],
|
||||
command_params[1]
|
||||
)
|
||||
yield(escoria.dialog_player, "say_finished")
|
||||
escoria.current_state = escoria.GAME_STATE.DEFAULT
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,69 +0,0 @@
|
||||
# `sched_event time object event`
|
||||
#
|
||||
# Schedules an event to run at a later time.
|
||||
#
|
||||
# If another event is already running when the scheduled
|
||||
# event is supposed to start, execution of the scheduled event
|
||||
# begins when the already-running event ends.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *time*: Time in seconds until the scheduled event starts
|
||||
# - *object*: Global ID of the ESCItem that holds the ESC script
|
||||
# - *event*: Name of the event to schedule
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name SchedEventCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
3,
|
||||
[TYPE_INT, TYPE_STRING, TYPE_STRING],
|
||||
[null, null, null]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[1]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid object. Object with global id %s not found."
|
||||
% [get_command_name(), arguments[1]]
|
||||
)
|
||||
return false
|
||||
elif not escoria.object_manager.get_object(arguments[1]).events\
|
||||
.has(arguments[2]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid object event. Object with global id %s has no event %s."
|
||||
% [
|
||||
get_command_name(),
|
||||
arguments[1],
|
||||
arguments[2],
|
||||
]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.event_manager.schedule_event(
|
||||
escoria.object_manager.get_object(command_params[1])\
|
||||
.events[command_params[2]],
|
||||
command_params[0]
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,50 +0,0 @@
|
||||
# `set_active object active`
|
||||
#
|
||||
# Changes the "active" state of the object.
|
||||
# Inactive objects are invisible in the room.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *object* Global ID of the object
|
||||
# - *active* Whether `object` should be active. `active` can be `true` or `false`.
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name SetActiveCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_BOOL],
|
||||
[null, null]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid object. Object with global id %s not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.object_manager.get_object(command_params[0]).active = \
|
||||
command_params[1]
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,41 +0,0 @@
|
||||
# `set_active_if_exists object active`
|
||||
#
|
||||
# *** FOR INTERNAL USE ONLY ***
|
||||
#
|
||||
# Changes the "active" state of the object in the current room if it currently
|
||||
# exists in the object manager. If it doesn't, then, unlike set_active, we don't
|
||||
# fail and we just carry on.
|
||||
#
|
||||
# Inactive objects are invisible in the room.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *object* Global ID of the object
|
||||
# - *active* Whether `object` should be active. `active` can be `true` or `false`.
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name SetActiveIfExistsCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_BOOL],
|
||||
[null, null]
|
||||
)
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
if escoria.object_manager.has(command_params[0]):
|
||||
escoria.object_manager.get_object(command_params[0]).active = \
|
||||
command_params[1]
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,79 +0,0 @@
|
||||
# `set_angle object target_degrees [wait]`
|
||||
#
|
||||
# Turns a movable `ESCItem` or `ESCPlayer` to face a given target direction.
|
||||
#
|
||||
# Angles 0 and 360 are the same and correspond to UP/NORTH,
|
||||
# 90 is RIGHT/EAST, 180 is DOWN/SOUTH, 270 is LEFT/WEST etc.
|
||||
# The rotation direction will be determined by the shortest path - e.g.
|
||||
# rotating from facing up (0 degrees) to left (270) will be a 90 degree turn
|
||||
# anti-clockwise rather than a 270 degree clockwise turn.
|
||||
#
|
||||
# The final animation used is determined by the directions which have
|
||||
# been configured for the object. If the item has a direction configured which
|
||||
# has been drawn to show it facing to the right, and this direction has been
|
||||
# defined to cover the angle from 45 to 135 degrees, setting the target angle
|
||||
# to 120 degrees will result in the right-facing animation being used.
|
||||
#
|
||||
# The number of intermediate animations shown while turning the
|
||||
# item will depend on the directions specified in the item's definition. A 16
|
||||
# direction character will turn through 8 different directions to turn 180
|
||||
# degrees, a 4 direction character only 2. The wait time will determine how
|
||||
# long the idle animation for each direction is played before using the next
|
||||
# direction's animation. As such, if wait was set to 1 second, a 16 direction
|
||||
# character would take 8 seconds to turn 180 degrees, a 4 direction character
|
||||
# would take 2 seconds.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *object*: Global ID of the object to turn
|
||||
# - *target_degrees*: Number of degrees by which `object` is to be turned
|
||||
# - *wait*: Number of seconds to wait for while playing each animation occurring
|
||||
# between the current angle of `object` and the target angle. A value of
|
||||
# `0` will complete the turn immediately (default: `0`)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name SetAngleCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, [TYPE_REAL, TYPE_INT], [TYPE_REAL, TYPE_INT]],
|
||||
[null, null, 0.0]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid object. Object with global id %s not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
# HACK Countering the fact that angle_to_point() function gives
|
||||
# angle against X axis not Y, we need to check direction using (angle-90°).
|
||||
# Since the ESC command already gives the right angle, we add 90.
|
||||
escoria.object_manager.get_object(command_params[0]).node\
|
||||
.set_angle(
|
||||
wrapi(int(command_params[1]) + 90, 0, 360),
|
||||
command_params[2]
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,77 +0,0 @@
|
||||
# `set_animations object animations`
|
||||
#
|
||||
# Sets the animation resource for the given `ESCPlayer` or movable `ESCItem`.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *object*: Global ID of the object whose animation resource is to be updated
|
||||
# - *animations*: The path of the animation resource to use
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name SetAnimationsCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_STRING],
|
||||
[null, null]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid object. Object with global id %s not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
if not ResourceLoader.exists(arguments[1]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid animation resource. The animation resource %s was not found."
|
||||
% [get_command_name(), arguments[1]]
|
||||
)
|
||||
return false
|
||||
|
||||
(escoria.object_manager.get_object(arguments[0]).node as ESCPlayer).validate_animations(load(arguments[1]))
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(command_params[0]).node as ESCPlayer)\
|
||||
.animations = load(command_params[1])
|
||||
if not escoria.globals_manager.has(
|
||||
escoria.room_manager.GLOBAL_ANIMATION_RESOURCES
|
||||
):
|
||||
escoria.globals_manager.set_global(
|
||||
escoria.room_manager.GLOBAL_ANIMATION_RESOURCES,
|
||||
{},
|
||||
true
|
||||
)
|
||||
var animations = escoria.globals_manager.get_global(
|
||||
escoria.room_manager.GLOBAL_ANIMATION_RESOURCES
|
||||
)
|
||||
animations[command_params[0]] = command_params[1]
|
||||
escoria.globals_manager.set_global(
|
||||
escoria.room_manager.GLOBAL_ANIMATION_RESOURCES,
|
||||
animations,
|
||||
true
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
# `set_global name value [force=false]`
|
||||
#
|
||||
# Changes the value of a global.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *name*: Name of the global
|
||||
# - *value*: Value to set the global to (can be of type string, boolean, integer
|
||||
# or float)
|
||||
# - *force*: if false, setting a global whose name is reserved will
|
||||
# trigger an error. Defaults to false. Reserved globals are: ESC_LAST_SCENE,
|
||||
# FORCE_LAST_SCENE_NULL, ANIMATION_RESOURCES, ESC_CURRENT_SCENE
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name SetGlobalCommand
|
||||
|
||||
|
||||
const ILLEGAL_STRINGS = ["/"]
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, [TYPE_INT, TYPE_BOOL, TYPE_STRING], TYPE_BOOL],
|
||||
[null, null, false]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
for s in ILLEGAL_STRINGS:
|
||||
if s in arguments[0]:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid global variable. Global variable %s cannot contain the string '%s'."
|
||||
% [get_command_name(), arguments[0], s]
|
||||
)
|
||||
return false
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.globals_manager.set_global(
|
||||
command_params[0],
|
||||
command_params[1],
|
||||
command_params[2]
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,38 +0,0 @@
|
||||
# `set_globals pattern value`
|
||||
#
|
||||
# Changes the value of multiple globals using a wildcard pattern, where `*`
|
||||
# matches zero or more arbitrary characters and `?` matches any single
|
||||
# character except a period (".").
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *pattern*: Pattern to use to match the names of the globals to change
|
||||
# - *value*: Value to set (can be of type string, boolean, integer or float)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name SetGlobalsCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, [TYPE_BOOL, TYPE_STRING, TYPE_INT]],
|
||||
[null, null]
|
||||
)
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.globals_manager.set_global_wildcard(
|
||||
command_params[0],
|
||||
command_params[1]
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,35 +0,0 @@
|
||||
# `set_gui_visible visible`
|
||||
#
|
||||
# Show or hide the GUI.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *visible*: Whether the GUI should be visible (`true` or `false`)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name SetGuiVisibleCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[TYPE_BOOL],
|
||||
[null]
|
||||
)
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
if command_params[0]:
|
||||
escoria.main.current_scene.game.show_ui()
|
||||
else:
|
||||
escoria.main.current_scene.game.hide_ui()
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,49 +0,0 @@
|
||||
# `set_interactive object interactive`
|
||||
#
|
||||
# Sets whether an object is interactive.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *object*: Global ID of the object to change
|
||||
# - *interactive*: Whether the object should be interactive
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name SetInteractiveCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_BOOL],
|
||||
[null, null]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid object. Object with global id %s not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.object_manager.get_object(command_params[0]).interactive = \
|
||||
command_params[1]
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,47 +0,0 @@
|
||||
# `set_speed object speed`
|
||||
#
|
||||
# Sets the speed of a `ESCPlayer` or movable `ESCItem`.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *object*: Global ID of the `ESCPlayer` or movable `ESCItem`
|
||||
# - *speed*: Speed value for `object` in pixels per second.
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name SetSpeedCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_INT],
|
||||
[null, null]
|
||||
)
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid object. Object with global id %s not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(command_params[0]).node as ESCItem).\
|
||||
set_speed(command_params[1])
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,62 +0,0 @@
|
||||
# `set_state object state [immediate]`
|
||||
#
|
||||
# Changes the state of `object` to the one specified.
|
||||
# This command is primarily used to play animations.
|
||||
#
|
||||
# If the specified object's associated animation player has an animation
|
||||
# with the same name, that animation is also played.
|
||||
#
|
||||
# When the "state" of the object is set - for example, a door may be set
|
||||
# to a "closed" state - this plays the matching "close" animation if one exists
|
||||
# (to show the door closing in the game). When you re-enter the room (via a
|
||||
# different entry), or restore a saved game, the state of the door object
|
||||
# will be restored - showing the door as a closed door.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *object*: Global ID of the object whose state is to be changed
|
||||
# - *immediate*: If an animation for the state exists, specifies
|
||||
# whether it is to skip to the last frame. Can be `true` or `false`.
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name SetStateCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_STRING, TYPE_BOOL],
|
||||
[null, null, false]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid object. Object %s not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(command_params[0]) as ESCObject).set_state(
|
||||
command_params[1],
|
||||
command_params[2]
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,77 +0,0 @@
|
||||
# `show_menu menu_type`
|
||||
#
|
||||
# Shows either the main menu or the pause menu. Transitions to the menu using
|
||||
# the default transition type (set in the Escoria project settings).
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *menu_type*: Which menu to show. Can be either `main` or `pause` (default: `main`)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name ShowMenuCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
0,
|
||||
[TYPE_STRING],
|
||||
["main"]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not arguments[0] in ["main", "pause"]:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: menu %s is invalid." % [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
if not escoria.game_scene.is_inside_tree():
|
||||
escoria.add_child(escoria.game_scene)
|
||||
|
||||
# Transition out from current scene
|
||||
var transition_id = escoria.main.scene_transition.transition(
|
||||
"",
|
||||
ESCTransitionPlayer.TRANSITION_MODE.OUT
|
||||
)
|
||||
|
||||
if transition_id != ESCTransitionPlayer.TRANSITION_ID_INSTANT:
|
||||
while yield(
|
||||
escoria.main.scene_transition,
|
||||
"transition_done"
|
||||
) != transition_id:
|
||||
pass
|
||||
|
||||
if command_params[0] == "main":
|
||||
escoria.game_scene.show_main_menu()
|
||||
elif command_params[0] == "pause":
|
||||
escoria.game_scene.pause_game()
|
||||
|
||||
# Transition in to menu
|
||||
transition_id = escoria.main.scene_transition.transition()
|
||||
|
||||
if transition_id != ESCTransitionPlayer.TRANSITION_ID_INSTANT:
|
||||
while yield(
|
||||
escoria.main.scene_transition,
|
||||
"transition_done"
|
||||
) != transition_id:
|
||||
pass
|
||||
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,122 +0,0 @@
|
||||
# `slide object target [speed]`
|
||||
#
|
||||
# Moves `object` towards the position of `target`. This command is
|
||||
# non-blocking.
|
||||
#
|
||||
# - *object*: Global ID of the object to move
|
||||
# - *target*: Global ID of the target object
|
||||
# - *speed*: The speed at which to slide in pixels per second (will default to
|
||||
# the speed configured on the `object`)
|
||||
#
|
||||
# **Warning** This command does not respect the room's navigation polygons, so
|
||||
# `object` can be moved even when outside walkable areas.
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name SlideCommand
|
||||
|
||||
|
||||
# A hash of tweens currently active for animated items
|
||||
var _tweens: Dictionary
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_STRING, TYPE_INT],
|
||||
[null, null, -1]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid first object. Object with global id %s not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
if not escoria.object_manager.has(arguments[1]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid second object. Object with global id %s not found."
|
||||
% [get_command_name(), arguments[1]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Slide the object by generating a tween
|
||||
#
|
||||
# #### Parameters
|
||||
#
|
||||
# - *source*: The item to slide
|
||||
# - *destination*: The destination item to slide to
|
||||
# - *speed*: The speed at which to slide in pixels per second (will default to
|
||||
# the speed configured on the `object`)
|
||||
#
|
||||
#
|
||||
# **Returns** The generated (and started) tween
|
||||
func _slide_object(
|
||||
source: ESCObject,
|
||||
destination: ESCObject,
|
||||
speed: int = -1
|
||||
) -> Tween:
|
||||
if speed == -1:
|
||||
speed = source.node.speed
|
||||
|
||||
if _tweens.has(source.global_id):
|
||||
var tween = (_tweens.get(source.global_id) as Tween)
|
||||
tween.stop_all()
|
||||
if (escoria.main as Node).has_node(tween.name):
|
||||
(escoria.main as Node).remove_child(tween)
|
||||
|
||||
var tween = Tween.new()
|
||||
(escoria.main as Node).add_child(tween)
|
||||
|
||||
tween.connect("tween_completed", self, "_on_tween_completed")
|
||||
|
||||
var duration = source.node.position.distance_to(
|
||||
destination.node.position
|
||||
) / speed
|
||||
|
||||
tween.interpolate_property(
|
||||
source.node,
|
||||
"global_position",
|
||||
source.node.global_position,
|
||||
destination.node.global_position,
|
||||
duration
|
||||
)
|
||||
|
||||
tween.start()
|
||||
|
||||
_tweens[source.global_id] = tween
|
||||
|
||||
return tween
|
||||
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
_slide_object(
|
||||
escoria.object_manager.get_object(command_params[0]),
|
||||
escoria.object_manager.get_object(command_params[1]),
|
||||
command_params[2]
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
for tween in _tweens:
|
||||
tween.stop_all()
|
||||
|
||||
|
||||
func _on_tween_completed(tween: Tween, _key: NodePath):
|
||||
if tween:
|
||||
tween.queue_free()
|
||||
@@ -1,32 +0,0 @@
|
||||
# `slide_block object target [speed]`
|
||||
#
|
||||
# Moves `object` towards the position of `target`. This command is
|
||||
# blocking.
|
||||
#
|
||||
# - *object*: Global ID of the object to move
|
||||
# - *target*: Global ID of the target object
|
||||
# - *speed*: The speed at which to slide in pixels per second (will default to
|
||||
# the speed configured on the `object`)
|
||||
#
|
||||
# **Warning** This command does not respect the room's navigation polygons, so
|
||||
# `object` can be moved even when outside walkable areas.
|
||||
#
|
||||
# @ESC
|
||||
extends SlideCommand
|
||||
class_name SlideBlockCommand
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
var tween = _slide_object(
|
||||
escoria.object_manager.get_object(command_params[0]),
|
||||
escoria.object_manager.get_object(command_params[1]),
|
||||
command_params[2]
|
||||
)
|
||||
yield(tween, "tween_all_completed")
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
.interrupt()
|
||||
@@ -1,95 +0,0 @@
|
||||
# `spawn identifier path [is_active] [position_target]`
|
||||
#
|
||||
# Programmatically adds a new item to the scene.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *identifier*: Global ID to use for the new object
|
||||
# - *path*: Path to the scene file of the object
|
||||
# - *is_active*: Whether the new object should be set to active (default: `true`)
|
||||
# - *position_target*: Global ID of another object that will be used to
|
||||
# position the new object (when omitted, the new object's position is not specified)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name SpawnCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_STRING, TYPE_BOOL, TYPE_STRING],
|
||||
[null, null, true, null]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if arguments[0].empty() \
|
||||
or arguments[0] in escoria.object_manager.RESERVED_OBJECTS:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: global_id (%s) is invalid. The global_id was either empty or is reserved."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
if not ResourceLoader.exists(arguments[1]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: Invalid scene path: %s not found."
|
||||
% [get_command_name(), arguments[1]]
|
||||
)
|
||||
return false
|
||||
if arguments[3] and not escoria.object_manager.has(arguments[3]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid object: Object with global id %s not found."
|
||||
% [get_command_name(), arguments[3]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
var res_scene = escoria.resource_cache.get_resource(command_params[1])
|
||||
|
||||
# Load room scene
|
||||
var scene = res_scene.instance()
|
||||
if scene:
|
||||
escoria.main.get_node("/root").add_child(scene)
|
||||
if command_params[3]:
|
||||
var obj = escoria.object_manager.get_object(command_params[3])
|
||||
scene.set_position(obj.get_global_position())
|
||||
escoria.inputs_manager.hotspot_focused = ""
|
||||
|
||||
escoria.object_manager.register_object(
|
||||
ESCObject.new(
|
||||
command_params[0],
|
||||
scene
|
||||
),
|
||||
null,
|
||||
true
|
||||
)
|
||||
|
||||
escoria.object_manager.get_object(command_params[0]).active = \
|
||||
command_params[2]
|
||||
|
||||
else:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: Invalid scene. Failed to load scene %s."
|
||||
% [get_command_name(), command_params[1]]
|
||||
)
|
||||
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,29 +0,0 @@
|
||||
# `stop`
|
||||
#
|
||||
# Stops the current event's execution. Note that this will stop the current
|
||||
# script entirely - if you're within a conditional block, the code after the
|
||||
# conditional block will not be executed.
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name StopCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
0,
|
||||
[],
|
||||
[]
|
||||
)
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
return ESCExecution.RC_CANCEL
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,68 +0,0 @@
|
||||
# `stop_snd [audio_bus]`
|
||||
#
|
||||
# Stops the given audio bus's stream.
|
||||
#
|
||||
# By default there are 3 audio buses set up by Escoria : `_sound`, which is
|
||||
# used to play non-looping sound effects; `_music`, which plays looping music;
|
||||
# and `_speech`, which plays non-looping voice files (default: `_music`).
|
||||
#
|
||||
# Each simultaneous sound (e.g. multiple game sound effects) will require its
|
||||
# own bus. To create additional buses, see the Godot sound documentation :
|
||||
# [Audio buses](https://docs.godotengine.org/en/stable/tutorials/audio/audio_buses.html#doc-audio-buses)
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *audio_bus*: Bus to stop ("_sound", "_music", "_speech", or a custom
|
||||
# audio bus you have created.)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name StopSndCommand
|
||||
|
||||
|
||||
# The specified sound player
|
||||
var _snd_player: String
|
||||
|
||||
# The previous sound state, saved for interrupting
|
||||
var previous_snd_state: String
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
0,
|
||||
[TYPE_STRING],
|
||||
["_music"]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid sound player. Sound player %s not registered."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
_snd_player = arguments[0]
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
previous_snd_state = escoria.object_manager.get_object(command_params[0]).node.state
|
||||
escoria.object_manager.get_object(command_params[0]).node.set_state(
|
||||
"off"
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.object_manager.get_object(_snd_player).node.set_state(
|
||||
previous_snd_state
|
||||
)
|
||||
@@ -1,68 +0,0 @@
|
||||
# `teleport object target`
|
||||
#
|
||||
# Instantly moves an object to a new position.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *object*: Global ID of the object to move
|
||||
# - *target*: Global ID of the object to use as the destination coordinates
|
||||
# for `object`
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name TeleportCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_STRING],
|
||||
[null, null]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid first object. Object to teleport with global id %s not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
|
||||
if not (escoria.object_manager.get_object(arguments[0]).node as ESCItem):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid first object. Object to teleport with global id %s must be of or derived from type ESCItem."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[1]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid second object. Destination location to teleport to with global id %s not found."
|
||||
% [get_command_name(), arguments[1]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(command_params[0]).node as ESCItem) \
|
||||
.teleport(
|
||||
escoria.object_manager.get_object(command_params[1]).node
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,62 +0,0 @@
|
||||
# `teleport_pos object x y`
|
||||
#
|
||||
# Instantly moves an object to the specified (absolute) coordinates.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *object*: Global ID of the object to move
|
||||
# - *x*: X-coordinate of destination position
|
||||
# - *y*: Y-coordinate of destination position
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name TeleportPosCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
3,
|
||||
[TYPE_STRING, TYPE_INT, TYPE_INT],
|
||||
[null, null, null]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid first object. Object to teleport with global id %s not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
|
||||
if not (escoria.object_manager.get_object(arguments[0]).node as ESCItem):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid first object. Object to teleport with global id %s must be of or derived from type ESCItem."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(command_params[0]).node as ESCItem) \
|
||||
.teleport_to(
|
||||
Vector2(int(command_params[1]), int(command_params[2])
|
||||
)
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,90 +0,0 @@
|
||||
# `transition transition_name mode [delay]`
|
||||
#
|
||||
# Runs a transition effect - generally used when entering or leaving a room.
|
||||
# Transitions are implemented as Godot shaders. Custom transitions can be made
|
||||
# by creating a shader in the `game/scenes/transitions/shaders/` folder within
|
||||
# the escoria-core plugin folder.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *transition_name*: Name of the transition shader from one of the transition
|
||||
# directories
|
||||
# - *mode*: Set to `in` to transition into or `out` to transition out of the room
|
||||
# - *delay*: Delay in seconds before starting the transition (default: `1.0`)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name TransitionCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_STRING, TYPE_REAL],
|
||||
[null, null, 1.0]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.main.scene_transition.has_transition(arguments[0]) \
|
||||
and not arguments[0].empty():
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: argument invalid. Transition with name '%s' doesn't exist."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
if not arguments[1] in ["in", "out"]:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: argument invalid" +
|
||||
"Transition type 'in' or 'out' expected, but '%s' was provided."
|
||||
% [get_command_name(), arguments[1]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
var transition_id = escoria.main.scene_transition.transition(
|
||||
command_params[0],
|
||||
ESCTransitionPlayer.TRANSITION_MODE.OUT if command_params[1] == "out" \
|
||||
else ESCTransitionPlayer.TRANSITION_MODE.IN,
|
||||
command_params[2]
|
||||
)
|
||||
|
||||
if transition_id == ESCTransitionPlayer.TRANSITION_ID_INSTANT:
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"Performing instant transition."
|
||||
)
|
||||
escoria.main.scene_transition.reset_shader_cutoff()
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"Starting transition #%s [%s, %s]."
|
||||
% [transition_id, command_params[0], command_params[1]]
|
||||
)
|
||||
while yield(
|
||||
escoria.main.scene_transition,
|
||||
"transition_done"
|
||||
) != transition_id:
|
||||
pass
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"Ending transition #%s [%s, %s]."
|
||||
% [transition_id, command_params[0], command_params[1]])
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
# Do nothing
|
||||
pass
|
||||
@@ -1,79 +0,0 @@
|
||||
# `turn_to object object_to_face [wait]`
|
||||
#
|
||||
# Turns `object` to face another object.
|
||||
#
|
||||
# Unlike movement commands, `turn_to` will not automatically reference an
|
||||
# `ESCLocation` that is a child of an `ESCItem.`
|
||||
# To turn towards an `ESCLocation` that is a child of an `ESCItem`, give the
|
||||
# `ESCLocation` a `Global ID` and use this value as the `object_to_face`
|
||||
# parameter.
|
||||
#
|
||||
# While turning, the number of directions the item faces will depend on
|
||||
# the number of `directions` defined for the object. A 16 direction character
|
||||
# for example will display 8 directions of animation while turning to face an
|
||||
# object that is 180 degrees away, a 4 direction character would only face 2
|
||||
# directions to make the same turn. As the idle animation will be played for
|
||||
# `wait` seconds for each direction the object faces, a 16 direction character
|
||||
# would take 8 seconds to rotate 180 degrees with a 1 second `wait` time,
|
||||
# whereas a 4 direction character would only take 2 seconds to make the same
|
||||
# rotation.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *object*: Global ID of the object to be turned
|
||||
# - *object_to_face*: Global ID of the object to turn towards
|
||||
# - *wait*: Length of time to wait in seconds for each intermediate angle.
|
||||
# If set to 0, the turnaround is immediate (default: `0`)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name TurnToCommand
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_STRING, TYPE_REAL],
|
||||
[null, null, 0.0]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: Cannot turn \"%s\". Object not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
if not escoria.object_manager.has(arguments[1]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: Cannot turn \"%s\" towards \"%s\". \"%s\" was not found."
|
||||
% [get_command_name(), arguments[0], arguments[1] , arguments[1]]
|
||||
)
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
(escoria.object_manager.get_object(command_params[0]).node as ESCItem)\
|
||||
.turn_to(
|
||||
escoria.object_manager.get_object(command_params[1]).node,
|
||||
command_params[2]
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
escoria.logger.debug(
|
||||
self,
|
||||
"[%s] interrupt() function not implemented." % get_command_name()
|
||||
)
|
||||
@@ -1,58 +0,0 @@
|
||||
# `wait seconds`
|
||||
#
|
||||
# Blocks execution of the current event.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *seconds*: Number of seconds to block
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name WaitCommand
|
||||
|
||||
# Timer to wait for
|
||||
var timer: Timer
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
1,
|
||||
[[TYPE_INT, TYPE_REAL]],
|
||||
[null]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
# We can't wait for 0 or fewer seconds, now, can we?
|
||||
if arguments[0] <= 0.0:
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: argument invalid. %s is an invalid amount of time to wait (must be positive)."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
|
||||
return true
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
timer = Timer.new()
|
||||
timer.wait_time = float(command_params[0])
|
||||
escoria.add_child(timer)
|
||||
timer.start()
|
||||
yield(timer, "timeout")
|
||||
escoria.remove_child(timer)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
if timer == null:
|
||||
return
|
||||
|
||||
timer.emit_signal("timeout")
|
||||
@@ -1,77 +0,0 @@
|
||||
# `walk object target [walk_fast]`
|
||||
#
|
||||
# Moves the specified `ESCPlayer` or movable `ESCItem` to the `target`
|
||||
# ESCItem's location while playing `object`'s walking animation. This command
|
||||
# is non-blocking.
|
||||
# This command will use the normal walk speed by default.
|
||||
# If the `target` ESCItem has a child ESCLocation node, the walk destination
|
||||
# will be the position of the ESCLocation.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *object*: Global ID of the object to move
|
||||
# - *target*: Global ID of the target object
|
||||
# - *walk_fast*: Whether to walk fast (`true`) or normal speed (`false`)
|
||||
# (default: false)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name WalkCommand
|
||||
|
||||
|
||||
# Walking object
|
||||
var walking_object_node: ESCItem
|
||||
|
||||
# Target object
|
||||
var target_object_node: ESCObject
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_STRING, TYPE_BOOL],
|
||||
[null, null, false]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid first object. The object with global id %s to make walk was not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
if not escoria.object_manager.has(arguments[1]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid second object. The object to walk to with global id %s was not found."
|
||||
% [get_command_name(), arguments[1]]
|
||||
)
|
||||
return false
|
||||
|
||||
walking_object_node = (escoria.object_manager.get_object(
|
||||
arguments[0]).node as ESCItem
|
||||
)
|
||||
target_object_node = escoria.object_manager.get_object(arguments[1])
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.action_manager.do(
|
||||
escoria.action_manager.ACTION.BACKGROUND_CLICK,
|
||||
command_params
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
if walking_object_node != null:
|
||||
walking_object_node.stop_walking_now()
|
||||
@@ -1,79 +0,0 @@
|
||||
# `walk_block object target [walk_fast]`
|
||||
#
|
||||
# Moves the specified `ESCPlayer` or movable `ESCItem` to the `target`
|
||||
# ESCItem's location while playing `object`'s walking animation. This command
|
||||
# is blocking.
|
||||
# This command will use the normal walk speed by default.
|
||||
# If the `target` ESCItem has a child ESCLocation node, the walk destination
|
||||
# will be the position of the ESCLocation.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *object*: Global ID of the object to move
|
||||
# - *target*: Global ID of the target object
|
||||
# - *walk_fast*: Whether to walk fast (`true`) or normal speed (`false`).
|
||||
# (default: false)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name WalkBlockCommand
|
||||
|
||||
|
||||
# Walking object
|
||||
var walking_object_node: ESCItem
|
||||
|
||||
# Target object
|
||||
var target_object_node: ESCObject
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
2,
|
||||
[TYPE_STRING, TYPE_STRING, TYPE_BOOL],
|
||||
[null, null, false]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid first object. The object to make walk with global id %s was not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
if not escoria.object_manager.has(arguments[1]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid second object. The object to walk to with global id %s was not found."
|
||||
% [get_command_name(), arguments[1]]
|
||||
)
|
||||
return false
|
||||
|
||||
walking_object_node = (escoria.object_manager.get_object(
|
||||
arguments[0]).node as ESCItem
|
||||
)
|
||||
target_object_node = escoria.object_manager.get_object(arguments[1])
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.action_manager.do(
|
||||
escoria.action_manager.ACTION.BACKGROUND_CLICK,
|
||||
command_params
|
||||
)
|
||||
yield(walking_object_node, "arrived")
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
if walking_object_node != null and is_instance_valid(walking_object_node) \
|
||||
and not walking_object_node is ESCPlayer:
|
||||
walking_object_node.stop_walking_now()
|
||||
@@ -1,65 +0,0 @@
|
||||
# `walk_to_pos object x y [walk_fast]`
|
||||
#
|
||||
# Moves the specified `ESCPlayer` or movable `ESCItem` to the absolute
|
||||
# coordinates provided while playing the `object`'s walking animation.
|
||||
# This command is non-blocking.
|
||||
# This command will use the normal walk speed by default.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *object*: Global ID of the object to move
|
||||
# - *x*: X-coordinate of target position
|
||||
# - *y*: Y-coordinate of target position
|
||||
# - *walk_fast*: Whether to walk fast (`true`) or normal speed (`false`).
|
||||
# (default: false)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name WalkToPosCommand
|
||||
|
||||
|
||||
# Walking object
|
||||
var walking_object_node: ESCItem
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
3,
|
||||
[TYPE_STRING, TYPE_INT, TYPE_INT, TYPE_BOOL],
|
||||
[null, null, null, false]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid first object. The object to make walk with global id %s was not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
|
||||
walking_object_node = (escoria.object_manager.get_object(
|
||||
arguments[0]).node as ESCItem
|
||||
)
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.action_manager.do(escoria.action_manager.ACTION.BACKGROUND_CLICK, [
|
||||
command_params[0],
|
||||
Vector2(command_params[1], command_params[2]), command_params[3]
|
||||
])
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
if walking_object_node != null and not walking_object_node is ESCPlayer:
|
||||
walking_object_node.stop_walking_now()
|
||||
@@ -1,69 +0,0 @@
|
||||
# `walk_to_pos_block object x y [walk_fast]`
|
||||
#
|
||||
# Moves the specified `ESCPlayer` or movable `ESCItem` to the absolute
|
||||
# coordinates provided while playing the `object`'s walking animation.
|
||||
# This command is blocking.
|
||||
# This command will use the normal walk speed by default.
|
||||
#
|
||||
# **Parameters**
|
||||
#
|
||||
# - *object*: Global ID of the object to move
|
||||
# - *x*: X-coordinate of target position
|
||||
# - *y*: Y-coordinate of target position
|
||||
# - *walk_fast*: Whether to walk fast (`true`) or normal speed (`false`).
|
||||
# (default: false)
|
||||
#
|
||||
# @ESC
|
||||
extends ESCBaseCommand
|
||||
class_name WalkToPosBlockCommand
|
||||
|
||||
|
||||
# Walking object
|
||||
var walking_object_node: ESCItem
|
||||
|
||||
|
||||
# Return the descriptor of the arguments of this command
|
||||
func configure() -> ESCCommandArgumentDescriptor:
|
||||
return ESCCommandArgumentDescriptor.new(
|
||||
3,
|
||||
[TYPE_STRING, TYPE_INT, TYPE_INT, TYPE_BOOL],
|
||||
[null, null, null, false]
|
||||
)
|
||||
|
||||
|
||||
# Validate whether the given arguments match the command descriptor
|
||||
func validate(arguments: Array):
|
||||
if not .validate(arguments):
|
||||
return false
|
||||
|
||||
if not escoria.object_manager.has(arguments[0]):
|
||||
escoria.logger.error(
|
||||
self,
|
||||
"[%s]: invalid first object. The object to make walk with global id %s was not found."
|
||||
% [get_command_name(), arguments[0]]
|
||||
)
|
||||
return false
|
||||
|
||||
walking_object_node = (escoria.object_manager.get_object(
|
||||
arguments[0]).node as ESCItem
|
||||
)
|
||||
return true
|
||||
|
||||
|
||||
# Run the command
|
||||
func run(command_params: Array) -> int:
|
||||
escoria.action_manager.do(escoria.action_manager.ACTION.BACKGROUND_CLICK, [
|
||||
command_params[0],
|
||||
Vector2(command_params[1], command_params[2]), command_params[3]
|
||||
])
|
||||
yield(
|
||||
(escoria.object_manager.get_object(command_params[0]).node as ESCItem),
|
||||
"arrived"
|
||||
)
|
||||
return ESCExecution.RC_OK
|
||||
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
if walking_object_node != null and not walking_object_node is ESCPlayer:
|
||||
walking_object_node.stop_walking_now()
|
||||