├── .gitattributes
├── .github
└── workflows
│ └── build.yml
├── .gitignore
├── CHANGELOG.md
├── COPYING
├── COPYING.LESSER
├── README.md
├── build.gradle
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── settings.gradle
└── src
└── main
├── java
└── io
│ └── github
│ └── a5b84
│ └── darkloadingscreen
│ ├── DarkLoadingScreen.java
│ ├── DrawTextureLambda.java
│ ├── config
│ ├── ButtonEntry.java
│ ├── Config.java
│ ├── ConfigScreenFactoryImpl.java
│ ├── FakeResourceReload.java
│ ├── ModMenuApiImpl.java
│ └── PreviewSplashOverlay.java
│ └── mixin
│ ├── GlCommandEncoderMixin.java
│ ├── MixinPlugin.java
│ ├── SplashOverlayMixin.java
│ └── compat
│ └── semitranslucencyfix
│ └── DrawableHelperMixin.java
└── resources
├── assets
└── dark-loading-screen
│ ├── icon.png
│ └── lang
│ ├── bg_bg.json
│ ├── de_de.json
│ ├── en_us.json
│ ├── es_ar.json
│ ├── es_cl.json
│ ├── es_ec.json
│ ├── es_es.json
│ ├── es_mx.json
│ ├── es_uy.json
│ ├── es_ve.json
│ ├── fr_fr.json
│ ├── it_it.json
│ ├── ko_kr.json
│ ├── pl_pl.json
│ ├── pt_br.json
│ ├── ru_ru.json
│ ├── sv_se.json
│ ├── tr_tr.json
│ ├── uk_ua.json
│ └── zh_cn.json
├── dark-loading-screen.mixins.json
└── fabric.mod.json
/.gitattributes:
--------------------------------------------------------------------------------
1 | #
2 | # https://help.github.com/articles/dealing-with-line-endings/
3 | #
4 | # Linux start script should use lf
5 | /gradlew text eol=lf
6 |
7 | # These are Windows script files and should use crlf
8 | *.bat text eol=crlf
9 |
10 |
--------------------------------------------------------------------------------
/.github/workflows/build.yml:
--------------------------------------------------------------------------------
1 | # Automatically build the project and run any configured tests for every push
2 | # and submitted pull request. This can help catch issues that only occur on
3 | # certain platforms or Java versions, and provides a first line of defence
4 | # against bad commits.
5 |
6 | name: build
7 | on: [pull_request, push]
8 |
9 | jobs:
10 | build:
11 | runs-on: ubuntu-24.04
12 | steps:
13 | - name: checkout repository
14 | uses: actions/checkout@v4
15 | - name: validate gradle wrapper
16 | uses: gradle/actions/wrapper-validation@v4
17 | - name: setup jdk
18 | uses: actions/setup-java@v4
19 | with:
20 | java-version: '21'
21 | distribution: 'microsoft'
22 | - name: make gradle wrapper executable
23 | run: chmod +x ./gradlew
24 | - name: build
25 | run: ./gradlew build
26 | - name: capture build artifacts
27 | uses: actions/upload-artifact@v4
28 | with:
29 | name: Artifacts
30 | path: build/libs/
31 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # gradle
2 |
3 | .gradle/
4 | build/
5 | out/
6 | classes/
7 |
8 | # eclipse
9 |
10 | *.launch
11 |
12 | # idea
13 |
14 | .idea/
15 | *.iml
16 | *.ipr
17 | *.iws
18 |
19 | # vscode
20 |
21 | .settings/
22 | .vscode/
23 | bin/
24 | .classpath
25 | .project
26 |
27 | # macos
28 |
29 | *.DS_Store
30 |
31 | # fabric
32 |
33 | run/
34 |
35 | # java
36 |
37 | hs_err_*.log
38 | replay_*.log
39 | *.hprof
40 | *.jfr
41 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | ## TL;DR
4 | - [1.0.0](#100): Initial release
5 | - [1.1.0](#110): Different colors
6 | - [1.2.0](#120): Made the window black before the loading screen appears
7 | - [1.3.0](#130): Config Screen
8 | - [1.4.0](#140): Mojang logo recoloring
9 | - [1.5.0](#150): Bar background color
10 | - [1.6.0](#160): Fade in/out durations
11 | - [Compatibility table](#compatibility-table)
12 |
13 | ---
14 |
15 | ### [1.6.17]
16 | - Updated to 1.21.6
17 | - `es_ar` translation updated by [@Texaliuz](https://github.com/Texaliuz) ([#38](https://github.com/A5b84/dark-loading-screen/pull/38))
18 |
19 | ### [1.6.16]
20 | - Updated to 1.21.5
21 | - Added `tr_tr` translation by [@Mid0aria](https://github.com/Mid0aria) ([#36](https://github.com/A5b84/dark-loading-screen/pull/36))
22 | - `zh_cn` translation updated by [@Q2297045667](https://github.com/Q2297045667) ([#37](https://github.com/A5b84/dark-loading-screen/pull/37))
23 |
24 | ### [1.6.15]
25 | - Updated to 1.21.2
26 | - Added `it_it` translation by [Ocizuko](https://legacy.curseforge.com/members/awesome_nobel58/projects)
27 | - `de_de` translation updated by [@moritz-htk](https://github.com/moritz-htk) ([#33](https://github.com/A5b84/dark-loading-screen/pull/33))
28 |
29 | ### [1.6.14]
30 | - Updated to 1.20-pre6
31 | - Added `pt_br` translation by [@FITFC](https://github.com/FITFC) ([#29](https://github.com/A5b84/dark-loading-screen/pull/29))
32 | - Added `uk_ua` translation by [@BurrConnie](https://github.com/BurrConnie) ([#31](https://github.com/A5b84/dark-loading-screen/pull/31))
33 |
34 | ### [1.6.13]
35 | - `zh_cn` translation updated by [@GodGun968](https://github.com/GodGun968) ([#26](https://github.com/A5b84/dark-loading-screen/pull/26))
36 | - Fixed the config screen not being accessible in 1.19.3 ([#28](https://github.com/A5b84/dark-loading-screen/issues/28))
37 |
38 | ### [1.6.12]
39 | - Added `bg_bg` translation by [@natee22](https://github.com/natee22) ([#23](https://github.com/A5b84/dark-loading-screen/issues/23))
40 | - Added `ko_kr` translation by [@gyular](https://github.com/gyular) ([#25](https://github.com/A5b84/dark-loading-screen/pull/25))
41 | - Fixed the config screen not being accessible in 1.19 ([#24](https://github.com/A5b84/dark-loading-screen/issues/24))
42 |
43 | ### [1.6.11]
44 | - Fixed a crash on startup with OptiFine ([#17](https://github.com/A5b84/dark-loading-screen/issues/17), [#19](https://github.com/A5b84/dark-loading-screen/issues/19), [#21](https://github.com/A5b84/dark-loading-screen/issues/21))
45 |
46 | ### [1.6.10]
47 | - Added [Semitranslucency Fix](https://modrinth.com/mod/semitranslucency) compatibility ([#20](https://github.com/A5b84/dark-loading-screen/issues/20))
48 |
49 | ### [1.6.8] & [1.6.9]
50 | - Fixed logo recoloring
51 |
52 | ### [1.6.7]
53 | - Fixed a rare(?) crash on startup ([#18](https://github.com/A5b84/dark-loading-screen/issues/18))
54 |
55 | ### [1.6.6]
56 | - Added `de_de` translation by [@Der_Anderl](https://www.curseforge.com/members/der_anderl/)
57 |
58 | ### [1.6.5]
59 | - `pl_pl` translation updated by [@goodideagiver](https://github.com/goodideagiver) ([#16](https://github.com/A5b84/dark-loading-screen/pull/16))
60 |
61 | ### [1.6.4]
62 | - Updated to 1.17
63 | - Temporarily disabled logo recoloring
64 | - Added translators to the authors
65 | - May not be compatible with OptiFine anymore idk ¯\\\_(ツ)_/¯
66 |
67 | ### [1.6.3]
68 | - Added `sv_se` translation by [@Luracasmus](https://github.com/Luracasmus) ([#13](https://github.com/A5b84/dark-loading-screen/pull/13))
69 |
70 | ### [1.6.2]
71 | - Added `ru_ru` translation by [@Felix14-v2](https://github.com/Felix14-v2) ([#12](https://github.com/A5b84/dark-loading-screen/issues/12))
72 |
73 | ### [1.6.1]
74 | - Fixed a crash on startup if Mod Menu is installed but not Cloth Config
75 |
76 | ### [1.6.0]
77 | - Added options to control the fade in/out durations
78 | - The config screen now uses [Cloth Config](https://www.curseforge.com/minecraft/mc-mods/cloth-config)
79 | - It will only show up if Cloth Config is installed
80 | - Fixed invalid data in compiled `fabric.mod.json` ([#10](https://github.com/A5b84/dark-loading-screen/pull/10))
81 |
82 | ---
83 |
84 | ### [1.5.0]
85 | - Added an option to change the bar background color ([#8](https://github.com/A5b84/dark-loading-screen/issues/8), suggested by [@Chrisblox](https://github.com/Chrisblox))
86 | - Fixed the reset buttons sometimes not working
87 | - `zh_cn` translation updated by [@Hambaka](https://github.com/Hambaka) ([#9](https://github.com/A5b84/dark-loading-screen/pull/9))
88 |
89 | ---
90 |
91 | ### [1.4.4]
92 | - Fixed some potential incompatibilities with other mods
93 | - `zh_cn` translation updated by [@Hambaka](https://github.com/Hambaka) ([#7](https://github.com/A5b84/dark-loading-screen/pull/7))
94 |
95 | ### [1.4.3]
96 | - Fixed crashing when opening the config screen in 1.16.2
97 | - The config screen is now only available in 1.16.2 and later (was 1.16 and later)
98 |
99 | ### [1.4.2]
100 | - Made the config screen look better
101 |
102 | ### [1.4.1]
103 | - Fixed the background color getting added to the logo color ([#5](https://github.com/A5b84/dark-loading-screen/issues/5))
104 | - Added `es_xx` translations by [@Haseck](https://github.com/Haseck) ([#6](https://github.com/A5b84/dark-loading-screen/pull/6))
105 |
106 | ### [1.4.0]
107 | - Added an option to change the Mojang logo color ([#3](https://github.com/A5b84/dark-loading-screen/issues/3), suggested by [@Minenash](https://github.com/Minenash))
108 | - Made the config file indented instead of on a single line
109 |
110 | ---
111 |
112 | ### [1.3.3]
113 | - Added `pl_pl` translation by [@DarkKnightComes](https://github.com/DarkKnightComes) ([#4](https://github.com/A5b84/dark-loading-screen/pull/4))
114 |
115 | ### [1.3.2]
116 | - Added `zh_cn` translation by [@w5860363](https://github.com/w5860363) ([#2](https://github.com/A5b84/dark-loading-screen/pull/2))
117 |
118 | ### [1.3.1]
119 | - Fixed the bar borders being the wrong colors with OptiFine 1.16.1 ([#1](https://github.com/A5b84/dark-loading-screen/issues/1))
120 |
121 | ### [1.3.0]
122 | - Added a config screen (only available in 1.16 and later)
123 |
124 | ---
125 |
126 | ### [1.2.2]
127 | - Fixed the bar borders being the wrong colors in 20w22a and later
128 |
129 | ### [1.2.1]
130 | - Fixed the game crashing in 20w17a and later
131 |
132 | ### [1.2.0]
133 | - Made the window black before the loading screen appears
134 |
135 | ---
136 |
137 | ### [1.1.1]
138 | - Made a potential crash on startup less likely
139 |
140 | ### [1.1.0]
141 | - Made the colors a little more blue
142 |
143 | ---
144 |
145 | ### [1.0.0]
146 | - Initial release
147 |
148 | ---
149 |
150 | ### Compatibility table
151 | | Version | 1.14-20w16a | 20w17a-20w21a | 20w22a-1.16.1 | 1.16.2-1.16.5 |
152 | |------------:|:-----------:|:-------------:|:-------------:|:-------------:|
153 | | 1.0.0-1.2.0 | X | | | |
154 | | 1.2.1 | X | X | | |
155 | | 1.2.2-1.4.2 | X | X | X | |
156 | | 1.4.3-1.5.0 | X | X | X | X |
157 | | 1.6.0-1.6.3 | | | X | X |
158 |
159 | - 1.6.4-1.6.11: Minecraft 1.17-1.18.2
160 | - 1.6.12: Minecraft 1.19-1.19.2
161 | - 1.6.13: Minecraft 1.19.3-1.19.4
162 | - 1.6.14: Minecraft 1.20+
163 |
164 |
165 | [1.0.0]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.0.0
166 | [1.1.0]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.1.0
167 | [1.1.1]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.1.1
168 | [1.2.0]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.2.0
169 | [1.2.1]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.2.1
170 | [1.2.2]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.2.2
171 | [1.3.0]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.3.0
172 | [1.3.1]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.3.1
173 | [1.3.2]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.3.2
174 | [1.3.3]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.3.3
175 | [1.4.0]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.4.0
176 | [1.4.1]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.4.1
177 | [1.4.2]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.4.2
178 | [1.4.3]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.4.3
179 | [1.4.4]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.4.4
180 | [1.5.0]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.5.0
181 | [1.6.0]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.0
182 | [1.6.1]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.1
183 | [1.6.2]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.2
184 | [1.6.3]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.3
185 | [1.6.4]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.4
186 | [1.6.5]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.5
187 | [1.6.6]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.6
188 | [1.6.7]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.7
189 | [1.6.8]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.8
190 | [1.6.9]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.9
191 | [1.6.10]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.10
192 | [1.6.11]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.11
193 | [1.6.12]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.12
194 | [1.6.13]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.13
195 | [1.6.14]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.14
196 | [1.6.15]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.15
197 | [1.6.16]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.16
198 | [1.6.17]: https://github.com/A5b84/dark-loading-screen/releases/tag/v1.6.17
199 |
--------------------------------------------------------------------------------
/COPYING:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/COPYING.LESSER:
--------------------------------------------------------------------------------
1 | GNU LESSER GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 |
9 | This version of the GNU Lesser General Public License incorporates
10 | the terms and conditions of version 3 of the GNU General Public
11 | License, supplemented by the additional permissions listed below.
12 |
13 | 0. Additional Definitions.
14 |
15 | As used herein, "this License" refers to version 3 of the GNU Lesser
16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU
17 | General Public License.
18 |
19 | "The Library" refers to a covered work governed by this License,
20 | other than an Application or a Combined Work as defined below.
21 |
22 | An "Application" is any work that makes use of an interface provided
23 | by the Library, but which is not otherwise based on the Library.
24 | Defining a subclass of a class defined by the Library is deemed a mode
25 | of using an interface provided by the Library.
26 |
27 | A "Combined Work" is a work produced by combining or linking an
28 | Application with the Library. The particular version of the Library
29 | with which the Combined Work was made is also called the "Linked
30 | Version".
31 |
32 | The "Minimal Corresponding Source" for a Combined Work means the
33 | Corresponding Source for the Combined Work, excluding any source code
34 | for portions of the Combined Work that, considered in isolation, are
35 | based on the Application, and not on the Linked Version.
36 |
37 | The "Corresponding Application Code" for a Combined Work means the
38 | object code and/or source code for the Application, including any data
39 | and utility programs needed for reproducing the Combined Work from the
40 | Application, but excluding the System Libraries of the Combined Work.
41 |
42 | 1. Exception to Section 3 of the GNU GPL.
43 |
44 | You may convey a covered work under sections 3 and 4 of this License
45 | without being bound by section 3 of the GNU GPL.
46 |
47 | 2. Conveying Modified Versions.
48 |
49 | If you modify a copy of the Library, and, in your modifications, a
50 | facility refers to a function or data to be supplied by an Application
51 | that uses the facility (other than as an argument passed when the
52 | facility is invoked), then you may convey a copy of the modified
53 | version:
54 |
55 | a) under this License, provided that you make a good faith effort to
56 | ensure that, in the event an Application does not supply the
57 | function or data, the facility still operates, and performs
58 | whatever part of its purpose remains meaningful, or
59 |
60 | b) under the GNU GPL, with none of the additional permissions of
61 | this License applicable to that copy.
62 |
63 | 3. Object Code Incorporating Material from Library Header Files.
64 |
65 | The object code form of an Application may incorporate material from
66 | a header file that is part of the Library. You may convey such object
67 | code under terms of your choice, provided that, if the incorporated
68 | material is not limited to numerical parameters, data structure
69 | layouts and accessors, or small macros, inline functions and templates
70 | (ten or fewer lines in length), you do both of the following:
71 |
72 | a) Give prominent notice with each copy of the object code that the
73 | Library is used in it and that the Library and its use are
74 | covered by this License.
75 |
76 | b) Accompany the object code with a copy of the GNU GPL and this license
77 | document.
78 |
79 | 4. Combined Works.
80 |
81 | You may convey a Combined Work under terms of your choice that,
82 | taken together, effectively do not restrict modification of the
83 | portions of the Library contained in the Combined Work and reverse
84 | engineering for debugging such modifications, if you also do each of
85 | the following:
86 |
87 | a) Give prominent notice with each copy of the Combined Work that
88 | the Library is used in it and that the Library and its use are
89 | covered by this License.
90 |
91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license
92 | document.
93 |
94 | c) For a Combined Work that displays copyright notices during
95 | execution, include the copyright notice for the Library among
96 | these notices, as well as a reference directing the user to the
97 | copies of the GNU GPL and this license document.
98 |
99 | d) Do one of the following:
100 |
101 | 0) Convey the Minimal Corresponding Source under the terms of this
102 | License, and the Corresponding Application Code in a form
103 | suitable for, and under terms that permit, the user to
104 | recombine or relink the Application with a modified version of
105 | the Linked Version to produce a modified Combined Work, in the
106 | manner specified by section 6 of the GNU GPL for conveying
107 | Corresponding Source.
108 |
109 | 1) Use a suitable shared library mechanism for linking with the
110 | Library. A suitable mechanism is one that (a) uses at run time
111 | a copy of the Library already present on the user's computer
112 | system, and (b) will operate properly with a modified version
113 | of the Library that is interface-compatible with the Linked
114 | Version.
115 |
116 | e) Provide Installation Information, but only if you would otherwise
117 | be required to provide such information under section 6 of the
118 | GNU GPL, and only to the extent that such information is
119 | necessary to install and execute a modified version of the
120 | Combined Work produced by recombining or relinking the
121 | Application with a modified version of the Linked Version. (If
122 | you use option 4d0, the Installation Information must accompany
123 | the Minimal Corresponding Source and Corresponding Application
124 | Code. If you use option 4d1, you must provide the Installation
125 | Information in the manner specified by section 6 of the GNU GPL
126 | for conveying Corresponding Source.)
127 |
128 | 5. Combined Libraries.
129 |
130 | You may place library facilities that are a work based on the
131 | Library side by side in a single library together with other library
132 | facilities that are not Applications and are not covered by this
133 | License, and convey such a combined library under terms of your
134 | choice, if you do both of the following:
135 |
136 | a) Accompany the combined library with a copy of the same work based
137 | on the Library, uncombined with any other library facilities,
138 | conveyed under the terms of this License.
139 |
140 | b) Give prominent notice with the combined library that part of it
141 | is a work based on the Library, and explaining where to find the
142 | accompanying uncombined form of the same work.
143 |
144 | 6. Revised Versions of the GNU Lesser General Public License.
145 |
146 | The Free Software Foundation may publish revised and/or new versions
147 | of the GNU Lesser General Public License from time to time. Such new
148 | versions will be similar in spirit to the present version, but may
149 | differ in detail to address new problems or concerns.
150 |
151 | Each version is given a distinguishing version number. If the
152 | Library as you received it specifies that a certain numbered version
153 | of the GNU Lesser General Public License "or any later version"
154 | applies to it, you have the option of following the terms and
155 | conditions either of that published version or of any later version
156 | published by the Free Software Foundation. If the Library as you
157 | received it does not specify a version number of the GNU Lesser
158 | General Public License, you may choose any version of the GNU Lesser
159 | General Public License ever published by the Free Software Foundation.
160 |
161 | If the Library as you received it specifies that a proxy can decide
162 | whether future versions of the GNU Lesser General Public License shall
163 | apply, that proxy's public statement of acceptance of any version is
164 | permanent authorization for you to choose that version for the
165 | Library.
166 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Dark Loading Screen
2 |
3 | A simple [Fabric](https://fabricmc.net) mod to make the loading screen darker.
4 |
5 | A changelog is available [here](CHANGELOG.md).
6 |
7 | ## Color configuration
8 | Colors can be modified in-game if both Mod Menu ([CurseForge](https://www.curseforge.com/minecraft/mc-mods/modmenu) / [Modrinth](https://modrinth.com/mod/modmenu)) and Cloth Config ([CurseForge](https://www.curseforge.com/minecraft/mc-mods/cloth-config) / [Modrinth](https://modrinth.com/mod/cloth-config)) are installed.
9 |
10 | ### Manual configuration
11 | Create or edit `.minecraft/config/dark-loading-screen.json`, the default config is
12 | ```json
13 | {
14 | "background": "14181c",
15 | "bar": "e22837",
16 | "barBackground": "14181c",
17 | "border": "303336",
18 | "logo": "ffffff",
19 | "fadeIn": 1.0,
20 | "fadeOut": 2.0
21 | }
22 | ```
23 |
24 | Manual changes are only visible after restarting the game.
25 |
26 | ## Credits
27 | - Config screen made using [shedaniel](https://www.curseforge.com/members/shedaniel/projects)'s Cloth Config
28 | - Logo coloring suggested by [Minenash](https://github.com/Minenash)
29 | - Bar background coloring suggested by [Chrisblox](https://github.com/Chrisblox)
30 | - `bg_bg` translation by [natee22](https://github.com/natee22)
31 | - `de_de` translation by [Der_Anderl](https://www.curseforge.com/members/der_anderl/) and [moritz-htk](https://github.com/moritz-htk)
32 | - `es_xx` translations by [Haseck](https://github.com/Haseck) and [Texaliuz](https://github.com/Texaliuz)
33 | - `it_it` translations by [Ocizuko](https://legacy.curseforge.com/members/awesome_nobel58/projects)
34 | - `ko_kr` translation by [gyular](https://github.com/gyular)
35 | - `pl_pl` translation by [DarkKnightComes](https://github.com/DarkKnightComes) and [goodideagiver](https://github.com/goodideagiver)
36 | - `pt_br` translation by [FITFC](https://github.com/FITFC)
37 | - `ru_ru` translation by [Felix14-v2](https://github.com/Felix14-v2)
38 | - `sv_se` translation by [Luracasmus](https://github.com/Luracasmus)
39 | - `tr_tr` translation by [Mid0aria](https://github.com/Mid0aria)
40 | - `uk_ua` translation by [BurrConnie](https://github.com/BurrConnie)
41 | - `zh_cn` translation by [GodGun968](https://github.com/GodGun968), [Hambaka](https://github.com/Hambaka), [w5860363](https://github.com/w5860363), [Q2297045667](https://github.com/Q2297045667)
42 |
43 | Links: [CurseForge](https://www.curseforge.com/minecraft/mc-mods/dark-loading-screen) · [GitHub](https://github.com/A5b84/dark-loading-screen) · [Modrinth](https://modrinth.com/mod/dark-loading-screen)
44 |
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id 'fabric-loom' version "${loom_version}"
3 | id 'maven-publish'
4 | }
5 |
6 | version = project.mod_version
7 | group = project.maven_group
8 |
9 | base {
10 | archivesName = project.archives_base_name
11 | }
12 |
13 | repositories {
14 | maven { url "https://maven.shedaniel.me/" }
15 | maven { url "https://maven.terraformersmc.com/" }
16 | }
17 |
18 | dependencies {
19 | minecraft "com.mojang:minecraft:${project.minecraft_version}"
20 | mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
21 | modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
22 |
23 | modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
24 | modApi "com.terraformersmc:modmenu:${project.mod_menu_version}"
25 | modApi "me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config_version}"
26 | }
27 |
28 | processResources {
29 | inputs.property "version", project.version
30 |
31 | filesMatching("fabric.mod.json") {
32 | expand "version": inputs.properties.version
33 | }
34 | }
35 |
36 | tasks.withType(JavaCompile).configureEach {
37 | it.options.release = 21
38 | }
39 |
40 | java {
41 | // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
42 | // if it is present.
43 | // If you remove this line, sources will not be generated.
44 | withSourcesJar()
45 |
46 | sourceCompatibility = JavaVersion.VERSION_21
47 | targetCompatibility = JavaVersion.VERSION_21
48 | }
49 |
50 | jar {
51 | from(["COPYING", "COPYING.LESSER"]) {
52 | rename { "${it}_${inputs.properties.archivesName}"}
53 | }
54 | }
55 |
56 | // configure the maven publication
57 | publishing {
58 | publications {
59 | create("mavenJava", MavenPublication) {
60 | artifactId = project.archives_base_name
61 | from components.java
62 | }
63 | }
64 |
65 | // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
66 | repositories {
67 | // Add repositories to publish to here.
68 | // Notice: This block does NOT have the same function as the block in the top level.
69 | // The repositories here will be used for publishing your artifact, not for
70 | // retrieving dependencies.
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Done to increase the memory available to gradle.
2 | org.gradle.jvmargs=-Xmx1G
3 | org.gradle.parallel=true
4 |
5 | # Fabric Properties
6 | # https://fabricmc.net/develop
7 | minecraft_version=1.21.6
8 | yarn_mappings=1.21.6+build.1
9 | loader_version=0.16.14
10 | loom_version=1.10-SNAPSHOT
11 |
12 | # Mod Properties
13 | mod_version=1.6.17
14 | maven_group=io.github.a5b84
15 | archives_base_name=dark-loading-screen
16 |
17 | # Dependencies
18 | # https://fabricmc.net/develop
19 | fabric_version=0.127.1+1.21.6
20 | # https://modrinth.com/mod/modmenu/versions
21 | mod_menu_version=15.0.0-beta.3
22 | # https://linkie.shedaniel.dev/dependencies
23 | cloth_config_version=19.0.147
24 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/A5b84/dark-loading-screen/2887a1501e21502ebd14d6ff8f64e7259bf9810d/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
4 | networkTimeout=10000
5 | validateDistributionUrl=true
6 | zipStoreBase=GRADLE_USER_HOME
7 | zipStorePath=wrapper/dists
8 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Copyright © 2015-2021 the original authors.
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # https://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 | # SPDX-License-Identifier: Apache-2.0
19 | #
20 |
21 | ##############################################################################
22 | #
23 | # Gradle start up script for POSIX generated by Gradle.
24 | #
25 | # Important for running:
26 | #
27 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
28 | # noncompliant, but you have some other compliant shell such as ksh or
29 | # bash, then to run this script, type that shell name before the whole
30 | # command line, like:
31 | #
32 | # ksh Gradle
33 | #
34 | # Busybox and similar reduced shells will NOT work, because this script
35 | # requires all of these POSIX shell features:
36 | # * functions;
37 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
38 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
39 | # * compound commands having a testable exit status, especially «case»;
40 | # * various built-in commands including «command», «set», and «ulimit».
41 | #
42 | # Important for patching:
43 | #
44 | # (2) This script targets any POSIX shell, so it avoids extensions provided
45 | # by Bash, Ksh, etc; in particular arrays are avoided.
46 | #
47 | # The "traditional" practice of packing multiple parameters into a
48 | # space-separated string is a well documented source of bugs and security
49 | # problems, so this is (mostly) avoided, by progressively accumulating
50 | # options in "$@", and eventually passing that to Java.
51 | #
52 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
53 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
54 | # see the in-line comments for details.
55 | #
56 | # There are tweaks for specific operating systems such as AIX, CygWin,
57 | # Darwin, MinGW, and NonStop.
58 | #
59 | # (3) This script is generated from the Groovy template
60 | # https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
61 | # within the Gradle project.
62 | #
63 | # You can find Gradle at https://github.com/gradle/gradle/.
64 | #
65 | ##############################################################################
66 |
67 | # Attempt to set APP_HOME
68 |
69 | # Resolve links: $0 may be a link
70 | app_path=$0
71 |
72 | # Need this for daisy-chained symlinks.
73 | while
74 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
75 | [ -h "$app_path" ]
76 | do
77 | ls=$( ls -ld "$app_path" )
78 | link=${ls#*' -> '}
79 | case $link in #(
80 | /*) app_path=$link ;; #(
81 | *) app_path=$APP_HOME$link ;;
82 | esac
83 | done
84 |
85 | # This is normally unused
86 | # shellcheck disable=SC2034
87 | APP_BASE_NAME=${0##*/}
88 | # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89 | APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
90 |
91 | # Use the maximum available, or set MAX_FD != -1 to use that value.
92 | MAX_FD=maximum
93 |
94 | warn () {
95 | echo "$*"
96 | } >&2
97 |
98 | die () {
99 | echo
100 | echo "$*"
101 | echo
102 | exit 1
103 | } >&2
104 |
105 | # OS specific support (must be 'true' or 'false').
106 | cygwin=false
107 | msys=false
108 | darwin=false
109 | nonstop=false
110 | case "$( uname )" in #(
111 | CYGWIN* ) cygwin=true ;; #(
112 | Darwin* ) darwin=true ;; #(
113 | MSYS* | MINGW* ) msys=true ;; #(
114 | NONSTOP* ) nonstop=true ;;
115 | esac
116 |
117 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
118 |
119 |
120 | # Determine the Java command to use to start the JVM.
121 | if [ -n "$JAVA_HOME" ] ; then
122 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
123 | # IBM's JDK on AIX uses strange locations for the executables
124 | JAVACMD=$JAVA_HOME/jre/sh/java
125 | else
126 | JAVACMD=$JAVA_HOME/bin/java
127 | fi
128 | if [ ! -x "$JAVACMD" ] ; then
129 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
130 |
131 | Please set the JAVA_HOME variable in your environment to match the
132 | location of your Java installation."
133 | fi
134 | else
135 | JAVACMD=java
136 | if ! command -v java >/dev/null 2>&1
137 | then
138 | die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
139 |
140 | Please set the JAVA_HOME variable in your environment to match the
141 | location of your Java installation."
142 | fi
143 | fi
144 |
145 | # Increase the maximum file descriptors if we can.
146 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
147 | case $MAX_FD in #(
148 | max*)
149 | # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
150 | # shellcheck disable=SC2039,SC3045
151 | MAX_FD=$( ulimit -H -n ) ||
152 | warn "Could not query maximum file descriptor limit"
153 | esac
154 | case $MAX_FD in #(
155 | '' | soft) :;; #(
156 | *)
157 | # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
158 | # shellcheck disable=SC2039,SC3045
159 | ulimit -n "$MAX_FD" ||
160 | warn "Could not set maximum file descriptor limit to $MAX_FD"
161 | esac
162 | fi
163 |
164 | # Collect all arguments for the java command, stacking in reverse order:
165 | # * args from the command line
166 | # * the main class name
167 | # * -classpath
168 | # * -D...appname settings
169 | # * --module-path (only if needed)
170 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
171 |
172 | # For Cygwin or MSYS, switch paths to Windows format before running java
173 | if "$cygwin" || "$msys" ; then
174 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
175 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
176 |
177 | JAVACMD=$( cygpath --unix "$JAVACMD" )
178 |
179 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
180 | for arg do
181 | if
182 | case $arg in #(
183 | -*) false ;; # don't mess with options #(
184 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
185 | [ -e "$t" ] ;; #(
186 | *) false ;;
187 | esac
188 | then
189 | arg=$( cygpath --path --ignore --mixed "$arg" )
190 | fi
191 | # Roll the args list around exactly as many times as the number of
192 | # args, so each arg winds up back in the position where it started, but
193 | # possibly modified.
194 | #
195 | # NB: a `for` loop captures its iteration list before it begins, so
196 | # changing the positional parameters here affects neither the number of
197 | # iterations, nor the values presented in `arg`.
198 | shift # remove old arg
199 | set -- "$@" "$arg" # push replacement arg
200 | done
201 | fi
202 |
203 |
204 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
205 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
206 |
207 | # Collect all arguments for the java command:
208 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
209 | # and any embedded shellness will be escaped.
210 | # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
211 | # treated as '${Hostname}' itself on the command line.
212 |
213 | set -- \
214 | "-Dorg.gradle.appname=$APP_BASE_NAME" \
215 | -classpath "$CLASSPATH" \
216 | org.gradle.wrapper.GradleWrapperMain \
217 | "$@"
218 |
219 | # Stop when "xargs" is not available.
220 | if ! command -v xargs >/dev/null 2>&1
221 | then
222 | die "xargs is not available"
223 | fi
224 |
225 | # Use "xargs" to parse quoted args.
226 | #
227 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
228 | #
229 | # In Bash we could simply go:
230 | #
231 | # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
232 | # set -- "${ARGS[@]}" "$@"
233 | #
234 | # but POSIX shell has neither arrays nor command substitution, so instead we
235 | # post-process each arg (as a line of input to sed) to backslash-escape any
236 | # character that might be a shell metacharacter, then use eval to reverse
237 | # that process (while maintaining the separation between arguments), and wrap
238 | # the whole thing up as a single "set" statement.
239 | #
240 | # This will of course break if any of these variables contains a newline or
241 | # an unmatched quote.
242 | #
243 |
244 | eval "set -- $(
245 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
246 | xargs -n1 |
247 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
248 | tr '\n' ' '
249 | )" '"$@"'
250 |
251 | exec "$JAVACMD" "$@"
252 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 | @rem SPDX-License-Identifier: Apache-2.0
17 | @rem
18 |
19 | @if "%DEBUG%"=="" @echo off
20 | @rem ##########################################################################
21 | @rem
22 | @rem Gradle startup script for Windows
23 | @rem
24 | @rem ##########################################################################
25 |
26 | @rem Set local scope for the variables with windows NT shell
27 | if "%OS%"=="Windows_NT" setlocal
28 |
29 | set DIRNAME=%~dp0
30 | if "%DIRNAME%"=="" set DIRNAME=.
31 | @rem This is normally unused
32 | set APP_BASE_NAME=%~n0
33 | set APP_HOME=%DIRNAME%
34 |
35 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
36 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
37 |
38 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
39 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
40 |
41 | @rem Find java.exe
42 | if defined JAVA_HOME goto findJavaFromJavaHome
43 |
44 | set JAVA_EXE=java.exe
45 | %JAVA_EXE% -version >NUL 2>&1
46 | if %ERRORLEVEL% equ 0 goto execute
47 |
48 | echo. 1>&2
49 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
50 | echo. 1>&2
51 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2
52 | echo location of your Java installation. 1>&2
53 |
54 | goto fail
55 |
56 | :findJavaFromJavaHome
57 | set JAVA_HOME=%JAVA_HOME:"=%
58 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
59 |
60 | if exist "%JAVA_EXE%" goto execute
61 |
62 | echo. 1>&2
63 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
64 | echo. 1>&2
65 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2
66 | echo location of your Java installation. 1>&2
67 |
68 | goto fail
69 |
70 | :execute
71 | @rem Setup the command line
72 |
73 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
74 |
75 |
76 | @rem Execute Gradle
77 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
78 |
79 | :end
80 | @rem End local scope for the variables with windows NT shell
81 | if %ERRORLEVEL% equ 0 goto mainEnd
82 |
83 | :fail
84 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
85 | rem the _cmd.exe /c_ return code!
86 | set EXIT_CODE=%ERRORLEVEL%
87 | if %EXIT_CODE% equ 0 set EXIT_CODE=1
88 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
89 | exit /b %EXIT_CODE%
90 |
91 | :mainEnd
92 | if "%OS%"=="Windows_NT" endlocal
93 |
94 | :omega
95 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | maven {
4 | name = 'Fabric'
5 | url = 'https://maven.fabricmc.net/'
6 | }
7 | mavenCentral()
8 | gradlePluginPortal()
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/main/java/io/github/a5b84/darkloadingscreen/DarkLoadingScreen.java:
--------------------------------------------------------------------------------
1 | package io.github.a5b84.darkloadingscreen;
2 |
3 | import com.mojang.blaze3d.pipeline.BlendFunction;
4 | import com.mojang.blaze3d.pipeline.RenderPipeline;
5 | import com.mojang.blaze3d.platform.DestFactor;
6 | import com.mojang.blaze3d.platform.SourceFactor;
7 | import io.github.a5b84.darkloadingscreen.config.Config;
8 | import io.github.a5b84.darkloadingscreen.mixin.GlCommandEncoderMixin;
9 | import net.minecraft.client.gl.RenderPipelines;
10 | import net.minecraft.client.gui.screen.SplashOverlay;
11 | import net.minecraft.util.Identifier;
12 |
13 | public class DarkLoadingScreen {
14 |
15 | public static final String MOD_ID = "dark-loading-screen";
16 |
17 | /**
18 | * Vanilla fade in/out durations
19 | * @see SplashOverlay#render
20 | */
21 | public static final float
22 | VANILLA_FADE_IN_DURATION = 500,
23 | VANILLA_FADE_OUT_DURATION = 1000;
24 |
25 | /**
26 | * Render pipeline for the part of the Mojang logo that are darker than
27 | * the background.
28 | *
29 | * @see RenderPipelines#MOJANG_LOGO
30 | * @see GlCommandEncoderMixin
31 | */
32 | public static final RenderPipeline MOJANG_LOGO_SHADOWS = RenderPipelines.register(
33 | RenderPipeline.builder(RenderPipelines.POSITION_TEX_COLOR_SNIPPET)
34 | .withLocation(Identifier.of(MOD_ID, "pipeline/mojang_logo_shadows"))
35 | .withBlend(new BlendFunction(SourceFactor.SRC_ALPHA, DestFactor.ONE))
36 | .build()
37 | );
38 |
39 | public static Config config = Config.read();
40 | }
41 |
--------------------------------------------------------------------------------
/src/main/java/io/github/a5b84/darkloadingscreen/DrawTextureLambda.java:
--------------------------------------------------------------------------------
1 | package io.github.a5b84.darkloadingscreen;
2 |
3 | import com.mojang.blaze3d.pipeline.RenderPipeline;
4 |
5 | @FunctionalInterface
6 | public interface DrawTextureLambda {
7 | void call(RenderPipeline pipeline, float x, float y, float z);
8 | }
9 |
--------------------------------------------------------------------------------
/src/main/java/io/github/a5b84/darkloadingscreen/config/ButtonEntry.java:
--------------------------------------------------------------------------------
1 | package io.github.a5b84.darkloadingscreen.config;
2 |
3 | import me.shedaniel.clothconfig2.api.AbstractConfigListEntry;
4 | import net.minecraft.client.MinecraftClient;
5 | import net.minecraft.client.gui.DrawContext;
6 | import net.minecraft.client.gui.Element;
7 | import net.minecraft.client.gui.Selectable;
8 | import net.minecraft.client.gui.widget.ButtonWidget;
9 | import net.minecraft.text.Text;
10 |
11 | import java.util.Collections;
12 | import java.util.List;
13 | import java.util.Optional;
14 |
15 | /** Clickable button entry for Cloth Config that doesn't hold any data */
16 | public class ButtonEntry extends AbstractConfigListEntry {
17 |
18 | private final ButtonWidget button;
19 |
20 | public ButtonEntry(Text fieldName, ButtonWidget.PressAction onPress) {
21 | super(fieldName, false);
22 | int width = MinecraftClient.getInstance().textRenderer.getWidth(fieldName) + 24;
23 | button = ButtonWidget.builder(fieldName, onPress)
24 | .width(width)
25 | .build();
26 | }
27 |
28 | @Override
29 | public void render(DrawContext context, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean isHovered, float delta) {
30 | super.render(context, index, y, x, entryWidth, entryHeight, mouseX, mouseY, isHovered, delta);
31 | button.setX(x + (entryWidth - button.getWidth()) / 2);
32 | button.setY(y + (entryHeight - button.getHeight()) / 2);
33 | button.render(context, mouseX, mouseY, delta);
34 | }
35 |
36 | @Override
37 | public Void getValue() { return null; }
38 |
39 | @Override
40 | public Optional getDefaultValue() { return Optional.empty(); }
41 |
42 | @Override
43 | public void save() {}
44 |
45 | private List children0() {
46 | return Collections.singletonList(button);
47 | }
48 |
49 | @Override
50 | public List extends Element> children() { return children0(); }
51 |
52 | @Override
53 | public List extends Selectable> narratables() { return children0(); }
54 |
55 | }
56 |
--------------------------------------------------------------------------------
/src/main/java/io/github/a5b84/darkloadingscreen/config/Config.java:
--------------------------------------------------------------------------------
1 | package io.github.a5b84.darkloadingscreen.config;
2 |
3 | import com.google.gson.JsonElement;
4 | import com.google.gson.JsonObject;
5 | import com.google.gson.JsonParser;
6 | import com.google.gson.JsonSyntaxException;
7 | import com.google.gson.stream.JsonWriter;
8 | import io.github.a5b84.darkloadingscreen.DarkLoadingScreen;
9 | import net.fabricmc.loader.api.FabricLoader;
10 | import org.apache.logging.log4j.LogManager;
11 | import org.apache.logging.log4j.Logger;
12 |
13 | import java.io.File;
14 | import java.io.FileNotFoundException;
15 | import java.io.FileReader;
16 | import java.io.FileWriter;
17 | import java.io.IOException;
18 |
19 | public class Config {
20 |
21 | private static final Logger LOGGER = LogManager.getLogger();
22 | private static final File CONFIG_FILE = FabricLoader.getInstance().getConfigDir().resolve(DarkLoadingScreen.MOD_ID + ".json").toFile();
23 |
24 | /** Factor to convert UI time (seconds) to ms */
25 | // (Dividing by 2 because the game waits twice as long)
26 | public static final float FADE_DURATION_FACTOR = DarkLoadingScreen.VANILLA_FADE_OUT_DURATION / 2;
27 | /** Maximum fade duration (just in case) */
28 | public static final float MAX_FADE_DURATION = 5;
29 |
30 | // Colors
31 | public final int bg, bar, barBg, border, logo;
32 | // RGB channels of some colors
33 | public final float bgR, bgG, bgB;
34 | public final float logoR, logoG, logoB;
35 |
36 | // Fade durations
37 | public final float fadeIn, fadeOut;
38 | public final float fadeInMs, fadeOutMs;
39 |
40 |
41 | public static final Config DEFAULT = new Config(
42 | 0x14181c, 0xe22837, 0x14181c, 0x303336, 0xffffff,
43 | DarkLoadingScreen.VANILLA_FADE_IN_DURATION / FADE_DURATION_FACTOR,
44 | DarkLoadingScreen.VANILLA_FADE_OUT_DURATION / FADE_DURATION_FACTOR
45 | );
46 |
47 |
48 | /** @param fadeIn Fade in time in seconds
49 | * @param fadeOut Fade out time in seconds */
50 | public Config(
51 | int bg, int bar, int barBg, int border, int logo,
52 | float fadeIn, float fadeOut
53 | ) {
54 | this.bg = bg;
55 | this.bar = bar;
56 | this.barBg = barBg;
57 | this.border = border;
58 | this.logo = logo;
59 | this.fadeIn = Math.min(fadeIn, MAX_FADE_DURATION);
60 | this.fadeOut = Math.min(fadeOut, MAX_FADE_DURATION);
61 |
62 | // Splitting some colors in floats
63 | bgR = getChannel(bg, 16);
64 | bgG = getChannel(bg, 8);
65 | bgB = getChannel(bg, 0);
66 | logoR = getChannel(logo, 16);
67 | logoG = getChannel(logo, 8);
68 | logoB = getChannel(logo, 0);
69 |
70 | // Calculate durations
71 | fadeInMs = fadeIn * FADE_DURATION_FACTOR;
72 | fadeOutMs = fadeOut * FADE_DURATION_FACTOR;
73 | }
74 |
75 | /** @param offset Channel offset in bits
76 | * @return the corresponding channel value between {@code 0} and {@code 1} */
77 | private static float getChannel(int color, int offset) {
78 | return ((color >> offset) & 0xff) / 255f;
79 | }
80 |
81 |
82 | /** Reads the config in the config folder */
83 | public static Config read() {
84 | try (FileReader reader = new FileReader(CONFIG_FILE)) {
85 | JsonElement el = JsonParser.parseReader(reader);
86 | if (!el.isJsonObject()) return DEFAULT;
87 |
88 | JsonObject o = el.getAsJsonObject();
89 | return new Config(
90 | readColor(o, "background", DEFAULT.bg),
91 | readColor(o, "bar", DEFAULT.bar),
92 | readColor(o, "barBackground", DEFAULT.barBg),
93 | readColor(o, "border", DEFAULT.border),
94 | readColor(o, "logo", DEFAULT.logo),
95 | readFloat(o, "fadeIn", DEFAULT.fadeIn),
96 | readFloat(o, "fadeOut", DEFAULT.fadeOut)
97 | );
98 | } catch (FileNotFoundException e) {
99 | return DEFAULT;
100 | } catch (IOException | JsonSyntaxException e) {
101 | LOGGER.error("[Dark Loading Screen] Couldn't read " + CONFIG_FILE + ", using default settings instead");
102 | e.printStackTrace();
103 | return DEFAULT;
104 | }
105 | }
106 |
107 | /** Reads a color from a {@link JsonObject} */
108 | private static int readColor(JsonObject o, String key, int fallback) {
109 | // Reading
110 | JsonElement el = o.get(key);
111 | if (el == null) return fallback;
112 |
113 | String str;
114 | try {
115 | str = el.getAsString();
116 | } catch (ClassCastException | IllegalStateException e) {
117 | return fallback;
118 | }
119 |
120 | // String -> int conversion
121 | try {
122 | // 0xRGB format (for older versions that didn't use Cloth Config)
123 | if (str.length() == 3) {
124 | int color = Integer.parseInt(str, 16);
125 | // 0xRGB -> 0xRRGGBB conversion
126 | return (((color & 0xf00) << 8) + ((color & 0x0f0) << 4) + (color & 0x00f)) * 0x11;
127 | }
128 |
129 | // 0xRRGGBB format (Cloth Config)
130 | if (str.length() == 6) {
131 | return Integer.parseInt(str, 16);
132 | }
133 | } catch (NumberFormatException ignored) {}
134 |
135 | // Error or unknown format
136 | LOGGER.warn("[Dark Loading Screen] Invalid color '{}' for option '{}'", str, key);
137 | return fallback;
138 | }
139 |
140 | private static float readFloat(JsonObject o, String key, float fallback) {
141 | JsonElement el = o.get(key);
142 | if (el == null) return fallback;
143 |
144 | try {
145 | return el.getAsFloat();
146 | } catch (ClassCastException | IllegalStateException e) {
147 | LOGGER.warn("[Dark Loading Screen] Invalid float '{}' for option '{}'", el, key);
148 | return fallback;
149 | }
150 | }
151 |
152 |
153 | public void write() {
154 | if (equals(DEFAULT)) {
155 | // Delete the config file when using the default one
156 | try {
157 | File file = CONFIG_FILE;
158 | if (file.exists() && !file.delete()) {
159 | LOGGER.error("[Dark Loading Screen] Couldn't delete settings file " + CONFIG_FILE);
160 | }
161 | } catch (SecurityException e) {
162 | LOGGER.error("[Dark Loading Screen] Couldn't delete settings file " + CONFIG_FILE);
163 | e.printStackTrace();
164 | }
165 | return;
166 | }
167 |
168 | // Writing
169 | try (
170 | FileWriter fileWriter = new FileWriter(CONFIG_FILE);
171 | JsonWriter jsonWriter = new JsonWriter(fileWriter)
172 | ) {
173 | jsonWriter.setIndent(" ");
174 | jsonWriter.beginObject()
175 | .name("background").value(colorToString(bg))
176 | .name("bar").value(colorToString(bar))
177 | .name("barBackground").value(colorToString(barBg))
178 | .name("border").value(colorToString(border))
179 | .name("logo").value(colorToString(logo))
180 | .name("fadeIn").value(fadeIn)
181 | .name("fadeOut").value(fadeOut)
182 | .endObject();
183 | } catch (IOException e) {
184 | LOGGER.error("[Dark Loading Screen] Couldn't write settings to " + CONFIG_FILE);
185 | e.printStackTrace();
186 | }
187 | }
188 |
189 | private static String colorToString(int color) {
190 | String s = Integer.toString(color, 16);
191 | int leadingZeroes = 6 - s.length();
192 | return leadingZeroes > 0 ? "0".repeat(leadingZeroes) + s : s;
193 | // leadingZeroes should always be >= 0 but just in case
194 | }
195 |
196 |
197 | @Override
198 | public boolean equals(Object o) {
199 | if (this == o) return true;
200 | if (!(o instanceof Config config)) return false;
201 |
202 | return bg == config.bg
203 | && bar == config.bar
204 | && barBg == config.barBg
205 | && border == config.border
206 | && logo == config.logo
207 | && fadeIn == config.fadeIn
208 | && fadeOut == config.fadeOut;
209 | }
210 |
211 | }
212 |
--------------------------------------------------------------------------------
/src/main/java/io/github/a5b84/darkloadingscreen/config/ConfigScreenFactoryImpl.java:
--------------------------------------------------------------------------------
1 | package io.github.a5b84.darkloadingscreen.config;
2 |
3 | import com.terraformersmc.modmenu.api.ConfigScreenFactory;
4 | import me.shedaniel.clothconfig2.api.ConfigBuilder;
5 | import me.shedaniel.clothconfig2.api.ConfigCategory;
6 | import me.shedaniel.clothconfig2.api.ConfigEntryBuilder;
7 | import me.shedaniel.clothconfig2.gui.entries.ColorEntry;
8 | import me.shedaniel.clothconfig2.gui.entries.FloatListEntry;
9 | import net.minecraft.client.MinecraftClient;
10 | import net.minecraft.client.gui.screen.Screen;
11 | import net.minecraft.text.Text;
12 |
13 | import static io.github.a5b84.darkloadingscreen.DarkLoadingScreen.config;
14 | import static io.github.a5b84.darkloadingscreen.config.Config.DEFAULT;
15 |
16 | public class ConfigScreenFactoryImpl implements ConfigScreenFactory {
17 |
18 | @Override
19 | public Screen create(Screen parent) {
20 | ConfigBuilder builder = ConfigBuilder.create()
21 | .setParentScreen(parent)
22 | .setTitle(Text.translatable("darkLoadingScreen.config.title"));
23 |
24 | // Keep the old config in case the user wants to close without saving
25 | Config oldConfig = config;
26 |
27 | // Fields
28 | ConfigCategory category = builder.getOrCreateCategory(Text.empty());
29 | ConfigEntries entries = new ConfigEntries(builder.entryBuilder(), category);
30 | category.addEntry(new ButtonEntry(fieldName("preview"), button -> {
31 | // Preview button
32 | config = entries.createConfig();
33 | MinecraftClient.getInstance().setOverlay(
34 | new PreviewSplashOverlay(500, () -> config = oldConfig)
35 | );
36 | }));
37 |
38 | // Saving
39 | builder.setSavingRunnable(() -> {
40 | config = entries.createConfig();
41 | config.write();
42 | });
43 |
44 | // Done
45 | return builder.build();
46 | }
47 |
48 |
49 | /** @return a {@link Text} that indentifies a field */
50 | private static Text fieldName(String id) {
51 | return Text.translatable("darkLoadingScreen.config.entry." + id);
52 | }
53 |
54 |
55 | /** Class that holds/handles all the fields */
56 | private static class ConfigEntries {
57 |
58 | private final ConfigEntryBuilder builder;
59 | private final ConfigCategory category;
60 | private final ColorEntry bgField, barField, barBgField, borderField, logoField;
61 | private final FloatListEntry fadeInField, fadeOutField;
62 |
63 | /** Creates all the fields and adds them to {@code category} */
64 | public ConfigEntries(ConfigEntryBuilder builder, ConfigCategory category) {
65 | this.builder = builder;
66 | this.category = category;
67 |
68 | bgField = createColorField("background", config.bg, DEFAULT.bg);
69 | barField = createColorField("bar", config.bar, DEFAULT.bar);
70 | barBgField = createColorField("barBackground", config.barBg, DEFAULT.barBg);
71 | borderField = createColorField("border", config.border, DEFAULT.border);
72 | logoField = createColorField("logo", config.logo, DEFAULT.logo);
73 | fadeInField = createFadeTimeField("fadeIn", config.fadeIn, DEFAULT.fadeIn);
74 | fadeOutField = createFadeTimeField("fadeOut", config.fadeOut, DEFAULT.fadeOut);
75 | }
76 |
77 |
78 | public Config createConfig() {
79 | return new Config(
80 | bgField.getValue(), barField.getValue(), barBgField.getValue(),
81 | borderField.getValue(), logoField.getValue(),
82 | fadeInField.getValue(), fadeOutField.getValue()
83 | );
84 | }
85 |
86 |
87 | // Methods that create entries
88 |
89 | private ColorEntry createColorField(String id, int value, int defaultValue) {
90 | ColorEntry entry = builder.startColorField(fieldName(id), value)
91 | .setDefaultValue(defaultValue)
92 | .build();
93 | category.addEntry(entry);
94 | return entry;
95 | }
96 |
97 | private FloatListEntry createFadeTimeField(String id, float value, float defaultValue) {
98 | FloatListEntry entry = builder.startFloatField(fieldName(id), value)
99 | .setDefaultValue(defaultValue)
100 | .setMin(0).setMax(Config.MAX_FADE_DURATION)
101 | .build();
102 | category.addEntry(entry);
103 | return entry;
104 | }
105 |
106 | }
107 |
108 | }
109 |
--------------------------------------------------------------------------------
/src/main/java/io/github/a5b84/darkloadingscreen/config/FakeResourceReload.java:
--------------------------------------------------------------------------------
1 | package io.github.a5b84.darkloadingscreen.config;
2 |
3 | import net.minecraft.resource.ResourceReload;
4 | import net.minecraft.util.Unit;
5 | import net.minecraft.util.Util;
6 | import net.minecraft.util.math.MathHelper;
7 |
8 | import java.util.concurrent.CompletableFuture;
9 |
10 | /** {@link ResourceReload} that automatically completes after some time */
11 | public class FakeResourceReload implements ResourceReload {
12 |
13 | protected final long start;
14 | protected final long duration;
15 |
16 | public FakeResourceReload(long durationMs) {
17 | start = Util.getMeasuringTimeMs();
18 | duration = durationMs;
19 | }
20 |
21 | @Override
22 | public CompletableFuture whenComplete() {
23 | throw new UnsupportedOperationException();
24 | }
25 |
26 | @Override
27 | public float getProgress() {
28 | return MathHelper.clamp(
29 | (float) (Util.getMeasuringTimeMs() - start) / duration, 0, 1
30 | );
31 | }
32 |
33 | @Override
34 | public boolean isComplete() {
35 | return Util.getMeasuringTimeMs() - start >= duration;
36 | }
37 |
38 | @Override
39 | public void throwException() {}
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/src/main/java/io/github/a5b84/darkloadingscreen/config/ModMenuApiImpl.java:
--------------------------------------------------------------------------------
1 | package io.github.a5b84.darkloadingscreen.config;
2 |
3 | import com.terraformersmc.modmenu.api.ConfigScreenFactory;
4 | import com.terraformersmc.modmenu.api.ModMenuApi;
5 | import net.fabricmc.loader.api.FabricLoader;
6 |
7 | public class ModMenuApiImpl implements ModMenuApi {
8 |
9 | private static final ConfigScreenFactory> FACTORY = FabricLoader.getInstance().isModLoaded("cloth-config2")
10 | ? new ConfigScreenFactoryImpl()
11 | : parent -> null;
12 |
13 | @Override
14 | public ConfigScreenFactory> getModConfigScreenFactory() {
15 | return FACTORY;
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/src/main/java/io/github/a5b84/darkloadingscreen/config/PreviewSplashOverlay.java:
--------------------------------------------------------------------------------
1 | package io.github.a5b84.darkloadingscreen.config;
2 |
3 | import net.minecraft.client.MinecraftClient;
4 | import net.minecraft.client.gui.screen.SplashOverlay;
5 |
6 | public class PreviewSplashOverlay extends SplashOverlay {
7 |
8 | private final Runnable onRemoved;
9 |
10 | public PreviewSplashOverlay(long durationMs, Runnable onRemoved) {
11 | super(
12 | MinecraftClient.getInstance(), new FakeResourceReload(durationMs),
13 | optional -> {}, true
14 | );
15 | this.onRemoved = onRemoved;
16 | }
17 |
18 | public void onRemoved() {
19 | if (onRemoved != null) onRemoved.run();
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/src/main/java/io/github/a5b84/darkloadingscreen/mixin/GlCommandEncoderMixin.java:
--------------------------------------------------------------------------------
1 | package io.github.a5b84.darkloadingscreen.mixin;
2 |
3 | import com.mojang.blaze3d.opengl.GlStateManager;
4 | import com.mojang.blaze3d.pipeline.RenderPipeline;
5 | import io.github.a5b84.darkloadingscreen.DarkLoadingScreen;
6 | import net.minecraft.client.gl.GlCommandEncoder;
7 | import org.jetbrains.annotations.Nullable;
8 | import org.lwjgl.opengl.GL14;
9 | import org.spongepowered.asm.mixin.Mixin;
10 | import org.spongepowered.asm.mixin.Shadow;
11 | import org.spongepowered.asm.mixin.injection.At;
12 | import org.spongepowered.asm.mixin.injection.Inject;
13 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
14 |
15 | /**
16 | * Sets {@link GL14#glBlendEquation(int)} because {@link RenderPipeline}s and
17 | * {@link GlStateManager} don't allow it.
18 | */
19 | @Mixin(GlCommandEncoder.class)
20 | public abstract class GlCommandEncoderMixin {
21 |
22 | @Shadow @Nullable private RenderPipeline currentPipeline;
23 |
24 | @Inject(method = "setPipelineAndApplyState", at = @At(value = "HEAD"))
25 | public void onSetPipelineAndApplyState(RenderPipeline newPipeline, CallbackInfo ci) {
26 | if (currentPipeline != newPipeline) {
27 | if (newPipeline == DarkLoadingScreen.MOJANG_LOGO_SHADOWS) {
28 | GL14.glBlendEquation(GL14.GL_FUNC_REVERSE_SUBTRACT);
29 | } else if (currentPipeline == DarkLoadingScreen.MOJANG_LOGO_SHADOWS) {
30 | GL14.glBlendEquation(GL14.GL_FUNC_ADD);
31 | }
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/main/java/io/github/a5b84/darkloadingscreen/mixin/MixinPlugin.java:
--------------------------------------------------------------------------------
1 | package io.github.a5b84.darkloadingscreen.mixin;
2 |
3 | import net.fabricmc.loader.api.FabricLoader;
4 | import org.objectweb.asm.tree.ClassNode;
5 | import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
6 | import org.spongepowered.asm.mixin.extensibility.IMixinInfo;
7 |
8 | import java.util.List;
9 | import java.util.Set;
10 |
11 | public class MixinPlugin implements IMixinConfigPlugin {
12 |
13 | @Override
14 | public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
15 | if (mixinClassName.contains(".compat.semitranslucencyfix.")) {
16 | return FabricLoader.getInstance().isModLoaded("semitranslucency");
17 | } else {
18 | return true;
19 | }
20 | }
21 |
22 | @Override public void onLoad(String mixinPackage) {}
23 | @Override public String getRefMapperConfig() { return null; }
24 | @Override public void acceptTargets(Set myTargets, Set otherTargets) {}
25 | @Override public List getMixins() { return null; }
26 | @Override public void preApply(String targetClassName, ClassNode targetClass, String mixinClassName, IMixinInfo mixinInfo) {}
27 | @Override public void postApply(String targetClassName, ClassNode targetClass, String mixinClassName, IMixinInfo mixinInfo) {}
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/java/io/github/a5b84/darkloadingscreen/mixin/SplashOverlayMixin.java:
--------------------------------------------------------------------------------
1 | package io.github.a5b84.darkloadingscreen.mixin;
2 |
3 | import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
4 | import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation;
5 | import com.mojang.blaze3d.pipeline.RenderPipeline;
6 | import io.github.a5b84.darkloadingscreen.DarkLoadingScreen;
7 | import io.github.a5b84.darkloadingscreen.DrawTextureLambda;
8 | import io.github.a5b84.darkloadingscreen.config.PreviewSplashOverlay;
9 | import net.minecraft.client.gui.DrawContext;
10 | import net.minecraft.client.gui.screen.SplashOverlay;
11 | import net.minecraft.util.Identifier;
12 | import net.minecraft.util.math.ColorHelper;
13 | import org.spongepowered.asm.mixin.Final;
14 | import org.spongepowered.asm.mixin.Mixin;
15 | import org.spongepowered.asm.mixin.Mutable;
16 | import org.spongepowered.asm.mixin.Shadow;
17 | import org.spongepowered.asm.mixin.injection.At;
18 | import org.spongepowered.asm.mixin.injection.Constant;
19 | import org.spongepowered.asm.mixin.injection.Inject;
20 | import org.spongepowered.asm.mixin.injection.ModifyConstant;
21 | import org.spongepowered.asm.mixin.injection.ModifyVariable;
22 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
23 |
24 | import java.util.function.IntSupplier;
25 |
26 | import static io.github.a5b84.darkloadingscreen.DarkLoadingScreen.config;
27 |
28 | @Mixin(SplashOverlay.class)
29 | public abstract class SplashOverlayMixin {
30 |
31 | @Mutable @Shadow private static @Final IntSupplier BRAND_ARGB;
32 |
33 | /** Changes the background color */
34 | @Inject(method = "", at = @At("RETURN"))
35 | private static void adjustBg(CallbackInfo ci) {
36 | BRAND_ARGB = () -> config.bg;
37 | }
38 |
39 |
40 | // Progress bar
41 |
42 | /** Renders the bar background and changes the main bar color */
43 | @ModifyVariable(method = "renderProgressBar",
44 | at = @At(value = "INVOKE_ASSIGN", target = "Lnet/minecraft/util/math/ColorHelper;getArgb(IIII)I"),
45 | ordinal = 6)
46 | private int modifyBarColor(int barColor, DrawContext context, int x1, int y1, int x2, int y2, float opacity) {
47 | int alpha = barColor & 0xff000000;
48 | context.fill(x1 + 1, y1 + 1, x2 - 1, y2 - 1, config.barBg | alpha);
49 | return config.bar | alpha;
50 | }
51 |
52 | /** Changes the bar border color */
53 | @ModifyVariable(method = "renderProgressBar",
54 | at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/DrawContext;fill(IIIII)V", ordinal = 0, shift = At.Shift.AFTER),
55 | ordinal = 6)
56 | private int modifyBarBorderColor(int color) {
57 | return config.border | color & 0xff000000;
58 | }
59 |
60 |
61 | // Logo
62 |
63 | /** Changes the logo color */
64 | @WrapOperation(method = "render",
65 | at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/DrawContext;drawTexture(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Lnet/minecraft/util/Identifier;IIFFIIIIIII)V"))
66 | private void onDrawTexture(DrawContext context, RenderPipeline originalPipeline, Identifier sprite, int x, int y, float u, float v, int width, int height, int regionWidth, int regionHeight, int textureWidth, int textureHeight, int color, Operation original) {
67 | // `RenderSystem.blendFunc(GL_SRC_ALPHA, Gl_ONE_MINUS_SOURCE_ALPHA)`
68 | // causes an ugly outline, so we render the logo twice (once for logo
69 | // channels that are brighter than the background, and another time
70 | // for those that are darker)
71 |
72 | int alpha = ColorHelper.getAlpha(color);
73 |
74 | DrawTextureLambda drawTexture = (pipeline, r, g, b) -> {
75 | if (r > 0 || g > 0 || b > 0) {
76 | original.call(context, pipeline, sprite, x, y, u, v, width, height, regionWidth, regionHeight, textureWidth, textureHeight, ColorHelper.getArgb(
77 | alpha,
78 | ColorHelper.channelFromFloat(Math.max(r, 0)),
79 | ColorHelper.channelFromFloat(Math.max(g, 0)),
80 | ColorHelper.channelFromFloat(Math.max(b, 0))
81 | ));
82 | }
83 | };
84 |
85 | // Order of draws is important because GlCommandEncoderMixin resets
86 | // the blend equation only when MOJANG_LOGO_SHADOWS is swapped out for
87 | // something else. One way to ensure this is to draw shadows before
88 | // highlights.
89 | drawTexture.call(
90 | DarkLoadingScreen.MOJANG_LOGO_SHADOWS,
91 | config.bgR - config.logoR,
92 | config.bgG - config.logoG,
93 | config.bgB - config.logoB
94 | );
95 |
96 | drawTexture.call(
97 | originalPipeline,
98 | config.logoR - config.bgR,
99 | config.logoG - config.bgG,
100 | config.logoB - config.bgB
101 | );
102 | }
103 |
104 |
105 | /** Calls {@link PreviewSplashOverlay#onRemoved()} when the overlay is removed */
106 | @Inject(method = "render",
107 | at = @At(value = "INVOKE", target = "Lnet/minecraft/client/MinecraftClient;setOverlay(Lnet/minecraft/client/gui/screen/Overlay;)V"))
108 | private void onSetOverlay(CallbackInfo info) {
109 | //noinspection ConstantConditions
110 | if ((Object) this instanceof PreviewSplashOverlay previewScreen) {
111 | previewScreen.onRemoved();
112 | }
113 | }
114 |
115 |
116 | @ModifyConstant(method = "render", constant = @Constant(floatValue = DarkLoadingScreen.VANILLA_FADE_IN_DURATION))
117 | private float getFadeInTime(float old) {
118 | return config.fadeInMs;
119 | }
120 |
121 | @ModifyConstant(method = "render", constant = @Constant(floatValue = DarkLoadingScreen.VANILLA_FADE_OUT_DURATION))
122 | private float getFadeOutTime(float old) {
123 | return config.fadeOutMs;
124 | }
125 | }
126 |
--------------------------------------------------------------------------------
/src/main/java/io/github/a5b84/darkloadingscreen/mixin/compat/semitranslucencyfix/DrawableHelperMixin.java:
--------------------------------------------------------------------------------
1 | package io.github.a5b84.darkloadingscreen.mixin.compat.semitranslucencyfix;
2 |
3 | // TODO: update this when Semitranslucency Fix gets updated or remove it
4 |
5 | // import com.mojang.blaze3d.systems.RenderSystem;
6 | // import net.minecraft.client.MinecraftClient;
7 | // import net.minecraft.client.gui.DrawableHelper;
8 | // import net.minecraft.client.gui.screen.SplashOverlay;
9 | // import org.lwjgl.opengl.GL11;
10 | // import org.spongepowered.asm.mixin.Mixin;
11 | // import org.spongepowered.asm.mixin.injection.At;
12 | // import org.spongepowered.asm.mixin.injection.Inject;
13 | // import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
14 | //
15 | // @Mixin(DrawableHelper.class)
16 | // public abstract class DrawableHelperMixin {
17 | //
18 | // /**
19 | // * Adds compatibility for Semitranslucency Fix (link)
20 | // * by undoing what it does when the {@link SplashOverlay} is visible
21 | // * (relevant method)
22 | // * @see SplashOverlay#render
23 | // */
24 | // @Inject(method = "drawTexturedQuad", at = @At(value = "HEAD", shift = At.Shift.AFTER))
25 | // private static void drawTexturedQuad(CallbackInfo ci) {
26 | // if (MinecraftClient.getInstance().getOverlay() instanceof SplashOverlay) {
27 | // RenderSystem.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE);
28 | // }
29 | // }
30 | //
31 | // }
32 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/A5b84/dark-loading-screen/2887a1501e21502ebd14d6ff8f64e7259bf9810d/src/main/resources/assets/dark-loading-screen/icon.png
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/bg_bg.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Настройки на Dark Loading Screen",
3 | "darkLoadingScreen.config.entry.background": "Цвят на фона",
4 | "darkLoadingScreen.config.entry.bar": "Цвят на запълване на панела",
5 | "darkLoadingScreen.config.entry.barBackground": "Цвят на фона на панела",
6 | "darkLoadingScreen.config.entry.border": "Цвят на ръба на панела",
7 | "darkLoadingScreen.config.entry.logo": "Цвят на логото",
8 | "darkLoadingScreen.config.entry.fadeIn": "Продължителност на избледняване",
9 | "darkLoadingScreen.config.entry.fadeOut": "Продължителност на затъмняването",
10 | "darkLoadingScreen.config.entry.preview": "Визуализация"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/de_de.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Dark Loading Screen Optionen",
3 | "darkLoadingScreen.config.entry.background": "Hintergrundfarbe",
4 | "darkLoadingScreen.config.entry.bar": "Balkenfarbe",
5 | "darkLoadingScreen.config.entry.barBackground": "Balken-Hintergrundfarbe",
6 | "darkLoadingScreen.config.entry.border": "Balken-Randfarbe",
7 | "darkLoadingScreen.config.entry.logo": "Logofarbe",
8 | "darkLoadingScreen.config.entry.fadeIn": "Einblenddauer",
9 | "darkLoadingScreen.config.entry.fadeOut": "Ausblenddauer",
10 | "darkLoadingScreen.config.entry.preview": "Vorschau"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/en_us.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Dark Loading Screen Config",
3 | "darkLoadingScreen.config.entry.background": "Background Color",
4 | "darkLoadingScreen.config.entry.bar": "Bar Color",
5 | "darkLoadingScreen.config.entry.barBackground": "Bar Background Color",
6 | "darkLoadingScreen.config.entry.border": "Bar Border Color",
7 | "darkLoadingScreen.config.entry.logo": "Logo Color",
8 | "darkLoadingScreen.config.entry.fadeIn": "Fade In Duration",
9 | "darkLoadingScreen.config.entry.fadeOut": "Fade Out Duration",
10 | "darkLoadingScreen.config.entry.preview": "Preview"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/es_ar.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Configuración de Dark Loading Screen",
3 | "darkLoadingScreen.config.entry.background": "Color de fondo",
4 | "darkLoadingScreen.config.entry.bar": "Color de la barra",
5 | "darkLoadingScreen.config.entry.barBackground": "Color de fondo de la barra",
6 | "darkLoadingScreen.config.entry.border": "Color del borde de la barra",
7 | "darkLoadingScreen.config.entry.logo": "Color del logo",
8 | "darkLoadingScreen.config.entry.fadeIn": "Duración del desvanecido de entrada",
9 | "darkLoadingScreen.config.entry.fadeOut": "Duración del desvanecido de salida",
10 | "darkLoadingScreen.config.entry.preview": "Vista previa"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/es_cl.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Configuraci\u00f3n de pantalla oscura",
3 | "darkLoadingScreen.config.entry.background": "Color de fondo",
4 | "darkLoadingScreen.config.entry.bar": "Color de la barra",
5 | "darkLoadingScreen.config.entry.barBackground": "Bar Background Color",
6 | "darkLoadingScreen.config.entry.border": "Color del borde",
7 | "darkLoadingScreen.config.entry.logo": "Color del logo",
8 | "darkLoadingScreen.config.entry.fadeIn": "Fade In Duration",
9 | "darkLoadingScreen.config.entry.fadeOut": "Fade Out Duration",
10 | "darkLoadingScreen.config.entry.preview": "Probar"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/es_ec.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Configuraci\u00f3n de pantalla oscura",
3 | "darkLoadingScreen.config.entry.background": "Color de fondo",
4 | "darkLoadingScreen.config.entry.bar": "Color de la barra",
5 | "darkLoadingScreen.config.entry.barBackground": "Bar Background Color",
6 | "darkLoadingScreen.config.entry.border": "Color del borde",
7 | "darkLoadingScreen.config.entry.logo": "Color del logo",
8 | "darkLoadingScreen.config.entry.fadeIn": "Fade In Duration",
9 | "darkLoadingScreen.config.entry.fadeOut": "Fade Out Duration",
10 | "darkLoadingScreen.config.entry.preview": "Probar"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/es_es.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Configuraci\u00f3n de pantalla oscura",
3 | "darkLoadingScreen.config.entry.background": "Color de fondo",
4 | "darkLoadingScreen.config.entry.bar": "Color de la barra",
5 | "darkLoadingScreen.config.entry.barBackground": "Bar Background Color",
6 | "darkLoadingScreen.config.entry.border": "Color del borde",
7 | "darkLoadingScreen.config.entry.logo": "Color del logo",
8 | "darkLoadingScreen.config.entry.fadeIn": "Fade In Duration",
9 | "darkLoadingScreen.config.entry.fadeOut": "Fade Out Duration",
10 | "darkLoadingScreen.config.entry.preview": "Probar"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/es_mx.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Configuraci\u00f3n de pantalla oscura",
3 | "darkLoadingScreen.config.entry.background": "Color de fondo",
4 | "darkLoadingScreen.config.entry.bar": "Color de la barra",
5 | "darkLoadingScreen.config.entry.barBackground": "Bar Background Color",
6 | "darkLoadingScreen.config.entry.border": "Color del borde",
7 | "darkLoadingScreen.config.entry.logo": "Color del logo",
8 | "darkLoadingScreen.config.entry.fadeIn": "Fade In Duration",
9 | "darkLoadingScreen.config.entry.fadeOut": "Fade Out Duration",
10 | "darkLoadingScreen.config.entry.preview": "Probar"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/es_uy.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Configuraci\u00f3n de pantalla oscura",
3 | "darkLoadingScreen.config.entry.background": "Color de fondo",
4 | "darkLoadingScreen.config.entry.bar": "Color de la barra",
5 | "darkLoadingScreen.config.entry.barBackground": "Bar Background Color",
6 | "darkLoadingScreen.config.entry.border": "Color del borde",
7 | "darkLoadingScreen.config.entry.logo": "Color del logo",
8 | "darkLoadingScreen.config.entry.fadeIn": "Fade In Duration",
9 | "darkLoadingScreen.config.entry.fadeOut": "Fade Out Duration",
10 | "darkLoadingScreen.config.entry.preview": "Probar"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/es_ve.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Configuraci\u00f3n de pantalla oscura",
3 | "darkLoadingScreen.config.entry.background": "Color de fondo",
4 | "darkLoadingScreen.config.entry.bar": "Color de la barra",
5 | "darkLoadingScreen.config.entry.barBackground": "Bar Background Color",
6 | "darkLoadingScreen.config.entry.border": "Color del borde",
7 | "darkLoadingScreen.config.entry.logo": "Color del logo",
8 | "darkLoadingScreen.config.entry.fadeIn": "Fade In Duration",
9 | "darkLoadingScreen.config.entry.fadeOut": "Fade Out Duration",
10 | "darkLoadingScreen.config.entry.preview": "Probar"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/fr_fr.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Dark Loading Screen - Paramètres",
3 | "darkLoadingScreen.config.entry.background": "Couleur du fond",
4 | "darkLoadingScreen.config.entry.bar": "Couleur de la barre",
5 | "darkLoadingScreen.config.entry.barBackground": "Couleur du fond de la barre",
6 | "darkLoadingScreen.config.entry.border": "Couleur du contour de la barre",
7 | "darkLoadingScreen.config.entry.logo": "Couleur du logo",
8 | "darkLoadingScreen.config.entry.fadeIn": "Durée d'apparition",
9 | "darkLoadingScreen.config.entry.fadeOut": "Durée de disparition",
10 | "darkLoadingScreen.config.entry.preview": "Essayer"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/it_it.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Dark Loading Screen - Parametri",
3 | "darkLoadingScreen.config.entry.background": "Colore del Fondo",
4 | "darkLoadingScreen.config.entry.bar": "Colore della Barra",
5 | "darkLoadingScreen.config.entry.barBackground": "Colore di Fondo della Barra",
6 | "darkLoadingScreen.config.entry.border": "Colore del Contorno della Barra",
7 | "darkLoadingScreen.config.entry.logo": "Colore del Logo",
8 | "darkLoadingScreen.config.entry.fadeIn": "Durata della Apparizione",
9 | "darkLoadingScreen.config.entry.fadeOut": "Durata della Dissolvenza",
10 | "darkLoadingScreen.config.entry.preview": "Anteprima"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/ko_kr.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Dark Loading Screen 환경설정",
3 | "darkLoadingScreen.config.entry.background": "배경 색상",
4 | "darkLoadingScreen.config.entry.bar": "바 색상",
5 | "darkLoadingScreen.config.entry.barBackground": "바 배경 색상",
6 | "darkLoadingScreen.config.entry.border": "바 테두리 색상",
7 | "darkLoadingScreen.config.entry.logo": "로고 색상",
8 | "darkLoadingScreen.config.entry.fadeIn": "페이드 인 지속 시간",
9 | "darkLoadingScreen.config.entry.fadeOut": "페이드 아웃 지속 시간",
10 | "darkLoadingScreen.config.entry.preview": "미리보기"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/pl_pl.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Konfiguracja ciemnego ekranu ładowania",
3 | "darkLoadingScreen.config.entry.background": "Kolor tła",
4 | "darkLoadingScreen.config.entry.bar": "Kolor paska",
5 | "darkLoadingScreen.config.entry.barBackground": "Kolor tła paska",
6 | "darkLoadingScreen.config.entry.border": "Kolor krawędzi",
7 | "darkLoadingScreen.config.entry.logo": "Kolor Logo",
8 | "darkLoadingScreen.config.entry.fadeIn": "Czas pojawiania się",
9 | "darkLoadingScreen.config.entry.fadeOut": "Czas zanikania",
10 | "darkLoadingScreen.config.entry.preview": "Wypróbuj"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/pt_br.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Dark Loading Screen Config",
3 | "darkLoadingScreen.config.entry.background": "Cor de fundo",
4 | "darkLoadingScreen.config.entry.bar": "Cor da barra",
5 | "darkLoadingScreen.config.entry.barBackground": "Cor de fundo da barra",
6 | "darkLoadingScreen.config.entry.border": "Cor da Borda da Barra",
7 | "darkLoadingScreen.config.entry.logo": "Cor do logotipo",
8 | "darkLoadingScreen.config.entry.fadeIn": "Duração do Fade In",
9 | "darkLoadingScreen.config.entry.fadeOut": "Duração do Fade Out",
10 | "darkLoadingScreen.config.entry.preview": "Pré-visualizar"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/ru_ru.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Настройки Dark Loading Screen",
3 | "darkLoadingScreen.config.entry.background": "Цвет фона",
4 | "darkLoadingScreen.config.entry.bar": "Цвет заполненной панели",
5 | "darkLoadingScreen.config.entry.barBackground": "Цвет фона панели",
6 | "darkLoadingScreen.config.entry.border": "Цвет границ панели",
7 | "darkLoadingScreen.config.entry.logo": "Цвет логотипа",
8 | "darkLoadingScreen.config.entry.fadeIn": "Длительность появления",
9 | "darkLoadingScreen.config.entry.fadeOut": "Длительность растворения",
10 | "darkLoadingScreen.config.entry.preview": "Предпросмотр"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/sv_se.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Dark Loading Screen Konfiguration",
3 | "darkLoadingScreen.config.entry.background": "Bakgrundsfärg",
4 | "darkLoadingScreen.config.entry.bar": "Färg Av Stång",
5 | "darkLoadingScreen.config.entry.barBackground": "Bakgrundsfärg Av Stång",
6 | "darkLoadingScreen.config.entry.border": "Kantfärg Av Stång",
7 | "darkLoadingScreen.config.entry.logo": "Färg Av Logotyp",
8 | "darkLoadingScreen.config.entry.fadeIn": "Intoningstid",
9 | "darkLoadingScreen.config.entry.fadeOut": "Uttoningstid",
10 | "darkLoadingScreen.config.entry.preview": "Förhandsvisning"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/tr_tr.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Dark Loading Screen Yapılandırması",
3 | "darkLoadingScreen.config.entry.background": "Arka Plan Rengi",
4 | "darkLoadingScreen.config.entry.bar": "Bar Rengi",
5 | "darkLoadingScreen.config.entry.barBackground": "Bar Arka Plan Rengi",
6 | "darkLoadingScreen.config.entry.border": "Bar Kenarlık Rengi",
7 | "darkLoadingScreen.config.entry.logo": "Logo Rengi",
8 | "darkLoadingScreen.config.entry.fadeIn": "Soluklaşma Süresi",
9 | "darkLoadingScreen.config.entry.fadeOut": "Sönme Süresi",
10 | "darkLoadingScreen.config.entry.preview": "Önizleme"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/uk_ua.json:
--------------------------------------------------------------------------------
1 | {
2 | "darkLoadingScreen.config.title": "Параметри Dark Loading Screen",
3 | "darkLoadingScreen.config.entry.background": "Колір фону",
4 | "darkLoadingScreen.config.entry.bar": "Колір стрічки",
5 | "darkLoadingScreen.config.entry.barBackground": "Колір фону стрічки",
6 | "darkLoadingScreen.config.entry.border": "Колір меж стрічки",
7 | "darkLoadingScreen.config.entry.logo": "Колір логотипу",
8 | "darkLoadingScreen.config.entry.fadeIn": "Тривалість появи",
9 | "darkLoadingScreen.config.entry.fadeOut": "Тривалість зникання",
10 | "darkLoadingScreen.config.entry.preview": "Перегляд"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/resources/assets/dark-loading-screen/lang/zh_cn.json:
--------------------------------------------------------------------------------
1 | {
2 | "modmenu.descriptionTranslation.darkLoadingScreen": "使加载画面变暗\n游戏内配置需使用Mod Menu和Cloth Config",
3 | "darkLoadingScreen.config.title": "Dark Loading Screen 配置",
4 | "darkLoadingScreen.config.entry.background": "背景颜色",
5 | "darkLoadingScreen.config.entry.bar": "进度条颜色",
6 | "darkLoadingScreen.config.entry.barBackground": "进度条背景颜色",
7 | "darkLoadingScreen.config.entry.border": "进度条边框颜色",
8 | "darkLoadingScreen.config.entry.logo": "Logo 颜色",
9 | "darkLoadingScreen.config.entry.fadeIn": "淡入持续时间",
10 | "darkLoadingScreen.config.entry.fadeOut": "淡出持续时间",
11 | "darkLoadingScreen.config.entry.preview": "预览"
12 | }
13 |
--------------------------------------------------------------------------------
/src/main/resources/dark-loading-screen.mixins.json:
--------------------------------------------------------------------------------
1 | {
2 | "required": true,
3 | "package": "io.github.a5b84.darkloadingscreen.mixin",
4 | "plugin": "io.github.a5b84.darkloadingscreen.mixin.MixinPlugin",
5 | "compatibilityLevel": "JAVA_21",
6 | "client": [
7 | "GlCommandEncoderMixin",
8 | "SplashOverlayMixin"
9 | ],
10 | "injectors": {
11 | "defaultRequire": 1
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/main/resources/fabric.mod.json:
--------------------------------------------------------------------------------
1 | {
2 | "schemaVersion": 1,
3 | "id": "dark-loading-screen",
4 | "version": "${version}",
5 | "name": "Dark Loading Screen",
6 | "description": "Makes the loading screen darker\\nIn-game configuration requires Mod Menu and Cloth Config",
7 | "authors": [
8 | "A5b84"
9 | ],
10 | "contributors": [
11 | "BurrConnie",
12 | "DarkKnightComes",
13 | "Felix14-v2",
14 | "FITFC",
15 | "GodGun968",
16 | "goodideagiver",
17 | "gyular",
18 | "Hambaka",
19 | "Haseck",
20 | "Luracasmus",
21 | "Mid0aria",
22 | "moritz-htk",
23 | "natee22",
24 | "Ocizuko",
25 | "Q2297045667",
26 | "Texaliuz",
27 | "w5860363"
28 | ],
29 | "contact": {
30 | "homepage": "https://www.curseforge.com/minecraft/mc-mods/dark-loading-screen",
31 | "issues": "https://github.com/A5b84/dark-loading-screen/issues",
32 | "sources": "https://github.com/A5b84/dark-loading-screen"
33 | },
34 | "license": "LGPL-3.0-or-later",
35 | "icon": "assets/dark-loading-screen/icon.png",
36 | "environment": "client",
37 | "entrypoints": {
38 | "modmenu": [
39 | "io.github.a5b84.darkloadingscreen.config.ModMenuApiImpl"
40 | ]
41 | },
42 | "mixins": [
43 | "dark-loading-screen.mixins.json"
44 | ],
45 | "depends": {
46 | "fabricloader": ">=0.16.14",
47 | "minecraft": ">=1.21.6-"
48 | }
49 | }
50 |
--------------------------------------------------------------------------------