···11-[plugin]
22-33-name="CRT"
44-description="A high-quality CRT (Cathode Ray Tube) shader for Godot 4.x that simulates the look and feel of old CRT displays with various customizable effects."
55-author="nofacer"
66-version="1.0.1"
77-script="plugin.gd"
···11-MIT License
22-33-Copyright (c) 2016-2023 The Godot Engine community
44-55-Permission is hereby granted, free of charge, to any person obtaining a copy
66-of this software and associated documentation files (the "Software"), to deal
77-in the Software without restriction, including without limitation the rights
88-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99-copies of the Software, and to permit persons to whom the Software is
1010-furnished to do so, subject to the following conditions:
1111-1212-The above copyright notice and this permission notice shall be included in all
1313-copies or substantial portions of the Software.
1414-1515-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121-SOFTWARE.
-1346
addons/godot-git-plugin/THIRDPARTY.md
···11-# Third-Party Notices
22-33-The Godot Git Plugin source code uses the following third-party source code:
44-55-1. godotengine/godot-cpp - MIT License - https://github.com/godotengine/godot-cpp/tree/02336831735fd6affbe0a6fa252ec98d3e78120c
66-2. libgit2/libgit2 - GPLv2 with a special Linking Exception - https://github.com/libgit2/libgit2/tree/b7bad55e4bb0a285b073ba5e02b01d3f522fc95d
77-3. libssh2/libssh2 - BSD-3-Clause License - https://github.com/libssh2/libssh2/tree/635caa90787220ac3773c1d5ba11f1236c22eae8
88-4. openssl - OpenSSL License - https://github.com/openssl/openssl/tree/26baecb28ce461696966dac9ac889629db0b3b96
99-1010-## License Texts
1111-1212-### godotengine/godot-cpp
1313-1414-```
1515-# MIT License
1616-1717-Copyright (c) 2017-2022 Godot Engine contributors.
1818-1919-Permission is hereby granted, free of charge, to any person obtaining a copy
2020-of this software and associated documentation files (the "Software"), to deal
2121-in the Software without restriction, including without limitation the rights
2222-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2323-copies of the Software, and to permit persons to whom the Software is
2424-furnished to do so, subject to the following conditions:
2525-2626-The above copyright notice and this permission notice shall be included in all
2727-copies or substantial portions of the Software.
2828-2929-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3030-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3131-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3232-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3333-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3434-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3535-SOFTWARE.
3636-```
3737-3838-### libgit2/libgit2
3939-4040-```
4141- libgit2 is Copyright (C) the libgit2 contributors,
4242- unless otherwise stated. See the AUTHORS file for details.
4343-4444- Note that the only valid version of the GPL as far as this project
4545- is concerned is _this_ particular version of the license (ie v2, not
4646- v2.2 or v3.x or whatever), unless explicitly otherwise stated.
4747-4848-----------------------------------------------------------------------
4949-5050- LINKING EXCEPTION
5151-5252- In addition to the permissions in the GNU General Public License,
5353- the authors give you unlimited permission to link the compiled
5454- version of this library into combinations with other programs,
5555- and to distribute those combinations without any restriction
5656- coming from the use of this file. (The General Public License
5757- restrictions do apply in other respects; for example, they cover
5858- modification of the file, and distribution when not linked into
5959- a combined executable.)
6060-6161-----------------------------------------------------------------------
6262-6363- GNU GENERAL PUBLIC LICENSE
6464- Version 2, June 1991
6565-6666- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
6767- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
6868- Everyone is permitted to copy and distribute verbatim copies
6969- of this license document, but changing it is not allowed.
7070-7171- Preamble
7272-7373- The licenses for most software are designed to take away your
7474-freedom to share and change it. By contrast, the GNU General Public
7575-License is intended to guarantee your freedom to share and change free
7676-software--to make sure the software is free for all its users. This
7777-General Public License applies to most of the Free Software
7878-Foundation's software and to any other program whose authors commit to
7979-using it. (Some other Free Software Foundation software is covered by
8080-the GNU Library General Public License instead.) You can apply it to
8181-your programs, too.
8282-8383- When we speak of free software, we are referring to freedom, not
8484-price. Our General Public Licenses are designed to make sure that you
8585-have the freedom to distribute copies of free software (and charge for
8686-this service if you wish), that you receive source code or can get it
8787-if you want it, that you can change the software or use pieces of it
8888-in new free programs; and that you know you can do these things.
8989-9090- To protect your rights, we need to make restrictions that forbid
9191-anyone to deny you these rights or to ask you to surrender the rights.
9292-These restrictions translate to certain responsibilities for you if you
9393-distribute copies of the software, or if you modify it.
9494-9595- For example, if you distribute copies of such a program, whether
9696-gratis or for a fee, you must give the recipients all the rights that
9797-you have. You must make sure that they, too, receive or can get the
9898-source code. And you must show them these terms so they know their
9999-rights.
100100-101101- We protect your rights with two steps: (1) copyright the software, and
102102-(2) offer you this license which gives you legal permission to copy,
103103-distribute and/or modify the software.
104104-105105- Also, for each author's protection and ours, we want to make certain
106106-that everyone understands that there is no warranty for this free
107107-software. If the software is modified by someone else and passed on, we
108108-want its recipients to know that what they have is not the original, so
109109-that any problems introduced by others will not reflect on the original
110110-authors' reputations.
111111-112112- Finally, any free program is threatened constantly by software
113113-patents. We wish to avoid the danger that redistributors of a free
114114-program will individually obtain patent licenses, in effect making the
115115-program proprietary. To prevent this, we have made it clear that any
116116-patent must be licensed for everyone's free use or not licensed at all.
117117-118118- The precise terms and conditions for copying, distribution and
119119-modification follow.
120120-121121- GNU GENERAL PUBLIC LICENSE
122122- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
123123-124124- 0. This License applies to any program or other work which contains
125125-a notice placed by the copyright holder saying it may be distributed
126126-under the terms of this General Public License. The "Program", below,
127127-refers to any such program or work, and a "work based on the Program"
128128-means either the Program or any derivative work under copyright law:
129129-that is to say, a work containing the Program or a portion of it,
130130-either verbatim or with modifications and/or translated into another
131131-language. (Hereinafter, translation is included without limitation in
132132-the term "modification".) Each licensee is addressed as "you".
133133-134134-Activities other than copying, distribution and modification are not
135135-covered by this License; they are outside its scope. The act of
136136-running the Program is not restricted, and the output from the Program
137137-is covered only if its contents constitute a work based on the
138138-Program (independent of having been made by running the Program).
139139-Whether that is true depends on what the Program does.
140140-141141- 1. You may copy and distribute verbatim copies of the Program's
142142-source code as you receive it, in any medium, provided that you
143143-conspicuously and appropriately publish on each copy an appropriate
144144-copyright notice and disclaimer of warranty; keep intact all the
145145-notices that refer to this License and to the absence of any warranty;
146146-and give any other recipients of the Program a copy of this License
147147-along with the Program.
148148-149149-You may charge a fee for the physical act of transferring a copy, and
150150-you may at your option offer warranty protection in exchange for a fee.
151151-152152- 2. You may modify your copy or copies of the Program or any portion
153153-of it, thus forming a work based on the Program, and copy and
154154-distribute such modifications or work under the terms of Section 1
155155-above, provided that you also meet all of these conditions:
156156-157157- a) You must cause the modified files to carry prominent notices
158158- stating that you changed the files and the date of any change.
159159-160160- b) You must cause any work that you distribute or publish, that in
161161- whole or in part contains or is derived from the Program or any
162162- part thereof, to be licensed as a whole at no charge to all third
163163- parties under the terms of this License.
164164-165165- c) If the modified program normally reads commands interactively
166166- when run, you must cause it, when started running for such
167167- interactive use in the most ordinary way, to print or display an
168168- announcement including an appropriate copyright notice and a
169169- notice that there is no warranty (or else, saying that you provide
170170- a warranty) and that users may redistribute the program under
171171- these conditions, and telling the user how to view a copy of this
172172- License. (Exception: if the Program itself is interactive but
173173- does not normally print such an announcement, your work based on
174174- the Program is not required to print an announcement.)
175175-176176-These requirements apply to the modified work as a whole. If
177177-identifiable sections of that work are not derived from the Program,
178178-and can be reasonably considered independent and separate works in
179179-themselves, then this License, and its terms, do not apply to those
180180-sections when you distribute them as separate works. But when you
181181-distribute the same sections as part of a whole which is a work based
182182-on the Program, the distribution of the whole must be on the terms of
183183-this License, whose permissions for other licensees extend to the
184184-entire whole, and thus to each and every part regardless of who wrote it.
185185-186186-Thus, it is not the intent of this section to claim rights or contest
187187-your rights to work written entirely by you; rather, the intent is to
188188-exercise the right to control the distribution of derivative or
189189-collective works based on the Program.
190190-191191-In addition, mere aggregation of another work not based on the Program
192192-with the Program (or with a work based on the Program) on a volume of
193193-a storage or distribution medium does not bring the other work under
194194-the scope of this License.
195195-196196- 3. You may copy and distribute the Program (or a work based on it,
197197-under Section 2) in object code or executable form under the terms of
198198-Sections 1 and 2 above provided that you also do one of the following:
199199-200200- a) Accompany it with the complete corresponding machine-readable
201201- source code, which must be distributed under the terms of Sections
202202- 1 and 2 above on a medium customarily used for software interchange; or,
203203-204204- b) Accompany it with a written offer, valid for at least three
205205- years, to give any third party, for a charge no more than your
206206- cost of physically performing source distribution, a complete
207207- machine-readable copy of the corresponding source code, to be
208208- distributed under the terms of Sections 1 and 2 above on a medium
209209- customarily used for software interchange; or,
210210-211211- c) Accompany it with the information you received as to the offer
212212- to distribute corresponding source code. (This alternative is
213213- allowed only for noncommercial distribution and only if you
214214- received the program in object code or executable form with such
215215- an offer, in accord with Subsection b above.)
216216-217217-The source code for a work means the preferred form of the work for
218218-making modifications to it. For an executable work, complete source
219219-code means all the source code for all modules it contains, plus any
220220-associated interface definition files, plus the scripts used to
221221-control compilation and installation of the executable. However, as a
222222-special exception, the source code distributed need not include
223223-anything that is normally distributed (in either source or binary
224224-form) with the major components (compiler, kernel, and so on) of the
225225-operating system on which the executable runs, unless that component
226226-itself accompanies the executable.
227227-228228-If distribution of executable or object code is made by offering
229229-access to copy from a designated place, then offering equivalent
230230-access to copy the source code from the same place counts as
231231-distribution of the source code, even though third parties are not
232232-compelled to copy the source along with the object code.
233233-234234- 4. You may not copy, modify, sublicense, or distribute the Program
235235-except as expressly provided under this License. Any attempt
236236-otherwise to copy, modify, sublicense or distribute the Program is
237237-void, and will automatically terminate your rights under this License.
238238-However, parties who have received copies, or rights, from you under
239239-this License will not have their licenses terminated so long as such
240240-parties remain in full compliance.
241241-242242- 5. You are not required to accept this License, since you have not
243243-signed it. However, nothing else grants you permission to modify or
244244-distribute the Program or its derivative works. These actions are
245245-prohibited by law if you do not accept this License. Therefore, by
246246-modifying or distributing the Program (or any work based on the
247247-Program), you indicate your acceptance of this License to do so, and
248248-all its terms and conditions for copying, distributing or modifying
249249-the Program or works based on it.
250250-251251- 6. Each time you redistribute the Program (or any work based on the
252252-Program), the recipient automatically receives a license from the
253253-original licensor to copy, distribute or modify the Program subject to
254254-these terms and conditions. You may not impose any further
255255-restrictions on the recipients' exercise of the rights granted herein.
256256-You are not responsible for enforcing compliance by third parties to
257257-this License.
258258-259259- 7. If, as a consequence of a court judgment or allegation of patent
260260-infringement or for any other reason (not limited to patent issues),
261261-conditions are imposed on you (whether by court order, agreement or
262262-otherwise) that contradict the conditions of this License, they do not
263263-excuse you from the conditions of this License. If you cannot
264264-distribute so as to satisfy simultaneously your obligations under this
265265-License and any other pertinent obligations, then as a consequence you
266266-may not distribute the Program at all. For example, if a patent
267267-license would not permit royalty-free redistribution of the Program by
268268-all those who receive copies directly or indirectly through you, then
269269-the only way you could satisfy both it and this License would be to
270270-refrain entirely from distribution of the Program.
271271-272272-If any portion of this section is held invalid or unenforceable under
273273-any particular circumstance, the balance of the section is intended to
274274-apply and the section as a whole is intended to apply in other
275275-circumstances.
276276-277277-It is not the purpose of this section to induce you to infringe any
278278-patents or other property right claims or to contest validity of any
279279-such claims; this section has the sole purpose of protecting the
280280-integrity of the free software distribution system, which is
281281-implemented by public license practices. Many people have made
282282-generous contributions to the wide range of software distributed
283283-through that system in reliance on consistent application of that
284284-system; it is up to the author/donor to decide if he or she is willing
285285-to distribute software through any other system and a licensee cannot
286286-impose that choice.
287287-288288-This section is intended to make thoroughly clear what is believed to
289289-be a consequence of the rest of this License.
290290-291291- 8. If the distribution and/or use of the Program is restricted in
292292-certain countries either by patents or by copyrighted interfaces, the
293293-original copyright holder who places the Program under this License
294294-may add an explicit geographical distribution limitation excluding
295295-those countries, so that distribution is permitted only in or among
296296-countries not thus excluded. In such case, this License incorporates
297297-the limitation as if written in the body of this License.
298298-299299- 9. The Free Software Foundation may publish revised and/or new versions
300300-of the General Public License from time to time. Such new versions will
301301-be similar in spirit to the present version, but may differ in detail to
302302-address new problems or concerns.
303303-304304-Each version is given a distinguishing version number. If the Program
305305-specifies a version number of this License which applies to it and "any
306306-later version", you have the option of following the terms and conditions
307307-either of that version or of any later version published by the Free
308308-Software Foundation. If the Program does not specify a version number of
309309-this License, you may choose any version ever published by the Free Software
310310-Foundation.
311311-312312- 10. If you wish to incorporate parts of the Program into other free
313313-programs whose distribution conditions are different, write to the author
314314-to ask for permission. For software which is copyrighted by the Free
315315-Software Foundation, write to the Free Software Foundation; we sometimes
316316-make exceptions for this. Our decision will be guided by the two goals
317317-of preserving the free status of all derivatives of our free software and
318318-of promoting the sharing and reuse of software generally.
319319-320320- NO WARRANTY
321321-322322- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
323323-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
324324-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
325325-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
326326-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
327327-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
328328-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
329329-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
330330-REPAIR OR CORRECTION.
331331-332332- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
333333-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
334334-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
335335-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
336336-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
337337-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
338338-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
339339-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
340340-POSSIBILITY OF SUCH DAMAGES.
341341-342342- END OF TERMS AND CONDITIONS
343343-344344- How to Apply These Terms to Your New Programs
345345-346346- If you develop a new program, and you want it to be of the greatest
347347-possible use to the public, the best way to achieve this is to make it
348348-free software which everyone can redistribute and change under these terms.
349349-350350- To do so, attach the following notices to the program. It is safest
351351-to attach them to the start of each source file to most effectively
352352-convey the exclusion of warranty; and each file should have at least
353353-the "copyright" line and a pointer to where the full notice is found.
354354-355355- <one line to give the program's name and a brief idea of what it does.>
356356- Copyright (C) <year> <name of author>
357357-358358- This program is free software; you can redistribute it and/or modify
359359- it under the terms of the GNU General Public License as published by
360360- the Free Software Foundation; either version 2 of the License, or
361361- (at your option) any later version.
362362-363363- This program is distributed in the hope that it will be useful,
364364- but WITHOUT ANY WARRANTY; without even the implied warranty of
365365- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
366366- GNU General Public License for more details.
367367-368368- You should have received a copy of the GNU General Public License
369369- along with this program; if not, write to the Free Software
370370- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
371371-372372-373373-Also add information on how to contact you by electronic and paper mail.
374374-375375-If the program is interactive, make it output a short notice like this
376376-when it starts in an interactive mode:
377377-378378- Gnomovision version 69, Copyright (C) year name of author
379379- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
380380- This is free software, and you are welcome to redistribute it
381381- under certain conditions; type `show c' for details.
382382-383383-The hypothetical commands `show w' and `show c' should show the appropriate
384384-parts of the General Public License. Of course, the commands you use may
385385-be called something other than `show w' and `show c'; they could even be
386386-mouse-clicks or menu items--whatever suits your program.
387387-388388-You should also get your employer (if you work as a programmer) or your
389389-school, if any, to sign a "copyright disclaimer" for the program, if
390390-necessary. Here is a sample; alter the names:
391391-392392- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
393393- `Gnomovision' (which makes passes at compilers) written by James Hacker.
394394-395395- <signature of Ty Coon>, 1 April 1989
396396- Ty Coon, President of Vice
397397-398398-This General Public License does not permit incorporating your program into
399399-proprietary programs. If your program is a subroutine library, you may
400400-consider it more useful to permit linking proprietary applications with the
401401-library. If this is what you want to do, use the GNU Library General
402402-Public License instead of this License.
403403-404404-----------------------------------------------------------------------
405405-406406-The bundled ZLib code is licensed under the ZLib license:
407407-408408-Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler
409409-410410- This software is provided 'as-is', without any express or implied
411411- warranty. In no event will the authors be held liable for any damages
412412- arising from the use of this software.
413413-414414- Permission is granted to anyone to use this software for any purpose,
415415- including commercial applications, and to alter it and redistribute it
416416- freely, subject to the following restrictions:
417417-418418- 1. The origin of this software must not be misrepresented; you must not
419419- claim that you wrote the original software. If you use this software
420420- in a product, an acknowledgment in the product documentation would be
421421- appreciated but is not required.
422422- 2. Altered source versions must be plainly marked as such, and must not be
423423- misrepresented as being the original software.
424424- 3. This notice may not be removed or altered from any source distribution.
425425-426426- Jean-loup Gailly Mark Adler
427427- jloup@gzip.org madler@alumni.caltech.edu
428428-429429-----------------------------------------------------------------------
430430-431431-The Clar framework is licensed under the ISC license:
432432-433433-Copyright (c) 2011-2015 Vicent Marti
434434-435435-Permission to use, copy, modify, and/or distribute this software for any
436436-purpose with or without fee is hereby granted, provided that the above
437437-copyright notice and this permission notice appear in all copies.
438438-439439-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
440440-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
441441-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
442442-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
443443-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
444444-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
445445-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
446446-447447-----------------------------------------------------------------------
448448-449449-The regex library (deps/regex/) is licensed under the GNU LGPL
450450-(available at the end of this file).
451451-452452-Definitions for data structures and routines for the regular
453453-expression library.
454454-455455-Copyright (C) 1985,1989-93,1995-98,2000,2001,2002,2003,2005,2006,2008
456456-Free Software Foundation, Inc.
457457-This file is part of the GNU C Library.
458458-459459-The GNU C Library is free software; you can redistribute it and/or
460460-modify it under the terms of the GNU Lesser General Public
461461-License as published by the Free Software Foundation; either
462462-version 2.1 of the License, or (at your option) any later version.
463463-464464-The GNU C Library is distributed in the hope that it will be useful,
465465-but WITHOUT ANY WARRANTY; without even the implied warranty of
466466-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
467467-Lesser General Public License for more details.
468468-469469-You should have received a copy of the GNU Lesser General Public
470470-License along with the GNU C Library; if not, write to the Free
471471-Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
472472-02110-1301 USA.
473473-474474-----------------------------------------------------------------------
475475-476476-The bundled winhttp definition files (deps/winhttp/) are licensed under
477477-the GNU LGPL (available at the end of this file).
478478-479479-Copyright (C) 2007 Francois Gouget
480480-481481-This library is free software; you can redistribute it and/or
482482-modify it under the terms of the GNU Lesser General Public
483483-License as published by the Free Software Foundation; either
484484-version 2.1 of the License, or (at your option) any later version.
485485-486486-This library is distributed in the hope that it will be useful,
487487-but WITHOUT ANY WARRANTY; without even the implied warranty of
488488-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
489489-Lesser General Public License for more details.
490490-491491-You should have received a copy of the GNU Lesser General Public
492492-License along with this library; if not, write to the Free Software
493493-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
494494-495495-----------------------------------------------------------------------
496496-497497- GNU LESSER GENERAL PUBLIC LICENSE
498498- Version 2.1, February 1999
499499-500500- Copyright (C) 1991, 1999 Free Software Foundation, Inc.
501501- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
502502- Everyone is permitted to copy and distribute verbatim copies
503503- of this license document, but changing it is not allowed.
504504-505505-[This is the first released version of the Lesser GPL. It also counts
506506- as the successor of the GNU Library Public License, version 2, hence
507507- the version number 2.1.]
508508-509509- Preamble
510510-511511- The licenses for most software are designed to take away your
512512-freedom to share and change it. By contrast, the GNU General Public
513513-Licenses are intended to guarantee your freedom to share and change
514514-free software--to make sure the software is free for all its users.
515515-516516- This license, the Lesser General Public License, applies to some
517517-specially designated software packages--typically libraries--of the
518518-Free Software Foundation and other authors who decide to use it. You
519519-can use it too, but we suggest you first think carefully about whether
520520-this license or the ordinary General Public License is the better
521521-strategy to use in any particular case, based on the explanations below.
522522-523523- When we speak of free software, we are referring to freedom of use,
524524-not price. Our General Public Licenses are designed to make sure that
525525-you have the freedom to distribute copies of free software (and charge
526526-for this service if you wish); that you receive source code or can get
527527-it if you want it; that you can change the software and use pieces of
528528-it in new free programs; and that you are informed that you can do
529529-these things.
530530-531531- To protect your rights, we need to make restrictions that forbid
532532-distributors to deny you these rights or to ask you to surrender these
533533-rights. These restrictions translate to certain responsibilities for
534534-you if you distribute copies of the library or if you modify it.
535535-536536- For example, if you distribute copies of the library, whether gratis
537537-or for a fee, you must give the recipients all the rights that we gave
538538-you. You must make sure that they, too, receive or can get the source
539539-code. If you link other code with the library, you must provide
540540-complete object files to the recipients, so that they can relink them
541541-with the library after making changes to the library and recompiling
542542-it. And you must show them these terms so they know their rights.
543543-544544- We protect your rights with a two-step method: (1) we copyright the
545545-library, and (2) we offer you this license, which gives you legal
546546-permission to copy, distribute and/or modify the library.
547547-548548- To protect each distributor, we want to make it very clear that
549549-there is no warranty for the free library. Also, if the library is
550550-modified by someone else and passed on, the recipients should know
551551-that what they have is not the original version, so that the original
552552-author's reputation will not be affected by problems that might be
553553-introduced by others.
554554-555555- Finally, software patents pose a constant threat to the existence of
556556-any free program. We wish to make sure that a company cannot
557557-effectively restrict the users of a free program by obtaining a
558558-restrictive license from a patent holder. Therefore, we insist that
559559-any patent license obtained for a version of the library must be
560560-consistent with the full freedom of use specified in this license.
561561-562562- Most GNU software, including some libraries, is covered by the
563563-ordinary GNU General Public License. This license, the GNU Lesser
564564-General Public License, applies to certain designated libraries, and
565565-is quite different from the ordinary General Public License. We use
566566-this license for certain libraries in order to permit linking those
567567-libraries into non-free programs.
568568-569569- When a program is linked with a library, whether statically or using
570570-a shared library, the combination of the two is legally speaking a
571571-combined work, a derivative of the original library. The ordinary
572572-General Public License therefore permits such linking only if the
573573-entire combination fits its criteria of freedom. The Lesser General
574574-Public License permits more lax criteria for linking other code with
575575-the library.
576576-577577- We call this license the "Lesser" General Public License because it
578578-does Less to protect the user's freedom than the ordinary General
579579-Public License. It also provides other free software developers Less
580580-of an advantage over competing non-free programs. These disadvantages
581581-are the reason we use the ordinary General Public License for many
582582-libraries. However, the Lesser license provides advantages in certain
583583-special circumstances.
584584-585585- For example, on rare occasions, there may be a special need to
586586-encourage the widest possible use of a certain library, so that it becomes
587587-a de-facto standard. To achieve this, non-free programs must be
588588-allowed to use the library. A more frequent case is that a free
589589-library does the same job as widely used non-free libraries. In this
590590-case, there is little to gain by limiting the free library to free
591591-software only, so we use the Lesser General Public License.
592592-593593- In other cases, permission to use a particular library in non-free
594594-programs enables a greater number of people to use a large body of
595595-free software. For example, permission to use the GNU C Library in
596596-non-free programs enables many more people to use the whole GNU
597597-operating system, as well as its variant, the GNU/Linux operating
598598-system.
599599-600600- Although the Lesser General Public License is Less protective of the
601601-users' freedom, it does ensure that the user of a program that is
602602-linked with the Library has the freedom and the wherewithal to run
603603-that program using a modified version of the Library.
604604-605605- The precise terms and conditions for copying, distribution and
606606-modification follow. Pay close attention to the difference between a
607607-"work based on the library" and a "work that uses the library". The
608608-former contains code derived from the library, whereas the latter must
609609-be combined with the library in order to run.
610610-611611- GNU LESSER GENERAL PUBLIC LICENSE
612612- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
613613-614614- 0. This License Agreement applies to any software library or other
615615-program which contains a notice placed by the copyright holder or
616616-other authorized party saying it may be distributed under the terms of
617617-this Lesser General Public License (also called "this License").
618618-Each licensee is addressed as "you".
619619-620620- A "library" means a collection of software functions and/or data
621621-prepared so as to be conveniently linked with application programs
622622-(which use some of those functions and data) to form executables.
623623-624624- The "Library", below, refers to any such software library or work
625625-which has been distributed under these terms. A "work based on the
626626-Library" means either the Library or any derivative work under
627627-copyright law: that is to say, a work containing the Library or a
628628-portion of it, either verbatim or with modifications and/or translated
629629-straightforwardly into another language. (Hereinafter, translation is
630630-included without limitation in the term "modification".)
631631-632632- "Source code" for a work means the preferred form of the work for
633633-making modifications to it. For a library, complete source code means
634634-all the source code for all modules it contains, plus any associated
635635-interface definition files, plus the scripts used to control compilation
636636-and installation of the library.
637637-638638- Activities other than copying, distribution and modification are not
639639-covered by this License; they are outside its scope. The act of
640640-running a program using the Library is not restricted, and output from
641641-such a program is covered only if its contents constitute a work based
642642-on the Library (independent of the use of the Library in a tool for
643643-writing it). Whether that is true depends on what the Library does
644644-and what the program that uses the Library does.
645645-646646- 1. You may copy and distribute verbatim copies of the Library's
647647-complete source code as you receive it, in any medium, provided that
648648-you conspicuously and appropriately publish on each copy an
649649-appropriate copyright notice and disclaimer of warranty; keep intact
650650-all the notices that refer to this License and to the absence of any
651651-warranty; and distribute a copy of this License along with the
652652-Library.
653653-654654- You may charge a fee for the physical act of transferring a copy,
655655-and you may at your option offer warranty protection in exchange for a
656656-fee.
657657-658658- 2. You may modify your copy or copies of the Library or any portion
659659-of it, thus forming a work based on the Library, and copy and
660660-distribute such modifications or work under the terms of Section 1
661661-above, provided that you also meet all of these conditions:
662662-663663- a) The modified work must itself be a software library.
664664-665665- b) You must cause the files modified to carry prominent notices
666666- stating that you changed the files and the date of any change.
667667-668668- c) You must cause the whole of the work to be licensed at no
669669- charge to all third parties under the terms of this License.
670670-671671- d) If a facility in the modified Library refers to a function or a
672672- table of data to be supplied by an application program that uses
673673- the facility, other than as an argument passed when the facility
674674- is invoked, then you must make a good faith effort to ensure that,
675675- in the event an application does not supply such function or
676676- table, the facility still operates, and performs whatever part of
677677- its purpose remains meaningful.
678678-679679- (For example, a function in a library to compute square roots has
680680- a purpose that is entirely well-defined independent of the
681681- application. Therefore, Subsection 2d requires that any
682682- application-supplied function or table used by this function must
683683- be optional: if the application does not supply it, the square
684684- root function must still compute square roots.)
685685-686686-These requirements apply to the modified work as a whole. If
687687-identifiable sections of that work are not derived from the Library,
688688-and can be reasonably considered independent and separate works in
689689-themselves, then this License, and its terms, do not apply to those
690690-sections when you distribute them as separate works. But when you
691691-distribute the same sections as part of a whole which is a work based
692692-on the Library, the distribution of the whole must be on the terms of
693693-this License, whose permissions for other licensees extend to the
694694-entire whole, and thus to each and every part regardless of who wrote
695695-it.
696696-697697-Thus, it is not the intent of this section to claim rights or contest
698698-your rights to work written entirely by you; rather, the intent is to
699699-exercise the right to control the distribution of derivative or
700700-collective works based on the Library.
701701-702702-In addition, mere aggregation of another work not based on the Library
703703-with the Library (or with a work based on the Library) on a volume of
704704-a storage or distribution medium does not bring the other work under
705705-the scope of this License.
706706-707707- 3. You may opt to apply the terms of the ordinary GNU General Public
708708-License instead of this License to a given copy of the Library. To do
709709-this, you must alter all the notices that refer to this License, so
710710-that they refer to the ordinary GNU General Public License, version 2,
711711-instead of to this License. (If a newer version than version 2 of the
712712-ordinary GNU General Public License has appeared, then you can specify
713713-that version instead if you wish.) Do not make any other change in
714714-these notices.
715715-716716- Once this change is made in a given copy, it is irreversible for
717717-that copy, so the ordinary GNU General Public License applies to all
718718-subsequent copies and derivative works made from that copy.
719719-720720- This option is useful when you wish to copy part of the code of
721721-the Library into a program that is not a library.
722722-723723- 4. You may copy and distribute the Library (or a portion or
724724-derivative of it, under Section 2) in object code or executable form
725725-under the terms of Sections 1 and 2 above provided that you accompany
726726-it with the complete corresponding machine-readable source code, which
727727-must be distributed under the terms of Sections 1 and 2 above on a
728728-medium customarily used for software interchange.
729729-730730- If distribution of object code is made by offering access to copy
731731-from a designated place, then offering equivalent access to copy the
732732-source code from the same place satisfies the requirement to
733733-distribute the source code, even though third parties are not
734734-compelled to copy the source along with the object code.
735735-736736- 5. A program that contains no derivative of any portion of the
737737-Library, but is designed to work with the Library by being compiled or
738738-linked with it, is called a "work that uses the Library". Such a
739739-work, in isolation, is not a derivative work of the Library, and
740740-therefore falls outside the scope of this License.
741741-742742- However, linking a "work that uses the Library" with the Library
743743-creates an executable that is a derivative of the Library (because it
744744-contains portions of the Library), rather than a "work that uses the
745745-library". The executable is therefore covered by this License.
746746-Section 6 states terms for distribution of such executables.
747747-748748- When a "work that uses the Library" uses material from a header file
749749-that is part of the Library, the object code for the work may be a
750750-derivative work of the Library even though the source code is not.
751751-Whether this is true is especially significant if the work can be
752752-linked without the Library, or if the work is itself a library. The
753753-threshold for this to be true is not precisely defined by law.
754754-755755- If such an object file uses only numerical parameters, data
756756-structure layouts and accessors, and small macros and small inline
757757-functions (ten lines or less in length), then the use of the object
758758-file is unrestricted, regardless of whether it is legally a derivative
759759-work. (Executables containing this object code plus portions of the
760760-Library will still fall under Section 6.)
761761-762762- Otherwise, if the work is a derivative of the Library, you may
763763-distribute the object code for the work under the terms of Section 6.
764764-Any executables containing that work also fall under Section 6,
765765-whether or not they are linked directly with the Library itself.
766766-767767- 6. As an exception to the Sections above, you may also combine or
768768-link a "work that uses the Library" with the Library to produce a
769769-work containing portions of the Library, and distribute that work
770770-under terms of your choice, provided that the terms permit
771771-modification of the work for the customer's own use and reverse
772772-engineering for debugging such modifications.
773773-774774- You must give prominent notice with each copy of the work that the
775775-Library is used in it and that the Library and its use are covered by
776776-this License. You must supply a copy of this License. If the work
777777-during execution displays copyright notices, you must include the
778778-copyright notice for the Library among them, as well as a reference
779779-directing the user to the copy of this License. Also, you must do one
780780-of these things:
781781-782782- a) Accompany the work with the complete corresponding
783783- machine-readable source code for the Library including whatever
784784- changes were used in the work (which must be distributed under
785785- Sections 1 and 2 above); and, if the work is an executable linked
786786- with the Library, with the complete machine-readable "work that
787787- uses the Library", as object code and/or source code, so that the
788788- user can modify the Library and then relink to produce a modified
789789- executable containing the modified Library. (It is understood
790790- that the user who changes the contents of definitions files in the
791791- Library will not necessarily be able to recompile the application
792792- to use the modified definitions.)
793793-794794- b) Use a suitable shared library mechanism for linking with the
795795- Library. A suitable mechanism is one that (1) uses at run time a
796796- copy of the library already present on the user's computer system,
797797- rather than copying library functions into the executable, and (2)
798798- will operate properly with a modified version of the library, if
799799- the user installs one, as long as the modified version is
800800- interface-compatible with the version that the work was made with.
801801-802802- c) Accompany the work with a written offer, valid for at
803803- least three years, to give the same user the materials
804804- specified in Subsection 6a, above, for a charge no more
805805- than the cost of performing this distribution.
806806-807807- d) If distribution of the work is made by offering access to copy
808808- from a designated place, offer equivalent access to copy the above
809809- specified materials from the same place.
810810-811811- e) Verify that the user has already received a copy of these
812812- materials or that you have already sent this user a copy.
813813-814814- For an executable, the required form of the "work that uses the
815815-Library" must include any data and utility programs needed for
816816-reproducing the executable from it. However, as a special exception,
817817-the materials to be distributed need not include anything that is
818818-normally distributed (in either source or binary form) with the major
819819-components (compiler, kernel, and so on) of the operating system on
820820-which the executable runs, unless that component itself accompanies
821821-the executable.
822822-823823- It may happen that this requirement contradicts the license
824824-restrictions of other proprietary libraries that do not normally
825825-accompany the operating system. Such a contradiction means you cannot
826826-use both them and the Library together in an executable that you
827827-distribute.
828828-829829- 7. You may place library facilities that are a work based on the
830830-Library side-by-side in a single library together with other library
831831-facilities not covered by this License, and distribute such a combined
832832-library, provided that the separate distribution of the work based on
833833-the Library and of the other library facilities is otherwise
834834-permitted, and provided that you do these two things:
835835-836836- a) Accompany the combined library with a copy of the same work
837837- based on the Library, uncombined with any other library
838838- facilities. This must be distributed under the terms of the
839839- Sections above.
840840-841841- b) Give prominent notice with the combined library of the fact
842842- that part of it is a work based on the Library, and explaining
843843- where to find the accompanying uncombined form of the same work.
844844-845845- 8. You may not copy, modify, sublicense, link with, or distribute
846846-the Library except as expressly provided under this License. Any
847847-attempt otherwise to copy, modify, sublicense, link with, or
848848-distribute the Library is void, and will automatically terminate your
849849-rights under this License. However, parties who have received copies,
850850-or rights, from you under this License will not have their licenses
851851-terminated so long as such parties remain in full compliance.
852852-853853- 9. You are not required to accept this License, since you have not
854854-signed it. However, nothing else grants you permission to modify or
855855-distribute the Library or its derivative works. These actions are
856856-prohibited by law if you do not accept this License. Therefore, by
857857-modifying or distributing the Library (or any work based on the
858858-Library), you indicate your acceptance of this License to do so, and
859859-all its terms and conditions for copying, distributing or modifying
860860-the Library or works based on it.
861861-862862- 10. Each time you redistribute the Library (or any work based on the
863863-Library), the recipient automatically receives a license from the
864864-original licensor to copy, distribute, link with or modify the Library
865865-subject to these terms and conditions. You may not impose any further
866866-restrictions on the recipients' exercise of the rights granted herein.
867867-You are not responsible for enforcing compliance by third parties with
868868-this License.
869869-870870- 11. If, as a consequence of a court judgment or allegation of patent
871871-infringement or for any other reason (not limited to patent issues),
872872-conditions are imposed on you (whether by court order, agreement or
873873-otherwise) that contradict the conditions of this License, they do not
874874-excuse you from the conditions of this License. If you cannot
875875-distribute so as to satisfy simultaneously your obligations under this
876876-License and any other pertinent obligations, then as a consequence you
877877-may not distribute the Library at all. For example, if a patent
878878-license would not permit royalty-free redistribution of the Library by
879879-all those who receive copies directly or indirectly through you, then
880880-the only way you could satisfy both it and this License would be to
881881-refrain entirely from distribution of the Library.
882882-883883-If any portion of this section is held invalid or unenforceable under any
884884-particular circumstance, the balance of the section is intended to apply,
885885-and the section as a whole is intended to apply in other circumstances.
886886-887887-It is not the purpose of this section to induce you to infringe any
888888-patents or other property right claims or to contest validity of any
889889-such claims; this section has the sole purpose of protecting the
890890-integrity of the free software distribution system which is
891891-implemented by public license practices. Many people have made
892892-generous contributions to the wide range of software distributed
893893-through that system in reliance on consistent application of that
894894-system; it is up to the author/donor to decide if he or she is willing
895895-to distribute software through any other system and a licensee cannot
896896-impose that choice.
897897-898898-This section is intended to make thoroughly clear what is believed to
899899-be a consequence of the rest of this License.
900900-901901- 12. If the distribution and/or use of the Library is restricted in
902902-certain countries either by patents or by copyrighted interfaces, the
903903-original copyright holder who places the Library under this License may add
904904-an explicit geographical distribution limitation excluding those countries,
905905-so that distribution is permitted only in or among countries not thus
906906-excluded. In such case, this License incorporates the limitation as if
907907-written in the body of this License.
908908-909909- 13. The Free Software Foundation may publish revised and/or new
910910-versions of the Lesser General Public License from time to time.
911911-Such new versions will be similar in spirit to the present version,
912912-but may differ in detail to address new problems or concerns.
913913-914914-Each version is given a distinguishing version number. If the Library
915915-specifies a version number of this License which applies to it and
916916-"any later version", you have the option of following the terms and
917917-conditions either of that version or of any later version published by
918918-the Free Software Foundation. If the Library does not specify a
919919-license version number, you may choose any version ever published by
920920-the Free Software Foundation.
921921-922922- 14. If you wish to incorporate parts of the Library into other free
923923-programs whose distribution conditions are incompatible with these,
924924-write to the author to ask for permission. For software which is
925925-copyrighted by the Free Software Foundation, write to the Free
926926-Software Foundation; we sometimes make exceptions for this. Our
927927-decision will be guided by the two goals of preserving the free status
928928-of all derivatives of our free software and of promoting the sharing
929929-and reuse of software generally.
930930-931931- NO WARRANTY
932932-933933- 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
934934-WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
935935-EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
936936-OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
937937-KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
938938-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
939939-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
940940-LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
941941-THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
942942-943943- 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
944944-WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
945945-AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
946946-FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
947947-CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
948948-LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
949949-RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
950950-FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
951951-SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
952952-DAMAGES.
953953-954954- END OF TERMS AND CONDITIONS
955955-956956- How to Apply These Terms to Your New Libraries
957957-958958- If you develop a new library, and you want it to be of the greatest
959959-possible use to the public, we recommend making it free software that
960960-everyone can redistribute and change. You can do so by permitting
961961-redistribution under these terms (or, alternatively, under the terms of the
962962-ordinary General Public License).
963963-964964- To apply these terms, attach the following notices to the library. It is
965965-safest to attach them to the start of each source file to most effectively
966966-convey the exclusion of warranty; and each file should have at least the
967967-"copyright" line and a pointer to where the full notice is found.
968968-969969- <one line to give the library's name and a brief idea of what it does.>
970970- Copyright (C) <year> <name of author>
971971-972972- This library is free software; you can redistribute it and/or
973973- modify it under the terms of the GNU Lesser General Public
974974- License as published by the Free Software Foundation; either
975975- version 2.1 of the License, or (at your option) any later version.
976976-977977- This library is distributed in the hope that it will be useful,
978978- but WITHOUT ANY WARRANTY; without even the implied warranty of
979979- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
980980- Lesser General Public License for more details.
981981-982982- You should have received a copy of the GNU Lesser General Public
983983- License along with this library; if not, write to the Free Software
984984- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
985985-986986-Also add information on how to contact you by electronic and paper mail.
987987-988988-You should also get your employer (if you work as a programmer) or your
989989-school, if any, to sign a "copyright disclaimer" for the library, if
990990-necessary. Here is a sample; alter the names:
991991-992992- Yoyodyne, Inc., hereby disclaims all copyright interest in the
993993- library `Frob' (a library for tweaking knobs) written by James Random Hacker.
994994-995995- <signature of Ty Coon>, 1 April 1990
996996- Ty Coon, President of Vice
997997-998998-That's all there is to it!
999999-10001000-----------------------------------------------------------------------
10011001-10021002-The bundled SHA1 collision detection code is licensed under the MIT license:
10031003-10041004-MIT License
10051005-10061006-Copyright (c) 2017:
10071007- Marc Stevens
10081008- Cryptology Group
10091009- Centrum Wiskunde & Informatica
10101010- P.O. Box 94079, 1090 GB Amsterdam, Netherlands
10111011- marc@marc-stevens.nl
10121012-10131013- Dan Shumow
10141014- Microsoft Research
10151015- danshu@microsoft.com
10161016-10171017-Permission is hereby granted, free of charge, to any person obtaining a copy
10181018-of this software and associated documentation files (the "Software"), to deal
10191019-in the Software without restriction, including without limitation the rights
10201020-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10211021-copies of the Software, and to permit persons to whom the Software is
10221022-furnished to do so, subject to the following conditions:
10231023-10241024-The above copyright notice and this permission notice shall be included in all
10251025-copies or substantial portions of the Software.
10261026-10271027-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
10281028-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
10291029-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
10301030-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
10311031-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
10321032-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
10331033-SOFTWARE.
10341034-10351035-----------------------------------------------------------------------
10361036-10371037-The bundled wildmatch code is licensed under the BSD license:
10381038-10391039-Copyright Rich Salz.
10401040-All rights reserved.
10411041-10421042-Redistribution and use in any form are permitted provided that the
10431043-following restrictions are are met:
10441044-10451045-1. Source distributions must retain this entire copyright notice
10461046- and comment.
10471047-2. Binary distributions must include the acknowledgement ``This
10481048- product includes software developed by Rich Salz'' in the
10491049- documentation or other materials provided with the
10501050- distribution. This must not be represented as an endorsement
10511051- or promotion without specific prior written permission.
10521052-3. The origin of this software must not be misrepresented, either
10531053- by explicit claim or by omission. Credits must appear in the
10541054- source and documentation.
10551055-4. Altered versions must be plainly marked as such in the source
10561056- and documentation and must not be misrepresented as being the
10571057- original software.
10581058-10591059-THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
10601060-WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
10611061-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
10621062-10631063-----------------------------------------------------------------------
10641064-10651065-Portions of the OpenSSL headers are included under the OpenSSL license:
10661066-10671067-Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
10681068-All rights reserved.
10691069-10701070-This package is an SSL implementation written
10711071-by Eric Young (eay@cryptsoft.com).
10721072-The implementation was written so as to conform with Netscapes SSL.
10731073-10741074-This library is free for commercial and non-commercial use as long as
10751075-the following conditions are aheared to. The following conditions
10761076-apply to all code found in this distribution, be it the RC4, RSA,
10771077-lhash, DES, etc., code; not just the SSL code. The SSL documentation
10781078-included with this distribution is covered by the same copyright terms
10791079-except that the holder is Tim Hudson (tjh@cryptsoft.com).
10801080-10811081-Copyright remains Eric Young's, and as such any Copyright notices in
10821082-the code are not to be removed.
10831083-If this package is used in a product, Eric Young should be given attribution
10841084-as the author of the parts of the library used.
10851085-This can be in the form of a textual message at program startup or
10861086-in documentation (online or textual) provided with the package.
10871087-10881088-Redistribution and use in source and binary forms, with or without
10891089-modification, are permitted provided that the following conditions
10901090-are met:
10911091-1. Redistributions of source code must retain the copyright
10921092- notice, this list of conditions and the following disclaimer.
10931093-2. Redistributions in binary form must reproduce the above copyright
10941094- notice, this list of conditions and the following disclaimer in the
10951095- documentation and/or other materials provided with the distribution.
10961096-3. All advertising materials mentioning features or use of this software
10971097- must display the following acknowledgement:
10981098- "This product includes cryptographic software written by
10991099- Eric Young (eay@cryptsoft.com)"
11001100- The word 'cryptographic' can be left out if the rouines from the library
11011101- being used are not cryptographic related :-).
11021102-4. If you include any Windows specific code (or a derivative thereof) from
11031103- the apps directory (application code) you must include an acknowledgement:
11041104- "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
11051105-11061106-THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
11071107-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
11081108-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
11091109-ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
11101110-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
11111111-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
11121112-OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
11131113-HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
11141114-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
11151115-OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
11161116-SUCH DAMAGE.
11171117-11181118-The licence and distribution terms for any publically available version or
11191119-derivative of this code cannot be changed. i.e. this code cannot simply be
11201120-copied and put under another distribution licence
11211121-[including the GNU Public Licence.]
11221122-11231123-====================================================================
11241124-Copyright (c) 1998-2007 The OpenSSL Project. All rights reserved.
11251125-11261126-Redistribution and use in source and binary forms, with or without
11271127-modification, are permitted provided that the following conditions
11281128-are met:
11291129-11301130-1. Redistributions of source code must retain the above copyright
11311131- notice, this list of conditions and the following disclaimer.
11321132-11331133-2. Redistributions in binary form must reproduce the above copyright
11341134- notice, this list of conditions and the following disclaimer in
11351135- the documentation and/or other materials provided with the
11361136- distribution.
11371137-11381138-3. All advertising materials mentioning features or use of this
11391139- software must display the following acknowledgment:
11401140- "This product includes software developed by the OpenSSL Project
11411141- for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
11421142-11431143-4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
11441144- endorse or promote products derived from this software without
11451145- prior written permission. For written permission, please contact
11461146- openssl-core@openssl.org.
11471147-11481148-5. Products derived from this software may not be called "OpenSSL"
11491149- nor may "OpenSSL" appear in their names without prior written
11501150- permission of the OpenSSL Project.
11511151-11521152-6. Redistributions of any form whatsoever must retain the following
11531153- acknowledgment:
11541154- "This product includes software developed by the OpenSSL Project
11551155- for use in the OpenSSL Toolkit (http://www.openssl.org/)"
11561156-11571157-THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
11581158-EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
11591159-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
11601160-PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
11611161-ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
11621162-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
11631163-NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
11641164-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
11651165-HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
11661166-STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
11671167-ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
11681168-OF THE POSSIBILITY OF SUCH DAMAGE.
11691169-```
11701170-11711171-### libssh2/libssh2
11721172-11731173-```
11741174-/* Copyright (c) 2004-2007 Sara Golemon <sarag@libssh2.org>
11751175- * Copyright (c) 2005,2006 Mikhail Gusarov <dottedmag@dottedmag.net>
11761176- * Copyright (c) 2006-2007 The Written Word, Inc.
11771177- * Copyright (c) 2007 Eli Fant <elifantu@mail.ru>
11781178- * Copyright (c) 2009-2021 Daniel Stenberg
11791179- * Copyright (C) 2008, 2009 Simon Josefsson
11801180- * Copyright (c) 2000 Markus Friedl
11811181- * Copyright (c) 2015 Microsoft Corp.
11821182- * All rights reserved.
11831183- *
11841184- * Redistribution and use in source and binary forms,
11851185- * with or without modification, are permitted provided
11861186- * that the following conditions are met:
11871187- *
11881188- * Redistributions of source code must retain the above
11891189- * copyright notice, this list of conditions and the
11901190- * following disclaimer.
11911191- *
11921192- * Redistributions in binary form must reproduce the above
11931193- * copyright notice, this list of conditions and the following
11941194- * disclaimer in the documentation and/or other materials
11951195- * provided with the distribution.
11961196- *
11971197- * Neither the name of the copyright holder nor the names
11981198- * of any other contributors may be used to endorse or
11991199- * promote products derived from this software without
12001200- * specific prior written permission.
12011201- *
12021202- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
12031203- * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
12041204- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
12051205- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
12061206- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
12071207- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
12081208- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
12091209- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
12101210- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
12111211- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
12121212- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
12131213- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
12141214- * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
12151215- * OF SUCH DAMAGE.
12161216- */
12171217-```
12181218-12191219-### OpenSSL
12201220-12211221-```
12221222-12231223- LICENSE ISSUES
12241224- ==============
12251225-12261226- The OpenSSL toolkit stays under a double license, i.e. both the conditions of
12271227- the OpenSSL License and the original SSLeay license apply to the toolkit.
12281228- See below for the actual license texts.
12291229-12301230- OpenSSL License
12311231- ---------------
12321232-12331233-/* ====================================================================
12341234- * Copyright (c) 1998-2019 The OpenSSL Project. All rights reserved.
12351235- *
12361236- * Redistribution and use in source and binary forms, with or without
12371237- * modification, are permitted provided that the following conditions
12381238- * are met:
12391239- *
12401240- * 1. Redistributions of source code must retain the above copyright
12411241- * notice, this list of conditions and the following disclaimer.
12421242- *
12431243- * 2. Redistributions in binary form must reproduce the above copyright
12441244- * notice, this list of conditions and the following disclaimer in
12451245- * the documentation and/or other materials provided with the
12461246- * distribution.
12471247- *
12481248- * 3. All advertising materials mentioning features or use of this
12491249- * software must display the following acknowledgment:
12501250- * "This product includes software developed by the OpenSSL Project
12511251- * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
12521252- *
12531253- * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
12541254- * endorse or promote products derived from this software without
12551255- * prior written permission. For written permission, please contact
12561256- * openssl-core@openssl.org.
12571257- *
12581258- * 5. Products derived from this software may not be called "OpenSSL"
12591259- * nor may "OpenSSL" appear in their names without prior written
12601260- * permission of the OpenSSL Project.
12611261- *
12621262- * 6. Redistributions of any form whatsoever must retain the following
12631263- * acknowledgment:
12641264- * "This product includes software developed by the OpenSSL Project
12651265- * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
12661266- *
12671267- * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
12681268- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
12691269- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
12701270- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
12711271- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
12721272- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
12731273- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
12741274- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
12751275- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
12761276- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
12771277- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
12781278- * OF THE POSSIBILITY OF SUCH DAMAGE.
12791279- * ====================================================================
12801280- *
12811281- * This product includes cryptographic software written by Eric Young
12821282- * (eay@cryptsoft.com). This product includes software written by Tim
12831283- * Hudson (tjh@cryptsoft.com).
12841284- *
12851285- */
12861286-12871287- Original SSLeay License
12881288- -----------------------
12891289-12901290-/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
12911291- * All rights reserved.
12921292- *
12931293- * This package is an SSL implementation written
12941294- * by Eric Young (eay@cryptsoft.com).
12951295- * The implementation was written so as to conform with Netscapes SSL.
12961296- *
12971297- * This library is free for commercial and non-commercial use as long as
12981298- * the following conditions are aheared to. The following conditions
12991299- * apply to all code found in this distribution, be it the RC4, RSA,
13001300- * lhash, DES, etc., code; not just the SSL code. The SSL documentation
13011301- * included with this distribution is covered by the same copyright terms
13021302- * except that the holder is Tim Hudson (tjh@cryptsoft.com).
13031303- *
13041304- * Copyright remains Eric Young's, and as such any Copyright notices in
13051305- * the code are not to be removed.
13061306- * If this package is used in a product, Eric Young should be given attribution
13071307- * as the author of the parts of the library used.
13081308- * This can be in the form of a textual message at program startup or
13091309- * in documentation (online or textual) provided with the package.
13101310- *
13111311- * Redistribution and use in source and binary forms, with or without
13121312- * modification, are permitted provided that the following conditions
13131313- * are met:
13141314- * 1. Redistributions of source code must retain the copyright
13151315- * notice, this list of conditions and the following disclaimer.
13161316- * 2. Redistributions in binary form must reproduce the above copyright
13171317- * notice, this list of conditions and the following disclaimer in the
13181318- * documentation and/or other materials provided with the distribution.
13191319- * 3. All advertising materials mentioning features or use of this software
13201320- * must display the following acknowledgement:
13211321- * "This product includes cryptographic software written by
13221322- * Eric Young (eay@cryptsoft.com)"
13231323- * The word 'cryptographic' can be left out if the rouines from the library
13241324- * being used are not cryptographic related :-).
13251325- * 4. If you include any Windows specific code (or a derivative thereof) from
13261326- * the apps directory (application code) you must include an acknowledgement:
13271327- * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
13281328- *
13291329- * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
13301330- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
13311331- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
13321332- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
13331333- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
13341334- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
13351335- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
13361336- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
13371337- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
13381338- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
13391339- * SUCH DAMAGE.
13401340- *
13411341- * The licence and distribution terms for any publically available version or
13421342- * derivative of this code cannot be changed. i.e. this code cannot simply be
13431343- * copied and put under another distribution licence
13441344- * [including the GNU Public Licence.]
13451345- */
13461346-```
···11-MIT License
22-33-Copyright (c) 2023 Marius Hanl
44-55-Permission is hereby granted, free of charge, to any person obtaining a copy
66-of this software and associated documentation files (the "Software"), to deal
77-in the Software without restriction, including without limitation the rights
88-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99-copies of the Software, and to permit persons to whom the Software is
1010-furnished to do so, subject to the following conditions:
1111-1212-The above copyright notice and this permission notice shall be included in all
1313-copies or substantial portions of the Software.
1414-1515-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121-SOFTWARE.
-70
addons/script-ide/README.md
···11-# Script IDE
22-33-Transforms the Script UI into an IDE like UI.
44-Multiline Tabs are used for navigating between scripts. Tabs can be split.
55-The default Outline got an overhaul and now shows all members of the script (not just methods) with unique icons for faster navigation.
66-Enhanced keyboard navigation for Scripts and Outline.
77-Fast quick search functionality.
88-Quick function Override functionality.
99-1010-Features:
1111-- Scripts are now shown as Multiline Tabs
1212-- Script Tab can be split – showing the current Script as readonly CodeEdit next to the main one. The original script can be reopened by right clicking.
1313-- The Outline got an overhaul and showed more than just the methods of the script. It includes the following members with a unique icon:
1414- - Classes (Red Square)
1515- - Constants (Red Circle)
1616- - Signals (Yellow)
1717- - Export variables (Orange)
1818- - (Static) Variables (Red)
1919- - Engine callback functions (Blue)
2020- - (Static) Functions (Green)
2121- - Setter functions (Green circle, with an arrow inside it pointing to the right)
2222- - Getter functions (Green circle, with an arrow inside it pointing to the left)
2323-- All the different members of the script can be hidden or made visible again by the outline filter. This allows fine control of what should be visible (e.g., only signals, (Godot) functions, ...)
2424-- A `Right Click` enables only the clicked filter, another `Right Click` will enable all filters again
2525-- The Outline can be opened in a Popup with a defined shortcut for quick navigation between methods
2626-- You can navigate through the Outline with the `Arrow` keys (or `Page up/Page down`) and scroll to the selected item by pressing `ENTER`
2727-- Scripts can be opened in a Popup with a defined shortcut or when clicking the three dots on the top right of the Tabs for quick navigation between scripts
2828-- The currently edited script is automatically selected in the Filesystem Dock
2929-- Files can be quickly searched by the Quick Search Popup with `Shift`+`Shift`
3030-- You can find and quickly override any method from your super classes with `Alt`+`Ins`
3131-- The plugin is written with performance in mind, there are no unneeded features and works without any lags or stuttering
3232-3333-Customization:
3434-- The Outline is on the right side (can be changed to be on the left side again)
3535-- The Outline can be toggled via `File -> Toggle Scripts Panel`. This will hide or show it
3636-- The order in the Outline can be changed
3737-- There is also the possibility to hide private members, this is all members starting with a `_`
3838-- The Script ItemList is not visible by default but can be made visible again
3939-4040-All settings can be changed in the `Editor Settings` under `Plugin` -> `Script Ide`:
4141-- `Open Outline Popup` = Shortcut to control how the Outline Popup should be triggered (default=CTRL+O or META+O)
4242-- `Outline Position Right` = Flag to control whether the outline should be on the right or on the left side of the script editor (default=true)
4343-- `Outline Order` = List which specifies the order of all different types in the Outline
4444-- `Hide Private Members` = Flag to control whether private members (methods/variables/constants starting with '_') should be hidden in the Outline or not (default=false)
4545-- `Open Script Popup` = Shortcut to control how the Script Popup should be triggered (default=CTRL+U or META+U)
4646-- `Script List Visible` = Flag to control whether the script list should still be visible or not (above the outline) (default=false)
4747-- `Script Tabs Singleline` = Flag to control whether the script tabs should be in a single line (instead of multiline) (default=false)
4848-- `Script Tabs Visible` = Flag to control whether the script tabs should be visible or not (default=true)
4949-- `Script Tabs Position Top` = Flag to control whether the script tabs should be on the top or on the bottom (default=true)
5050-- `Script Tabs Close Button Always` = Flag to control whether the script tabs should always have the close button or only the select tab (default=false)
5151-- `Auto Navigate in FileSystem Dock` = Flag to control whether the script that is currently edited should be automatically selected in the Filesystem Dock (default=true)
5252-- `Open Quick Search Popup` = Shortcut to control how the Quick Search Popup should be triggered (default=Shift+Shift, double press behavior is hardcoded for now)
5353-- `Open Override Popup` = Shortcut to control how the Override Popup should be triggered (default=Alt+Ins)
5454-- `Cycle Tab forward` = Shortcut to cycle the script tabs in the forward direction (only works in the 'Script' Editor Tab) (default=CTRL+TAB)
5555-- `Cycle Tab backward` = Shortcut to cycle the script tabs in the backward direction (only works in the 'Script' Editor Tab) (default=CTRL+SHIFT+TAB)
5656-- All outline visibility settings
5757-5858-
5959-6060-
6161-6262-
6363-6464-
6565-6666-
6767-6868-
6969-7070-
···11-[plugin]
22-33-name="Script-IDE"
44-description="Transforms the Script UI into an IDE like UI. Tabs are used for navigating between scripts. The default Outline got an overhaul and now shows all members of the script (not just methods) with unique icons for faster navigation. Enhanced keyboard navigation for Scripts and Outline. Fast quick search functionality."
55-author="Marius Hanl"
66-version="2.1.1"
77-script="plugin.gd"
-932
addons/script-ide/plugin.gd
···11-## Copyright (c) 2023-present Marius Hanl under the MIT License.
22-## The editor plugin entrypoint for Script-IDE.
33-##
44-## Some features interfere with the editor code that is inside 'script_editor_plugin.cpp'.
55-## That is, the original structure is changed by this plugin, in order to support everything.
66-## The internals of the native C++ code are therefore important in order to make this plugin work
77-## without interfering with the Engine itself (and their Node's).
88-##
99-## Script-IDE does not use global class_name's in order to not clutter projects using it.
1010-## Especially since this is an editor only plugin, we do not want this plugin in the final game.
1111-## Therefore, components that references the plugin is untyped.
1212-@tool
1313-extends EditorPlugin
1414-1515-const BUILT_IN_SCRIPT: StringName = &"::GDScript"
1616-const QUICK_OPEN_INTERVAL: int = 400
1717-1818-const MULTILINE_TAB_BAR: PackedScene = preload("tabbar/multiline_tab_bar.tscn")
1919-const MultilineTabBar := preload("tabbar/multiline_tab_bar.gd")
2020-2121-const QUICK_OPEN_SCENE: PackedScene = preload("quickopen/quick_open_panel.tscn")
2222-const QuickOpenPopup := preload("quickopen/quick_open_panel.gd")
2323-2424-const OVERRIDE_SCENE: PackedScene = preload("override/override_panel.tscn")
2525-const OverridePopup := preload("override/override_panel.gd")
2626-2727-const Outline := preload("uid://db0be00ai3tfi")
2828-const SplitCodeEdit := preload("uid://boy48rhhyrph")
2929-3030-#region Settings and Shortcuts
3131-## Editor setting path
3232-const SCRIPT_IDE: StringName = &"plugin/script_ide/"
3333-## Editor setting for the outline position
3434-const OUTLINE_POSITION_RIGHT: StringName = SCRIPT_IDE + &"outline_position_right"
3535-## Editor setting to control the order of the outline
3636-const OUTLINE_ORDER: StringName = SCRIPT_IDE + &"outline_order"
3737-## Editor setting to control whether private members (annotated with '_' should be hidden or not)
3838-const HIDE_PRIVATE_MEMBERS: StringName = SCRIPT_IDE + &"hide_private_members"
3939-## Editor setting to control whether we want to auto navigate to the script
4040-## in the filesystem (dock) when selected
4141-const AUTO_NAVIGATE_IN_FS: StringName = SCRIPT_IDE + &"auto_navigate_in_filesystem_dock"
4242-## Editor setting to control whether the script list should be visible or not
4343-const SCRIPT_LIST_VISIBLE: StringName = SCRIPT_IDE + &"script_list_visible"
4444-## Editor setting to control whether the script tabs should be visible or not.
4545-const SCRIPT_TABS_VISIBLE: StringName = SCRIPT_IDE + &"script_tabs_visible"
4646-## Editor setting to control where the script tabs should be.
4747-const SCRIPT_TABS_POSITION_TOP: StringName = SCRIPT_IDE + &"script_tabs_position_top"
4848-## Editor setting to control if all script tabs should have close button.
4949-const SCRIPT_TABS_CLOSE_BUTTON_ALWAYS: StringName = SCRIPT_IDE + &"script_tabs_close_button_always"
5050-## Editor setting to control if all tabs should be shown in a single line.
5151-const SCRIPT_TABS_SINGLELINE: StringName = SCRIPT_IDE + &"script_tabs_singleline"
5252-5353-## Editor setting for the 'Open Outline Popup' shortcut
5454-const OPEN_OUTLINE_POPUP: StringName = SCRIPT_IDE + &"open_outline_popup"
5555-## Editor setting for the 'Open Scripts Popup' shortcut
5656-const OPEN_SCRIPTS_POPUP: StringName = SCRIPT_IDE + &"open_scripts_popup"
5757-## Editor setting for the 'Open Scripts Popup' shortcut
5858-const OPEN_QUICK_SEARCH_POPUP: StringName = SCRIPT_IDE + &"open_quick_search_popup"
5959-## Editor setting for the 'Open Override Popup' shortcut
6060-const OPEN_OVERRIDE_POPUP: StringName = SCRIPT_IDE + &"open_override_popup"
6161-## Editor setting for the 'Tab cycle forward' shortcut
6262-const TAB_CYCLE_FORWARD: StringName = SCRIPT_IDE + &"tab_cycle_forward"
6363-## Editor setting for the 'Tab cycle backward' shortcut
6464-const TAB_CYCLE_BACKWARD: StringName = SCRIPT_IDE + &"tab_cycle_backward"
6565-6666-## Engine editor setting for the icon saturation, so our icons can react.
6767-const ICON_SATURATION: StringName = &"interface/theme/icon_saturation"
6868-## Engine editor setting for the show members functionality.
6969-const SHOW_MEMBERS: StringName = &"text_editor/script_list/show_members_overview"
7070-## We track the user setting, so we can restore it properly.
7171-var show_members: bool = true
7272-#endregion
7373-7474-#region Editor settings
7575-var is_outline_right: bool = true
7676-var is_hide_private_members: bool = false
7777-7878-var is_script_tabs_visible: bool = true
7979-var is_script_tabs_top: bool = true
8080-var is_script_tabs_close_button_always: bool = false
8181-var is_script_tabs_singleline: bool = false
8282-8383-var is_auto_navigate_in_fs: bool = true
8484-var is_script_list_visible: bool = false
8585-8686-var outline_order: PackedStringArray
8787-8888-var open_outline_popup_shc: Shortcut
8989-var open_scripts_popup_shc: Shortcut
9090-var open_quick_search_popup_shc: Shortcut
9191-var open_override_popup_shc: Shortcut
9292-var tab_cycle_forward_shc: Shortcut
9393-var tab_cycle_backward_shc: Shortcut
9494-#endregion
9595-9696-#region Existing controls we modify
9797-var script_editor_split_container: HSplitContainer
9898-var files_panel: Control
9999-100100-var old_scripts_tab_container: TabContainer
101101-var old_scripts_tab_bar: TabBar
102102-103103-var script_filter_txt: LineEdit
104104-var scripts_item_list: ItemList
105105-var script_panel_split_container: VSplitContainer
106106-107107-var old_outline: ItemList
108108-var outline_filter_txt: LineEdit
109109-var sort_btn: Button
110110-#endregion
111111-112112-#region Own controls we add
113113-var outline: Outline
114114-var outline_popup: PopupPanel
115115-var multiline_tab_bar: MultilineTabBar
116116-var scripts_popup: PopupPanel
117117-var quick_open_popup: QuickOpenPopup
118118-var override_popup: OverridePopup
119119-120120-var tab_splitter: HSplitContainer
121121-#endregion
122122-123123-#region Plugin variables
124124-var keywords: Dictionary[String, bool] = {} # Used as Set.
125125-126126-var old_script_editor_base: ScriptEditorBase
127127-var old_script_type: StringName
128128-129129-var is_script_changed: bool = false
130130-var file_to_navigate: String = &""
131131-132132-var quick_open_tween: Tween
133133-134134-var suppress_settings_sync: bool = false
135135-#endregion
136136-137137-#region Plugin Enter / Exit setup
138138-## Change the Engine script UI and transform into an IDE like UI
139139-func _enter_tree() -> void:
140140- init_settings()
141141- init_shortcuts()
142142-143143- # Update on filesystem changed (e.g. save operation).
144144- var file_system: EditorFileSystem = EditorInterface.get_resource_filesystem()
145145- file_system.filesystem_changed.connect(schedule_update)
146146-147147- # Sync settings changes for this plugin.
148148- get_editor_settings().settings_changed.connect(sync_settings)
149149-150150- var script_editor: ScriptEditor = EditorInterface.get_script_editor()
151151- script_editor_split_container = find_or_null(script_editor.find_children("*", "HSplitContainer", true, false))
152152- files_panel = script_editor_split_container.get_child(0)
153153-154154- # The 'Filter Scripts' Panel
155155- var upper_files_panel: Control = files_panel.get_child(0)
156156- # The 'Filter Methods' Panel
157157- var lower_files_panel: Control = files_panel.get_child(1)
158158-159159- # Change script item list visibility (based on settings).
160160- scripts_item_list = find_or_null(upper_files_panel.find_children("*", "ItemList", true, false))
161161- scripts_item_list.allow_reselect = true
162162- scripts_item_list.item_selected.connect(hide_scripts_popup.unbind(1))
163163- update_script_list_visibility()
164164-165165- # Add script filter navigation.
166166- script_filter_txt = find_or_null(scripts_item_list.get_parent().find_children("*", "LineEdit", true, false))
167167- script_filter_txt.gui_input.connect(navigate_on_list.bind(scripts_item_list, select_script))
168168-169169- # --- Outline Start --- #
170170- old_outline = find_or_null(lower_files_panel.find_children("*", "ItemList", true, false))
171171- lower_files_panel.remove_child(old_outline)
172172-173173- outline = Outline.new()
174174- outline.plugin = self
175175-176176- # Add navigation to the filter and text filtering.
177177- outline_filter_txt = find_or_null(lower_files_panel.find_children("*", "LineEdit", true, false))
178178- outline_filter_txt.gui_input.connect(navigate_on_list.bind(outline, scroll_outline))
179179- outline_filter_txt.text_changed.connect(update_outline.unbind(1))
180180-181181- outline.outline_filter_txt = outline_filter_txt
182182- lower_files_panel.add_child(outline)
183183-184184- outline.item_selected.connect(scroll_outline)
185185-186186- outline.get_parent().add_child(outline.filter_box)
187187- outline.get_parent().move_child(outline.filter_box, outline.get_index())
188188-189189- # Add callback when the sorting changed.
190190- sort_btn = find_or_null(lower_files_panel.find_children("*", "Button", true, false))
191191- sort_btn.pressed.connect(update_outline)
192192-193193- update_outline_order()
194194- update_outline_position()
195195- # --- Outline End --- #
196196-197197- # --- Tabs Start --- #
198198- old_scripts_tab_container = find_or_null(script_editor.find_children("*", "TabContainer", true, false))
199199- old_scripts_tab_bar = old_scripts_tab_container.get_tab_bar()
200200-201201- var tab_container_parent: Control = old_scripts_tab_container.get_parent()
202202- tab_splitter = HSplitContainer.new()
203203- tab_splitter.size_flags_horizontal = Control.SIZE_EXPAND_FILL
204204- tab_splitter.size_flags_vertical = Control.SIZE_EXPAND_FILL
205205-206206- tab_container_parent.add_child(tab_splitter)
207207- tab_container_parent.move_child(tab_splitter, 0)
208208- old_scripts_tab_container.reparent(tab_splitter)
209209-210210- # When something changed, we need to sync our own tab container.
211211- old_scripts_tab_container.child_order_changed.connect(notify_order_changed)
212212-213213- multiline_tab_bar = MULTILINE_TAB_BAR.instantiate()
214214- multiline_tab_bar.plugin = self
215215- multiline_tab_bar.scripts_item_list = scripts_item_list
216216- multiline_tab_bar.script_filter_txt = script_filter_txt
217217- multiline_tab_bar.scripts_tab_container = old_scripts_tab_container
218218-219219- tab_container_parent.add_theme_constant_override(&"separation", 0)
220220- tab_container_parent.add_child(multiline_tab_bar)
221221-222222- multiline_tab_bar.split_btn.toggled.connect(toggle_split_view.unbind(1))
223223- update_tabs_position()
224224- update_tabs_close_button()
225225- update_tabs_visibility()
226226- update_singleline_tabs()
227227-228228- # Create and set script popup.
229229- script_panel_split_container = scripts_item_list.get_parent().get_parent()
230230- create_set_scripts_popup()
231231- # --- Tabs End --- #
232232-233233- old_scripts_tab_bar.tab_changed.connect(on_tab_changed)
234234- on_tab_changed(old_scripts_tab_bar.current_tab)
235235-236236-## Restore the old Engine script UI and free everything we created
237237-func _exit_tree() -> void:
238238- var file_system: EditorFileSystem = EditorInterface.get_resource_filesystem()
239239- file_system.filesystem_changed.disconnect(schedule_update)
240240- get_editor_settings().settings_changed.disconnect(sync_settings)
241241-242242- if (tab_splitter != null):
243243- var tab_container_parent: Control = tab_splitter.get_parent()
244244- old_scripts_tab_container.reparent(tab_container_parent)
245245- tab_container_parent.move_child(old_scripts_tab_container, 1)
246246- tab_splitter.free()
247247-248248- if (script_editor_split_container != null):
249249- if (script_editor_split_container != files_panel.get_parent()):
250250- script_editor_split_container.add_child(files_panel)
251251-252252- # Try to restore the previous split offset.
253253- if (is_outline_right):
254254- var split_offset: float = script_editor_split_container.get_child(1).size.x
255255- script_editor_split_container.split_offset = split_offset
256256-257257- script_editor_split_container.move_child(files_panel, 0)
258258-259259- outline_filter_txt.gui_input.disconnect(navigate_on_list)
260260- outline_filter_txt.text_changed.disconnect(update_outline)
261261- sort_btn.pressed.disconnect(update_outline)
262262-263263- outline.item_selected.disconnect(scroll_outline)
264264-265265- var outline_parent: Control = outline.get_parent()
266266- outline_parent.remove_child(outline.filter_box)
267267- outline_parent.remove_child(outline)
268268- outline_parent.add_child(old_outline)
269269- outline_parent.move_child(old_outline, -2)
270270-271271- outline.filter_box.free()
272272- outline.free()
273273-274274- if (old_scripts_tab_bar != null):
275275- old_scripts_tab_bar.tab_changed.disconnect(on_tab_changed)
276276-277277- if (old_scripts_tab_container != null):
278278- old_scripts_tab_container.child_order_changed.disconnect(notify_order_changed)
279279- old_scripts_tab_container.get_parent().remove_theme_constant_override(&"separation")
280280- old_scripts_tab_container.get_parent().remove_child(multiline_tab_bar)
281281-282282- if (multiline_tab_bar != null):
283283- multiline_tab_bar.free_tabs()
284284- multiline_tab_bar.free()
285285- scripts_popup.free()
286286-287287- if (scripts_item_list != null):
288288- scripts_item_list.allow_reselect = false
289289- scripts_item_list.item_selected.disconnect(hide_scripts_popup)
290290- scripts_item_list.get_parent().visible = true
291291-292292- if (script_filter_txt != null):
293293- script_filter_txt.gui_input.disconnect(navigate_on_list)
294294-295295- if (outline_popup != null):
296296- outline_popup.free()
297297- if (quick_open_popup != null):
298298- quick_open_popup.free()
299299- if (override_popup != null):
300300- override_popup.free()
301301-302302- if (!show_members):
303303- set_setting(SHOW_MEMBERS, show_members)
304304-#endregion
305305-306306-#region Plugin and Shortcut processing
307307-## Lazy pattern to update the editor only once per frame
308308-func _process(delta: float) -> void:
309309- update_editor()
310310- set_process(false)
311311-312312-## Process the user defined shortcuts
313313-func _shortcut_input(event: InputEvent) -> void:
314314- if (!event.is_pressed() || event.is_echo()):
315315- return
316316-317317- if (open_outline_popup_shc.matches_event(event)):
318318- get_viewport().set_input_as_handled()
319319- open_outline_popup()
320320- elif (open_scripts_popup_shc.matches_event(event)):
321321- get_viewport().set_input_as_handled()
322322- open_scripts_popup()
323323- elif (open_quick_search_popup_shc.matches_event(event)):
324324- if (quick_open_tween != null && quick_open_tween.is_running()):
325325- get_viewport().set_input_as_handled()
326326- if (quick_open_tween != null):
327327- quick_open_tween.kill()
328328-329329- quick_open_tween = create_tween()
330330- quick_open_tween.tween_interval(0.1)
331331- quick_open_tween.tween_callback(open_quick_search_popup)
332332- quick_open_tween.tween_callback(func(): quick_open_tween = null)
333333- else:
334334- quick_open_tween = create_tween()
335335- quick_open_tween.tween_interval(QUICK_OPEN_INTERVAL / 1000.0)
336336- quick_open_tween.tween_callback(func(): quick_open_tween = null)
337337- elif (open_override_popup_shc.matches_event(event)):
338338- get_viewport().set_input_as_handled()
339339- open_override_popup()
340340-341341-## May cancels the quick search shortcut timer.
342342-func _input(event: InputEvent) -> void:
343343- if (event is InputEventKey):
344344- if (!open_quick_search_popup_shc.matches_event(event)):
345345- if (quick_open_tween != null):
346346- quick_open_tween.kill()
347347- quick_open_tween = null
348348-#endregion
349349-350350-#region Settings and Shortcut initialization
351351-352352-## Initializes all settings.
353353-## Every setting can be changed while this plugin is active, which will override them.
354354-func init_settings():
355355- is_outline_right = get_setting(OUTLINE_POSITION_RIGHT, is_outline_right)
356356- is_hide_private_members = get_setting(HIDE_PRIVATE_MEMBERS, is_hide_private_members)
357357- is_script_list_visible = get_setting(SCRIPT_LIST_VISIBLE, is_script_list_visible)
358358- is_auto_navigate_in_fs = get_setting(AUTO_NAVIGATE_IN_FS, is_auto_navigate_in_fs)
359359- is_script_tabs_visible = get_setting(SCRIPT_TABS_VISIBLE, is_script_tabs_visible)
360360- is_script_tabs_top = get_setting(SCRIPT_TABS_POSITION_TOP, is_script_tabs_top)
361361- is_script_tabs_close_button_always = get_setting(SCRIPT_TABS_CLOSE_BUTTON_ALWAYS, is_script_tabs_close_button_always)
362362- is_script_tabs_singleline = get_setting(SCRIPT_TABS_SINGLELINE, is_script_tabs_singleline)
363363-364364- outline_order = get_outline_order()
365365-366366- # Users may disabled this, but with this plugin, we want to show the new Outline.
367367- # So we need to reenable it, but restore the old value on exit.
368368- show_members = get_setting(SHOW_MEMBERS, true)
369369- if (!show_members):
370370- set_setting(SHOW_MEMBERS, true)
371371-372372-## Initializes all shortcuts.
373373-## Every shortcut can be changed while this plugin is active, which will override them.
374374-func init_shortcuts():
375375- var editor_settings: EditorSettings = get_editor_settings()
376376- if (!editor_settings.has_setting(OPEN_OUTLINE_POPUP)):
377377- var shortcut: Shortcut = Shortcut.new()
378378- var event: InputEventKey = InputEventKey.new()
379379- event.device = -1
380380- event.command_or_control_autoremap = true
381381- event.keycode = KEY_O
382382-383383- shortcut.events = [ event ]
384384- editor_settings.set_setting(OPEN_OUTLINE_POPUP, shortcut)
385385-386386- if (!editor_settings.has_setting(OPEN_SCRIPTS_POPUP)):
387387- var shortcut: Shortcut = Shortcut.new()
388388- var event: InputEventKey = InputEventKey.new()
389389- event.device = -1
390390- event.command_or_control_autoremap = true
391391- event.keycode = KEY_U
392392-393393- shortcut.events = [ event ]
394394- editor_settings.set_setting(OPEN_SCRIPTS_POPUP, shortcut)
395395-396396- if (!editor_settings.has_setting(OPEN_QUICK_SEARCH_POPUP)):
397397- var shortcut: Shortcut = Shortcut.new()
398398- var event: InputEventKey = InputEventKey.new()
399399- event.device = -1
400400- event.keycode = KEY_SHIFT
401401-402402- shortcut.events = [ event ]
403403- editor_settings.set_setting(OPEN_QUICK_SEARCH_POPUP, shortcut)
404404-405405- if (!editor_settings.has_setting(OPEN_OVERRIDE_POPUP)):
406406- var shortcut: Shortcut = Shortcut.new()
407407- var event: InputEventKey = InputEventKey.new()
408408- event.device = -1
409409- event.keycode = KEY_INSERT
410410- event.alt_pressed = true
411411-412412- shortcut.events = [ event ]
413413- editor_settings.set_setting(OPEN_OVERRIDE_POPUP, shortcut)
414414-415415- if (!editor_settings.has_setting(TAB_CYCLE_FORWARD)):
416416- var shortcut: Shortcut = Shortcut.new()
417417- var event: InputEventKey = InputEventKey.new()
418418- event.device = -1
419419- event.keycode = KEY_TAB
420420- event.ctrl_pressed = true
421421-422422- shortcut.events = [ event ]
423423- editor_settings.set_setting(TAB_CYCLE_FORWARD, shortcut)
424424-425425- if (!editor_settings.has_setting(TAB_CYCLE_BACKWARD)):
426426- var shortcut: Shortcut = Shortcut.new()
427427- var event: InputEventKey = InputEventKey.new()
428428- event.device = -1
429429- event.keycode = KEY_TAB
430430- event.shift_pressed = true
431431- event.ctrl_pressed = true
432432-433433- shortcut.events = [ event ]
434434- editor_settings.set_setting(TAB_CYCLE_BACKWARD, shortcut)
435435-436436- open_outline_popup_shc = editor_settings.get_setting(OPEN_OUTLINE_POPUP)
437437- open_scripts_popup_shc = editor_settings.get_setting(OPEN_SCRIPTS_POPUP)
438438- open_quick_search_popup_shc = editor_settings.get_setting(OPEN_QUICK_SEARCH_POPUP)
439439- open_override_popup_shc = editor_settings.get_setting(OPEN_OVERRIDE_POPUP)
440440- tab_cycle_forward_shc = editor_settings.get_setting(TAB_CYCLE_FORWARD)
441441- tab_cycle_backward_shc = editor_settings.get_setting(TAB_CYCLE_BACKWARD)
442442-#endregion
443443-444444-## Schedules an update on the next frame.
445445-func schedule_update():
446446- set_process(true)
447447-448448-## Updates all parts of the editor that are needed to be synchronized with the file system change.
449449-func update_editor():
450450- if (file_to_navigate != &""):
451451- EditorInterface.select_file(file_to_navigate)
452452- EditorInterface.get_script_editor().get_current_editor().get_base_editor().grab_focus()
453453- file_to_navigate = &""
454454-455455- update_keywords()
456456-457457- if (is_script_changed):
458458- multiline_tab_bar.tab_changed()
459459- outline.tab_changed()
460460- is_script_changed = false
461461- else:
462462- # We saved / filesystem changed. so need to update everything.
463463- multiline_tab_bar.update_tabs()
464464- outline.update()
465465-466466-func on_tab_changed(index: int):
467467- if (old_script_editor_base != null):
468468- old_script_editor_base.edited_script_changed.disconnect(update_selected_tab)
469469- old_script_editor_base = null
470470-471471- var script_editor: ScriptEditor = EditorInterface.get_script_editor()
472472- var script_editor_base: ScriptEditorBase = script_editor.get_current_editor()
473473-474474- if (script_editor_base != null):
475475- script_editor_base.edited_script_changed.connect(update_selected_tab)
476476-477477- old_script_editor_base = script_editor_base
478478-479479- if (!multiline_tab_bar.is_split()):
480480- multiline_tab_bar.split_btn.disabled = script_editor_base == null
481481-482482- is_script_changed = true
483483-484484- if (is_auto_navigate_in_fs && script_editor.get_current_script() != null):
485485- var file: String = script_editor.get_current_script().get_path()
486486-487487- if (file.contains(BUILT_IN_SCRIPT)):
488488- # We navigate to the scene in case of a built-in script.
489489- file = file.get_slice(BUILT_IN_SCRIPT, 0)
490490-491491- file_to_navigate = file
492492- else:
493493- file_to_navigate = &""
494494-495495- schedule_update()
496496-497497-func toggle_split_view():
498498- var script_editor: ScriptEditor = EditorInterface.get_script_editor()
499499- var split_script_editor_base: ScriptEditorBase = script_editor.get_current_editor()
500500-501501- if (!multiline_tab_bar.is_split()):
502502- if (split_script_editor_base == null):
503503- return
504504-505505- var base_editor: Control = split_script_editor_base.get_base_editor()
506506- if !(base_editor is CodeEdit):
507507- return
508508-509509- multiline_tab_bar.set_split(script_editor.get_current_script())
510510-511511- var editor: CodeEdit = SplitCodeEdit.new_from(base_editor)
512512-513513- var container: PanelContainer = PanelContainer.new()
514514- container.custom_minimum_size.x = 200
515515- container.size_flags_horizontal = Control.SIZE_EXPAND_FILL
516516-517517- container.add_child(editor)
518518- tab_splitter.add_child(container)
519519- else:
520520- multiline_tab_bar.set_split(null)
521521- tab_splitter.remove_child(tab_splitter.get_child(tab_splitter.get_child_count() - 1))
522522-523523- if (split_script_editor_base == null):
524524- multiline_tab_bar.split_btn.disabled = true
525525-526526-func notify_order_changed():
527527- multiline_tab_bar.script_order_changed()
528528-529529-func open_quick_search_popup():
530530- var pref_size: Vector2
531531- if (quick_open_popup == null):
532532- quick_open_popup = QUICK_OPEN_SCENE.instantiate()
533533- quick_open_popup.plugin = self
534534- quick_open_popup.set_unparent_when_invisible(true)
535535- pref_size = Vector2(500, 400) * get_editor_scale()
536536- else:
537537- pref_size = quick_open_popup.size
538538-539539- quick_open_popup.popup_exclusive_on_parent(EditorInterface.get_script_editor(), get_center_editor_rect(pref_size))
540540-541541-func open_override_popup():
542542- var script: Script = get_current_script()
543543- if (!script):
544544- return
545545-546546- var pref_size: Vector2
547547- if (override_popup == null):
548548- override_popup = OVERRIDE_SCENE.instantiate()
549549- override_popup.plugin = self
550550- override_popup.outline = outline
551551- override_popup.set_unparent_when_invisible(true)
552552- pref_size = Vector2(500, 400) * get_editor_scale()
553553- else:
554554- pref_size = override_popup.size
555555-556556- override_popup.popup_exclusive_on_parent(EditorInterface.get_script_editor(), get_center_editor_rect(pref_size))
557557-558558-func hide_scripts_popup():
559559- if (scripts_popup != null && scripts_popup.visible):
560560- scripts_popup.hide.call_deferred()
561561-562562-func create_set_scripts_popup():
563563- scripts_popup = PopupPanel.new()
564564- scripts_popup.popup_hide.connect(restore_scripts_list)
565565-566566- # Need to be inside the tree, so it can be shown as popup for the tab container.
567567- var script_editor: ScriptEditor = EditorInterface.get_script_editor()
568568- script_editor.add_child(scripts_popup)
569569-570570- multiline_tab_bar.set_popup(scripts_popup)
571571-572572-func restore_scripts_list():
573573- script_filter_txt.text = &""
574574-575575- update_script_list_visibility()
576576-577577- scripts_item_list.get_parent().reparent(script_panel_split_container)
578578- script_panel_split_container.move_child(scripts_item_list.get_parent(), 0)
579579-580580-func navigate_on_list(event: InputEvent, list: ItemList, submit: Callable):
581581- if (event.is_action_pressed(&"ui_text_submit")):
582582- list.accept_event()
583583-584584- var index: int = get_list_index(list)
585585- if (index == -1):
586586- return
587587-588588- submit.call(index)
589589- list.accept_event()
590590- elif (event.is_action_pressed(&"ui_down", true)):
591591- var index: int = get_list_index(list)
592592- if (index == list.item_count - 1):
593593- return
594594-595595- navigate_list(list, index, 1)
596596- elif (event.is_action_pressed(&"ui_up", true)):
597597- var index: int = get_list_index(list)
598598- if (index <= 0):
599599- return
600600-601601- navigate_list(list, index, -1)
602602- elif (event.is_action_pressed(&"ui_page_down", true)):
603603- var index: int = get_list_index(list)
604604- if (index == list.item_count - 1):
605605- return
606606-607607- navigate_list(list, index, 5)
608608- elif (event.is_action_pressed(&"ui_page_up", true)):
609609- var index: int = get_list_index(list)
610610- if (index <= 0):
611611- return
612612-613613- navigate_list(list, index, -5)
614614- elif (event is InputEventKey && list.item_count > 0 && !list.is_anything_selected()):
615615- list.select(0)
616616-617617-func get_list_index(list: ItemList) -> int:
618618- var items: PackedInt32Array = list.get_selected_items()
619619-620620- if (items.is_empty()):
621621- return -1
622622-623623- return items[0]
624624-625625-func navigate_list(list: ItemList, index: int, amount: int):
626626- index = clamp(index + amount, 0, list.item_count - 1)
627627-628628- list.select(index)
629629- list.ensure_current_is_visible()
630630- list.accept_event()
631631-632632-func get_center_editor_rect(pref_size: Vector2) -> Rect2i:
633633- var script_editor: ScriptEditor = EditorInterface.get_script_editor()
634634-635635- var position: Vector2 = script_editor.global_position + script_editor.size / 2 - pref_size / 2
636636-637637- return Rect2i(position, pref_size)
638638-639639-func open_outline_popup():
640640- if (get_current_script() == null):
641641- return
642642-643643- var button_flags: Array[bool] = outline.save_restore_filter()
644644-645645- var old_text: String = outline_filter_txt.text
646646- outline_filter_txt.text = &""
647647-648648- var pref_size: Vector2
649649- if (outline_popup == null):
650650- outline_popup = PopupPanel.new()
651651- outline_popup.set_unparent_when_invisible(true)
652652- pref_size = Vector2(500, 400) * get_editor_scale()
653653- else:
654654- pref_size = outline_popup.size
655655-656656- var outline_initially_closed: bool = !files_panel.visible
657657- if (outline_initially_closed):
658658- files_panel.visible = true
659659-660660- files_panel.reparent(outline_popup)
661661-662662- outline_popup.popup_hide.connect(on_outline_popup_hidden.bind(outline_initially_closed, old_text, button_flags))
663663-664664- outline_popup.popup_exclusive_on_parent(EditorInterface.get_script_editor(), get_center_editor_rect(pref_size))
665665-666666- update_outline()
667667- outline_filter_txt.grab_focus()
668668-669669-func on_outline_popup_hidden(outline_initially_closed: bool, old_text: String, button_flags: Array[bool]):
670670- outline_popup.popup_hide.disconnect(on_outline_popup_hidden)
671671-672672- if outline_initially_closed:
673673- files_panel.visible = false
674674-675675- files_panel.reparent(script_editor_split_container)
676676- if (!is_outline_right):
677677- script_editor_split_container.move_child(files_panel, 0)
678678-679679- outline_filter_txt.text = old_text
680680-681681- outline.restore_filter(button_flags)
682682-683683- update_outline()
684684-685685-func open_scripts_popup():
686686- multiline_tab_bar.show_popup()
687687-688688-func get_current_script() -> Script:
689689- var script_editor: ScriptEditor = EditorInterface.get_script_editor()
690690- return script_editor.get_current_script()
691691-692692-func select_script(selected_idx: int):
693693- hide_scripts_popup()
694694-695695- scripts_item_list.item_selected.emit(selected_idx)
696696-697697-func scroll_outline(selected_idx: int):
698698- if (outline_popup != null && outline_popup.visible):
699699- outline_popup.hide.call_deferred()
700700-701701- var script: Script = get_current_script()
702702- if (!script):
703703- return
704704-705705- var text: String = outline.get_item_text(selected_idx)
706706- var metadata: Dictionary[StringName, StringName] = outline.get_item_metadata(selected_idx)
707707- var modifier: StringName = metadata[&"modifier"]
708708- var type: StringName = metadata[&"type"]
709709-710710- var type_with_text: String = type + " " + text
711711- if (type == &"func"):
712712- type_with_text = type_with_text + "("
713713-714714- var source_code: String = script.get_source_code()
715715- var lines: PackedStringArray = source_code.split("\n")
716716-717717- var index: int = 0
718718- for line: String in lines:
719719- # Easy case, like 'var abc'
720720- if (line.begins_with(type_with_text)):
721721- goto_line(index)
722722- return
723723-724724- # We have an modifier, e.g. 'static'
725725- if (modifier != &"" && line.begins_with(modifier)):
726726- if (line.begins_with(modifier + " " + type_with_text)):
727727- goto_line(index)
728728- return
729729- # Special case: An 'enum' is treated different.
730730- elif (modifier == &"enum" && line.contains("enum " + text)):
731731- goto_line(index)
732732- return
733733-734734- # Hard case, probably something like '@onready var abc'
735735- if (type == &"var" && line.contains(type_with_text)):
736736- goto_line(index)
737737- return
738738-739739- index += 1
740740-741741- push_error(type_with_text + " or " + modifier + " not found in source code")
742742-743743-func goto_line(index: int):
744744- var script_editor: ScriptEditor = EditorInterface.get_script_editor()
745745- script_editor.goto_line(index)
746746-747747- var code_edit: CodeEdit = script_editor.get_current_editor().get_base_editor()
748748- code_edit.set_caret_line(index)
749749- code_edit.set_v_scroll(index)
750750- code_edit.set_caret_column(code_edit.get_line(index).length())
751751- code_edit.set_h_scroll(0)
752752-753753- code_edit.grab_focus()
754754-755755-func update_script_list_visibility():
756756- scripts_item_list.get_parent().visible = is_script_list_visible
757757-758758-func sync_settings():
759759- if (suppress_settings_sync):
760760- return
761761-762762- var changed_settings: PackedStringArray = get_editor_settings().get_changed_settings()
763763- for setting: String in changed_settings:
764764- if (setting == ICON_SATURATION):
765765- outline.reset_icons()
766766- elif (setting == SHOW_MEMBERS):
767767- show_members = get_setting(SHOW_MEMBERS, true)
768768- if (!show_members):
769769- set_setting(SHOW_MEMBERS, true)
770770-771771- if (!setting.begins_with(SCRIPT_IDE)):
772772- continue
773773-774774- match (setting):
775775- OUTLINE_POSITION_RIGHT:
776776- var new_outline_right: bool = get_setting(OUTLINE_POSITION_RIGHT, is_outline_right)
777777- if (new_outline_right != is_outline_right):
778778- is_outline_right = new_outline_right
779779-780780- update_outline_position()
781781- OUTLINE_ORDER:
782782- var new_outline_order: PackedStringArray = get_outline_order()
783783- if (new_outline_order != outline_order):
784784- outline_order = new_outline_order
785785-786786- update_outline_order()
787787- HIDE_PRIVATE_MEMBERS:
788788- var new_hide_private_members: bool = get_setting(HIDE_PRIVATE_MEMBERS, is_hide_private_members)
789789- if (new_hide_private_members != is_hide_private_members):
790790- is_hide_private_members = new_hide_private_members
791791-792792- outline.update()
793793- SCRIPT_LIST_VISIBLE:
794794- var new_script_list_visible: bool = get_setting(SCRIPT_LIST_VISIBLE, is_script_list_visible)
795795- if (new_script_list_visible != is_script_list_visible):
796796- is_script_list_visible = new_script_list_visible
797797-798798- update_script_list_visibility()
799799- SCRIPT_TABS_VISIBLE:
800800- var new_script_tabs_visible: bool = get_setting(SCRIPT_TABS_VISIBLE, is_script_tabs_visible)
801801- if (new_script_tabs_visible != is_script_tabs_visible):
802802- is_script_tabs_visible = new_script_tabs_visible
803803-804804- update_tabs_visibility()
805805- SCRIPT_TABS_POSITION_TOP:
806806- var new_script_tabs_top: bool = get_setting(SCRIPT_TABS_POSITION_TOP, is_script_tabs_top)
807807- if (new_script_tabs_top != is_script_tabs_top):
808808- is_script_tabs_top = new_script_tabs_top
809809-810810- update_tabs_position()
811811- SCRIPT_TABS_CLOSE_BUTTON_ALWAYS:
812812- var new_script_tabs_close_button_always: bool = get_setting(SCRIPT_TABS_CLOSE_BUTTON_ALWAYS, is_script_tabs_close_button_always)
813813- if (new_script_tabs_close_button_always != is_script_tabs_close_button_always):
814814- is_script_tabs_close_button_always = new_script_tabs_close_button_always
815815-816816- update_tabs_close_button()
817817- SCRIPT_TABS_SINGLELINE:
818818- var new_script_tabs_singleline: bool = get_setting(SCRIPT_TABS_SINGLELINE, is_script_tabs_singleline)
819819- if (new_script_tabs_singleline != is_script_tabs_singleline):
820820- is_script_tabs_singleline = new_script_tabs_singleline
821821-822822- update_singleline_tabs()
823823- AUTO_NAVIGATE_IN_FS:
824824- is_auto_navigate_in_fs = get_setting(AUTO_NAVIGATE_IN_FS, is_auto_navigate_in_fs)
825825- OPEN_OUTLINE_POPUP:
826826- open_outline_popup_shc = get_shortcut(OPEN_OUTLINE_POPUP)
827827- OPEN_SCRIPTS_POPUP:
828828- open_scripts_popup_shc = get_shortcut(OPEN_SCRIPTS_POPUP)
829829- OPEN_OVERRIDE_POPUP:
830830- open_override_popup_shc = get_shortcut(OPEN_OVERRIDE_POPUP)
831831- TAB_CYCLE_FORWARD:
832832- tab_cycle_forward_shc = get_shortcut(TAB_CYCLE_FORWARD)
833833- TAB_CYCLE_BACKWARD:
834834- tab_cycle_backward_shc = get_shortcut(TAB_CYCLE_BACKWARD)
835835- _:
836836- outline.update_filter_buttons()
837837-838838-func update_selected_tab():
839839- multiline_tab_bar.update_selected_tab()
840840-841841-func update_tabs_position():
842842- var tab_container_parent: Control = multiline_tab_bar.get_parent()
843843- if (is_script_tabs_top):
844844- tab_container_parent.move_child(multiline_tab_bar, 0)
845845- else:
846846- tab_container_parent.move_child(multiline_tab_bar, tab_container_parent.get_child_count() - 1)
847847-848848-func update_tabs_close_button():
849849- multiline_tab_bar.show_close_button_always = is_script_tabs_close_button_always
850850-851851-func update_tabs_visibility():
852852- multiline_tab_bar.visible = is_script_tabs_visible
853853-854854-func update_singleline_tabs():
855855- multiline_tab_bar.is_singleline_tabs = is_script_tabs_singleline
856856-857857-func update_outline():
858858- outline.update_outline()
859859-860860-func update_outline_position():
861861- if (is_outline_right):
862862- # Try to restore the previous split offset.
863863- var split_offset: float = script_editor_split_container.get_child(1).size.x
864864- script_editor_split_container.split_offset = split_offset
865865- script_editor_split_container.move_child(files_panel, 1)
866866- else:
867867- script_editor_split_container.move_child(files_panel, 0)
868868-869869-func update_outline_order():
870870- outline.outline_order = outline_order
871871-872872-func update_keywords():
873873- var script: Script = get_current_script()
874874- if (script == null):
875875- return
876876-877877- var new_script_type: StringName = script.get_instance_base_type()
878878- if (old_script_type != new_script_type):
879879- old_script_type = new_script_type
880880-881881- keywords.clear()
882882- keywords["_static_init"] = true
883883- register_virtual_methods(new_script_type)
884884-885885-func register_virtual_methods(clazz: String):
886886- for method: Dictionary in ClassDB.class_get_method_list(clazz):
887887- if (method[&"flags"] & METHOD_FLAG_VIRTUAL > 0):
888888- keywords[method[&"name"]] = true
889889-890890-func get_editor_scale() -> float:
891891- return EditorInterface.get_editor_scale()
892892-893893-func get_editor_settings() -> EditorSettings:
894894- return EditorInterface.get_editor_settings()
895895-896896-func get_setting(property: StringName, alt: bool) -> bool:
897897- var editor_settings: EditorSettings = get_editor_settings()
898898- if (editor_settings.has_setting(property)):
899899- return editor_settings.get_setting(property)
900900- else:
901901- editor_settings.set_setting(property, alt)
902902- return alt
903903-904904-func set_setting(property: StringName, value: bool):
905905- var editor_settings: EditorSettings = get_editor_settings()
906906-907907- suppress_settings_sync = true
908908- editor_settings.set_setting(property, value)
909909- suppress_settings_sync = false
910910-911911-func get_shortcut(property: StringName) -> Shortcut:
912912- return get_editor_settings().get_setting(property)
913913-914914-func get_outline_order() -> PackedStringArray:
915915- var new_outline_order: PackedStringArray
916916- var editor_settings: EditorSettings = get_editor_settings()
917917- if (editor_settings.has_setting(OUTLINE_ORDER)):
918918- new_outline_order = editor_settings.get_setting(OUTLINE_ORDER)
919919- else:
920920- new_outline_order = Outline.DEFAULT_ORDER
921921- editor_settings.set_setting(OUTLINE_ORDER, outline_order)
922922-923923- return new_outline_order
924924-925925-static func find_or_null(arr: Array[Node]) -> Control:
926926- if (arr.is_empty()):
927927- push_error("""Node that is needed for Script-IDE not found.
928928-Plugin will not work correctly.
929929-This might be due to some other plugins or changes in the Engine.
930930-Please report this to Script-IDE, so we can figure out a fix.""")
931931- return null
932932- return arr[0] as Control
···11-; Engine configuration file.
22-; It's best edited using the editor UI and not directly,
33-; since the parameters that go here are not all obvious.
44-;
55-; Format:
66-; [section] ; section goes between []
77-; param=value ; assign values to parameters
88-99-config_version=5
1010-1111-[application]
1212-1313-config/name="Triangular Viking"
1414-run/main_scene="uid://bpwlvy88e7ha5"
1515-config/features=PackedStringArray("4.6", "Forward Plus")
1616-config/icon="res://icon.svg"
1717-1818-[autoload]
1919-2020-HackSystem="*uid://g3t3fywm2jte"
2121-2222-[editor]
2323-2424-version_control/plugin_name="GitPlugin"
2525-version_control/autoload_on_startup=true
2626-2727-[editor_plugins]
2828-2929-enabled=PackedStringArray("res://addons/script-ide/plugin.cfg")
3030-3131-[physics]
3232-3333-3d/physics_engine="Jolt Physics"
3434-3535-[rendering]
3636-3737-rendering_device/driver.windows="d3d12"
···11-extends Node3D
22-33-# Used for checking if the mouse is inside the Area3D.
44-var is_mouse_inside = false
55-# The last processed input touch/mouse event. To calculate relative movement.
66-var last_event_pos2D = null
77-# The time of the last event in seconds since engine start.
88-var last_event_time: float = -1.0
99-1010-var current_input: String = ""
1111-1212-@onready var node_viewport = $SubViewport
1313-@onready var node_quad = $Quad
1414-@onready var node_area = $Quad/Area3D
1515-1616-func _ready():
1717- node_area.mouse_entered.connect(_mouse_entered_area)
1818- node_area.mouse_exited.connect(_mouse_exited_area)
1919- node_area.input_event.connect(_mouse_input_event)
2020-2121-func _mouse_entered_area():
2222- is_mouse_inside = true
2323-2424-func _mouse_exited_area():
2525- is_mouse_inside = false
2626-2727-func _process(_delta: float):
2828- $SubViewport/Control/RichTextLabel.set_text(current_input)
2929-3030-func _unhandled_input(event):
3131- # Check if the event is a non-mouse/non-touch event
3232- for mouse_event in [InputEventMouseButton, InputEventMouseMotion, InputEventScreenDrag, InputEventScreenTouch]:
3333- if is_instance_of(event, mouse_event):
3434- # If the event is a mouse/touch event, then we can ignore it here, because it will be
3535- # handled via Physics Picking.
3636- return
3737-3838- if is_instance_of(event, InputEventKey):
3939- _parse_key_input(event)
4040-4141- node_viewport.push_input(event)
4242-4343-func _parse_key_input(event: InputEventKey):
4444- print(event)
4545-4646- if event.pressed:
4747- if event.physical_keycode == Key.KEY_BACKSPACE:
4848- current_input = current_input.left(-1)
4949- elif event.physical_keycode == Key.KEY_ESCAPE:
5050- # This is here to eventually implement exiting from the terminal
5151- pass
5252- elif event.physical_keycode == Key.KEY_ENTER:
5353- # Same as escape, but executes commands
5454- pass
5555- else:
5656- current_input += event.as_text_key_label()
5757-5858-func _mouse_input_event(_camera: Camera3D, event: InputEvent, event_position: Vector3, _normal: Vector3, _shape_idx: int):
5959- # Get mesh size to detect edges and make conversions. This code only support PlaneMesh and QuadMesh.
6060- var quad_mesh_size = node_quad.mesh.size
6161-6262- # Event position in Area3D in world coordinate space.
6363- var event_pos3D = event_position
6464-6565- # Current time in seconds since engine start.
6666- var now: float = Time.get_ticks_msec() / 1000.0
6767-6868- # Convert position to a coordinate space relative to the Area3D node.
6969- # NOTE: affine_inverse accounts for the Area3D node's scale, rotation, and position in the scene!
7070- event_pos3D = node_quad.global_transform.affine_inverse() * event_pos3D
7171-7272- # TODO: Adapt to bilboard mode or avoid completely.
7373-7474- var event_pos2D: Vector2 = Vector2()
7575-7676- if is_mouse_inside:
7777- # Convert the relative event position from 3D to 2D.
7878- event_pos2D = Vector2(event_pos3D.x, -event_pos3D.y)
7979-8080- # Right now the event position's range is the following: (-quad_size/2) -> (quad_size/2)
8181- # We need to convert it into the following range: -0.5 -> 0.5
8282- event_pos2D.x = event_pos2D.x / quad_mesh_size.x
8383- event_pos2D.y = event_pos2D.y / quad_mesh_size.y
8484- # Then we need to convert it into the following range: 0 -> 1
8585- event_pos2D.x += 0.5
8686- event_pos2D.y += 0.5
8787-8888- # Finally, we convert the position to the following range: 0 -> viewport.size
8989- event_pos2D.x *= node_viewport.size.x
9090- event_pos2D.y *= node_viewport.size.y
9191- # We need to do these conversions so the event's position is in the viewport's coordinate system.
9292-9393- elif last_event_pos2D != null:
9494- # Fall back to the last known event position.
9595- event_pos2D = last_event_pos2D
9696-9797- # Set the event's position and global position.
9898- event.position = event_pos2D
9999- if event is InputEventMouse:
100100- event.global_position = event_pos2D
101101-102102- # Calculate the relative event distance.
103103- if event is InputEventMouseMotion or event is InputEventScreenDrag:
104104- # If there is not a stored previous position, then we'll assume there is no relative motion.
105105- if last_event_pos2D == null:
106106- event.relative = Vector2(0, 0)
107107- # If there is a stored previous position, then we'll calculate the relative position by subtracting
108108- # the previous position from the new position. This will give us the distance the event traveled from prev_pos.
109109- else:
110110- event.relative = event_pos2D - last_event_pos2D
111111- event.velocity = event.relative / (now - last_event_time)
112112-113113- # Update last_event_pos2D with the position we just calculated.
114114- last_event_pos2D = event_pos2D
115115-116116- # Update last_event_time to current time.
117117- last_event_time = now
118118-119119- # Finally, send the processed input event to the viewport.
120120- node_viewport.push_input(event)