diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 1a7922c5..0ca77cef 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -4,12 +4,16 @@ Closes momentum-mod/game/issues/ ### Checks -- [ ] **I have thoroughly tested all of the code I have modified/added/removed to ensure something else did not break** -- [ ] I have followed [semantic commit messages](https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716) e.g. `feat: Add foo`, `chore: Update bar`, etc... +- [ ] **I have thoroughly tested all of the code I have modified/added/removed to ensure something else did not + break** +- [ ] I have followed [semantic commit messages](https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716) + e.g. `feat: Add foo`, `chore: Update bar`, etc... - [ ] My branch has a clear history of changes that can be easy to follow when being reviewed commit-by-commit -- [ ] My branch is functionally complete; the only changes to be done will be those potentially requested in code review +- [ ] My branch is functionally complete; the only changes to be done will be those potentially requested in code + review - [ ] All changes requested in review have been `fixup`ed into my original commits. -- [ ] Fully tokenized all my strings (no hardcoded English strings!!) and supplied [bulk JSON strings](https://docs.momentum-mod.org/guide/localization/#bulk-adding-terms) below +- [ ] Fully tokenized all my strings (no hardcoded English strings!!) and supplied + [bulk JSON strings](https://docs.momentum-mod.org/guide/localization/#bulk-adding-terms) below ### POEditor JSON Strings (if needed) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 18102578..259bd8dd 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -27,4 +27,4 @@ jobs: run: npm run lint:check - name: TypeScript Build - run: npm run build + run: npm run ts:check diff --git a/.gitignore b/.gitignore index b8dae879..471e80c6 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,6 @@ node_modules # Specific files learn.vdf __types_momentum.js -script_dist/ # Generated by fontconfig .uuid diff --git a/.prettierignore b/.prettierignore index 2e803f6b..b9682d49 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1 @@ scripts/types/ -script_dist/ diff --git a/.prettierrc.json b/.prettierrc.json index 7aedee28..35f70abd 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -8,5 +8,6 @@ "arrowParens": "always", "endOfLine": "lf", "bracketSpacing": true, - "bracketSameLine": false + "bracketSameLine": false, + "proseWrap": "always" } diff --git a/LICENSE.md b/LICENSE.md index 04f015ad..d33c7a40 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,7 +1,14 @@ Copyright 2022 Momentum Team -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the +Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md index 3c9f49d0..785b2c3f 100644 --- a/README.md +++ b/README.md @@ -4,44 +4,65 @@ # Structure -The repository primarily consists of XML, SCSS and JavaScript/TypeScript files. It also includes all icons and various images and videos used by the UI. +The repository primarily consists of XML, SCSS and TypeScript files. It also includes all icons and various images and +videos used by the UI. For a general overview of Panorama, see the [VDC page](https://developer.valvesoftware.com/wiki/Panorama). ## XML -XML, found in the `layout/` folder, is used to describe the overall _layout_ of all panels. These panels can then be manipulated by JavaScript and C++ code. +XML, found in the `layout/` folder, is used to describe the overall _layout_ of all panels. These panels can then be +manipulated by JavaScript and C++ code. ## CSS/SCSS -Panorama uses a variant of CSS for styling. Note that it does _not_ conform to the standard CSS spec, differing majorly in how it handles things like flow and scaling. A complete list of CSS properties can be found using `dump_panorama_css_properties markdown` in the ingame console (you will need to launch with -condebug and read the console.log output). The list is also kept on the [VDC](https://developer.valvesoftware.com/wiki/CSGO_Panorama_CSS_Properties) though this may not be fully up to date. +Panorama uses a variant of CSS for styling. Note that it does _not_ conform to the standard CSS spec, differing majorly +in how it handles things like flow and scaling. A complete list of CSS properties can be found using +`dump_panorama_css_properties markdown` in the ingame console (you will need to launch with -condebug and read the +console.log output). The list is also kept on the +[VDC](https://developer.valvesoftware.com/wiki/CSGO_Panorama_CSS_Properties) though this may not be fully up to date. -Momentum uses the [Sass](https://sass-lang.com/) preprocessor for all styling. This is compiled by the game itself on first load then cached for future loads if unchanged. Developers may therefore change any Sass styling and it will be recompiled on next launch or reload with `panorama_reload`, which is by default bound to F7. +Momentum uses the [Sass](https://sass-lang.com/) preprocessor for all styling. This is compiled by the game itself on +first load then cached for future loads if unchanged. Developers may therefore change any Sass styling and it will be +recompiled on next launch or reload with `panorama_reload`, which is by default bound to F7. -The Sass module structure, found in `styles/`, is quite conventional, with all top-level modules (besides `abstract/`) handled by `main.scss`. Any XML file then needs only include `main.scss` to access the entirety of the styling. We use the [BEM](http://getbem.com/) (Block Element Modifier) naming scheme for all classes, besides those that are referenced in C++ code, which use UpperCamelCase. +The Sass module structure, found in `styles/`, is quite conventional, with all top-level modules (besides `abstract/`) +handled by `main.scss`. Any XML file then needs only include `main.scss` to access the entirety of the styling. We use +the [BEM](http://getbem.com/) (Block Element Modifier) naming scheme for all classes, besides those that are referenced +in C++ code, which use UpperCamelCase. ## JavaScript/TypeScript -Panorama uses the [V8 JavaScript engine](https://v8.dev) to interpret and run the JavaScript files, found in `scripts/`, at runtime, which are included in XML files within `` tags (similar to regular web development). +Panorama uses the [V8 JavaScript engine](https://v8.dev) to run JavaScript, with TypeScript compiler (tsc) built-in to +the engine to provide native TypeScript support. Scripts can be found in `scripts/`, and are loaded at runtime through +`` tags in XML files. -We also support TypeScript - any `.ts` file `scripts/` are compiled to corresponding JavaScript files in `script_dist/`, whilst `.js` are just copied over. Note that we don't use any kind of import/module/bundling system as it's not supported in engine code. Instead we just declare the same XML `` tags and scripts get the same scope (yeah, old school). Use `/// ` to keep TypeScript happy. +Whilst loading plain JavaScript is still supported, practically all of our code is in TypeScript, and we expect +contributors to use TypeScript for new code. -JavaScript communicates with the game via events and APIs exposed by the game. The [pano-typed](https://github.com/StrataSource/pano-typed) package (submoduled in `scripts/types/`) which provides types and documentation for the exposed APIs and events. These are updated manually, and some things may be missing. A full list of which can be found by running `dump_panorama_events markdown` and `dump_panorama_js_scopes markdown` in-game (best to the game in `-condebug` and read `momentum/console.log`). Feel free to add any APIs/events to the `pano-typed` package! If anything is missing completely, please contact us in Discord and we can check in engine code for you. +JavaScript communicates with the game via events and APIs exposed by the game. Types for these are includes in +`scripts/types-mom` and `scripts/types`, which is a submodule of the +[pano-typed](https://github.com/StrataSource/pano-typed) repo. and documentation for the exposed APIs and events. These +are updated manually, and some things may be missing; please let us know if anything seems off and we'll check engine +code. -# Setup - -#### Requirements - -- Git -- [Node.js](https://nodejs.org/en/download/) +# Contributing -#### Recommendations +Most of our larger systems and components require significant work with (closed-source) game code, and thus require +licensed C++ access or working in tandem with a licensed C++ developer. Our work until now has been done internally by +the core team. For 0.9.1 and onwards, we have exposed enough events and APIs that non-team developers should be able to +work on areas like HUD components (for a good example of non-licensed HUD work, see +[`scripts/hud/cgaz.ts`](scripts/hud/cgaz.ts)). We will continue to expose data as we best see fit for custom panels. -We highly suggest using @braem's [panorama-languages-support](https://marketplace.visualstudio.com/items?itemName=braemie.panorama-css) VSCode plugin for language support for Panorama's version of CSS +Those looking to contribute should look for issues **NOT** marked with "Needs C++". We also greatly encourage you to +check out the the #panorama channel in our [Discord](https://discord.gg/momentummod) - whilst Panorama itself is poorly +documented, we are happy to help any potential contributors further there! -### Guide +### Basic Setup -The easiest way to develop for Momentum Mod Panorama is to fork this repository and mount it in your `momentum/custom/` folder, for example: +For non-licensed developers, you will need to have a Steam build of the game installed. The easiest way to develop +Panorama changes on top of that is to mount the `panorama` folder in your `momentum/custom/` folder, by forking this +repo (if not a team member), then: ```bash cd \momentum\custom\ @@ -52,25 +73,25 @@ git clone https://github.com//panorama.git You should end up with `momentum/custom/PanoramaDev/panorama` containing the contents of this repository. -This will be mounted on game launch and override the files in your `momentum/panorama/` folder. To avoid any overlaps (e.g. if your branch renames or moves a file, the original file will still be mounted), you may want to temporarily rename your `momentum/panorama/` folder. (_NOTE: you'll need to do this after each Momentum Mod Steam update!_) - -Install [Node.js](https://nodejs.org/en/download/) if you don't have it -already, then in a terminal run: +This will be mounted on game launch and override the files in your `momentum/panorama/` folder. Mind that it's possible +for overlaps, e.g. if your branch renames or moves a file, the original file will still be mounted, but this is very +rarely an issue. If necessary, rename your `momentum/panorama/` folder. (_NOTE: you'll need to do this after each +Momentum Mod Steam update!_) -`npm install` +### Type Checking, Linting and Formatting -This will install necessary dev dependencies and setup commit hooks which will lint and auto-format your code on commit. +Since adding native TypeScript support, a Node.js installation is not technically required. However, for performance the +built-in compiler only transpiles to JavaScript, without performing type checks. We run type checks in CI, but you +likely also want an editor with TypeScript support, and may want to run `npm run watch` (script for +`tsc --noEmit --watch`) to check types as you go. -You will need to run: +Linting and formatting is enforced in CI, run `npm install` to setup commit hooks for both, and use +`npm run :` to format/lint your code. -`npm run build` - -at least once to compile JS/TS scripts to JS, and after any changes to files in `scripts/`. Use watch mode if you want to compile on change with - -`npm run watch` - -# Contributing +To get Node.js and NPM go to -Most of our larger systems and components require significant work with (closed-source) game code and thus requires licensed C++ access or working tandem licensed C++ developer. Our work until now has been done internally by the core team. For 0.9.1 and onwards, we have exposed enough events and APIs that non-team developers should be able to work on areas like HUD components (for an example of non-licensed HUD work, we recommend [`scripts/hud/cgaz.js`](scripts/hud/cgaz.js)). We will continue to expose data as we best see fit for custom panels. +### Recommendations -Therefore, those looking to contribute should look for issues **NOT** marked with "Needs C++". We also greatly encourage you to check out the the #panorama channel in our [Discord](https://discord.gg/momentummod) - whilst Panorama itself is poorly documented, we are happy to help any potential contributors further there! +@braem's [panorama-languages-support](https://marketplace.visualstudio.com/items?itemName=braemie.panorama-css) VSCode +plugin for language support for Panorama's version of CSS, which is invaluable for those unfamiliar with Panorama's +unique CSS properties. diff --git a/THIRDPARTY.md b/THIRDPARTY.md index 27151f16..b8399cc7 100644 --- a/THIRDPARTY.md +++ b/THIRDPARTY.md @@ -2,22 +2,20 @@ This project uses icons by [Material Design Icons](https://materialdesignicons.c ## Pictogrammers Free License -This icon collection is released as free, open source, and GPL friendly by -the [Pictogrammers](http://pictogrammers.com/) icon group. You may use it -for commercial projects, open source projects, or anything really. +This icon collection is released as free, open source, and GPL friendly by the +[Pictogrammers](http://pictogrammers.com/) icon group. You may use it for commercial projects, open source projects, or +anything really. # Icons: Apache 2.0 (included below) -Some of the icons are redistributed under the Apache 2.0 license. All other -icons are either redistributed under their respective licenses or are -distributed under the Apache 2.0 license. +Some of the icons are redistributed under the Apache 2.0 license. All other icons are either redistributed under their +respective licenses or are distributed under the Apache 2.0 license. # Fonts: Apache 2.0 (included below) -All web and desktop fonts are distributed under the Apache 2.0 license. Web -and desktop fonts contain some icons that are redistributed under the Apache -2.0 license. All other icons are either redistributed under their respective -licenses or are distributed under the Apache 2.0 license. +All web and desktop fonts are distributed under the Apache 2.0 license. Web and desktop fonts contain some icons that +are redistributed under the Apache 2.0 license. All other icons are either redistributed under their respective licenses +or are distributed under the Apache 2.0 license. # Code: MIT (https://opensource.org/licenses/MIT) @@ -25,53 +23,114 @@ The MIT license applies to all non-font and non-icon files. =================================== -Apache License -Version 2.0, January 2004 -http://www.apache.org/licenses/ +Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 +of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are +under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or +indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of +fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of this License; and -You must cause any modified files to carry prominent notices stating that You changed the files; and -You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and -If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. - -You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, +documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including +but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as +indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix +below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work +and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an +original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain +separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or +additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the +Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. +For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to +the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code +control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of +discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in +writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received +by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to + You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, + prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such + Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a + perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent + license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license + applies only to those patent claims licensable by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was + submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a + lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory + patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of + the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with + or without modifications, and in Source or Object form, provided that You meet the following conditions: + +You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any +modified files to carry prominent notices stating that You changed the files; and You must retain, in the Source form of +any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form +of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and If the Work includes a +"NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable +copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any +part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of +the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a +display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the +NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices +within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that +such additional attribution notices cannot be construed as modifying the License. + +You may add Your own copyright statement to Your modifications and may provide additional or different license terms and +conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, +provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this +License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted +for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any +additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any +separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product + names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and + reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and + each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, + MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness + of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this + License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or + otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, + shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or + consequential damages of any character arising as a result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or + any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such + damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose + to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or + rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and + on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and + hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS diff --git a/eslint.config.mjs b/eslint.config.mjs index 600242fb..b28f3981 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -11,7 +11,6 @@ export default [ '**/node_modules', '**/__types_momentum.js', '**/tools', - '**/script_dist', 'scripts/types' ] }, diff --git a/layout/components/chat.xml b/layout/components/chat.xml index 888111b9..272ba4c5 100644 --- a/layout/components/chat.xml +++ b/layout/components/chat.xml @@ -19,7 +19,7 @@ - + diff --git a/layout/components/color-display.xml b/layout/components/color-display.xml index bacb323d..b0f1fa0c 100644 --- a/layout/components/color-display.xml +++ b/layout/components/color-display.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/components/color-picker.xml b/layout/components/color-picker.xml index f500fc87..9e264a2e 100644 --- a/layout/components/color-picker.xml +++ b/layout/components/color-picker.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/components/graphs/line-graph.xml b/layout/components/graphs/line-graph.xml index 01e12f3e..ad8e38f9 100644 --- a/layout/components/graphs/line-graph.xml +++ b/layout/components/graphs/line-graph.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/components/level-indicator.xml b/layout/components/level-indicator.xml index 0d9ec8f8..be728016 100644 --- a/layout/components/level-indicator.xml +++ b/layout/components/level-indicator.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/components/player-card.xml b/layout/components/player-card.xml index 834b277e..9d0113a9 100644 --- a/layout/components/player-card.xml +++ b/layout/components/player-card.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/components/range-color-display.xml b/layout/components/range-color-display.xml index 455fe133..11eb2ae8 100644 --- a/layout/components/range-color-display.xml +++ b/layout/components/range-color-display.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/components/split.xml b/layout/components/split.xml index c0aa9e0c..9685c5cb 100644 --- a/layout/components/split.xml +++ b/layout/components/split.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/cgaz.xml b/layout/hud/cgaz.xml index 27acd6e4..2992742b 100644 --- a/layout/hud/cgaz.xml +++ b/layout/hud/cgaz.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/comparisons.xml b/layout/hud/comparisons.xml index 80b17067..aabee5f5 100644 --- a/layout/hud/comparisons.xml +++ b/layout/hud/comparisons.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/conc-cook-time.xml b/layout/hud/conc-cook-time.xml index a3109343..61a599b8 100644 --- a/layout/hud/conc-cook-time.xml +++ b/layout/hud/conc-cook-time.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/conc-entities.xml b/layout/hud/conc-entities.xml index 3d678ea9..99f77cc4 100644 --- a/layout/hud/conc-entities.xml +++ b/layout/hud/conc-entities.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/console-notify.xml b/layout/hud/console-notify.xml index e3e8294b..57bcf4e1 100644 --- a/layout/hud/console-notify.xml +++ b/layout/hud/console-notify.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/df-jump.xml b/layout/hud/df-jump.xml index bd627d1b..1ff73fd2 100644 --- a/layout/hud/df-jump.xml +++ b/layout/hud/df-jump.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/ghost-entities.xml b/layout/hud/ghost-entities.xml index 374ce34d..eaeaa637 100644 --- a/layout/hud/ghost-entities.xml +++ b/layout/hud/ghost-entities.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/ground-boost.xml b/layout/hud/ground-boost.xml index 1c6fc5b0..3179d824 100644 --- a/layout/hud/ground-boost.xml +++ b/layout/hud/ground-boost.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/jump-stats.xml b/layout/hud/jump-stats.xml index 0162688d..972c63fe 100644 --- a/layout/hud/jump-stats.xml +++ b/layout/hud/jump-stats.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/map-info.xml b/layout/hud/map-info.xml index eb354a0d..bb3c417c 100644 --- a/layout/hud/map-info.xml +++ b/layout/hud/map-info.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/powerup-timer.xml b/layout/hud/powerup-timer.xml index 11169daf..4980aee8 100644 --- a/layout/hud/powerup-timer.xml +++ b/layout/hud/powerup-timer.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/replay-controls.xml b/layout/hud/replay-controls.xml index 8175cbbf..2492830d 100644 --- a/layout/hud/replay-controls.xml +++ b/layout/hud/replay-controls.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/spec-info.xml b/layout/hud/spec-info.xml index 20f82788..e786e8d1 100644 --- a/layout/hud/spec-info.xml +++ b/layout/hud/spec-info.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/spectate.xml b/layout/hud/spectate.xml index e31b174a..5aed8fc7 100644 --- a/layout/hud/spectate.xml +++ b/layout/hud/spectate.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/speedometer.xml b/layout/hud/speedometer.xml index f6e36a91..925d8cc6 100644 --- a/layout/hud/speedometer.xml +++ b/layout/hud/speedometer.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/static-menu.xml b/layout/hud/static-menu.xml index b914778b..d02d9c23 100644 --- a/layout/hud/static-menu.xml +++ b/layout/hud/static-menu.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/status.xml b/layout/hud/status.xml index 4be79231..30770a0f 100644 --- a/layout/hud/status.xml +++ b/layout/hud/status.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/sticky-charge.xml b/layout/hud/sticky-charge.xml index 5326776a..7f367763 100644 --- a/layout/hud/sticky-charge.xml +++ b/layout/hud/sticky-charge.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/sticky-count.xml b/layout/hud/sticky-count.xml index 80d3687a..ca8526b9 100644 --- a/layout/hud/sticky-count.xml +++ b/layout/hud/sticky-count.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/strafe-sync.xml b/layout/hud/strafe-sync.xml index c84ca2e4..1b4e440a 100644 --- a/layout/hud/strafe-sync.xml +++ b/layout/hud/strafe-sync.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/synchronizer.xml b/layout/hud/synchronizer.xml index 68e978bf..c3a2ce42 100644 --- a/layout/hud/synchronizer.xml +++ b/layout/hud/synchronizer.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/tab-menu.xml b/layout/hud/tab-menu.xml index ba6e6224..d931990d 100644 --- a/layout/hud/tab-menu.xml +++ b/layout/hud/tab-menu.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/timer.xml b/layout/hud/timer.xml index 09fe560a..b8003a3f 100644 --- a/layout/hud/timer.xml +++ b/layout/hud/timer.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/hud/weapon-selection.xml b/layout/hud/weapon-selection.xml index e5bde8e2..cc660a90 100644 --- a/layout/hud/weapon-selection.xml +++ b/layout/hud/weapon-selection.xml @@ -4,7 +4,7 @@ - + diff --git a/layout/modals/popups/color-picker.xml b/layout/modals/popups/color-picker.xml index 5abfc5c8..adb2c533 100644 --- a/layout/modals/popups/color-picker.xml +++ b/layout/modals/popups/color-picker.xml @@ -4,7 +4,7 @@ - +