├── .github └── FUNDING.yml ├── .gitlab-ci.yml ├── LICENSE ├── README.md └── osuSkinChecker ├── .classpath ├── .gitignore ├── .project ├── .settings ├── org.eclipse.buildship.core.prefs ├── org.eclipse.core.resources.prefs ├── org.eclipse.core.runtime.prefs └── org.eclipse.jdt.core.prefs ├── build.gradle ├── dataFormat.txt ├── exclude.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── resources ├── catch.txt ├── gameplay-sounds.txt ├── gameplay.txt ├── mania.txt ├── menu-sounds.txt ├── menu.txt ├── misc.txt ├── osu-sounds.txt ├── osu.txt ├── skinchecker.png ├── taiko-sounds.txt └── taiko.txt ├── settings.gradle ├── skinchecker.ico └── src └── dev └── roanh └── osuskinchecker ├── Filter.java ├── ImageFilter.java ├── ImageMeta.java ├── ImageModel.java ├── Model.java ├── SkinChecker.java ├── SoundFilter.java ├── SoundModel.java └── ini ├── Colour.java ├── Comment.java ├── Section.java ├── Setting.java ├── SkinIni.java ├── SkinIniTab.java ├── SplitLayout.java └── Version.java /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: RoanH 2 | ko_fi: RoanHofland 3 | custom: https://www.paypal.me/RoanHofland -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | image: openjdk:8 2 | 3 | variables: 4 | SUFFIX: "${CI_PIPELINE_ID}-${CI_COMMIT_REF_NAME}" 5 | PROJECTNAME: osuSkinChecker 6 | 7 | before_script: 8 | - java -version 9 | - cd ${PROJECTNAME} 10 | - ls -l 11 | - chmod -R 755 ./* 12 | 13 | stages: 14 | - check 15 | - compile 16 | - status 17 | - javadoc 18 | 19 | endings: 20 | allow_failure: true 21 | script: curl ${SERVER}ci/lf.sh | bash 22 | stage: check 23 | 24 | spotbugs: 25 | allow_failure: true 26 | script: 27 | - ./gradlew -PrefName=${CI_COMMIT_REF_NAME} -PnexusPublic=${NEXUS_PUBLIC} :spotbugsMain 28 | stage: check 29 | artifacts: 30 | name: "SpotBugs-${SUFFIX}" 31 | expire_in: 1 week 32 | when: always 33 | paths: 34 | - ./${PROJECTNAME}/build/reports/spotbugs/main/spotbugs.html 35 | 36 | pending: 37 | allow_failure: true 38 | script: curl ${SERVER}ci/pending.sh | bash 39 | stage: compile 40 | 41 | success: 42 | allow_failure: true 43 | script: curl ${SERVER}ci/success.sh | bash 44 | when: on_success 45 | stage: status 46 | 47 | failure: 48 | allow_failure: true 49 | script: curl ${SERVER}ci/failure.sh | bash 50 | when: on_failure 51 | stage: status 52 | 53 | verify: 54 | allow_failure: true 55 | script: curl ${SERVER}ci/javadoc.sh | bash 56 | stage: javadoc 57 | coverage: '/\([0-9]{2,3}\.[0-9]{2}%\)/' 58 | 59 | javadoc: 60 | script: 61 | - ./gradlew -PrefName=${CI_COMMIT_REF_NAME} -PnexusPublic=${NEXUS_PUBLIC} :javadoc 62 | - mv ./build/docs/javadoc ../ 63 | stage: javadoc 64 | artifacts: 65 | name: "Javadoc-${SUFFIX}" 66 | expire_in: 1 week 67 | paths: 68 | - javadoc/ 69 | 70 | compile: 71 | script: 72 | - ./gradlew -PrefName=${CI_COMMIT_REF_NAME} -PnexusPublic=${NEXUS_PUBLIC} :shadowJar 73 | - ./gradlew -PrefName=${CI_COMMIT_REF_NAME} -PnexusPublic=${NEXUS_PUBLIC} :createExe 74 | - mv ./build/libs/* .. 75 | - mv ./build/launch4j/*.exe .. 76 | stage: compile 77 | artifacts: 78 | name: SkinChecker-${SUFFIX} 79 | expire_in: 1 week 80 | paths: 81 | - SkinChecker-*.jar 82 | - SkinChecker-*.exe 83 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 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 | osuSkinChecker 635 | Copyright (C) 2017 Roan Hofland 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 | osuSkinChecker Copyright (C) 2017 Roan Hofland 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # osu! Skin Checker [![](https://img.shields.io/github/release/RoanH/osuSkinChecker.svg)](https://github.com/RoanH/osuSkinChecker/releases) [![](https://img.shields.io/github/downloads/RoanH/osuSkinChecker/total.svg)](#downloads) 2 | Simple program to check if all the elements for an osu! skin are present. 3 | 4 | [Jump directly to downloads](#downloads) 5 | 6 | # Forum post 7 | So a little while ago I was asked to write a program to show what files were missing in a skin.
8 | And now I'm finally done :D 9 | 10 | The program looks like this:
11 | ![GUI](https://media.roanh.dev/skinchecker/gui.png) 12 | 13 | It is a simple program that shows you which elements of your skin are skinned and which elements are not. It also shows if there's an SD/HD image in the skin for each element or not. For files that can be animated it also shows whether or not they are animated and if they are how many frames the animation consists of. Lastly, it also reports a missing skin.ini file and will read and use custom paths from the skin.ini if they exist. The program also includes an editor for the `skin.ini`. 14 | 15 | Well I hope some of you find this program useful :)
16 | And if you find any bugs feel free to report them (spelling mistakes included :3). 17 | 18 | ## Downloads 19 | _Requires Java 8 or higher_ 20 | - [Windows executable](https://github.com/RoanH/osuSkinChecker/releases/download/v3.4/SkinChecker-v3.4.exe)
21 | - [Runnable Java Archive](https://github.com/RoanH/osuSkinChecker/releases/download/v3.4/SkinChecker-v3.4.jar) 22 | 23 | All releases: [releases](https://github.com/RoanH/osuSkinChecker/releases)
24 | GitHub repository: [repository](https://github.com/RoanH/osuSkinChecker)
25 | Forum post: [post](https://osu.ppy.sh/community/forums/topics/617168) 26 | 27 | ## History 28 | Project development started: 19th of June, 2017. 29 | -------------------------------------------------------------------------------- /osuSkinChecker/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /osuSkinChecker/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore Gradle project-specific cache directory 2 | .gradle 3 | 4 | # Ignore Gradle build output directory 5 | build 6 | /bin/ 7 | -------------------------------------------------------------------------------- /osuSkinChecker/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | osuSkinChecker 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.buildship.core.gradleprojectbuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.buildship.core.gradleprojectnature 22 | 23 | 24 | -------------------------------------------------------------------------------- /osuSkinChecker/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | arguments= 2 | auto.sync=false 3 | build.scans.enabled=false 4 | connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER) 5 | connection.project.dir= 6 | eclipse.preferences.version=1 7 | gradle.user.home= 8 | java.home= 9 | jvm.arguments= 10 | offline.mode=false 11 | override.workspace.settings=false 12 | show.console.view=false 13 | show.executions.view=false 14 | -------------------------------------------------------------------------------- /osuSkinChecker/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /osuSkinChecker/.settings/org.eclipse.core.runtime.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | line.separator=\n 3 | -------------------------------------------------------------------------------- /osuSkinChecker/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | # 2 | #Mon Feb 12 18:53:41 CET 2024 3 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | eclipse.preferences.version=1 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.compliance=1.8 9 | -------------------------------------------------------------------------------- /osuSkinChecker/build.gradle: -------------------------------------------------------------------------------- 1 | plugins{ 2 | id 'eclipse' 3 | id 'java' 4 | id 'application' 5 | id 'maven-publish' 6 | id 'com.github.johnrengelman.shadow' version '7.1.2' 7 | id 'edu.sc.seis.launch4j' version '2.5.1' 8 | id 'com.github.spotbugs' version '5.0.14' 9 | } 10 | 11 | sourceSets{ 12 | main{ 13 | java.srcDirs = ['src'] 14 | resources.srcDirs = ['resources'] 15 | } 16 | } 17 | 18 | dependencies{ 19 | implementation 'dev.roanh.util:util:2.1' 20 | } 21 | 22 | repositories{ 23 | //Local cache 24 | if(project.hasProperty("nexusPublic")){ 25 | maven{ 26 | allowInsecureProtocol = true 27 | url "$nexusPublic" 28 | } 29 | } 30 | mavenCentral() 31 | } 32 | 33 | version = findProperty("refName") ?: 'SNAPSHOT' 34 | if(version.matches("v\\d+\\.\\d+")){ 35 | version = version.substring(1) 36 | } 37 | 38 | eclipse.classpath.downloadSources = true 39 | eclipse.classpath.downloadJavadoc = true 40 | compileJava.options.encoding = 'UTF-8' 41 | sourceCompatibility = 1.8 42 | javadoc.options.memberLevel = JavadocMemberLevel.PRIVATE 43 | group = 'dev.roanh.osuskinchecker' 44 | ext.artifact = 'osuskinchecker' 45 | shadowJar.archiveName = 'SkinChecker-v' + version + '.jar' 46 | application.mainClassName = 'dev.roanh.osuskinchecker.SkinChecker' 47 | 48 | spotbugs{ 49 | showProgress = true 50 | effort = 'max' 51 | reportLevel = 'low' 52 | excludeFilter = file("$rootDir/exclude.xml") 53 | } 54 | 55 | tasks.withType(com.github.spotbugs.snom.SpotBugsTask){ 56 | reports{ 57 | html{ 58 | required = true 59 | outputLocation = file("$buildDir/reports/spotbugs/main/spotbugs.html") 60 | stylesheet = 'fancy-hist.xsl' 61 | } 62 | } 63 | } 64 | 65 | publishing{ 66 | publications{ 67 | mavenJava(MavenPublication){ 68 | from components.java 69 | artifactId = project.artifact 70 | 71 | pom{ 72 | name = project.eclipse.project.name 73 | description = 'Simple program to check for missing files in an osu! skin.' 74 | url = 'https://github.com/RoanH/osuSkinChecker' 75 | licenses{ 76 | license{ 77 | name = 'GNU General Public License v3.0' 78 | url = 'https://www.gnu.org/licenses/gpl-3.0.txt' 79 | } 80 | } 81 | developers{ 82 | developer{ 83 | id = 'RoanH' 84 | name = 'Roan Hofland' 85 | email = 'roan@roanh.dev' 86 | } 87 | } 88 | scm{ 89 | connection = 'scm:git:git@github.com:RoanH/osuSkinChecker.git' 90 | developerConnection = 'scm:git:git@git.roanh.dev:roan/osuSkinChecker.git' 91 | url = 'https://github.com/RoanH/osuSkinChecker' 92 | } 93 | } 94 | } 95 | } 96 | } 97 | 98 | shadowJar{ 99 | into("META-INF/maven/$project.group/$project.artifact"){ 100 | from{ 101 | generatePomFileForMavenJavaPublication 102 | } 103 | rename ".*", "pom.xml" 104 | } 105 | } 106 | 107 | launch4j{ 108 | jarTask = project.tasks.shadowJar 109 | mainClassName = application.mainClassName 110 | icon = "${projectDir}/skinchecker.ico" 111 | jreMinVersion = project.sourceCompatibility 112 | bundledJrePath = "%JAVA_HOME%" 113 | outfile = 'SkinChecker-v' + project.version + '.exe' 114 | fileDescription = "SkinChecker" 115 | productName = rootProject.name 116 | version = project.version 117 | textVersion = project.version 118 | copyright = "Roan Hofland" 119 | } 120 | -------------------------------------------------------------------------------- /osuSkinChecker/dataFormat.txt: -------------------------------------------------------------------------------- 1 | Format for the .txt files that contain all the data about all the files. 2 | 3 | 1. A new sub section (tab in the GUI) is denoted by starting a line with ===> 4 | all subsequent entries will be placed under said section. 5 | 6 | 2. Everything after the arrow (===>) will be considered as the title for the subsection. 7 | 8 | 3. File entries can only be declared after a subsection has been declared. 9 | 10 | 4. The declaration of file entries takes the following format: 11 | [id] 12 | 13 | 5. Options are specified by a single letter. 14 | Valid options are: 15 | N - The file can consist of multiple files where subsequent files are denoted 16 | by appending -n to the end of the filename. 17 | M - Same as N but instead of appending -n only n is appended. 18 | S - Indicates that the SD/HD distinction does not apply to this 19 | file and that there will always be only one version of the file. 20 | L - Indicates that this file is a legacy file and no longer used for 21 | recent skins. Should be followed by the name of the highest skin.ini 22 | version it was supported in. 23 | C - Indicates that the location for this file including the filename can be 24 | set in the skin.ini and therefore might not exist in the root folder of the skin. 25 | If the file could not be found in the root folder of the skin the custom path set 26 | in the skin.ini file is checked. 27 | P - Special variant of C where before the other properties is the mania key count. 28 | O - Indicates that a file exists that modifies this files behaviour if present. Should be 29 | followed by a boolean that is true if this file needs the additional file to load. 30 | Should be followed by a boolean that is false if this file is ignored when the additional 31 | file is present. Should specify the additional file name after the boolean. Multiple conditions 32 | can be present, all of them should be satisfied for the file to be listed. 33 | - - A dash means that no special options apply to the file. 34 | 35 | 6. If the C or P option is used then the options section has to be followed directly by the 36 | name of the skin.ini property that specifies the custom location for 37 | the file and by the default name of the setting. Also the default name part should be 38 | omitted from the name for this item. 39 | 40 | 7. The extension section is a list of extensions that are allowed for the file. If more then one 41 | extension is possible they should be separated by a , (comma) and no spaces should be used. 42 | 43 | 8. The filename of the file is the name of the file without the extension, hd indicator and animation indicators. 44 | If this ends up being an empty string - should be used instead. 45 | 46 | 9. The extra layer of tabs for mania is created programmatically and thus not part of this specification. -------------------------------------------------------------------------------- /osuSkinChecker/exclude.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /osuSkinChecker/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoanH/osuSkinChecker/85beb958681ba46fb93edc1e7498b656c640aab7/osuSkinChecker/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /osuSkinChecker/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /osuSkinChecker/gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoanH/osuSkinChecker/85beb958681ba46fb93edc1e7498b656c640aab7/osuSkinChecker/gradlew -------------------------------------------------------------------------------- /osuSkinChecker/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 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /osuSkinChecker/resources/catch.txt: -------------------------------------------------------------------------------- 1 | ===> Catcher & Playfield 2 | N png comboburst-fruits 3 | N png fruit-catcher-idle 4 | N png fruit-catcher-kiai 5 | N png fruit-catcher-fail 6 | N L 2.2 png fruit-ryuuta 7 | - png lighting 8 | 9 | ===> Fruits 10 | - png fruit-apple 11 | - png fruit-apple-overlay 12 | - png fruit-grapes 13 | - png fruit-grapes-overlay 14 | - png fruit-orange 15 | - png fruit-orange-overlay 16 | - png fruit-pear 17 | - png fruit-pear-overlay 18 | - png fruit-bananas 19 | - png fruit-bananas-overlay 20 | - png fruit-drop 21 | - png fruit-drop-overlay 22 | -------------------------------------------------------------------------------- /osuSkinChecker/resources/gameplay-sounds.txt: -------------------------------------------------------------------------------- 1 | ===> Pause Screen 2 | - wav,mp3,ogg pause-hover 3 | - wav,mp3,ogg pause-continue-hover 4 | - wav,mp3,ogg pause-retry-hover 5 | - wav,mp3,ogg pause-back-hover 6 | - wav,mp3,ogg pause-continue-click 7 | - wav,mp3,ogg pause-retry-click 8 | - wav,mp3,ogg pause-back-click 9 | - wav,mp3,ogg pause-loop 10 | 11 | ===> Countdown 12 | - wav,mp3,ogg readys 13 | - wav,mp3,ogg count3s 14 | - wav,mp3,ogg count2s 15 | - wav,mp3,ogg count1s 16 | - wav,mp3,ogg gos 17 | - wav,mp3,ogg count 18 | 19 | ===> Gameplay 20 | - wav,mp3,ogg metronomelow 21 | N wav,mp3,ogg comboburst 22 | - wav,mp3,ogg combobreak 23 | - wav,mp3,ogg sectionpass 24 | - wav,mp3,ogg sectionfail 25 | - wav,mp3,ogg failsound 26 | - wav,mp3,ogg applause 27 | 28 | ===> Nightcore Samples 29 | - wav,mp3,ogg nightcore-kick 30 | - wav,mp3,ogg nightcore-clap 31 | - wav,mp3,ogg nightcore-hat 32 | - wav,mp3,ogg nightcore-finish 33 | 34 | ===> Normal Sample Set 35 | - wav,mp3,ogg normal-hitnormal 36 | - wav,mp3,ogg normal-hitclap 37 | - wav,mp3,ogg normal-hitfinish 38 | - wav,mp3,ogg normal-hitwhistle 39 | - wav,mp3,ogg normal-slidertick 40 | - wav,mp3,ogg normal-sliderslide 41 | - wav,mp3,ogg normal-sliderwhistle 42 | 43 | ===> Soft Sample Set 44 | - wav,mp3,ogg soft-hitnormal 45 | - wav,mp3,ogg soft-hitclap 46 | - wav,mp3,ogg soft-hitfinish 47 | - wav,mp3,ogg soft-hitwhistle 48 | - wav,mp3,ogg soft-slidertick 49 | - wav,mp3,ogg soft-sliderslide 50 | - wav,mp3,ogg soft-sliderwhistle 51 | 52 | ===> Drum Sample Set 53 | - wav,mp3,ogg drum-hitnormal 54 | - wav,mp3,ogg drum-hitclap 55 | - wav,mp3,ogg drum-hitfinish 56 | - wav,mp3,ogg drum-hitwhistle 57 | - wav,mp3,ogg drum-slidertick 58 | - wav,mp3,ogg drum-sliderslide 59 | - wav,mp3,ogg drum-sliderwhistle 60 | -------------------------------------------------------------------------------- /osuSkinChecker/resources/gameplay.txt: -------------------------------------------------------------------------------- 1 | ===> Scorebar 2 | - png scorebar-bg 3 | N png scorebar-colour 4 | O false scorebar-marker png scorebar-ki 5 | O false scorebar-marker png scorebar-kidanger 6 | O false scorebar-marker png scorebar-kidanger2 7 | - png scorebar-marker 8 | 9 | ===> Countdown 10 | - png ready 11 | - png count3 12 | - png count2 13 | - png count1 14 | - png go 15 | 16 | ===> Scoreboard Entry Numbers 17 | - png scoreentry-0 18 | - png scoreentry-1 19 | - png scoreentry-2 20 | - png scoreentry-3 21 | - png scoreentry-4 22 | - png scoreentry-5 23 | - png scoreentry-6 24 | - png scoreentry-7 25 | - png scoreentry-8 26 | - png scoreentry-9 27 | - png scoreentry-comma 28 | - png scoreentry-dot 29 | - png scoreentry-percent 30 | - png scoreentry-x 31 | 32 | ===> Playfield 33 | N png comboburst 34 | N png play-skip 35 | - png star2 36 | - png menu-button-background 37 | - png play-unranked 38 | O false arrow-pause O false arrow-warning png play-warningarrow 39 | - png arrow-pause 40 | - png arrow-warning 41 | - png section-pass 42 | - png section-fail 43 | - png multi-skipped 44 | - png masking-border 45 | - png hitcircleselect 46 | 47 | ===> Key Counter 48 | - png inputoverlay-background 49 | - png inputoverlay-key -------------------------------------------------------------------------------- /osuSkinChecker/resources/mania.txt: -------------------------------------------------------------------------------- 1 | ===> 1K - Stage 2 | N png comboburst-mania 3 | P 1 StageLeft mania-stage-left png - 4 | P 1 StageRight mania-stage-right png - 5 | N P 1 StageBottom mania-stage-bottom png - 6 | P 1 StageHint mania-stage-hint png - 7 | N P 1 StageLight mania-stage-light png - 8 | P 1 WarningArrow mania-warningarrow png - 9 | N P 1 LightingN lightingN png - 10 | N P 1 LightingL lightingL png - 11 | 12 | ===> 1K - Keys 13 | P 1 KeyImage0 mania-key1 png - 14 | P 1 KeyImage0D mania-key1D png - 15 | 16 | ===> 1K - Notes 17 | N P 1 NoteImage0 mania-note1 png - 18 | N P 1 NoteImage0H mania-note1H png - 19 | N P 1 NoteImage0T mania-note1T png - 20 | N P 1 NoteImage0L mania-note1L png - 21 | 22 | ===> 1K - Hitbursts 23 | N P 1 Hit0 mania-hit0 png - 24 | N P 1 Hit50 mania-hit50 png - 25 | N P 1 Hit100 mania-hit100 png - 26 | N P 1 Hit200 mania-hit200 png - 27 | N P 1 Hit300 mania-hit300 png - 28 | N P 1 Hit300g mania-hit300g png - 29 | 30 | ===> 2K - Stage 31 | N png comboburst-mania 32 | P 2 StageLeft mania-stage-left png - 33 | P 2 StageRight mania-stage-right png - 34 | N P 2 StageBottom mania-stage-bottom png - 35 | P 2 StageHint mania-stage-hint png - 36 | N P 2 StageLight mania-stage-light png - 37 | P 2 WarningArrow mania-warningarrow png - 38 | N P 2 LightingN lightingN png - 39 | N P 2 LightingL lightingL png - 40 | 41 | ===> 2K - Keys 42 | P 2 KeyImage0 mania-key1 png - 43 | P 2 KeyImage1 mania-key1 png - 44 | P 2 KeyImage0D mania-key1D png - 45 | P 2 KeyImage1D mania-key1D png - 46 | 47 | ===> 2K - Notes 48 | N P 2 NoteImage0 mania-note1 png - 49 | N P 2 NoteImage1 mania-note1 png - 50 | N P 2 NoteImage0H mania-note1H png - 51 | N P 2 NoteImage1H mania-note1H png - 52 | N P 2 NoteImage0T mania-note1T png - 53 | N P 2 NoteImage1T mania-note1T png - 54 | N P 2 NoteImage0L mania-note1L png - 55 | N P 2 NoteImage1L mania-note1L png - 56 | 57 | ===> 2K - Hitbursts 58 | N P 2 Hit0 mania-hit0 png - 59 | N P 2 Hit50 mania-hit50 png - 60 | N P 2 Hit100 mania-hit100 png - 61 | N P 2 Hit200 mania-hit200 png - 62 | N P 2 Hit300 mania-hit300 png - 63 | N P 2 Hit300g mania-hit300g png - 64 | 65 | ===> 3K - Stage 66 | N png comboburst-mania 67 | P 3 StageLeft mania-stage-left png - 68 | P 3 StageRight mania-stage-right png - 69 | N P 3 StageBottom mania-stage-bottom png - 70 | P 3 StageHint mania-stage-hint png - 71 | N P 3 StageLight mania-stage-light png - 72 | P 3 WarningArrow mania-warningarrow png - 73 | N P 3 LightingN lightingN png - 74 | N P 3 LightingL lightingL png - 75 | 76 | ===> 3K - Keys 77 | P 3 KeyImage0 mania-key1 png - 78 | P 3 KeyImage1 mania-keyS png - 79 | P 3 KeyImage2 mania-key1 png - 80 | P 3 KeyImage0D mania-key1D png - 81 | P 3 KeyImage1D mania-keySD png - 82 | P 3 KeyImage2D mania-key1D png - 83 | 84 | ===> 3K - Notes 85 | N P 3 NoteImage0 mania-note1 png - 86 | N P 3 NoteImage1 mania-noteS png - 87 | N P 3 NoteImage2 mania-note1 png - 88 | N P 3 NoteImage0H mania-note1H png - 89 | N P 3 NoteImage1H mania-noteSH png - 90 | N P 3 NoteImage2H mania-note1H png - 91 | N P 3 NoteImage0T mania-note1T png - 92 | N P 3 NoteImage1T mania-noteST png - 93 | N P 3 NoteImage2T mania-note1T png - 94 | N P 3 NoteImage0L mania-note1L png - 95 | N P 3 NoteImage1L mania-noteSL png - 96 | N P 3 NoteImage2L mania-note1L png - 97 | 98 | ===> 3K - Hitbursts 99 | N P 3 Hit0 mania-hit0 png - 100 | N P 3 Hit50 mania-hit50 png - 101 | N P 3 Hit100 mania-hit100 png - 102 | N P 3 Hit200 mania-hit200 png - 103 | N P 3 Hit300 mania-hit300 png - 104 | N P 3 Hit300g mania-hit300g png - 105 | 106 | ===> 4K - Stage 107 | N png comboburst-mania 108 | P 4 StageLeft mania-stage-left png - 109 | P 4 StageRight mania-stage-right png - 110 | N P 4 StageBottom mania-stage-bottom png - 111 | P 4 StageHint mania-stage-hint png - 112 | N P 4 StageLight mania-stage-light png - 113 | P 4 WarningArrow mania-warningarrow png - 114 | N P 4 LightingN lightingN png - 115 | N P 4 LightingL lightingL png - 116 | 117 | ===> 4K - Keys 118 | P 4 KeyImage0 mania-key1 png - 119 | P 4 KeyImage1 mania-key2 png - 120 | P 4 KeyImage2 mania-key2 png - 121 | P 4 KeyImage3 mania-key1 png - 122 | P 4 KeyImage0D mania-key1D png - 123 | P 4 KeyImage1D mania-key2D png - 124 | P 4 KeyImage2D mania-key2D png - 125 | P 4 KeyImage3D mania-key1D png - 126 | 127 | ===> 4K - Notes 128 | N P 4 NoteImage0 mania-note1 png - 129 | N P 4 NoteImage1 mania-note2 png - 130 | N P 4 NoteImage2 mania-note2 png - 131 | N P 4 NoteImage3 mania-note1 png - 132 | N P 4 NoteImage0H mania-note1H png - 133 | N P 4 NoteImage1H mania-note2H png - 134 | N P 4 NoteImage2H mania-note2H png - 135 | N P 4 NoteImage3H mania-note1H png - 136 | N P 4 NoteImage0T mania-note1T png - 137 | N P 4 NoteImage1T mania-note2T png - 138 | N P 4 NoteImage2T mania-note2T png - 139 | N P 4 NoteImage3T mania-note1T png - 140 | N P 4 NoteImage0L mania-note1L png - 141 | N P 4 NoteImage1L mania-note2L png - 142 | N P 4 NoteImage2L mania-note2L png - 143 | N P 4 NoteImage3L mania-note1L png - 144 | 145 | ===> 4K - Hitbursts 146 | N P 4 Hit0 mania-hit0 png - 147 | N P 4 Hit50 mania-hit50 png - 148 | N P 4 Hit100 mania-hit100 png - 149 | N P 4 Hit200 mania-hit200 png - 150 | N P 4 Hit300 mania-hit300 png - 151 | N P 4 Hit300g mania-hit300g png - 152 | 153 | ===> 5K - Stage 154 | N png comboburst-mania 155 | P 5 StageLeft mania-stage-left png - 156 | P 5 StageRight mania-stage-right png - 157 | N P 5 StageBottom mania-stage-bottom png - 158 | P 5 StageHint mania-stage-hint png - 159 | N P 5 StageLight mania-stage-light png - 160 | P 5 WarningArrow mania-warningarrow png - 161 | N P 5 LightingN lightingN png - 162 | N P 5 LightingL lightingL png - 163 | 164 | ===> 5K - Keys 165 | P 5 KeyImage0 mania-key1 png - 166 | P 5 KeyImage1 mania-key2 png - 167 | P 5 KeyImage2 mania-keyS png - 168 | P 5 KeyImage3 mania-key2 png - 169 | P 5 KeyImage4 mania-key1 png - 170 | P 5 KeyImage0D mania-key1D png - 171 | P 5 KeyImage1D mania-key2D png - 172 | P 5 KeyImage2D mania-keySD png - 173 | P 5 KeyImage3D mania-key2D png - 174 | P 5 KeyImage4D mania-key1D png - 175 | 176 | ===> 5K - Notes 177 | N P 5 NoteImage0 mania-note1 png - 178 | N P 5 NoteImage1 mania-note2 png - 179 | N P 5 NoteImage2 mania-noteS png - 180 | N P 5 NoteImage3 mania-note2 png - 181 | N P 5 NoteImage4 mania-note1 png - 182 | N P 5 NoteImage0H mania-note1H png - 183 | N P 5 NoteImage1H mania-note2H png - 184 | N P 5 NoteImage2H mania-noteSH png - 185 | N P 5 NoteImage3H mania-note2H png - 186 | N P 5 NoteImage4H mania-note1H png - 187 | N P 5 NoteImage0T mania-note1T png - 188 | N P 5 NoteImage1T mania-note2T png - 189 | N P 5 NoteImage2T mania-noteST png - 190 | N P 5 NoteImage3T mania-note2T png - 191 | N P 5 NoteImage4T mania-note1T png - 192 | N P 5 NoteImage0L mania-note1L png - 193 | N P 5 NoteImage1L mania-note2L png - 194 | N P 5 NoteImage2L mania-noteSL png - 195 | N P 5 NoteImage3L mania-note2L png - 196 | N P 5 NoteImage4L mania-note1L png - 197 | 198 | ===> 5K - Hitbursts 199 | N P 5 Hit0 mania-hit0 png - 200 | N P 5 Hit50 mania-hit50 png - 201 | N P 5 Hit100 mania-hit100 png - 202 | N P 5 Hit200 mania-hit200 png - 203 | N P 5 Hit300 mania-hit300 png - 204 | N P 5 Hit300g mania-hit300g png - 205 | 206 | ===> 6K - Stage 207 | N png comboburst-mania 208 | P 6 StageLeft mania-stage-left png - 209 | P 6 StageRight mania-stage-right png - 210 | N P 6 StageBottom mania-stage-bottom png - 211 | P 6 StageHint mania-stage-hint png - 212 | N P 6 StageLight mania-stage-light png - 213 | P 6 WarningArrow mania-warningarrow png - 214 | N P 6 LightingN lightingN png - 215 | N P 6 LightingL lightingL png - 216 | 217 | ===> 6K - Keys 218 | P 6 KeyImage0 mania-key1 png - 219 | P 6 KeyImage1 mania-key2 png - 220 | P 6 KeyImage2 mania-key1 png - 221 | P 6 KeyImage3 mania-key1 png - 222 | P 6 KeyImage4 mania-key2 png - 223 | P 6 KeyImage5 mania-key1 png - 224 | P 6 KeyImage0D mania-key1D png - 225 | P 6 KeyImage1D mania-key2D png - 226 | P 6 KeyImage2D mania-key1D png - 227 | P 6 KeyImage3D mania-key1D png - 228 | P 6 KeyImage4D mania-key2D png - 229 | P 6 KeyImage5D mania-key1D png - 230 | 231 | ===> 6K - Notes 232 | N P 6 NoteImage0 mania-note1 png - 233 | N P 6 NoteImage1 mania-note2 png - 234 | N P 6 NoteImage2 mania-note1 png - 235 | N P 6 NoteImage3 mania-note1 png - 236 | N P 6 NoteImage4 mania-note2 png - 237 | N P 6 NoteImage5 mania-note1 png - 238 | N P 6 NoteImage0H mania-note1H png - 239 | N P 6 NoteImage1H mania-note2H png - 240 | N P 6 NoteImage2H mania-note1H png - 241 | N P 6 NoteImage3H mania-note1H png - 242 | N P 6 NoteImage4H mania-note2H png - 243 | N P 6 NoteImage5H mania-note1H png - 244 | N P 6 NoteImage0T mania-note1T png - 245 | N P 6 NoteImage1T mania-note2T png - 246 | N P 6 NoteImage2T mania-note1T png - 247 | N P 6 NoteImage3T mania-note1T png - 248 | N P 6 NoteImage4T mania-note2T png - 249 | N P 6 NoteImage5T mania-note1T png - 250 | N P 6 NoteImage0L mania-note1L png - 251 | N P 6 NoteImage1L mania-note2L png - 252 | N P 6 NoteImage2L mania-note1L png - 253 | N P 6 NoteImage3L mania-note1L png - 254 | N P 6 NoteImage4L mania-note2L png - 255 | N P 6 NoteImage5L mania-note1L png - 256 | 257 | ===> 6K - Hitbursts 258 | N P 6 Hit0 mania-hit0 png - 259 | N P 6 Hit50 mania-hit50 png - 260 | N P 6 Hit100 mania-hit100 png - 261 | N P 6 Hit200 mania-hit200 png - 262 | N P 6 Hit300 mania-hit300 png - 263 | N P 6 Hit300g mania-hit300g png - 264 | 265 | ===> 7K - Stage 266 | N png comboburst-mania 267 | P 7 StageLeft mania-stage-left png - 268 | P 7 StageRight mania-stage-right png - 269 | N P 7 StageBottom mania-stage-bottom png - 270 | P 7 StageHint mania-stage-hint png - 271 | N P 7 StageLight mania-stage-light png - 272 | P 7 WarningArrow mania-warningarrow png - 273 | N P 7 LightingN lightingN png - 274 | N P 7 LightingL lightingL png - 275 | 276 | ===> 7K - Keys 277 | P 7 KeyImage0 mania-key1 png - 278 | P 7 KeyImage1 mania-key2 png - 279 | P 7 KeyImage2 mania-key1 png - 280 | P 7 KeyImage3 mania-keyS png - 281 | P 7 KeyImage4 mania-key1 png - 282 | P 7 KeyImage5 mania-key2 png - 283 | P 7 KeyImage6 mania-key1 png - 284 | P 7 KeyImage0D mania-key1D png - 285 | P 7 KeyImage1D mania-key2D png - 286 | P 7 KeyImage2D mania-key1D png - 287 | P 7 KeyImage3D mania-keySD png - 288 | P 7 KeyImage4D mania-key1D png - 289 | P 7 KeyImage5D mania-key2D png - 290 | P 7 KeyImage6D mania-key1D png - 291 | 292 | ===> 7K - Notes 293 | N P 7 NoteImage0 mania-note1 png - 294 | N P 7 NoteImage1 mania-note2 png - 295 | N P 7 NoteImage2 mania-note1 png - 296 | N P 7 NoteImage3 mania-noteS png - 297 | N P 7 NoteImage4 mania-note1 png - 298 | N P 7 NoteImage5 mania-note2 png - 299 | N P 7 NoteImage6 mania-note1 png - 300 | N P 7 NoteImage0H mania-note1H png - 301 | N P 7 NoteImage1H mania-note2H png - 302 | N P 7 NoteImage2H mania-note1H png - 303 | N P 7 NoteImage3H mania-noteSH png - 304 | N P 7 NoteImage4H mania-note1H png - 305 | N P 7 NoteImage5H mania-note2H png - 306 | N P 7 NoteImage6H mania-note1H png - 307 | N P 7 NoteImage0T mania-note1T png - 308 | N P 7 NoteImage1T mania-note2T png - 309 | N P 7 NoteImage2T mania-note1T png - 310 | N P 7 NoteImage3T mania-noteST png - 311 | N P 7 NoteImage4T mania-note1T png - 312 | N P 7 NoteImage5T mania-note2T png - 313 | N P 7 NoteImage6T mania-note1T png - 314 | N P 7 NoteImage0L mania-note1L png - 315 | N P 7 NoteImage1L mania-note2L png - 316 | N P 7 NoteImage2L mania-note1L png - 317 | N P 7 NoteImage3L mania-noteSL png - 318 | N P 7 NoteImage4L mania-note1L png - 319 | N P 7 NoteImage5L mania-note2L png - 320 | N P 7 NoteImage6L mania-note1L png - 321 | 322 | ===> 7K - Hitbursts 323 | N P 7 Hit0 mania-hit0 png - 324 | N P 7 Hit50 mania-hit50 png - 325 | N P 7 Hit100 mania-hit100 png - 326 | N P 7 Hit200 mania-hit200 png - 327 | N P 7 Hit300 mania-hit300 png - 328 | N P 7 Hit300g mania-hit300g png - 329 | 330 | ===> 8K - Stage 331 | N png comboburst-mania 332 | P 8 StageLeft mania-stage-left png - 333 | P 8 StageRight mania-stage-right png - 334 | N P 8 StageBottom mania-stage-bottom png - 335 | P 8 StageHint mania-stage-hint png - 336 | N P 8 StageLight mania-stage-light png - 337 | P 8 WarningArrow mania-warningarrow png - 338 | N P 8 LightingN lightingN png - 339 | N P 8 LightingL lightingL png - 340 | 341 | ===> 8K - Keys 342 | P 8 KeyImage0 mania-key1 png - 343 | P 8 KeyImage1 mania-key2 png - 344 | P 8 KeyImage2 mania-key1 png - 345 | P 8 KeyImage3 mania-key2 png - 346 | P 8 KeyImage4 mania-key2 png - 347 | P 8 KeyImage5 mania-key1 png - 348 | P 8 KeyImage6 mania-key2 png - 349 | P 8 KeyImage7 mania-key1 png - 350 | P 8 KeyImage0D mania-key1D png - 351 | P 8 KeyImage1D mania-key2D png - 352 | P 8 KeyImage2D mania-key1D png - 353 | P 8 KeyImage3D mania-key2D png - 354 | P 8 KeyImage4D mania-key2D png - 355 | P 8 KeyImage5D mania-key1D png - 356 | P 8 KeyImage6D mania-key2D png - 357 | P 8 KeyImage7D mania-key1D png - 358 | 359 | ===> 8K - Notes 360 | N P 8 NoteImage0 mania-note1 png - 361 | N P 8 NoteImage1 mania-note2 png - 362 | N P 8 NoteImage2 mania-note1 png - 363 | N P 8 NoteImage3 mania-note2 png - 364 | N P 8 NoteImage4 mania-note2 png - 365 | N P 8 NoteImage5 mania-note1 png - 366 | N P 8 NoteImage6 mania-note2 png - 367 | N P 8 NoteImage7 mania-note1 png - 368 | N P 8 NoteImage0H mania-note1H png - 369 | N P 8 NoteImage1H mania-note2H png - 370 | N P 8 NoteImage2H mania-note1H png - 371 | N P 8 NoteImage3H mania-note2H png - 372 | N P 8 NoteImage4H mania-note2H png - 373 | N P 8 NoteImage5H mania-note1H png - 374 | N P 8 NoteImage6H mania-note2H png - 375 | N P 8 NoteImage7H mania-note1H png - 376 | N P 8 NoteImage0T mania-note1T png - 377 | N P 8 NoteImage1T mania-note2T png - 378 | N P 8 NoteImage2T mania-note1T png - 379 | N P 8 NoteImage3T mania-note2T png - 380 | N P 8 NoteImage4T mania-note2T png - 381 | N P 8 NoteImage5T mania-note1T png - 382 | N P 8 NoteImage6T mania-note2T png - 383 | N P 8 NoteImage7T mania-note1T png - 384 | N P 8 NoteImage0L mania-note1L png - 385 | N P 8 NoteImage1L mania-note2L png - 386 | N P 8 NoteImage2L mania-note1L png - 387 | N P 8 NoteImage3L mania-note2L png - 388 | N P 8 NoteImage4L mania-note2L png - 389 | N P 8 NoteImage5L mania-note1L png - 390 | N P 8 NoteImage6L mania-note2L png - 391 | N P 8 NoteImage7L mania-note1L png - 392 | 393 | ===> 8K - Hitbursts 394 | N P 8 Hit0 mania-hit0 png - 395 | N P 8 Hit50 mania-hit50 png - 396 | N P 8 Hit100 mania-hit100 png - 397 | N P 8 Hit200 mania-hit200 png - 398 | N P 8 Hit300 mania-hit300 png - 399 | N P 8 Hit300g mania-hit300g png - 400 | 401 | ===> 9K - Stage 402 | N png comboburst-mania 403 | P 9 StageLeft mania-stage-left png - 404 | P 9 StageRight mania-stage-right png - 405 | N P 9 StageBottom mania-stage-bottom png - 406 | P 9 StageHint mania-stage-hint png - 407 | N P 9 StageLight mania-stage-light png - 408 | P 9 WarningArrow mania-warningarrow png - 409 | N P 9 LightingN lightingN png - 410 | N P 9 LightingL lightingL png - 411 | 412 | ===> 9K - Keys 413 | P 9 KeyImage0 mania-key1 png - 414 | P 9 KeyImage1 mania-key2 png - 415 | P 9 KeyImage2 mania-key1 png - 416 | P 9 KeyImage3 mania-key2 png - 417 | P 9 KeyImage4 mania-keyS png - 418 | P 9 KeyImage5 mania-key2 png - 419 | P 9 KeyImage6 mania-key1 png - 420 | P 9 KeyImage7 mania-key2 png - 421 | P 9 KeyImage8 mania-key1 png - 422 | P 9 KeyImage0D mania-key1D png - 423 | P 9 KeyImage1D mania-key2D png - 424 | P 9 KeyImage2D mania-key1D png - 425 | P 9 KeyImage3D mania-key2D png - 426 | P 9 KeyImage4D mania-keySD png - 427 | P 9 KeyImage5D mania-key2D png - 428 | P 9 KeyImage6D mania-key1D png - 429 | P 9 KeyImage7D mania-key2D png - 430 | P 9 KeyImage8D mania-key1D png - 431 | 432 | ===> 9K - Notes 433 | N P 9 NoteImage0 mania-note1 png - 434 | N P 9 NoteImage1 mania-note2 png - 435 | N P 9 NoteImage2 mania-note1 png - 436 | N P 9 NoteImage3 mania-note2 png - 437 | N P 9 NoteImage4 mania-noteS png - 438 | N P 9 NoteImage5 mania-note2 png - 439 | N P 9 NoteImage6 mania-note1 png - 440 | N P 9 NoteImage7 mania-note2 png - 441 | N P 9 NoteImage8 mania-note1 png - 442 | N P 9 NoteImage0H mania-note1H png - 443 | N P 9 NoteImage1H mania-note2H png - 444 | N P 9 NoteImage2H mania-note1H png - 445 | N P 9 NoteImage3H mania-note2H png - 446 | N P 9 NoteImage4H mania-noteSH png - 447 | N P 9 NoteImage5H mania-note2H png - 448 | N P 9 NoteImage6H mania-note1H png - 449 | N P 9 NoteImage7H mania-note2H png - 450 | N P 9 NoteImage8H mania-note1H png - 451 | N P 9 NoteImage0T mania-note1T png - 452 | N P 9 NoteImage1T mania-note2T png - 453 | N P 9 NoteImage2T mania-note1T png - 454 | N P 9 NoteImage3T mania-note2T png - 455 | N P 9 NoteImage4T mania-noteST png - 456 | N P 9 NoteImage5T mania-note2T png - 457 | N P 9 NoteImage6T mania-note1T png - 458 | N P 9 NoteImage7T mania-note2T png - 459 | N P 9 NoteImage8T mania-note1T png - 460 | N P 9 NoteImage0L mania-note1L png - 461 | N P 9 NoteImage1L mania-note2L png - 462 | N P 9 NoteImage2L mania-note1L png - 463 | N P 9 NoteImage3L mania-note2L png - 464 | N P 9 NoteImage4L mania-noteSL png - 465 | N P 9 NoteImage5L mania-note2L png - 466 | N P 9 NoteImage6L mania-note1L png - 467 | N P 9 NoteImage7L mania-note2L png - 468 | N P 9 NoteImage8L mania-note1L png - 469 | 470 | ===> 9K - Hitbursts 471 | N P 9 Hit0 mania-hit0 png - 472 | N P 9 Hit50 mania-hit50 png - 473 | N P 9 Hit100 mania-hit100 png - 474 | N P 9 Hit200 mania-hit200 png - 475 | N P 9 Hit300 mania-hit300 png - 476 | N P 9 Hit300g mania-hit300g png - 477 | 478 | ===> 10K - Stage 479 | N png comboburst-mania 480 | P 10 StageLeft mania-stage-left png - 481 | P 10 StageRight mania-stage-right png - 482 | N P 10 StageBottom mania-stage-bottom png - 483 | P 10 StageHint mania-stage-hint png - 484 | N P 10 StageLight mania-stage-light png - 485 | P 10 WarningArrow mania-warningarrow png - 486 | N P 10 LightingN lightingN png - 487 | N P 10 LightingL lightingL png - 488 | 489 | ===> 10K - Keys 490 | P 10 KeyImage0 mania-key1 png - 491 | P 10 KeyImage1 mania-key2 png - 492 | P 10 KeyImage2 mania-key1 png - 493 | P 10 KeyImage3 mania-key2 png - 494 | P 10 KeyImage4 mania-key1 png - 495 | P 10 KeyImage5 mania-key1 png - 496 | P 10 KeyImage6 mania-key2 png - 497 | P 10 KeyImage7 mania-key1 png - 498 | P 10 KeyImage8 mania-key2 png - 499 | P 10 KeyImage9 mania-key1 png - 500 | P 10 KeyImage0D mania-key1D png - 501 | P 10 KeyImage1D mania-key2D png - 502 | P 10 KeyImage2D mania-key1D png - 503 | P 10 KeyImage3D mania-key2D png - 504 | P 10 KeyImage4D mania-key1D png - 505 | P 10 KeyImage5D mania-key1D png - 506 | P 10 KeyImage6D mania-key2D png - 507 | P 10 KeyImage7D mania-key1D png - 508 | P 10 KeyImage8D mania-key2D png - 509 | P 10 KeyImage9D mania-key1D png - 510 | 511 | ===> 10K - Notes 512 | N P 10 NoteImage0 mania-note1 png - 513 | N P 10 NoteImage1 mania-note2 png - 514 | N P 10 NoteImage2 mania-note1 png - 515 | N P 10 NoteImage3 mania-note2 png - 516 | N P 10 NoteImage4 mania-note1 png - 517 | N P 10 NoteImage5 mania-note1 png - 518 | N P 10 NoteImage6 mania-note2 png - 519 | N P 10 NoteImage7 mania-note1 png - 520 | N P 10 NoteImage8 mania-note2 png - 521 | N P 10 NoteImage9 mania-note1 png - 522 | N P 10 NoteImage0H mania-note1H png - 523 | N P 10 NoteImage1H mania-note2H png - 524 | N P 10 NoteImage2H mania-note1H png - 525 | N P 10 NoteImage3H mania-note2H png - 526 | N P 10 NoteImage4H mania-note1H png - 527 | N P 10 NoteImage5H mania-note1H png - 528 | N P 10 NoteImage6H mania-note2H png - 529 | N P 10 NoteImage7H mania-note1H png - 530 | N P 10 NoteImage8H mania-note2H png - 531 | N P 10 NoteImage9H mania-note1H png - 532 | N P 10 NoteImage0T mania-note1T png - 533 | N P 10 NoteImage1T mania-note2T png - 534 | N P 10 NoteImage2T mania-note1T png - 535 | N P 10 NoteImage3T mania-note2T png - 536 | N P 10 NoteImage4T mania-note1T png - 537 | N P 10 NoteImage5T mania-note1T png - 538 | N P 10 NoteImage6T mania-note2T png - 539 | N P 10 NoteImage7T mania-note1T png - 540 | N P 10 NoteImage8T mania-note2T png - 541 | N P 10 NoteImage9T mania-note1T png - 542 | N P 10 NoteImage0L mania-note1L png - 543 | N P 10 NoteImage1L mania-note2L png - 544 | N P 10 NoteImage2L mania-note1L png - 545 | N P 10 NoteImage3L mania-note2L png - 546 | N P 10 NoteImage4L mania-note1L png - 547 | N P 10 NoteImage5L mania-note1L png - 548 | N P 10 NoteImage6L mania-note2L png - 549 | N P 10 NoteImage7L mania-note1L png - 550 | N P 10 NoteImage8L mania-note2L png - 551 | N P 10 NoteImage9L mania-note1L png - 552 | 553 | ===> 10K - Hitbursts 554 | N P 10 Hit0 mania-hit0 png - 555 | N P 10 Hit50 mania-hit50 png - 556 | N P 10 Hit100 mania-hit100 png - 557 | N P 10 Hit200 mania-hit200 png - 558 | N P 10 Hit300 mania-hit300 png - 559 | N P 10 Hit300g mania-hit300g png - 560 | 561 | ===> 12K - Stage 562 | N png comboburst-mania 563 | P 12 StageLeft mania-stage-left png - 564 | P 12 StageRight mania-stage-right png - 565 | N P 12 StageBottom mania-stage-bottom png - 566 | P 12 StageHint mania-stage-hint png - 567 | N P 12 StageLight mania-stage-light png - 568 | P 12 WarningArrow mania-warningarrow png - 569 | N P 12 LightingN lightingN png - 570 | N P 12 LightingL lightingL png - 571 | 572 | ===> 12K - Keys 573 | P 12 KeyImage0 mania-key1 png - 574 | P 12 KeyImage1 mania-key2 png - 575 | P 12 KeyImage2 mania-key1 png - 576 | P 12 KeyImage3 mania-key2 png - 577 | P 12 KeyImage4 mania-key1 png - 578 | P 12 KeyImage5 mania-key2 png - 579 | P 12 KeyImage6 mania-key2 png - 580 | P 12 KeyImage7 mania-key1 png - 581 | P 12 KeyImage8 mania-key2 png - 582 | P 12 KeyImage9 mania-key1 png - 583 | P 12 KeyImage10 mania-key2 png - 584 | P 12 KeyImage11 mania-key1 png - 585 | P 12 KeyImage0D mania-key1D png - 586 | P 12 KeyImage1D mania-key2D png - 587 | P 12 KeyImage2D mania-key1D png - 588 | P 12 KeyImage3D mania-key2D png - 589 | P 12 KeyImage4D mania-key1D png - 590 | P 12 KeyImage5D mania-key2D png - 591 | P 12 KeyImage6D mania-key2D png - 592 | P 12 KeyImage7D mania-key1D png - 593 | P 12 KeyImage8D mania-key2D png - 594 | P 12 KeyImage9D mania-key1D png - 595 | P 12 KeyImage10D mania-key2D png - 596 | P 12 KeyImage11D mania-key1D png - 597 | 598 | ===> 12K - Notes 599 | N P 12 NoteImage0 mania-note1 png - 600 | N P 12 NoteImage1 mania-note2 png - 601 | N P 12 NoteImage2 mania-note1 png - 602 | N P 12 NoteImage3 mania-note2 png - 603 | N P 12 NoteImage4 mania-note1 png - 604 | N P 12 NoteImage5 mania-note2 png - 605 | N P 12 NoteImage6 mania-note2 png - 606 | N P 12 NoteImage7 mania-note1 png - 607 | N P 12 NoteImage8 mania-note2 png - 608 | N P 12 NoteImage9 mania-note1 png - 609 | N P 12 NoteImage10 mania-note2 png - 610 | N P 12 NoteImage11 mania-note1 png - 611 | N P 12 NoteImage0H mania-note1H png - 612 | N P 12 NoteImage1H mania-note2H png - 613 | N P 12 NoteImage2H mania-note1H png - 614 | N P 12 NoteImage3H mania-note2H png - 615 | N P 12 NoteImage4H mania-note1H png - 616 | N P 12 NoteImage5H mania-note2H png - 617 | N P 12 NoteImage6H mania-note2H png - 618 | N P 12 NoteImage7H mania-note1H png - 619 | N P 12 NoteImage8H mania-note2H png - 620 | N P 12 NoteImage9H mania-note1H png - 621 | N P 12 NoteImage10H mania-note2H png - 622 | N P 12 NoteImage11H mania-note1H png - 623 | N P 12 NoteImage0T mania-note1T png - 624 | N P 12 NoteImage1T mania-note2T png - 625 | N P 12 NoteImage2T mania-note1T png - 626 | N P 12 NoteImage3T mania-note2T png - 627 | N P 12 NoteImage4T mania-note1T png - 628 | N P 12 NoteImage5T mania-note2T png - 629 | N P 12 NoteImage6T mania-note2T png - 630 | N P 12 NoteImage7T mania-note1T png - 631 | N P 12 NoteImage8T mania-note2T png - 632 | N P 12 NoteImage9T mania-note1T png - 633 | N P 12 NoteImage10T mania-note2T png - 634 | N P 12 NoteImage11T mania-note1T png - 635 | N P 12 NoteImage0L mania-note1L png - 636 | N P 12 NoteImage1L mania-note2L png - 637 | N P 12 NoteImage2L mania-note1L png - 638 | N P 12 NoteImage3L mania-note2L png - 639 | N P 12 NoteImage4L mania-note1L png - 640 | N P 12 NoteImage5L mania-note2L png - 641 | N P 12 NoteImage6L mania-note2L png - 642 | N P 12 NoteImage7L mania-note1L png - 643 | N P 12 NoteImage8L mania-note2L png - 644 | N P 12 NoteImage9L mania-note1L png - 645 | N P 12 NoteImage10L mania-note2L png - 646 | N P 12 NoteImage11L mania-note1L png - 647 | 648 | ===> 12K - Hitbursts 649 | N P 12 Hit0 mania-hit0 png - 650 | N P 12 Hit50 mania-hit50 png - 651 | N P 12 Hit100 mania-hit100 png - 652 | N P 12 Hit200 mania-hit200 png - 653 | N P 12 Hit300 mania-hit300 png - 654 | N P 12 Hit300g mania-hit300g png - 655 | 656 | ===> 14K - Stage 657 | N png comboburst-mania 658 | P 14 StageLeft mania-stage-left png - 659 | P 14 StageRight mania-stage-right png - 660 | N P 14 StageBottom mania-stage-bottom png - 661 | P 14 StageHint mania-stage-hint png - 662 | N P 14 StageLight mania-stage-light png - 663 | P 14 WarningArrow mania-warningarrow png - 664 | N P 14 LightingN lightingN png - 665 | N P 14 LightingL lightingL png - 666 | 667 | ===> 14K - Keys 668 | P 14 KeyImage0 mania-key1 png - 669 | P 14 KeyImage1 mania-key2 png - 670 | P 14 KeyImage2 mania-key1 png - 671 | P 14 KeyImage3 mania-key2 png - 672 | P 14 KeyImage4 mania-key1 png - 673 | P 14 KeyImage5 mania-key2 png - 674 | P 14 KeyImage6 mania-key1 png - 675 | P 14 KeyImage7 mania-key1 png - 676 | P 14 KeyImage8 mania-key2 png - 677 | P 14 KeyImage9 mania-key1 png - 678 | P 14 KeyImage10 mania-key2 png - 679 | P 14 KeyImage11 mania-key1 png - 680 | P 14 KeyImage12 mania-key2 png - 681 | P 14 KeyImage13 mania-key1 png - 682 | P 14 KeyImage0D mania-key1D png - 683 | P 14 KeyImage1D mania-key2D png - 684 | P 14 KeyImage2D mania-key1D png - 685 | P 14 KeyImage3D mania-key2D png - 686 | P 14 KeyImage4D mania-key1D png - 687 | P 14 KeyImage5D mania-key2D png - 688 | P 14 KeyImage6D mania-key1D png - 689 | P 14 KeyImage7D mania-key1D png - 690 | P 14 KeyImage8D mania-key2D png - 691 | P 14 KeyImage9D mania-key1D png - 692 | P 14 KeyImage10D mania-key2D png - 693 | P 14 KeyImage11D mania-key1D png - 694 | P 14 KeyImage12D mania-key2D png - 695 | P 14 KeyImage13D mania-key1D png - 696 | 697 | ===> 14K - Notes 698 | N P 14 NoteImage0 mania-note1 png - 699 | N P 14 NoteImage1 mania-note2 png - 700 | N P 14 NoteImage2 mania-note1 png - 701 | N P 14 NoteImage3 mania-note2 png - 702 | N P 14 NoteImage4 mania-note1 png - 703 | N P 14 NoteImage5 mania-note2 png - 704 | N P 14 NoteImage6 mania-note1 png - 705 | N P 14 NoteImage7 mania-note1 png - 706 | N P 14 NoteImage8 mania-note2 png - 707 | N P 14 NoteImage9 mania-note1 png - 708 | N P 14 NoteImage10 mania-note2 png - 709 | N P 14 NoteImage11 mania-note1 png - 710 | N P 14 NoteImage12 mania-note2 png - 711 | N P 14 NoteImage13 mania-note1 png - 712 | N P 14 NoteImage0H mania-note1H png - 713 | N P 14 NoteImage1H mania-note2H png - 714 | N P 14 NoteImage2H mania-note1H png - 715 | N P 14 NoteImage3H mania-note2H png - 716 | N P 14 NoteImage4H mania-note1H png - 717 | N P 14 NoteImage5H mania-note2H png - 718 | N P 14 NoteImage6H mania-note1H png - 719 | N P 14 NoteImage7H mania-note1H png - 720 | N P 14 NoteImage8H mania-note2H png - 721 | N P 14 NoteImage9H mania-note1H png - 722 | N P 14 NoteImage10H mania-note2H png - 723 | N P 14 NoteImage11H mania-note1H png - 724 | N P 14 NoteImage12H mania-note2H png - 725 | N P 14 NoteImage13H mania-note1H png - 726 | N P 14 NoteImage0T mania-note1T png - 727 | N P 14 NoteImage1T mania-note2T png - 728 | N P 14 NoteImage2T mania-note1T png - 729 | N P 14 NoteImage3T mania-note2T png - 730 | N P 14 NoteImage4T mania-note1T png - 731 | N P 14 NoteImage5T mania-note2T png - 732 | N P 14 NoteImage6T mania-note1T png - 733 | N P 14 NoteImage7T mania-note1T png - 734 | N P 14 NoteImage8T mania-note2T png - 735 | N P 14 NoteImage9T mania-note1T png - 736 | N P 14 NoteImage10T mania-note2T png - 737 | N P 14 NoteImage11T mania-note1T png - 738 | N P 14 NoteImage12T mania-note2T png - 739 | N P 14 NoteImage13T mania-note1T png - 740 | N P 14 NoteImage0L mania-note1L png - 741 | N P 14 NoteImage1L mania-note2L png - 742 | N P 14 NoteImage2L mania-note1L png - 743 | N P 14 NoteImage3L mania-note2L png - 744 | N P 14 NoteImage4L mania-note1L png - 745 | N P 14 NoteImage5L mania-note2L png - 746 | N P 14 NoteImage6L mania-note1L png - 747 | N P 14 NoteImage7L mania-note1L png - 748 | N P 14 NoteImage8L mania-note2L png - 749 | N P 14 NoteImage9L mania-note1L png - 750 | N P 14 NoteImage10L mania-note2L png - 751 | N P 14 NoteImage11L mania-note1L png - 752 | N P 14 NoteImage12L mania-note2L png - 753 | N P 14 NoteImage13L mania-note1L png - 754 | 755 | ===> 14K - Hitbursts 756 | N P 14 Hit0 mania-hit0 png - 757 | N P 14 Hit50 mania-hit50 png - 758 | N P 14 Hit100 mania-hit100 png - 759 | N P 14 Hit200 mania-hit200 png - 760 | N P 14 Hit300 mania-hit300 png - 761 | N P 14 Hit300g mania-hit300g png - 762 | 763 | ===> 16K - Stage 764 | N png comboburst-mania 765 | P 16 StageLeft mania-stage-left png - 766 | P 16 StageRight mania-stage-right png - 767 | N P 16 StageBottom mania-stage-bottom png - 768 | P 16 StageHint mania-stage-hint png - 769 | N P 16 StageLight mania-stage-light png - 770 | P 16 WarningArrow mania-warningarrow png - 771 | N P 16 LightingN lightingN png - 772 | N P 16 LightingL lightingL png - 773 | 774 | ===> 16K - Keys 775 | P 16 KeyImage0 mania-key1 png - 776 | P 16 KeyImage1 mania-key2 png - 777 | P 16 KeyImage2 mania-key1 png - 778 | P 16 KeyImage3 mania-key2 png - 779 | P 16 KeyImage4 mania-key1 png - 780 | P 16 KeyImage5 mania-key2 png - 781 | P 16 KeyImage6 mania-key1 png - 782 | P 16 KeyImage7 mania-key2 png - 783 | P 16 KeyImage8 mania-key2 png - 784 | P 16 KeyImage9 mania-key1 png - 785 | P 16 KeyImage10 mania-key2 png - 786 | P 16 KeyImage11 mania-key1 png - 787 | P 16 KeyImage12 mania-key2 png - 788 | P 16 KeyImage13 mania-key1 png - 789 | P 16 KeyImage14 mania-key2 png - 790 | P 16 KeyImage15 mania-key1 png - 791 | P 16 KeyImage0D mania-key1D png - 792 | P 16 KeyImage1D mania-key2D png - 793 | P 16 KeyImage2D mania-key1D png - 794 | P 16 KeyImage3D mania-key2D png - 795 | P 16 KeyImage4D mania-key1D png - 796 | P 16 KeyImage5D mania-key2D png - 797 | P 16 KeyImage6D mania-key1D png - 798 | P 16 KeyImage7D mania-key2D png - 799 | P 16 KeyImage8D mania-key2D png - 800 | P 16 KeyImage9D mania-key1D png - 801 | P 16 KeyImage10D mania-key2D png - 802 | P 16 KeyImage11D mania-key1D png - 803 | P 16 KeyImage12D mania-key2D png - 804 | P 16 KeyImage13D mania-key1D png - 805 | P 16 KeyImage14D mania-key2D png - 806 | P 16 KeyImage15D mania-key1D png - 807 | 808 | ===> 16K - Notes 809 | N P 16 NoteImage0 mania-note1 png - 810 | N P 16 NoteImage1 mania-note2 png - 811 | N P 16 NoteImage2 mania-note1 png - 812 | N P 16 NoteImage3 mania-note2 png - 813 | N P 16 NoteImage4 mania-note1 png - 814 | N P 16 NoteImage5 mania-note2 png - 815 | N P 16 NoteImage6 mania-note1 png - 816 | N P 16 NoteImage7 mania-note2 png - 817 | N P 16 NoteImage8 mania-note2 png - 818 | N P 16 NoteImage9 mania-note1 png - 819 | N P 16 NoteImage10 mania-note2 png - 820 | N P 16 NoteImage11 mania-note1 png - 821 | N P 16 NoteImage12 mania-note2 png - 822 | N P 16 NoteImage13 mania-note1 png - 823 | N P 16 NoteImage14 mania-note2 png - 824 | N P 16 NoteImage15 mania-note1 png - 825 | N P 16 NoteImage0H mania-note1H png - 826 | N P 16 NoteImage1H mania-note2H png - 827 | N P 16 NoteImage2H mania-note1H png - 828 | N P 16 NoteImage3H mania-note2H png - 829 | N P 16 NoteImage4H mania-note1H png - 830 | N P 16 NoteImage5H mania-note2H png - 831 | N P 16 NoteImage6H mania-note1H png - 832 | N P 16 NoteImage7H mania-note2H png - 833 | N P 16 NoteImage8H mania-note2H png - 834 | N P 16 NoteImage9H mania-note1H png - 835 | N P 16 NoteImage10H mania-note2H png - 836 | N P 16 NoteImage11H mania-note1H png - 837 | N P 16 NoteImage12H mania-note2H png - 838 | N P 16 NoteImage13H mania-note1H png - 839 | N P 16 NoteImage14H mania-note2H png - 840 | N P 16 NoteImage15H mania-note1H png - 841 | N P 16 NoteImage0T mania-note1T png - 842 | N P 16 NoteImage1T mania-note2T png - 843 | N P 16 NoteImage2T mania-note1T png - 844 | N P 16 NoteImage3T mania-note2T png - 845 | N P 16 NoteImage4T mania-note1T png - 846 | N P 16 NoteImage5T mania-note2T png - 847 | N P 16 NoteImage6T mania-note1T png - 848 | N P 16 NoteImage7T mania-note2T png - 849 | N P 16 NoteImage8T mania-note2T png - 850 | N P 16 NoteImage9T mania-note1T png - 851 | N P 16 NoteImage10T mania-note2T png - 852 | N P 16 NoteImage11T mania-note1T png - 853 | N P 16 NoteImage12T mania-note2T png - 854 | N P 16 NoteImage13T mania-note1T png - 855 | N P 16 NoteImage14T mania-note2T png - 856 | N P 16 NoteImage15T mania-note1T png - 857 | N P 16 NoteImage0L mania-note1L png - 858 | N P 16 NoteImage1L mania-note2L png - 859 | N P 16 NoteImage2L mania-note1L png - 860 | N P 16 NoteImage3L mania-note2L png - 861 | N P 16 NoteImage4L mania-note1L png - 862 | N P 16 NoteImage5L mania-note2L png - 863 | N P 16 NoteImage6L mania-note1L png - 864 | N P 16 NoteImage7L mania-note2L png - 865 | N P 16 NoteImage8L mania-note2L png - 866 | N P 16 NoteImage9L mania-note1L png - 867 | N P 16 NoteImage10L mania-note2L png - 868 | N P 16 NoteImage11L mania-note1L png - 869 | N P 16 NoteImage12L mania-note2L png - 870 | N P 16 NoteImage13L mania-note1L png - 871 | N P 16 NoteImage14L mania-note2L png - 872 | N P 16 NoteImage15L mania-note1L png - 873 | 874 | ===> 16K - Hitbursts 875 | N P 16 Hit0 mania-hit0 png - 876 | N P 16 Hit50 mania-hit50 png - 877 | N P 16 Hit100 mania-hit100 png - 878 | N P 16 Hit200 mania-hit200 png - 879 | N P 16 Hit300 mania-hit300 png - 880 | N P 16 Hit300g mania-hit300g png - 881 | 882 | ===> 18K - Stage 883 | N png comboburst-mania 884 | P 18 StageLeft mania-stage-left png - 885 | P 18 StageRight mania-stage-right png - 886 | N P 18 StageBottom mania-stage-bottom png - 887 | P 18 StageHint mania-stage-hint png - 888 | N P 18 StageLight mania-stage-light png - 889 | P 18 WarningArrow mania-warningarrow png - 890 | N P 18 LightingN lightingN png - 891 | N P 18 LightingL lightingL png - 892 | 893 | ===> 18K - Keys 894 | P 18 KeyImage0 mania-key1 png - 895 | P 18 KeyImage1 mania-key2 png - 896 | P 18 KeyImage2 mania-key1 png - 897 | P 18 KeyImage3 mania-key2 png - 898 | P 18 KeyImage4 mania-key1 png - 899 | P 18 KeyImage5 mania-key2 png - 900 | P 18 KeyImage6 mania-key1 png - 901 | P 18 KeyImage7 mania-key2 png - 902 | P 18 KeyImage8 mania-key1 png - 903 | P 18 KeyImage9 mania-key1 png - 904 | P 18 KeyImage10 mania-key2 png - 905 | P 18 KeyImage11 mania-key1 png - 906 | P 18 KeyImage12 mania-key2 png - 907 | P 18 KeyImage13 mania-key1 png - 908 | P 18 KeyImage14 mania-key2 png - 909 | P 18 KeyImage15 mania-key1 png - 910 | P 18 KeyImage16 mania-key2 png - 911 | P 18 KeyImage17 mania-key1 png - 912 | P 18 KeyImage0D mania-key1D png - 913 | P 18 KeyImage1D mania-key2D png - 914 | P 18 KeyImage2D mania-key1D png - 915 | P 18 KeyImage3D mania-key2D png - 916 | P 18 KeyImage4D mania-key1D png - 917 | P 18 KeyImage5D mania-key2D png - 918 | P 18 KeyImage6D mania-key1D png - 919 | P 18 KeyImage7D mania-key2D png - 920 | P 18 KeyImage8D mania-key1D png - 921 | P 18 KeyImage9D mania-key1D png - 922 | P 18 KeyImage10D mania-key2D png - 923 | P 18 KeyImage11D mania-key1D png - 924 | P 18 KeyImage12D mania-key2D png - 925 | P 18 KeyImage13D mania-key1D png - 926 | P 18 KeyImage14D mania-key2D png - 927 | P 18 KeyImage15D mania-key1D png - 928 | P 18 KeyImage16D mania-key2D png - 929 | P 18 KeyImage17D mania-key1D png - 930 | 931 | ===> 18K - Notes 932 | N P 18 NoteImage0 mania-note1 png - 933 | N P 18 NoteImage1 mania-note2 png - 934 | N P 18 NoteImage2 mania-note1 png - 935 | N P 18 NoteImage3 mania-note2 png - 936 | N P 18 NoteImage4 mania-note1 png - 937 | N P 18 NoteImage5 mania-note2 png - 938 | N P 18 NoteImage6 mania-note1 png - 939 | N P 18 NoteImage7 mania-note2 png - 940 | N P 18 NoteImage8 mania-note1 png - 941 | N P 18 NoteImage9 mania-note1 png - 942 | N P 18 NoteImage10 mania-note2 png - 943 | N P 18 NoteImage11 mania-note1 png - 944 | N P 18 NoteImage12 mania-note2 png - 945 | N P 18 NoteImage13 mania-note1 png - 946 | N P 18 NoteImage14 mania-note2 png - 947 | N P 18 NoteImage15 mania-note1 png - 948 | N P 18 NoteImage16 mania-note2 png - 949 | N P 18 NoteImage17 mania-note1 png - 950 | N P 18 NoteImage0H mania-note1H png - 951 | N P 18 NoteImage1H mania-note2H png - 952 | N P 18 NoteImage2H mania-note1H png - 953 | N P 18 NoteImage3H mania-note2H png - 954 | N P 18 NoteImage4H mania-note1H png - 955 | N P 18 NoteImage5H mania-note2H png - 956 | N P 18 NoteImage6H mania-note1H png - 957 | N P 18 NoteImage7H mania-note2H png - 958 | N P 18 NoteImage8H mania-note1H png - 959 | N P 18 NoteImage9H mania-note1H png - 960 | N P 18 NoteImage10H mania-note2H png - 961 | N P 18 NoteImage11H mania-note1H png - 962 | N P 18 NoteImage12H mania-note2H png - 963 | N P 18 NoteImage13H mania-note1H png - 964 | N P 18 NoteImage14H mania-note2H png - 965 | N P 18 NoteImage15H mania-note1H png - 966 | N P 18 NoteImage16H mania-note2H png - 967 | N P 18 NoteImage17H mania-note1H png - 968 | N P 18 NoteImage0T mania-note1T png - 969 | N P 18 NoteImage1T mania-note2T png - 970 | N P 18 NoteImage2T mania-note1T png - 971 | N P 18 NoteImage3T mania-note2T png - 972 | N P 18 NoteImage4T mania-note1T png - 973 | N P 18 NoteImage5T mania-note2T png - 974 | N P 18 NoteImage6T mania-note1T png - 975 | N P 18 NoteImage7T mania-note2T png - 976 | N P 18 NoteImage8T mania-note1T png - 977 | N P 18 NoteImage9T mania-note1T png - 978 | N P 18 NoteImage10T mania-note2T png - 979 | N P 18 NoteImage11T mania-note1T png - 980 | N P 18 NoteImage12T mania-note2T png - 981 | N P 18 NoteImage13T mania-note1T png - 982 | N P 18 NoteImage14T mania-note2T png - 983 | N P 18 NoteImage15T mania-note1T png - 984 | N P 18 NoteImage16T mania-note2T png - 985 | N P 18 NoteImage17T mania-note1T png - 986 | N P 18 NoteImage0L mania-note1L png - 987 | N P 18 NoteImage1L mania-note2L png - 988 | N P 18 NoteImage2L mania-note1L png - 989 | N P 18 NoteImage3L mania-note2L png - 990 | N P 18 NoteImage4L mania-note1L png - 991 | N P 18 NoteImage5L mania-note2L png - 992 | N P 18 NoteImage6L mania-note1L png - 993 | N P 18 NoteImage7L mania-note2L png - 994 | N P 18 NoteImage8L mania-note1L png - 995 | N P 18 NoteImage9L mania-note1L png - 996 | N P 18 NoteImage10L mania-note2L png - 997 | N P 18 NoteImage11L mania-note1L png - 998 | N P 18 NoteImage12L mania-note2L png - 999 | N P 18 NoteImage13L mania-note1L png - 1000 | N P 18 NoteImage14L mania-note2L png - 1001 | N P 18 NoteImage15L mania-note1L png - 1002 | N P 18 NoteImage16L mania-note2L png - 1003 | N P 18 NoteImage17L mania-note1L png - 1004 | 1005 | ===> 18K - Hitbursts 1006 | N P 18 Hit0 mania-hit0 png - 1007 | N P 18 Hit50 mania-hit50 png - 1008 | N P 18 Hit100 mania-hit100 png - 1009 | N P 18 Hit200 mania-hit200 png - 1010 | N P 18 Hit300 mania-hit300 png - 1011 | N P 18 Hit300g mania-hit300g png - 1012 | -------------------------------------------------------------------------------- /osuSkinChecker/resources/menu-sounds.txt: -------------------------------------------------------------------------------- 1 | ===> Home Screen 2 | - wav,mp3,ogg welcome 3 | - wav,mp3,ogg seeya 4 | - wav,mp3,ogg heartbeat 5 | 6 | ===> Clicks 7 | - wav,mp3,ogg check-on 8 | - wav,mp3,ogg check-off 9 | - wav,mp3,ogg select-expand 10 | - wav,mp3,ogg select-difficulty 11 | - wav,mp3,ogg click-close 12 | - wav,mp3,ogg click-short-confirm 13 | - wav,mp3,ogg menuback 14 | - wav,mp3,ogg menuhit 15 | - wav,mp3,ogg shutter 16 | - wav,mp3,ogg sliderbar 17 | 18 | ===> Hovers 19 | - wav,mp3,ogg click-short 20 | - wav,mp3,ogg menuclick 21 | 22 | ===> Multiplayer 23 | - wav,mp3,ogg match-join 24 | - wav,mp3,ogg match-leave 25 | - wav,mp3,ogg match-ready 26 | - wav,mp3,ogg match-notready 27 | - wav,mp3,ogg match-confirm 28 | - wav,mp3,ogg match-start 29 | 30 | ===> Home Screen Buttons 31 | - wav,mp3,ogg back-button-hover 32 | - wav,mp3,ogg back-button-click 33 | - wav,mp3,ogg menu-play-hover 34 | - wav,mp3,ogg menu-edit-hover 35 | - wav,mp3,ogg menu-options-hover 36 | - wav,mp3,ogg menu-exit-hover 37 | - wav,mp3,ogg menu-freeplay-hover 38 | - wav,mp3,ogg menu-multiplayer-hover 39 | - wav,mp3,ogg menu-charts-hover 40 | - wav,mp3,ogg menu-back-hover 41 | - wav,mp3,ogg menu-play-click 42 | - wav,mp3,ogg menu-edit-click 43 | - wav,mp3,ogg menu-options-click 44 | - wav,mp3,ogg menu-exit-click 45 | - wav,mp3,ogg menu-freeplay-click 46 | - wav,mp3,ogg menu-multiplayer-click 47 | - wav,mp3,ogg menu-charts-click 48 | - wav,mp3,ogg menu-back-click 49 | - wav,mp3,ogg menu-direct-hover 50 | - wav,mp3,ogg menu-direct-click 51 | 52 | ===> Key Input 53 | - wav,mp3,ogg key-confirm 54 | - wav,mp3,ogg key-delete 55 | - wav,mp3,ogg key-movement 56 | - wav,mp3,ogg key-press-1 57 | - wav,mp3,ogg key-press-2 58 | - wav,mp3,ogg key-press-3 59 | - wav,mp3,ogg key-press-4 -------------------------------------------------------------------------------- /osuSkinChecker/resources/menu.txt: -------------------------------------------------------------------------------- 1 | ===> Home Screen 2 | - jpg,jpeg menu-background 3 | - png welcome_text 4 | - png menu-snow 5 | - png options-offset-tick 6 | 7 | ===> Song Selection Background 8 | - png songselect-bottom 9 | - png songselect-top 10 | 11 | ===> Song Selection Carousel 12 | - png menu-button-background 13 | - png star 14 | - png star2 15 | 16 | ===> Song Selection Buttons 17 | - png rank-forum 18 | - png selection-mode 19 | - png selection-mode-over 20 | - png selection-mods 21 | - png selection-mods-over 22 | - png selection-random 23 | - png selection-random-over 24 | - png selection-options 25 | - png selection-options-over 26 | - png selection-tab 27 | 28 | ===> Buttons 29 | - png button-left 30 | - png button-middle 31 | - png button-right 32 | N png menu-back 33 | 34 | ===> Game Mode Indicators 35 | - png mode-osu 36 | - png mode-taiko 37 | - png mode-fruits 38 | - png mode-mania 39 | - png mode-osu-med 40 | - png mode-taiko-med 41 | - png mode-fruits-med 42 | - png mode-mania-med 43 | - png mode-osu-small 44 | - png mode-taiko-small 45 | - png mode-fruits-small 46 | - png mode-mania-small 47 | 48 | ===> Game Modifier Icons 49 | - png selection-mod-easy 50 | - png selection-mod-nofail 51 | - png selection-mod-halftime 52 | - png selection-mod-hardrock 53 | - png selection-mod-suddendeath 54 | - png selection-mod-perfect 55 | - png selection-mod-doubletime 56 | - png selection-mod-nightcore 57 | - png selection-mod-hidden 58 | - png selection-mod-fadein 59 | - png selection-mod-flashlight 60 | - png selection-mod-relax 61 | - png selection-mod-relax2 62 | - png selection-mod-target 63 | - png selection-mod-spunout 64 | - png selection-mod-autoplay 65 | - png selection-mod-cinema 66 | - png selection-mod-scorev2 67 | - png selection-mod-key1 68 | - png selection-mod-key2 69 | - png selection-mod-key3 70 | - png selection-mod-key4 71 | - png selection-mod-key5 72 | - png selection-mod-key6 73 | - png selection-mod-key7 74 | - png selection-mod-key8 75 | - png selection-mod-key9 76 | - png selection-mod-keycoop 77 | - png selection-mod-mirror 78 | - png selection-mod-random 79 | - png selection-mod-touchdevice 80 | - png selection-mod-freemodallowed 81 | 82 | ===> Ranking Screen 83 | - png ranking-title 84 | - png ranking-panel 85 | - png ranking-maxcombo 86 | - png ranking-accuracy 87 | - png ranking-graph 88 | - png ranking-perfect 89 | - png ranking-winner 90 | L 1 png ranking-replay 91 | - png ranking-retry 92 | 93 | ===> Pause Screen 94 | - png,jpg,jpeg pause-overlay 95 | - png,jpg,jpeg fail-background 96 | - png pause-back 97 | - png pause-continue 98 | - png pause-retry 99 | - png pause-replay 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | -------------------------------------------------------------------------------- /osuSkinChecker/resources/misc.txt: -------------------------------------------------------------------------------- 1 | ===> Cursor 2 | - png cursor 3 | - png cursortrail 4 | - png cursormiddle 5 | - png cursor-smoke 6 | - png cursor-ripple 7 | 8 | ===> Ranking Letters 9 | - png ranking-xh 10 | - png ranking-xh-small 11 | - png ranking-sh 12 | - png ranking-sh-small 13 | - png ranking-x 14 | - png ranking-x-small 15 | - png ranking-s 16 | - png ranking-s-small 17 | - png ranking-a 18 | - png ranking-a-small 19 | - png ranking-b 20 | - png ranking-b-small 21 | - png ranking-c 22 | - png ranking-c-small 23 | - png ranking-d 24 | - png ranking-d-small 25 | 26 | ===> Score Numbers 27 | C ScorePrefix score png -0 28 | C ScorePrefix score png -1 29 | C ScorePrefix score png -2 30 | C ScorePrefix score png -3 31 | C ScorePrefix score png -4 32 | C ScorePrefix score png -5 33 | C ScorePrefix score png -6 34 | C ScorePrefix score png -7 35 | C ScorePrefix score png -8 36 | C ScorePrefix score png -9 37 | C ScorePrefix score png -comma 38 | C ScorePrefix score png -dot 39 | C ScorePrefix score png -percent 40 | C ScorePrefix score png -x 41 | 42 | ===> Combo Numbers 43 | C ComboPrefix score png -0 44 | C ComboPrefix score png -1 45 | C ComboPrefix score png -2 46 | C ComboPrefix score png -3 47 | C ComboPrefix score png -4 48 | C ComboPrefix score png -5 49 | C ComboPrefix score png -6 50 | C ComboPrefix score png -7 51 | C ComboPrefix score png -8 52 | C ComboPrefix score png -9 53 | -------------------------------------------------------------------------------- /osuSkinChecker/resources/osu-sounds.txt: -------------------------------------------------------------------------------- 1 | ===> Spinner 2 | - wav,mp3,ogg spinnerspin 3 | - wav,mp3,ogg spinnerbonus -------------------------------------------------------------------------------- /osuSkinChecker/resources/osu.txt: -------------------------------------------------------------------------------- 1 | ===> Hitcircle Numbers 2 | C HitCirclePrefix default png -0 3 | C HitCirclePrefix default png -1 4 | C HitCirclePrefix default png -2 5 | C HitCirclePrefix default png -3 6 | C HitCirclePrefix default png -4 7 | C HitCirclePrefix default png -5 8 | C HitCirclePrefix default png -6 9 | C HitCirclePrefix default png -7 10 | C HitCirclePrefix default png -8 11 | C HitCirclePrefix default png -9 12 | 13 | ===> Hitcircle 14 | - png approachcircle 15 | - png hitcircle 16 | - png hitcircleoverlay 17 | N png followpoint 18 | - png reversearrow 19 | - png sliderstartcircle 20 | N png sliderstartcircleoverlay 21 | - png sliderendcircle 22 | N png sliderendcircleoverlay 23 | 24 | ===> Slider 25 | N png sliderfollowcircle 26 | M png sliderb 27 | O false sliderb png sliderb-nd 28 | O false sliderb png sliderb-spec 29 | - png sliderscorepoint 30 | 31 | ===> Spinner 32 | O true spinner-background png spinner-background 33 | O true spinner-background png spinner-circle 34 | O true spinner-background png spinner-metre 35 | O false spinner-background png spinner-bottom 36 | O false spinner-background png spinner-glow 37 | O false spinner-background png spinner-middle 38 | O false spinner-background png spinner-middle2 39 | O false spinner-background png spinner-top 40 | - png spinner-approachcircle 41 | - png spinner-rpm 42 | - png spinner-clear 43 | - png spinner-spin 44 | L 1 png spinner-osu 45 | 46 | ===> Hitbursts 47 | N png hit0 48 | N png hit50 49 | N png hit100 50 | N png hit100k 51 | N png hit300 52 | N png hit300k 53 | N png hit300g 54 | - png particle50 55 | - png particle100 56 | - png particle300 57 | - png lighting 58 | L 1 png sliderpoint10 59 | L 1 png sliderpoint30 60 | 61 | ===> Target Practice 62 | - png target 63 | - png targetoverlay 64 | - png target-pt-1 65 | - png target-pt-2 66 | - png target-pt-3 67 | - png target-pt-4 68 | - png target-pt-5 69 | - png targetoverlay-pt-1 70 | - png targetoverlay-pt-2 71 | - png targetoverlay-pt-3 72 | - png targetoverlay-pt-4 73 | - png targetoverlay-pt-5 -------------------------------------------------------------------------------- /osuSkinChecker/resources/skinchecker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoanH/osuSkinChecker/85beb958681ba46fb93edc1e7498b656c640aab7/osuSkinChecker/resources/skinchecker.png -------------------------------------------------------------------------------- /osuSkinChecker/resources/taiko-sounds.txt: -------------------------------------------------------------------------------- 1 | ===> Normal Sample Set 2 | - wav,mp3,ogg taiko-normal-hitnormal 3 | - wav,mp3,ogg taiko-normal-hitclap 4 | - wav,mp3,ogg taiko-normal-hitfinish 5 | - wav,mp3,ogg taiko-normal-hitwhistle 6 | 7 | 8 | ===> Soft Sample Set 9 | - wav,mp3,ogg taiko-soft-hitnormal 10 | - wav,mp3,ogg taiko-soft-hitclap 11 | - wav,mp3,ogg taiko-soft-hitfinish 12 | - wav,mp3,ogg taiko-soft-hitwhistle 13 | 14 | ===> Drum Sample Set 15 | - wav,mp3,ogg taiko-drum-hitnormal 16 | - wav,mp3,ogg taiko-drum-hitclap 17 | - wav,mp3,ogg taiko-drum-hitfinish 18 | - wav,mp3,ogg taiko-drum-hitwhistle -------------------------------------------------------------------------------- /osuSkinChecker/resources/taiko.txt: -------------------------------------------------------------------------------- 1 | ===> Pippidon 2 | M png pippidonidle 3 | M png pippidonclear 4 | M png pippidonkiai 5 | M png pippidonfail 6 | 7 | ===> Slider Bar 8 | N png taiko-flower-group 9 | - png taiko-slider 10 | - png taiko-slider-fail 11 | 12 | ===> Drum Bar 13 | - png taiko-bar-left 14 | - png taiko-drum-inner 15 | - png taiko-drum-outer 16 | - png taiko-bar-right 17 | - png taiko-bar-right-glow 18 | - png taiko-barline 19 | 20 | ===> Notes 21 | - png approachcircle 22 | - png taikohitcircle 23 | N png taikohitcircleoverlay 24 | - png taikobigcircle 25 | N png taikobigcircleoverlay 26 | - png taiko-glow 27 | - png lighting 28 | 29 | ===> Drumroll 30 | - png taiko-roll-middle 31 | - png taiko-roll-end 32 | - png sliderscorepoint 33 | 34 | ===> Spinner 35 | - png spinner-warning 36 | - png spinner-circle 37 | - png spinner-approachcircle 38 | 39 | ===> Hitbursts 40 | N png taiko-hit0 41 | N png taiko-hit100 42 | N png taiko-hit300 43 | N png taiko-hit100k 44 | N png taiko-hit300k 45 | - png taiko-hit300g 46 | -------------------------------------------------------------------------------- /osuSkinChecker/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement{ 2 | repositories{ 3 | //Local cache 4 | if(settings.ext.find("nexusPublic") != null){ 5 | maven{ 6 | allowInsecureProtocol = true 7 | url "$nexusPublic" 8 | } 9 | } 10 | gradlePluginPortal() 11 | mavenCentral() 12 | } 13 | } 14 | 15 | rootProject.name = 'osuSkinChecker' 16 | -------------------------------------------------------------------------------- /osuSkinChecker/skinchecker.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoanH/osuSkinChecker/85beb958681ba46fb93edc1e7498b656c640aab7/osuSkinChecker/skinchecker.ico -------------------------------------------------------------------------------- /osuSkinChecker/src/dev/roanh/osuskinchecker/Filter.java: -------------------------------------------------------------------------------- 1 | package dev.roanh.osuskinchecker; 2 | 3 | import java.nio.file.Path; 4 | import java.util.ArrayList; 5 | import java.util.Deque; 6 | import java.util.List; 7 | import java.util.Locale; 8 | 9 | import dev.roanh.osuskinchecker.ini.SkinIni; 10 | import dev.roanh.osuskinchecker.ini.Version; 11 | 12 | /** 13 | * Abstract base class for filters. 14 | * @author Roan 15 | * @param The metadata type. 16 | */ 17 | public abstract class Filter{ 18 | /** 19 | * List of offered files that matched this filter. 20 | */ 21 | protected List matches = new ArrayList(); 22 | /** 23 | * Base file name without animation sequence number or extension. 24 | */ 25 | protected String name; 26 | /** 27 | * Allowed file extensions. 28 | */ 29 | private String[] extensions; 30 | /** 31 | * Whether or not multiple versions of the 32 | * image described by this filter object can exist, 33 | * where extra files are named by adding 34 | * -n to the name. Where n is an 35 | * integer >= 0. 36 | */ 37 | protected boolean animatedDash = false; 38 | 39 | /** 40 | * Constructs a new Filter with the given arguments. 41 | * @param args The filter construction arguments. 42 | */ 43 | public Filter(String[] args){ 44 | for(String arg : args){ 45 | if(arg.equals("N")){ 46 | animatedDash = true; 47 | break; 48 | } 49 | } 50 | this.extensions = args[args.length - 2].split(","); 51 | this.name = args[args.length - 1].toLowerCase(Locale.ROOT); 52 | if(this.name.equals("-")){ 53 | this.name = ""; 54 | } 55 | } 56 | 57 | /** 58 | * Checks if the given file with the given file 59 | * path matches this filter. 60 | * @param file The file to check. 61 | * @param path The file path. 62 | * @return True if the file matched this filter, 63 | * false otherwise. 64 | */ 65 | public boolean check(Path file, Deque path){ 66 | //check extension here, delegate other checks to subclass 67 | String fn = file.getFileName().toString().toLowerCase(Locale.ROOT); 68 | for(String ext : extensions){ 69 | if(fn.endsWith("." + ext)){ 70 | if((fn.startsWith(name) && path.isEmpty()) || allowNonRoot()){ 71 | T meta = matches(file, fn.substring(0, fn.length() - 1 - ext.length()), path); 72 | if(meta != null){ 73 | matches.add(meta); 74 | return true; 75 | }else{ 76 | return false; 77 | } 78 | }else{ 79 | return false; 80 | } 81 | } 82 | } 83 | return false; 84 | } 85 | 86 | /** 87 | * Removes all matches from this filter 88 | * and reinitialises all cached data. 89 | * @param ini The skin.ini. 90 | */ 91 | public void reset(SkinIni ini){ 92 | matches.clear(); 93 | } 94 | 95 | /** 96 | * Checks if at least one offered file 97 | * matched this filter. 98 | * @return True if at least one match was found. 99 | */ 100 | public boolean hasMatch(){ 101 | return !matches.isEmpty(); 102 | } 103 | 104 | /** 105 | * Gets a display model for this filter type. 106 | * @param filters The filters to add to the model. 107 | * @return A model with the given filteres. 108 | */ 109 | public abstract Model getModel(List> filters); 110 | 111 | /** 112 | * Checks if the given file matches this filter. 113 | * @param file The file to check. 114 | * @param fn The base name of this file with 115 | * no extension and the name stripped 116 | * if root is not allowed. 117 | * @param path The file path inside the skin folder. 118 | * @return A description of the matched file or 119 | * null if this file did not match the filter. 120 | */ 121 | protected abstract T matches(Path file, String fn, Deque path); 122 | 123 | /** 124 | * Whether or not this filter matches files with a non 125 | * default name or that are located in sub folders. 126 | * @return True if this filter allows non root files. 127 | */ 128 | protected abstract boolean allowNonRoot(); 129 | 130 | /** 131 | * Called to determine if this file 132 | * should be listed in the tables. 133 | * @param version The skin.ini 134 | * version used in this skin. 135 | * @return Whether or not to show this 136 | * file in the GUI. 137 | */ 138 | protected abstract boolean show(Version version); 139 | 140 | /** 141 | * Used to setup possible filter relations after all 142 | * filters have been created. 143 | * @param filters A list of all created filters. 144 | */ 145 | protected abstract void link(List> filters); 146 | 147 | /** 148 | * Gets a list of all the files that matched this filter. 149 | * @return A list of all the files that matched this filter. 150 | */ 151 | public abstract List getMatchedFiles(); 152 | 153 | @Override 154 | public String toString(){ 155 | return name; 156 | } 157 | } 158 | -------------------------------------------------------------------------------- /osuSkinChecker/src/dev/roanh/osuskinchecker/ImageFilter.java: -------------------------------------------------------------------------------- 1 | package dev.roanh.osuskinchecker; 2 | 3 | import java.nio.file.Path; 4 | import java.util.ArrayList; 5 | import java.util.Deque; 6 | import java.util.Iterator; 7 | import java.util.List; 8 | import java.util.Locale; 9 | import java.util.StringJoiner; 10 | import java.util.stream.Collectors; 11 | 12 | import dev.roanh.osuskinchecker.ini.Setting; 13 | import dev.roanh.osuskinchecker.ini.SkinIni; 14 | import dev.roanh.osuskinchecker.ini.Version; 15 | 16 | /** 17 | * Represent a filter that matches image files. 18 | * @author Roan 19 | * @see Filter 20 | * @see ImageMeta 21 | */ 22 | public class ImageFilter extends Filter{ 23 | /** 24 | * Whether or not multiple versions of the 25 | * image described by this filter 26 | * object can exist, where extra files are named by adding 27 | * n to the name. Where n is an 28 | * integer >= 0. 29 | */ 30 | protected boolean animatedNoDash = false; 31 | /** 32 | * Whether or not the SD/HD distinction 33 | * does not apply to the image matched 34 | * by this filter. 35 | */ 36 | protected boolean single = false; 37 | /** 38 | * Last version the image described by this filter 39 | * was used in. If the skin.ini version is 40 | * higher than this, this file is a legacy file. 41 | */ 42 | protected Version maxVersion = null; 43 | /** 44 | * The skin.ini setting the custom path is tied to. 45 | */ 46 | protected String customProperty = null; 47 | /** 48 | * The default resource location for the custom path. 49 | */ 50 | protected String customDefault = null; 51 | /** 52 | * Specifies the custom file location or the default 53 | * location if there is no custom one. 54 | */ 55 | protected String[] customPath; 56 | /** 57 | * The mania key count the custom path setting is for. 58 | */ 59 | protected int customKeyCount = -1; 60 | /** 61 | * List of override relations with other skin files. 62 | */ 63 | private List overrides = new ArrayList(1); 64 | 65 | /** 66 | * Constructs a new ImageFilter with the given arguments. 67 | * @param args The filter construction arguments. 68 | */ 69 | public ImageFilter(String[] args){ 70 | super(args); 71 | int c = 0; 72 | while(c < args.length){ 73 | switch(args[c]){ 74 | case "M": 75 | animatedNoDash = true; 76 | break; 77 | case "S": 78 | single = true; 79 | break; 80 | case "L": 81 | maxVersion = Version.fromString(args[++c]); 82 | break; 83 | case "P": 84 | customKeyCount = Integer.parseInt(args[++c]); 85 | //$FALL-THROUGH$ 86 | case "C": 87 | customProperty = args[++c]; 88 | customDefault = args[++c]; 89 | break; 90 | case "O": 91 | overrides.add(new OverrideRelation(Boolean.parseBoolean(args[++c]), args[++c])); 92 | break; 93 | default: 94 | break; 95 | } 96 | c++; 97 | } 98 | } 99 | 100 | @Override 101 | public void reset(SkinIni ini){ 102 | super.reset(ini); 103 | if(customProperty != null){ 104 | Setting pathSetting = ini.find(customProperty, customKeyCount); 105 | if(pathSetting != null && pathSetting.isEnabled()){ 106 | //path separator is currently hard coded in the skin.ini format 107 | customPath = pathSetting.getValue().toString().split("/"); 108 | }else{ 109 | customPath = new String[]{customDefault}; 110 | } 111 | } 112 | } 113 | 114 | /** 115 | * Checks if any matched file in this filter 116 | * is a HD image. 117 | * @return Whether or not this filter matched 118 | * a HD image. 119 | */ 120 | public boolean hasHD(){ 121 | for(ImageMeta meta : matches){ 122 | if(meta.isHD()){ 123 | return true; 124 | } 125 | } 126 | return false; 127 | } 128 | 129 | /** 130 | * Checks if any matched file in this filter 131 | * is a SD image. 132 | * @return Whether or not this filter matched 133 | * a SD image. 134 | */ 135 | public boolean hasSD(){ 136 | for(ImageMeta meta : matches){ 137 | if(meta.isSD()){ 138 | return true; 139 | } 140 | } 141 | return false; 142 | } 143 | 144 | /** 145 | * Checks if any matched file in this filter 146 | * is an animated image. 147 | * @return Whether or not this filter matched 148 | * an animated image. 149 | */ 150 | public boolean isAnimated(){ 151 | for(ImageMeta meta : matches){ 152 | if(meta.isAnimated()){ 153 | return true; 154 | } 155 | } 156 | return false; 157 | } 158 | 159 | /** 160 | * Constructs a string stating the frames that are animated 161 | * from all the files that matched this filter. 162 | * @return A string stated all the animated frames. 163 | */ 164 | public String getFrameString(){ 165 | int[] nums = matches.stream().mapToInt(ImageMeta::getSequenceNumber).filter(i->i >= 0).distinct().sorted().toArray(); 166 | if(nums.length == 1){ 167 | return "frame " + nums[0]; 168 | } 169 | StringJoiner buffer = new StringJoiner(", "); 170 | int start = nums[0]; 171 | int last = nums[0]; 172 | for(int i = 1; i < nums.length; i++){ 173 | if(nums[i] != last + 1){ 174 | if(start == last){ 175 | buffer.add(String.valueOf(start)); 176 | }else{ 177 | buffer.add(start + "-" + last); 178 | } 179 | start = nums[i]; 180 | } 181 | last = nums[i]; 182 | } 183 | if(start == 0){ 184 | buffer.add(last == 0 ? "1 frame" : ((last + 1) + " frames")); 185 | return buffer.toString(); 186 | }else{ 187 | buffer.add(start + "-" + last); 188 | return "frames " + buffer.toString(); 189 | } 190 | } 191 | 192 | /** 193 | * Checks if all SD images matched by 194 | * this filter are empty. 195 | * @return True if all matched SD images 196 | * are empty, false otherwise. If 197 | * no SD images were matched false 198 | * is returned. 199 | */ 200 | public boolean allEmptySD(){ 201 | boolean none = true; 202 | for(ImageMeta meta : matches){ 203 | if(meta.isSD()){ 204 | none = false; 205 | if(!meta.isEmpty()){ 206 | return false; 207 | } 208 | } 209 | } 210 | return !none; 211 | } 212 | 213 | /** 214 | * Checks whether or not the image matched by this filter 215 | * is no longer supported in the given current version. 216 | * @param current The version of the skin being checked. 217 | * @return True if the images matched by this filter are 218 | * legacy files with respect to the skin. 219 | */ 220 | public boolean isLegacy(Version current){ 221 | return maxVersion != null && !maxVersion.isAfterOrSame(current); 222 | } 223 | 224 | /** 225 | * Whether or not this file is currently being overridden 226 | * by a different file. 227 | * @return True if this file is currently being overridden. 228 | */ 229 | public boolean isOverriden(){ 230 | return !overrides.isEmpty() && overrides.stream().allMatch(OverrideRelation::isOverriden); 231 | } 232 | 233 | @Override 234 | protected ImageMeta matches(Path file, String fn, Deque path){ 235 | boolean hd = false; 236 | 237 | //name without base 238 | String extra; 239 | 240 | //verify custom path and name 241 | if(customProperty != null){ 242 | if(customPath.length > 1 || !path.isEmpty()){ 243 | if(customPath.length - 1 == path.size()){ 244 | Iterator iter = path.iterator(); 245 | for(int i = customPath.length - 2; i >= 0; i--){ 246 | if(!iter.next().equalsIgnoreCase(customPath[i])){ 247 | return null; 248 | } 249 | } 250 | if(fn.startsWith((customPath[customPath.length - 1] + name).toLowerCase(Locale.ROOT))){ 251 | extra = fn.substring(customPath[customPath.length - 1].length() + name.length()); 252 | }else{ 253 | return null; 254 | } 255 | }else{ 256 | return null; 257 | } 258 | }else if(customPath.length == 1){ 259 | if(fn.startsWith((customPath[0] + name).toLowerCase(Locale.ROOT))){ 260 | extra = fn.substring(customPath[0].length() + name.length()); 261 | }else{ 262 | return null; 263 | } 264 | }else{ 265 | return null; 266 | } 267 | }else{ 268 | //strip file name 269 | extra = fn.substring(name.length()); 270 | } 271 | 272 | //strip @2x 273 | if(extra.endsWith("@2x")){ 274 | extra = extra.substring(0, extra.length() - 3); 275 | hd = true; 276 | } 277 | 278 | //if nothing special accept 279 | if(extra.length() == 0){ 280 | return new ImageMeta(file, hd); 281 | }else{ 282 | if(animatedDash){ 283 | if(extra.startsWith("-")){ 284 | try{ 285 | return new ImageMeta(file, hd, Integer.parseInt(extra.substring(1))); 286 | }catch(NumberFormatException e){ 287 | return null; 288 | } 289 | }else{ 290 | return null; 291 | } 292 | }else if(animatedNoDash){ 293 | try{ 294 | return new ImageMeta(file, hd, Integer.parseInt(extra)); 295 | }catch(NumberFormatException e){ 296 | return null; 297 | } 298 | }else{ 299 | return null; 300 | } 301 | } 302 | } 303 | 304 | @Override 305 | public String toString(){ 306 | return customProperty == null ? super.toString() : (customPath[customPath.length - 1] + name); 307 | } 308 | 309 | @Override 310 | public Model getModel(List> filters){ 311 | return new ImageModel(filters); 312 | } 313 | 314 | @Override 315 | protected boolean allowNonRoot(){ 316 | return customProperty != null; 317 | } 318 | 319 | @Override 320 | protected boolean show(Version version){ 321 | if(!SkinChecker.checkLegacy && isLegacy(version)){ 322 | return false; 323 | }else if(SkinChecker.showAll){ 324 | return true; 325 | }else{ 326 | if(isOverriden()){ 327 | return false; 328 | } 329 | 330 | if(SkinChecker.checkHD && !hasHD()){ 331 | return !(SkinChecker.ignoreEmpty && allEmptySD()); 332 | } 333 | 334 | if(SkinChecker.checkSD && !hasSD()){ 335 | return !(SkinChecker.ignoreSD && hasHD()); 336 | } 337 | } 338 | return false; 339 | } 340 | 341 | @Override 342 | protected void link(List> filters){ 343 | if(!overrides.isEmpty()){ 344 | int found = 0; 345 | for(Filter filter : filters){ 346 | for(OverrideRelation override : overrides){ 347 | if(filter.name.equals(override.overrideName)){ 348 | override.filter = filter; 349 | if(++found == overrides.size()){ 350 | return; 351 | } 352 | } 353 | } 354 | } 355 | } 356 | } 357 | 358 | @Override 359 | public List getMatchedFiles(){ 360 | return matches.stream().map(ImageMeta::getFile).collect(Collectors.toList()); 361 | } 362 | 363 | /** 364 | * Denotes an override relation with an other file 365 | * in the skin. Such a relation may either take the 366 | * form of another skin element needing to be present 367 | * or absent for the original element to be relevant. 368 | * @author Roan 369 | * 370 | */ 371 | private static final class OverrideRelation{ 372 | /** 373 | * Override filter, used to check if the other 374 | * file of the relation is present. 375 | */ 376 | private Filter filter = null; 377 | /** 378 | * Name of the file that overrides the original 379 | * file for this override. 380 | */ 381 | private String overrideName = null; 382 | /** 383 | * Specifies the override mode. If this flag is 384 | * true then the override file has 385 | * to be present for the original file to be present. 386 | * If the flag is false the original 387 | * file for this relation should be absent. 388 | */ 389 | private boolean overrideMode = false; 390 | 391 | /** 392 | * Constructs a new override relation with the 393 | * given mode and overriding file name. 394 | * @param mode The mode for this override relation. 395 | * @param name The name of the other file for this relation. 396 | */ 397 | private OverrideRelation(boolean mode, String name){ 398 | overrideName = name; 399 | overrideMode = mode; 400 | } 401 | 402 | /** 403 | * Checks whether the other file for this relation 404 | * overrides the original file. 405 | * @return True if the original file is overridden 406 | * and should thus not be present. 407 | */ 408 | private boolean isOverriden(){ 409 | return overrideMode ^ filter.hasMatch(); 410 | } 411 | } 412 | } 413 | -------------------------------------------------------------------------------- /osuSkinChecker/src/dev/roanh/osuskinchecker/ImageMeta.java: -------------------------------------------------------------------------------- 1 | package dev.roanh.osuskinchecker; 2 | 3 | import java.io.IOException; 4 | import java.nio.file.Files; 5 | import java.nio.file.Path; 6 | import java.util.Iterator; 7 | 8 | import javax.imageio.ImageIO; 9 | import javax.imageio.ImageReader; 10 | import javax.imageio.stream.ImageInputStream; 11 | 12 | /** 13 | * Metadata class desribing a filter match. 14 | * @author Roan 15 | * @see ImageFilter 16 | */ 17 | public class ImageMeta{ 18 | /** 19 | * The image file. 20 | */ 21 | private final Path file; 22 | /** 23 | * Whether or not this is a HD image file. 24 | */ 25 | private final boolean hd; 26 | /** 27 | * The animation sequence number for this file. 28 | */ 29 | private final int sequenceNum; 30 | 31 | /** 32 | * Constructs a new ImageMeta with the 33 | * given file and hd flag. 34 | * @param file The file the metadata is for. 35 | * @param hd If the given file is a HD file. 36 | */ 37 | protected ImageMeta(Path file, boolean hd){ 38 | this(file, hd, -1); 39 | } 40 | 41 | /** 42 | * Constructs a new ImageMeta with the 43 | * given file, hd flag and sequence number. 44 | * @param file The file the metadata is for. 45 | * @param hd If the given file is a HD file. 46 | * @param seq The animation sequence number. 47 | */ 48 | protected ImageMeta(Path file, boolean hd, int seq){ 49 | this.file = file; 50 | this.hd = hd; 51 | this.sequenceNum = seq; 52 | } 53 | 54 | /** 55 | * Gets the file this ImageMeta is for. 56 | * @return The file for this ImageMeta. 57 | */ 58 | public Path getFile(){ 59 | return file; 60 | } 61 | 62 | /** 63 | * Checks if this is a HD file. 64 | * @return True if this file is a HD file. 65 | */ 66 | public boolean isHD(){ 67 | return hd; 68 | } 69 | 70 | /** 71 | * Checks if this is a SD file. 72 | * @return True if this file is a SD file. 73 | */ 74 | public boolean isSD(){ 75 | return !hd; 76 | } 77 | 78 | /** 79 | * Checks if this is an animated file. 80 | * @return True if this file is an animated file. 81 | */ 82 | public boolean isAnimated(){ 83 | return sequenceNum != -1; 84 | } 85 | 86 | /** 87 | * Checks if this is an empty file. 88 | * @return True if this file is an empty file. 89 | */ 90 | public boolean isEmpty(){ 91 | return isEmptyImage(file); 92 | } 93 | 94 | /** 95 | * Gets the animation sequence number for this file. 96 | * @return The animation sequence number. 97 | */ 98 | public int getSequenceNumber(){ 99 | return sequenceNum; 100 | } 101 | 102 | /** 103 | * Checks if an image is empty. 104 | * An Image is considered empty if 105 | * it's dimensions are 1 by 1 or if 106 | * it does not exist. 107 | * @param img The image file to check 108 | * @return Whether or not the image is empty 109 | */ 110 | private static boolean isEmptyImage(Path img){ 111 | if(Files.exists(img)){ 112 | String name = img.getFileName().toString(); 113 | if(name.contains(".")){ 114 | Iterator readers = ImageIO.getImageReadersBySuffix(name.substring(name.lastIndexOf('.') + 1)); 115 | while(readers.hasNext()){ 116 | ImageReader reader = readers.next(); 117 | try(ImageInputStream in = ImageIO.createImageInputStream(Files.newInputStream(img))){ 118 | reader.setInput(in); 119 | boolean empty = reader.getWidth(0) == 1 && reader.getHeight(0) == 1; 120 | reader.dispose(); 121 | return empty; 122 | }catch(IOException e){ 123 | return false; 124 | } 125 | } 126 | return false; 127 | } 128 | } 129 | return true; 130 | } 131 | } 132 | -------------------------------------------------------------------------------- /osuSkinChecker/src/dev/roanh/osuskinchecker/ImageModel.java: -------------------------------------------------------------------------------- 1 | package dev.roanh.osuskinchecker; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * This class determines how a list of 7 | * {@link ImageFilter} objects are displayed. 8 | * @author Roan 9 | * @see Model 10 | */ 11 | public class ImageModel extends Model{ 12 | /** 13 | * Serial ID 14 | */ 15 | private static final long serialVersionUID = -4101484259624457322L; 16 | 17 | /** 18 | * Constructs a new ImageModel with 19 | * the given list of filters to display. 20 | * @param list A list with filters to display 21 | * the {@link Filter} objects should 22 | * be of the {@link ImageFilter} type. 23 | * @see Filter 24 | * @see Model 25 | * @see ImageFilter 26 | */ 27 | public ImageModel(List> list){ 28 | super(list); 29 | } 30 | 31 | @Override 32 | public int getColumnCount(){ 33 | return 4; 34 | } 35 | 36 | @Override 37 | public String getColumnName(int col){ 38 | switch(col){ 39 | case 0: 40 | return "Filename"; 41 | case 1: 42 | return "SD version present"; 43 | case 2: 44 | return "HD version present"; 45 | case 3: 46 | return "Animated"; 47 | } 48 | return null; 49 | } 50 | 51 | @Override 52 | public Object getValueAt(int row, int col){ 53 | ImageFilter filter = (ImageFilter)view.get(row); 54 | switch(col){ 55 | case 0: 56 | return filter; 57 | case 1: 58 | return filter.isOverriden() ? "Ignored" : (filter.hasSD() ? "Yes" : "No"); 59 | case 2: 60 | if(filter.single){ 61 | return "N/A"; 62 | }else if((filter.allEmptySD() && SkinChecker.ignoreEmpty) || filter.isOverriden()){ 63 | return "Ignored"; 64 | }else{ 65 | return filter.hasHD() ? "Yes" : "No"; 66 | } 67 | case 3: 68 | if(filter.animatedDash || filter.animatedNoDash){ 69 | return filter.isAnimated() ? ("Yes: " + filter.getFrameString()) : "No"; 70 | }else{ 71 | return "N/A"; 72 | } 73 | } 74 | return null; 75 | } 76 | } -------------------------------------------------------------------------------- /osuSkinChecker/src/dev/roanh/osuskinchecker/Model.java: -------------------------------------------------------------------------------- 1 | package dev.roanh.osuskinchecker; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import javax.swing.table.DefaultTableModel; 7 | 8 | import dev.roanh.osuskinchecker.ini.Version; 9 | 10 | /** 11 | * Abstract base class for table models 12 | * that predefines filtering subroutines 13 | * and handles some basic table properties 14 | * @author Roan 15 | * @see SoundModel 16 | * @see ImageModel 17 | */ 18 | public abstract class Model extends DefaultTableModel{ 19 | /** 20 | * Serial ID 21 | */ 22 | private static final long serialVersionUID = 5912216650613737949L; 23 | /** 24 | * The table data for this table model. 25 | */ 26 | private List> data; 27 | /** 28 | * The filtered table data for this table model. 29 | */ 30 | protected List> view = new ArrayList>(); 31 | 32 | /** 33 | * Creates a new Model with the given 34 | * list of information objects as its 35 | * table data. 36 | * @param list The table data for this 37 | * table model. 38 | */ 39 | public Model(List> list){ 40 | data = list; 41 | } 42 | 43 | /** 44 | * Updates the view for this model. 45 | * This includes filtering the table 46 | * data and repainting the table. 47 | * @param version The skin.ini 48 | * version used in this skin. 49 | */ 50 | protected void updateView(Version version){ 51 | view.clear(); 52 | for(Filter i : data){ 53 | if(i.show(version)){ 54 | view.add(i); 55 | } 56 | } 57 | this.fireTableDataChanged(); 58 | } 59 | 60 | /** 61 | * Gets the table entry at the given index (row). 62 | * @param index The row to get. 63 | * @return The filter at the given table row. 64 | */ 65 | public Filter get(int index){ 66 | return view.get(index); 67 | } 68 | 69 | @Override 70 | public int getRowCount(){ 71 | return view == null ? 0 : view.size(); 72 | } 73 | 74 | @Override 75 | public boolean isCellEditable(int row, int col){ 76 | return false; 77 | } 78 | } -------------------------------------------------------------------------------- /osuSkinChecker/src/dev/roanh/osuskinchecker/SkinChecker.java: -------------------------------------------------------------------------------- 1 | package dev.roanh.osuskinchecker; 2 | 3 | import java.awt.BorderLayout; 4 | import java.awt.Desktop; 5 | import java.awt.Font; 6 | import java.awt.GridLayout; 7 | import java.awt.Image; 8 | import java.awt.Toolkit; 9 | import java.awt.datatransfer.DataFlavor; 10 | import java.awt.datatransfer.UnsupportedFlavorException; 11 | import java.awt.dnd.DnDConstants; 12 | import java.awt.dnd.DropTarget; 13 | import java.awt.dnd.DropTargetDragEvent; 14 | import java.awt.dnd.DropTargetDropEvent; 15 | import java.awt.dnd.DropTargetEvent; 16 | import java.awt.dnd.DropTargetListener; 17 | import java.awt.event.ActionListener; 18 | import java.io.BufferedReader; 19 | import java.io.File; 20 | import java.io.IOException; 21 | import java.io.InputStreamReader; 22 | import java.io.OutputStreamWriter; 23 | import java.io.PrintWriter; 24 | import java.nio.charset.StandardCharsets; 25 | import java.nio.file.DirectoryStream; 26 | import java.nio.file.Files; 27 | import java.nio.file.Path; 28 | import java.nio.file.Paths; 29 | import java.nio.file.StandardCopyOption; 30 | import java.nio.file.StandardOpenOption; 31 | import java.time.Clock; 32 | import java.time.Instant; 33 | import java.time.ZoneId; 34 | import java.time.format.DateTimeFormatter; 35 | import java.util.ArrayDeque; 36 | import java.util.ArrayList; 37 | import java.util.Deque; 38 | import java.util.HashMap; 39 | import java.util.LinkedHashMap; 40 | import java.util.List; 41 | import java.util.Map; 42 | import java.util.Map.Entry; 43 | import java.util.stream.Collectors; 44 | 45 | import javax.imageio.ImageIO; 46 | import javax.swing.BorderFactory; 47 | import javax.swing.BoxLayout; 48 | import javax.swing.DefaultListModel; 49 | import javax.swing.JButton; 50 | import javax.swing.JCheckBox; 51 | import javax.swing.JFrame; 52 | import javax.swing.JLabel; 53 | import javax.swing.JList; 54 | import javax.swing.JPanel; 55 | import javax.swing.JScrollPane; 56 | import javax.swing.JSeparator; 57 | import javax.swing.JTabbedPane; 58 | import javax.swing.JTable; 59 | import javax.swing.RowFilter; 60 | import javax.swing.SwingConstants; 61 | import javax.swing.table.TableRowSorter; 62 | 63 | import dev.roanh.osuskinchecker.ini.SkinIni; 64 | import dev.roanh.osuskinchecker.ini.SkinIniTab; 65 | import dev.roanh.osuskinchecker.ini.SplitLayout; 66 | import dev.roanh.osuskinchecker.ini.Version; 67 | import dev.roanh.util.ClickableLink; 68 | import dev.roanh.util.Dialog; 69 | import dev.roanh.util.ExclamationMarkPath; 70 | import dev.roanh.util.FileSelector; 71 | import dev.roanh.util.FileSelector.FileExtension; 72 | import dev.roanh.util.Util; 73 | 74 | /** 75 | * This program can be used to see what 76 | * elements a skin skins and to see what 77 | * elements are still missing from a skin. 78 | * It can also be used to find missing HD 79 | * images or vice versa. 80 | * @author Roan 81 | */ 82 | public class SkinChecker{ 83 | /** 84 | * File extension that matches .txt files. 85 | */ 86 | private static final FileExtension txtExtension = FileSelector.registerFileExtension("Text file", "txt"); 87 | /** 88 | * Layered map with the information 89 | * about all the images. 90 | */ 91 | private static final Map>>> imagesMap = new HashMap>>>(); 92 | /** 93 | * Layered map with the information 94 | * about all the sound files. 95 | */ 96 | private static final Map>>> soundsMap = new HashMap>>>(); 97 | /** 98 | * List of all loaded filters. 99 | */ 100 | private static final List> filters = new ArrayList>(); 101 | /** 102 | * Folder of the skin currently being checked. 103 | */ 104 | private static Path skinFolder; 105 | /** 106 | * Whether or not to check for missing SD images. 107 | */ 108 | protected static boolean checkSD = true; 109 | /** 110 | * Whether or not to check for missing HD images. 111 | */ 112 | protected static boolean checkHD = false; 113 | /** 114 | * Whether or not to check for missing legacy images. 115 | */ 116 | protected static boolean checkLegacy = false; 117 | /** 118 | * Whether or not to show all files regardless of whether 119 | * they are present or not. 120 | */ 121 | protected static boolean showAll = false; 122 | /** 123 | * Whether or not to ignore missing HD files of 124 | * images that have an empty SD image. 125 | */ 126 | protected static boolean ignoreEmpty = true; 127 | /** 128 | * List of all the tables model that is used to 129 | * update the tables when the filter changes. 130 | */ 131 | private static List listeners = new ArrayList(); 132 | /** 133 | * Main frame. 134 | */ 135 | private static final JFrame frame = new JFrame("Skin Checker for osu!"); 136 | /** 137 | * The JLabel that displays the name of the skin 138 | * currently being checked. 139 | */ 140 | private static JLabel skin; 141 | /** 142 | * The JTabbedPane that lists all the images. 143 | */ 144 | private static JTabbedPane imageTabs; 145 | /** 146 | * The JTabbedPane that lists all the sound files. 147 | */ 148 | private static JTabbedPane soundTabs; 149 | /** 150 | * Model for the list that displays files 151 | * that should not be in the skin. 152 | */ 153 | private static DefaultListModel foreignFiles = new DefaultListModel(); 154 | /** 155 | * Whether or not to ignore a missing 156 | * SD image when a HD version exists. 157 | */ 158 | protected static boolean ignoreSD = false; 159 | /** 160 | * The tab showing all the skin.ini options and editors. 161 | */ 162 | private static SkinIniTab iniTab; 163 | /** 164 | * The skin.ini settings for the skin currently loaded. 165 | */ 166 | protected static SkinIni skinIni = null; 167 | /** 168 | * Version set in the currently loaded skin.ini. 169 | */ 170 | protected static Version version = null; 171 | 172 | /** 173 | * Main method 174 | * @param args No valid command line options 175 | */ 176 | public static void main(String[] args){ 177 | ExclamationMarkPath.check(args); 178 | Util.installUI(); 179 | 180 | try{ 181 | readDatabase(); 182 | for(Filter filter : filters){ 183 | filter.link(filters); 184 | } 185 | }catch(IOException e){ 186 | e.printStackTrace(); 187 | } 188 | 189 | imageTabs = new JTabbedPane(); 190 | mapToTabs(imageTabs, imagesMap); 191 | imageTabs.insertTab("All", null, buildAllTab(imagesMap), null, 0); 192 | imageTabs.setSelectedIndex(0); 193 | 194 | soundTabs = new JTabbedPane(); 195 | mapToTabs(soundTabs, soundsMap); 196 | soundTabs.insertTab("All", null, new JScrollPane(getTableData(soundsMap.values().stream().flatMap(m->m.values().stream()).flatMap(List::stream).collect(Collectors.toList()))), null, 0); 197 | soundTabs.setSelectedIndex(0); 198 | 199 | skin = new JLabel("no skin selected"); 200 | buildGUI(); 201 | } 202 | 203 | /** 204 | * Builds the GUI 205 | */ 206 | @SuppressWarnings("unused") 207 | public static void buildGUI(){ 208 | try{ 209 | Image icon = ImageIO.read(ClassLoader.getSystemResource("skinchecker.png")); 210 | frame.setIconImage(icon); 211 | Dialog.setDialogIcon(icon); 212 | }catch(IOException e2){ 213 | } 214 | Dialog.setDialogTitle("Skin Checker"); 215 | Dialog.setParentFrame(frame); 216 | JPanel content = new JPanel(new BorderLayout()); 217 | JTabbedPane categories = new JTabbedPane(); 218 | 219 | JPanel foreign = new JPanel(new BorderLayout()); 220 | foreign.add(new JScrollPane(new JList(foreignFiles)), BorderLayout.CENTER); 221 | foreign.add(new JLabel("This is a list of files that are in the skin folder but serve no purpose."), BorderLayout.PAGE_START); 222 | 223 | JPanel ini = new JPanel(new BorderLayout()); 224 | ini.add(new JLabel("Settings with an additional leading checkbox require you to check this check box if you want to use the setting. Otherwise the setting is left as 'undefined'."), BorderLayout.PAGE_START); 225 | ini.add(iniTab = new SkinIniTab(), BorderLayout.CENTER); 226 | JPanel saveButtons = new JPanel(new GridLayout(1, 2)); 227 | JButton save = new JButton("Save skin.ini"); 228 | ActionListener defaultSave = (e)->{ 229 | if(skinIni != null){ 230 | try{ 231 | skinIni.writeIni(skinIni.ini); 232 | }catch(IOException e1){ 233 | Dialog.showErrorDialog("An error occurred while writing the new skin.ini!"); 234 | } 235 | Dialog.showMessageDialog("Succesfully saved the skin.ini file."); 236 | } 237 | }; 238 | save.addActionListener(defaultSave); 239 | JButton saveBack = new JButton("Save skin.ini and backup the current version"); 240 | saveBack.addActionListener((e)->{ 241 | if(skinIni != null){ 242 | try{ 243 | Files.move(skinIni.ini, skinIni.ini.getParent().resolve("backup-" + getDateTime() + ".ini"), StandardCopyOption.REPLACE_EXISTING); 244 | }catch(IOException e2){ 245 | Dialog.showErrorDialog("Failed to create a backup!"); 246 | return; 247 | } 248 | defaultSave.actionPerformed(e); 249 | } 250 | }); 251 | saveButtons.add(save); 252 | saveButtons.add(saveBack); 253 | ini.add(saveButtons, BorderLayout.PAGE_END); 254 | 255 | categories.add("Images", imageTabs); 256 | categories.add("Sounds", soundTabs); 257 | categories.add("Skin configuration", ini); 258 | categories.add("Foreign Files", foreign); 259 | 260 | categories.setBorder(BorderFactory.createTitledBorder("Files")); 261 | content.add(categories); 262 | 263 | JPanel controls = new JPanel(new GridLayout(6, 1, 0, 0)); 264 | JCheckBox chd = new JCheckBox("Report images that are missing a HD version.", false); 265 | JCheckBox csd = new JCheckBox("Report images that are missing a SD version.", true); 266 | JCheckBox call = new JCheckBox("Report all files (show files that aren't missing in the skin).", false); 267 | JCheckBox clegacy = new JCheckBox("Report missing legacy files.", false); 268 | JCheckBox cempty = new JCheckBox("Ignore a missing HD image if an 'empty' SD image exists.", true); 269 | JCheckBox cisd = new JCheckBox("Ignore a missing SD image if a HD image exists.", false); 270 | controls.add(chd); 271 | controls.add(csd); 272 | controls.add(call); 273 | controls.add(clegacy); 274 | controls.add(cempty); 275 | controls.add(cisd); 276 | chd.addActionListener((e)->{ 277 | checkHD = chd.isSelected(); 278 | updateView(); 279 | }); 280 | csd.addActionListener((e)->{ 281 | checkSD = csd.isSelected(); 282 | updateView(); 283 | }); 284 | call.addActionListener((e)->{ 285 | showAll = call.isSelected(); 286 | updateView(); 287 | }); 288 | clegacy.addActionListener((e)->{ 289 | checkLegacy = clegacy.isSelected(); 290 | updateView(); 291 | }); 292 | cempty.addActionListener((e)->{ 293 | ignoreEmpty = cempty.isSelected(); 294 | updateView(); 295 | }); 296 | cisd.addActionListener((e)->{ 297 | ignoreSD = cisd.isSelected(); 298 | updateView(); 299 | }); 300 | 301 | JPanel buttons = new JPanel(new GridLayout(4, 1)); 302 | JButton openSkin = new JButton("Open skin"); 303 | JButton openFolder = new JButton("Open skin folder for the selected skin"); 304 | JButton recheck = new JButton("Recheck skin"); 305 | JButton print = new JButton("Write list of missing files to file"); 306 | buttons.add(openSkin); 307 | buttons.add(openFolder); 308 | buttons.add(recheck); 309 | buttons.add(print); 310 | openSkin.addActionListener((e)->{ 311 | try{ 312 | checkSkin(null); 313 | }catch(IOException e1){ 314 | e1.printStackTrace(); 315 | } 316 | }); 317 | openFolder.addActionListener((e)->{ 318 | if(skinFolder != null){ 319 | try{ 320 | Desktop.getDesktop().open(skinFolder.toFile()); 321 | }catch(IOException e1){ 322 | e1.printStackTrace(); 323 | } 324 | }else{ 325 | Dialog.showErrorDialog("No skin currently selected!"); 326 | } 327 | }); 328 | recheck.addActionListener((e)->{ 329 | if(skinFolder != null){ 330 | try{ 331 | checkSkin(skinFolder); 332 | }catch(IOException e1){ 333 | e1.printStackTrace(); 334 | } 335 | }else{ 336 | Dialog.showErrorDialog("No skin currently selected!"); 337 | } 338 | }); 339 | print.addActionListener((e)->{ 340 | if(skinFolder != null){ 341 | Path dest = Dialog.showFileSaveDialog(txtExtension, "foreign files"); 342 | if(dest == null){ 343 | return; 344 | } 345 | 346 | try(PrintWriter writer = new PrintWriter(new OutputStreamWriter(Files.newOutputStream(dest), StandardCharsets.UTF_8))){ 347 | writer.println("========== Images =========="); 348 | for(Entry>>> m : imagesMap.entrySet()){ 349 | for(Entry>> ml : m.getValue().entrySet()){ 350 | for(Filter mli : ml.getValue()){ 351 | if(mli.show(version)){ 352 | writer.println('[' + m.getKey() + "|" + ml.getKey() + "]: " + mli.toString()); 353 | } 354 | } 355 | } 356 | } 357 | writer.println(); 358 | writer.println("========== Sounds =========="); 359 | for(Entry>>> m : soundsMap.entrySet()){ 360 | for(Entry>> ml : m.getValue().entrySet()){ 361 | for(Filter mli : ml.getValue()){ 362 | if(mli.show(version)){ 363 | writer.println('[' + m.getKey() + "|" + ml.getKey() + "]: " + mli.toString()); 364 | } 365 | } 366 | } 367 | } 368 | writer.flush(); 369 | Dialog.showMessageDialog("File list succesfully exported"); 370 | }catch(IOException e1){ 371 | Dialog.showErrorDialog("An error occured: " + e1.getMessage()); 372 | } 373 | }else{ 374 | Dialog.showErrorDialog("No skin currently selected!"); 375 | } 376 | }); 377 | 378 | JPanel flow = new JPanel(); 379 | flow.setBorder(BorderFactory.createTitledBorder("Controls")); 380 | flow.add(buttons); 381 | 382 | JPanel side = new JPanel(new BorderLayout()); 383 | skin.setBorder(BorderFactory.createTitledBorder("Skin")); 384 | skin.setFont(new Font("Dialog", Font.BOLD, 12)); 385 | skin.setHorizontalAlignment(SwingConstants.CENTER); 386 | side.add(flow, BorderLayout.CENTER); 387 | side.add(skin, BorderLayout.PAGE_END); 388 | 389 | JPanel controlPanel = new JPanel(new BorderLayout()); 390 | controlPanel.add(controls, BorderLayout.CENTER); 391 | controlPanel.add(side, BorderLayout.LINE_END); 392 | controls.setBorder(BorderFactory.createTitledBorder("Filter")); 393 | content.add(controlPanel, BorderLayout.PAGE_START); 394 | 395 | JPanel links = new JPanel(new GridLayout(3, 1)); 396 | links.setBorder(BorderFactory.createTitledBorder("Links")); 397 | JLabel sheet = new JLabel("Spreadsheet with information on each file: https://docs.google.com/spreadsheets/d/1bhnV-CQRMy3Z0npQd9XSoTdkYxz0ew5e648S00qkJZ8"); 398 | JLabel wiki = new JLabel("osu! wiki page on the skin.ini: https://osu.ppy.sh/help/wiki/Skinning/skin.ini"); 399 | JLabel tutorial = new JLabel("Skinning tutorial: https://skinship.xyz/tutorial/introduction"); 400 | links.add(sheet); 401 | links.add(wiki); 402 | links.add(tutorial); 403 | 404 | JPanel info = new JPanel(new GridLayout(2, 1)); 405 | info.add(Util.getVersionLabel("osuSkinChecker", "v3.4"));//XXX the version number - don't forget build.gradle 406 | JPanel linksProgram = new JPanel(new GridLayout(1, 2, -2, 0)); 407 | JLabel forum = new JLabel("Forums -", SwingConstants.RIGHT); 408 | JLabel git = new JLabel("- GitHub", SwingConstants.LEFT); 409 | //JLabel 410 | linksProgram.add(forum); 411 | linksProgram.add(git); 412 | 413 | wiki.addMouseListener(new ClickableLink("https://osu.ppy.sh/help/wiki/Skinning/skin.ini")); 414 | sheet.addMouseListener(new ClickableLink("https://docs.google.com/spreadsheets/d/1bhnV-CQRMy3Z0npQd9XSoTdkYxz0ew5e648S00qkJZ8/edit")); 415 | forum.addMouseListener(new ClickableLink("https://osu.ppy.sh/community/forums/topics/617168")); 416 | git.addMouseListener(new ClickableLink("https://github.com/RoanH/osuSkinChecker")); 417 | tutorial.addMouseListener(new ClickableLink("https://skinship.xyz/tutorial/introduction")); 418 | 419 | JPanel right = new JPanel(new GridLayout(2, 1)); 420 | right.setBorder(BorderFactory.createTitledBorder("Information")); 421 | right.add(linksProgram); 422 | right.add(info); 423 | 424 | JPanel lower = new JPanel(new SplitLayout()); 425 | lower.add(links); 426 | lower.add(right); 427 | content.add(lower, BorderLayout.PAGE_END); 428 | 429 | frame.add(content); 430 | frame.setSize(Toolkit.getDefaultToolkit().getScreenSize().width / 2, Toolkit.getDefaultToolkit().getScreenSize().height / 2); 431 | frame.setLocationRelativeTo(null); 432 | frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 433 | frame.setVisible(true); 434 | 435 | new DropTarget(frame, new DropTargetListener(){ 436 | 437 | @Override 438 | public void dragEnter(DropTargetDragEvent dtde){ 439 | } 440 | 441 | @Override 442 | public void dragOver(DropTargetDragEvent dtde){ 443 | } 444 | 445 | @Override 446 | public void dropActionChanged(DropTargetDragEvent dtde){ 447 | } 448 | 449 | @Override 450 | public void dragExit(DropTargetEvent dte){ 451 | } 452 | 453 | @Override 454 | public void drop(DropTargetDropEvent dtde){ 455 | if(dtde.isDataFlavorSupported(DataFlavor.javaFileListFlavor)){ 456 | try{ 457 | dtde.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE); 458 | @SuppressWarnings("unchecked") 459 | List files = (List)dtde.getTransferable().getTransferData(DataFlavor.javaFileListFlavor); 460 | if(files.size() > 0 && files.get(0).isDirectory()){ 461 | checkSkin(files.get(0).toPath()); 462 | } 463 | }catch(UnsupportedFlavorException | IOException e){ 464 | //Pity, but not important 465 | } 466 | } 467 | } 468 | }); 469 | } 470 | 471 | /** 472 | * Updates the information displayed in the tabs 473 | * based on the new settings. 474 | */ 475 | private static void updateView(){ 476 | if(version != null){ 477 | for(Model m : listeners){ 478 | m.updateView(version); 479 | } 480 | } 481 | } 482 | 483 | /** 484 | * Check the given skin folder and 485 | * displays the results in the GUI 486 | * @param folder The skin folder to check 487 | * @throws IOException When an IOException occurs 488 | */ 489 | public static void checkSkin(Path folder) throws IOException{ 490 | if(folder == null){ 491 | Path selected = Dialog.showFolderOpenDialog(); 492 | if(selected == null || Files.notExists(selected)){ 493 | Dialog.showErrorDialog("No skin selected!"); 494 | return; 495 | }else{ 496 | folder = selected; 497 | } 498 | } 499 | 500 | Path iniFile = folder.resolve("skin.ini"); 501 | 502 | if(Files.notExists(iniFile)){ 503 | int option = Dialog.showDialog("This folder doesn't have a skin.ini file.\nWithout this file this skin won't even be recognized as a skin!", new String[]{"OK", "Add empty skin.ini"}); 504 | if(option == 1){ 505 | Files.createFile(iniFile); 506 | }else{ 507 | return; 508 | } 509 | } 510 | 511 | skinFolder = folder; 512 | skin.setText(skinFolder.getFileName().toString()); 513 | 514 | executeChecks(skinFolder, iniFile); 515 | } 516 | 517 | /** 518 | * Checks the skin denoted by the given folder and ini file. 519 | * @param skinFolder The skin folder. 520 | * @param ini The skin.ini file. 521 | */ 522 | private static void executeChecks(Path skinFolder, Path ini){ 523 | skinIni = new SkinIni(); 524 | try{ 525 | skinIni.readIni(ini); 526 | }catch(Throwable e){ 527 | try{ 528 | Path err = Paths.get("error-" + getDateTime() + ".txt"); 529 | List errl = new ArrayList(30); 530 | errl.add(e.toString()); 531 | for(StackTraceElement elem : e.getStackTrace()){ 532 | errl.add(" " + elem.toString()); 533 | } 534 | Files.write(err, errl, StandardOpenOption.CREATE_NEW); 535 | Dialog.showErrorDialog("An error occurred while reading the skin.ini\nThe error was saved to: " + err.toAbsolutePath().toString() + "\n" + e.getMessage()); 536 | }catch(Throwable e1){ 537 | Dialog.showErrorDialog("An internal error occurred!"); 538 | } 539 | return; 540 | } 541 | iniTab.init(skinIni); 542 | version = (Version)skinIni.find("Version", -1).getValue(); 543 | 544 | for(Filter filter : filters){ 545 | filter.reset(skinIni); 546 | } 547 | 548 | Deque path = new ArrayDeque(); 549 | List foreign = new ArrayList(); 550 | try{ 551 | checkAllFiles(skinFolder, path, foreign); 552 | }catch(IOException e){ 553 | Dialog.showErrorDialog("An internal error occurred parsing the given skin!\nCause: " + e.getMessage()); 554 | return; 555 | } 556 | 557 | for(Model m : listeners){ 558 | m.updateView(version); 559 | } 560 | 561 | foreignFiles.clear(); 562 | int offset = 1 + skinFolder.toString().length(); 563 | for(Path file : foreign){ 564 | if(!file.equals(ini)){ 565 | foreignFiles.addElement(file.toString().substring(offset)); 566 | } 567 | } 568 | for(Filter filter : filters){ 569 | if(filter instanceof ImageFilter){ 570 | if(((ImageFilter)filter).isLegacy(version)){ 571 | for(Path file : filter.getMatchedFiles()){ 572 | foreignFiles.addElement(file.toString().substring(offset)); 573 | } 574 | } 575 | } 576 | } 577 | } 578 | 579 | /** 580 | * Checks all the files in the given directory again the filters. 581 | * @param dir The directory the parse. 582 | * @param path The path stack. 583 | * @param foreign A list of files that did not match any filter. 584 | * @throws IOException When an IO exception occurs. 585 | */ 586 | private static void checkAllFiles(Path dir, Deque path, List foreign) throws IOException{ 587 | try(DirectoryStream files = Files.newDirectoryStream(dir)){ 588 | for(Path f : files){ 589 | if(Files.isDirectory(f)){ 590 | path.push(f.getFileName().toString()); 591 | checkAllFiles(f, path, foreign); 592 | path.pop(); 593 | }else if(Files.isRegularFile(f)){ 594 | //if none then foreign for sure 595 | //no short circuiting because numbers can count for two filters, score and combo 596 | boolean found = false; 597 | for(Filter filter : filters){ 598 | found |= filter.check(f, path); 599 | } 600 | if(!found){ 601 | foreign.add(f); 602 | } 603 | } 604 | } 605 | } 606 | } 607 | 608 | /** 609 | * Converts the given map of information 610 | * objects to a set of tabbedpanes for 611 | * the GUI 612 | * @param tabs The tabbed pane to map the data to 613 | * @param map The data to map to the tabs 614 | */ 615 | private static void mapToTabs(JTabbedPane tabs, Map>>> map){ 616 | tabs.removeAll(); 617 | for(Entry>>> entry : map.entrySet()){ 618 | JTabbedPane inner = new JTabbedPane(); 619 | if(entry.getKey().equals("Mania")){ 620 | //The mania tab is special and splits the sub items with an extra layer of tabs 621 | Map keys = new HashMap(); 622 | for(int i = 1; i <= 18; i++){ 623 | if(i < 10 || i % 2 == 0){ 624 | JTabbedPane pane = new JTabbedPane(); 625 | inner.addTab(i + "K", pane); 626 | keys.put(i + "K", pane); 627 | } 628 | } 629 | 630 | for(Entry>> e : entry.getValue().entrySet()){ 631 | String[] args = e.getKey().split(" - "); 632 | keys.get(args[0]).add(args[1], new JScrollPane(getTableData(e.getValue()))); 633 | } 634 | }else{ 635 | for(Entry>> e : entry.getValue().entrySet()){ 636 | inner.add(e.getKey(), new JScrollPane(getTableData(e.getValue()))); 637 | } 638 | } 639 | tabs.add(entry.getKey(), inner); 640 | } 641 | } 642 | 643 | /** 644 | * Builds the images tab 'All' tab with gamemode filters. 645 | * @param map The image filter data. 646 | * @return The constructed 'All' tab. 647 | */ 648 | private static JPanel buildAllTab(Map>>> map){ 649 | JPanel content = new JPanel(new BorderLayout()); 650 | 651 | JPanel buttons = new JPanel(); 652 | buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS)); 653 | JCheckBox standard = new JCheckBox("Standard", true); 654 | JCheckBox ctb = new JCheckBox("Catch", true); 655 | JCheckBox mania = new JCheckBox("Mania", true); 656 | JCheckBox taiko = new JCheckBox("Taiko", true); 657 | 658 | buttons.add(new JLabel(" Included gamemodes ")); 659 | buttons.add(new JSeparator(JSeparator.VERTICAL)); 660 | buttons.add(standard); 661 | buttons.add(new JSeparator(JSeparator.VERTICAL)); 662 | buttons.add(ctb); 663 | buttons.add(new JSeparator(JSeparator.VERTICAL)); 664 | buttons.add(mania); 665 | buttons.add(new JSeparator(JSeparator.VERTICAL)); 666 | buttons.add(taiko); 667 | buttons.add(new JPanel(new BorderLayout())); 668 | 669 | JTable table = getTableData(map.values().stream().flatMap(m->m.values().stream()).flatMap(List::stream).collect(Collectors.toList())); 670 | Model model = (Model)table.getModel(); 671 | TableRowSorter sorter = new TableRowSorter(model); 672 | sorter.setRowFilter(new RowFilter(){ 673 | @Override 674 | public boolean include(Entry entry){ 675 | Filter filter = model.get(entry.getIdentifier()); 676 | 677 | if(!standard.isSelected() && imagesMap.get("osu!").values().stream().flatMap(List::stream).anyMatch(filter::equals)){ 678 | return false; 679 | } 680 | 681 | if(!ctb.isSelected() && imagesMap.get("Catch").values().stream().flatMap(List::stream).anyMatch(filter::equals)){ 682 | return false; 683 | } 684 | 685 | if(!taiko.isSelected() && imagesMap.get("Taiko").values().stream().flatMap(List::stream).anyMatch(filter::equals)){ 686 | return false; 687 | } 688 | 689 | if(!mania.isSelected() && imagesMap.get("Mania").values().stream().flatMap(List::stream).anyMatch(filter::equals)){ 690 | return false; 691 | } 692 | 693 | return true; 694 | } 695 | }); 696 | table.setRowSorter(sorter); 697 | 698 | standard.addActionListener(e->model.fireTableDataChanged()); 699 | ctb.addActionListener(e->model.fireTableDataChanged()); 700 | taiko.addActionListener(e->model.fireTableDataChanged()); 701 | mania.addActionListener(e->model.fireTableDataChanged()); 702 | 703 | content.add(buttons, BorderLayout.PAGE_START); 704 | content.add(new JScrollPane(table), BorderLayout.CENTER); 705 | 706 | return content; 707 | } 708 | 709 | /** 710 | * Creates a JTable with the correct model 711 | * to display the given list of information 712 | * objects and registers listeners. 713 | * @param info The table data 714 | * @return The newly created JTable 715 | */ 716 | private static JTable getTableData(final List> info){ 717 | JTable table = new JTable(); 718 | Model model = info.get(0) instanceof ImageFilter ? new ImageModel(info) : new SoundModel(info); 719 | listeners.add(model); 720 | table.setModel(model); 721 | return table; 722 | } 723 | 724 | /** 725 | * Reads all the data from the data files to layered maps 726 | * @throws IOException When an IO Exception occurs 727 | */ 728 | private static void readDatabase() throws IOException{ 729 | imagesMap.put("Menu", readDataFile("menu.txt", false)); 730 | imagesMap.put("osu!", readDataFile("osu.txt", false)); 731 | imagesMap.put("Taiko", readDataFile("taiko.txt", false)); 732 | imagesMap.put("Mania", readDataFile("mania.txt", false)); 733 | imagesMap.put("Catch", readDataFile("catch.txt", false)); 734 | imagesMap.put("Miscellaneous", readDataFile("misc.txt", false)); 735 | imagesMap.put("Gameplay", readDataFile("gameplay.txt", false)); 736 | soundsMap.put("Gameplay", readDataFile("gameplay-sounds.txt", true)); 737 | soundsMap.put("Menu", readDataFile("menu-sounds.txt", true)); 738 | soundsMap.put("osu!", readDataFile("osu-sounds.txt", true)); 739 | soundsMap.put("Taiko", readDataFile("taiko-sounds.txt", true)); 740 | } 741 | 742 | /** 743 | * Read the internal database to create a layered 744 | * mapping of all the files in a given database file 745 | * @param name The name of the database file to read 746 | * @param isSound Whether or not the given database file 747 | * contains sound entries. (this is used to distinguish 748 | * between image and sound files) 749 | * @return A layered map of all the file descriptors 750 | * @throws IOException When an IOException occurs 751 | */ 752 | private static Map>> readDataFile(String name, boolean isSound) throws IOException{ 753 | Map>> data = new LinkedHashMap>>(); 754 | try(BufferedReader reader = new BufferedReader(new InputStreamReader(ClassLoader.getSystemResourceAsStream(name), StandardCharsets.UTF_8))){ 755 | List> writing = null; 756 | 757 | String line; 758 | while((line = reader.readLine()) != null){ 759 | if(line.trim().isEmpty()){ 760 | continue; 761 | }else if(line.startsWith("===>")){ 762 | if(writing != null){ 763 | filters.addAll(writing); 764 | } 765 | writing = new ArrayList>(); 766 | data.put(line.substring(4).trim(), writing); 767 | }else{ 768 | String[] args = line.split(" +"); 769 | writing.add(isSound ? new SoundFilter(args) : new ImageFilter(args)); 770 | } 771 | } 772 | 773 | filters.addAll(writing); 774 | return data; 775 | } 776 | } 777 | 778 | /** 779 | * Gets the current time and date as a string 780 | * in the yyyy-MM-dd_HH.mm.ss format 781 | * @return The current time and date 782 | */ 783 | private static final String getDateTime(){ 784 | return DateTimeFormatter.ofPattern("yyyy-MM-dd_HH.mm.ss").withZone(ZoneId.systemDefault()).format(Instant.now(Clock.systemDefaultZone())); 785 | } 786 | } 787 | -------------------------------------------------------------------------------- /osuSkinChecker/src/dev/roanh/osuskinchecker/SoundFilter.java: -------------------------------------------------------------------------------- 1 | package dev.roanh.osuskinchecker; 2 | 3 | import java.nio.file.Path; 4 | import java.util.Deque; 5 | import java.util.List; 6 | import java.util.regex.Pattern; 7 | 8 | import dev.roanh.osuskinchecker.ini.Version; 9 | 10 | /** 11 | * SoundFilter objects are used to describe a 12 | * sound file and check whether or not a 13 | * matching sound file exists. 14 | * @author Roan 15 | * @see Filter 16 | * @see SoundModel 17 | */ 18 | public final class SoundFilter extends Filter{ 19 | /** 20 | * Sequence regex. 21 | */ 22 | private static final Pattern SEQ_REGEX = Pattern.compile("-[0-9]+"); 23 | 24 | /** 25 | * Constructs a new SoundFilter with the given 26 | * construction arguments. 27 | * @param args The filter construction arguments. 28 | */ 29 | public SoundFilter(String[] args){ 30 | super(args); 31 | } 32 | 33 | @Override 34 | public Model getModel(List> filters){ 35 | return new SoundModel(filters); 36 | } 37 | 38 | @Override 39 | protected Path matches(Path file, String fn, Deque path){ 40 | fn = fn.substring(name.length()); 41 | if(fn.length() == 0){ 42 | return file; 43 | }else{ 44 | if(animatedDash && SEQ_REGEX.matcher(fn).matches()){ 45 | return file; 46 | }else{ 47 | return null; 48 | } 49 | } 50 | } 51 | 52 | @Override 53 | protected boolean allowNonRoot(){ 54 | return false; 55 | } 56 | 57 | @Override 58 | protected boolean show(Version version){ 59 | return SkinChecker.showAll || !hasMatch(); 60 | } 61 | 62 | @Override 63 | protected void link(List> filters){ 64 | } 65 | 66 | @Override 67 | public List getMatchedFiles(){ 68 | return matches; 69 | } 70 | } -------------------------------------------------------------------------------- /osuSkinChecker/src/dev/roanh/osuskinchecker/SoundModel.java: -------------------------------------------------------------------------------- 1 | package dev.roanh.osuskinchecker; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * This class determines how a list of 7 | * {@link SoundFilter} objects are displayed. 8 | * @author Roan 9 | * @see Model 10 | */ 11 | public class SoundModel extends Model{ 12 | /** 13 | * Serial ID 14 | */ 15 | private static final long serialVersionUID = -7254967007592437528L; 16 | 17 | /** 18 | * Constructs a new SoundModel with 19 | * the given list of data to display. 20 | * @param list A list with data to display. 21 | * @see Filter 22 | * @see Model 23 | */ 24 | public SoundModel(List> list){ 25 | super(list); 26 | } 27 | 28 | @Override 29 | public int getColumnCount(){ 30 | return 2; 31 | } 32 | 33 | @Override 34 | public String getColumnName(int col){ 35 | switch(col){ 36 | case 0: 37 | return "Filename"; 38 | case 1: 39 | return "Exists"; 40 | } 41 | return null; 42 | } 43 | 44 | @Override 45 | public Object getValueAt(int row, int col){ 46 | switch(col){ 47 | case 0: 48 | return view.get(row); 49 | case 1: 50 | return view.get(row).hasMatch() ? "Yes" : "No"; 51 | } 52 | return null; 53 | } 54 | } -------------------------------------------------------------------------------- /osuSkinChecker/src/dev/roanh/osuskinchecker/ini/Colour.java: -------------------------------------------------------------------------------- 1 | package dev.roanh.osuskinchecker.ini; 2 | 3 | import java.awt.Color; 4 | 5 | /** 6 | * Wrapper around the standard Java 7 | * Colour class to work better with 8 | * osu!. And to allow more control over 9 | * the internal representation of colors. 10 | * @author Roan 11 | * @see Color 12 | */ 13 | public class Colour{ 14 | /** 15 | * The 'red' component of this colour 16 | */ 17 | private int r; 18 | /** 19 | * The 'green' component of this colour 20 | */ 21 | private int g; 22 | /** 23 | * The 'blue' component of this colour 24 | */ 25 | private int b; 26 | /** 27 | * The 'alpha' component of this colour 28 | */ 29 | private int a; 30 | 31 | /** 32 | * Constructs a new colour from 33 | * the given Java Color 34 | * @param color The Java AWT Color 35 | * @see Color 36 | */ 37 | public Colour(Color color){ 38 | this(color.getRed(), color.getGreen(), color.getBlue(), color.getAlpha()); 39 | } 40 | 41 | /** 42 | * Constructs a new colour from the 43 | * given red, blue and green values. 44 | * @param r The red component for this colour 45 | * @param g The green component for this colour 46 | * @param b The blue component for this colour 47 | */ 48 | public Colour(int r, int g, int b){ 49 | this(r, g, b, 255); 50 | } 51 | 52 | /** 53 | * Constructs a new colour from the 54 | * given red, blue, green and alpha values. 55 | * @param r The red component for this colour 56 | * @param g The green component for this colour 57 | * @param b The blue component for this colour 58 | * @param a The alpha component for this colour 59 | */ 60 | public Colour(int r, int g, int b, int a){ 61 | this.r = r; 62 | this.g = g; 63 | this.b = b; 64 | this.a = a; 65 | } 66 | 67 | /** 68 | * Updates this colour with a new alpha values 69 | * @param alpha The new alpha values, in range 0.0 - 100.0 70 | */ 71 | public final void update(double alpha){ 72 | this.a = (int)Math.round(alpha * 2.55D); 73 | } 74 | 75 | /** 76 | * Updates the red, green and blue component 77 | * for this colour with components from the given colour. 78 | * @param override The colour to take attributes from 79 | */ 80 | public final void update(Colour override){ 81 | this.r = override.r; 82 | this.g = override.g; 83 | this.b = override.b; 84 | } 85 | 86 | /** 87 | * Converts this colour to a 88 | * Java AWT Color 89 | * @return A Java AWT Color with the same 90 | * color as this colour 91 | * @see Color 92 | */ 93 | public final Color toColor(){ 94 | return new Color(r, g, b, a); 95 | } 96 | 97 | /** 98 | * Gets the red component for this colour 99 | * @return The red component for this colour 100 | */ 101 | public final int getRed(){ 102 | return r; 103 | } 104 | 105 | /** 106 | * Gets the green component for this colour 107 | * @return The green component for this colour 108 | */ 109 | public final int getGreen(){ 110 | return g; 111 | } 112 | 113 | /** 114 | * Gets the blue component for this colour 115 | * @return The blue component for this colour 116 | */ 117 | public final int getBlue(){ 118 | return b; 119 | } 120 | 121 | /** 122 | * Gets the alpha component for this colour 123 | * @return The alpha component for this colour 124 | */ 125 | public final int getAlpha(){ 126 | return a; 127 | } 128 | 129 | /** 130 | * Gets the alpha component for this colour 131 | * as a percentage between 0.0 and 100.0 132 | * @return The alpha value as a percentage 133 | */ 134 | public final double getAlphaPercentage(){ 135 | return a / 2.55; 136 | } 137 | 138 | /** 139 | * Checks to see is this colour has 140 | * an alpha component 141 | * @return Whether this component has an alpha component 142 | */ 143 | public final boolean hasAlpha(){ 144 | return a != 255; 145 | } 146 | 147 | @Override 148 | public String toString(){ 149 | if(hasAlpha()){ 150 | return r + "," + g + "," + b + "," + a; 151 | }else{ 152 | return r + "," + g + "," + b; 153 | } 154 | } 155 | } 156 | -------------------------------------------------------------------------------- /osuSkinChecker/src/dev/roanh/osuskinchecker/ini/Comment.java: -------------------------------------------------------------------------------- 1 | package dev.roanh.osuskinchecker.ini; 2 | 3 | /** 4 | * Represents a comment, empty line 5 | * or any other line in the skin.ini 6 | * that is not a setting 7 | * @author Roan 8 | */ 9 | public class Comment extends Setting{ 10 | 11 | /** 12 | * Constructs a new comment from the 13 | * given line of text 14 | * @param line The comment text 15 | */ 16 | protected Comment(String line){ 17 | super(null, line); 18 | setEnabled(true); 19 | } 20 | 21 | @Override 22 | protected boolean wasUpdated(){ 23 | return true; 24 | } 25 | 26 | @Override 27 | public String toString(){ 28 | return getValue(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /osuSkinChecker/src/dev/roanh/osuskinchecker/ini/Section.java: -------------------------------------------------------------------------------- 1 | package dev.roanh.osuskinchecker.ini; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import dev.roanh.osuskinchecker.ini.SkinIni.ManiaIni; 7 | 8 | /** 9 | * Represents a section in the skin.ini 10 | * @author Roan 11 | */ 12 | public class Section{ 13 | /** 14 | * The name of this skin.ini section 15 | */ 16 | protected final String name; 17 | /** 18 | * The mania configuration for this 19 | * section if this is a mania section 20 | */ 21 | protected ManiaIni mania; 22 | /** 23 | * The settings under this section 24 | */ 25 | protected final List> data = new ArrayList>(); 26 | 27 | /** 28 | * Constructs a new section with 29 | * the given name 30 | * @param name The name for this section 31 | */ 32 | protected Section(String name){ 33 | this.name = name; 34 | } 35 | 36 | /** 37 | * Checks if this section is a 38 | * mania section 39 | * @return Whether or not this section 40 | * is a mania section 41 | */ 42 | protected boolean isMania(){ 43 | return mania != null || (name != null && name.trim().equals("[Mania]")); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /osuSkinChecker/src/dev/roanh/osuskinchecker/ini/Setting.java: -------------------------------------------------------------------------------- 1 | package dev.roanh.osuskinchecker.ini; 2 | 3 | import java.util.StringJoiner; 4 | 5 | import dev.roanh.osuskinchecker.ini.SkinIni.Printable; 6 | 7 | /** 8 | * Represents a setting in the skin.ini 9 | * @author Roan 10 | * @param The type of the value for this setting 11 | */ 12 | public class Setting{ 13 | /** 14 | * The name of this setting 15 | */ 16 | private String name; 17 | /** 18 | * The current value for this setting 19 | */ 20 | private T value; 21 | /** 22 | * Whether or not this setting is enabled 23 | * that is whether or not it will be written 24 | */ 25 | private boolean enabled = true; 26 | /** 27 | * Whether or not this setting was updated 28 | */ 29 | private boolean wasUpdated = false; 30 | /** 31 | * Whether or not to only allow a single update 32 | * to this setting 33 | */ 34 | protected static boolean singleUpdateMode = false; 35 | /** 36 | * Whether or not this setting was already indexed 37 | */ 38 | protected boolean added = false; 39 | 40 | /** 41 | * Constructs a new setting with the 42 | * given name and value 43 | * @param name The name for this setting 44 | * @param def The current value for this setting 45 | */ 46 | protected Setting(String name, T def){ 47 | value = def; 48 | this.name = name; 49 | } 50 | 51 | /** 52 | * Constructs a new setting with the 53 | * given name, value and enabled state 54 | * @param name The name for this setting 55 | * @param enabled Whether or not this setting 56 | * is currently enabled 57 | * @param def The current value for this setting 58 | */ 59 | protected Setting(String name, boolean enabled, T def){ 60 | this(name, def); 61 | this.enabled = enabled; 62 | } 63 | 64 | /** 65 | * Checks whether or not this setting was updated 66 | * during this session. A setting always counts as 67 | * updated if it was read from the skin.ini 68 | * @return True if this setting was updated. 69 | */ 70 | protected boolean wasUpdated(){ 71 | return wasUpdated; 72 | } 73 | 74 | /** 75 | * Gets the name of this setting 76 | * @return The name of this setting 77 | */ 78 | protected String getName(){ 79 | return name; 80 | } 81 | 82 | /** 83 | * Gets the value of this setting 84 | * @return The current value of this setting 85 | */ 86 | public T getValue(){ 87 | return value; 88 | } 89 | 90 | /** 91 | * Enables or disables this setting 92 | * @param enabled The enabled state for this setting 93 | */ 94 | protected void setEnabled(boolean enabled){ 95 | this.enabled = enabled; 96 | } 97 | 98 | /** 99 | * Updates the value for this setting 100 | * @param newValue The new value to set 101 | * if allowed 102 | * @return This setting 103 | */ 104 | protected Setting update(T newValue){ 105 | if(!(wasUpdated && singleUpdateMode)){ 106 | if(singleUpdateMode){ 107 | enabled = true; 108 | } 109 | wasUpdated = true; 110 | value = newValue; 111 | } 112 | return this; 113 | } 114 | 115 | /** 116 | * Checks whether this setting is 117 | * currently enabled 118 | * @return Whether this setting is 119 | * enabled or not 120 | */ 121 | public boolean isEnabled(){ 122 | return enabled; 123 | } 124 | 125 | @Override 126 | public String toString(){ 127 | if(value instanceof Printable){ 128 | return name + ": " + ((Printable)value).print(); 129 | }else if(value instanceof Boolean){ 130 | return name + ": " + (((Boolean)value) ? "1" : "0"); 131 | }else if(value instanceof double[]){ 132 | StringJoiner joiner = new StringJoiner(","); 133 | for(double d : (double[])value){ 134 | joiner.add(String.valueOf(d)); 135 | } 136 | return name + ": " + joiner.toString(); 137 | }else{ 138 | return name + ": " + value.toString(); 139 | } 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /osuSkinChecker/src/dev/roanh/osuskinchecker/ini/SplitLayout.java: -------------------------------------------------------------------------------- 1 | package dev.roanh.osuskinchecker.ini; 2 | 3 | import java.awt.Component; 4 | import java.awt.Container; 5 | import java.awt.Dimension; 6 | import java.awt.LayoutManager2; 7 | import java.awt.Rectangle; 8 | 9 | import javax.swing.JPanel; 10 | import javax.swing.Scrollable; 11 | 12 | /** 13 | * Simple layout manager that only accepts 14 | * two components and divides the space in 15 | * a 2/3 and 1/3 area. 16 | * @author Roan 17 | */ 18 | public class SplitLayout implements LayoutManager2{ 19 | /** 20 | * The first component in this layout 21 | * that gets the 2/3 area 22 | */ 23 | private Component first; 24 | /** 25 | * The second component in this layout 26 | * that gets the 1/3 area 27 | */ 28 | private Component second; 29 | /** 30 | * The preferred height for this layout 31 | */ 32 | private int height; 33 | /** 34 | * 1/3 of the preferred width for this layout 35 | */ 36 | private int pref; 37 | 38 | @Override 39 | public void addLayoutComponent(String name, Component comp){ 40 | if(first == null){ 41 | first = comp; 42 | pref = Math.max(pref, comp.getPreferredSize().width / 2); 43 | }else{ 44 | second = comp; 45 | pref = Math.max(pref, comp.getPreferredSize().width); 46 | } 47 | height = Math.max(height, comp.getPreferredSize().height); 48 | } 49 | 50 | @Override 51 | public void removeLayoutComponent(Component comp){ 52 | } 53 | 54 | @Override 55 | public Dimension preferredLayoutSize(Container parent){ 56 | return new Dimension(pref * 3, height); 57 | } 58 | 59 | @Override 60 | public Dimension minimumLayoutSize(Container parent){ 61 | return new Dimension(0, height); 62 | } 63 | 64 | @Override 65 | public void layoutContainer(Container parent){ 66 | if(first != null){ 67 | first.setBounds(0, 0, (int)((parent.getWidth() / 3.0) * 2.0), parent.getHeight()); 68 | } 69 | 70 | if(second != null){ 71 | second.setBounds((int)((parent.getWidth() / 3.0) * 2.0), 0, (int)(parent.getWidth() / 3.0), parent.getHeight()); 72 | } 73 | } 74 | 75 | @Override 76 | public void addLayoutComponent(Component comp, Object constraints){ 77 | addLayoutComponent("", comp); 78 | } 79 | 80 | @Override 81 | public Dimension maximumLayoutSize(Container target){ 82 | return new Dimension(Integer.MAX_VALUE, height); 83 | } 84 | 85 | @Override 86 | public float getLayoutAlignmentX(Container target){ 87 | return 0.5F; 88 | } 89 | 90 | @Override 91 | public float getLayoutAlignmentY(Container target){ 92 | return 0.5F; 93 | } 94 | 95 | @Override 96 | public void invalidateLayout(Container target){ 97 | } 98 | 99 | /** 100 | * Custom Scrollable to set a workable 101 | * scroll speed 102 | * @author Roan 103 | * @see Scrollable 104 | */ 105 | protected static final class ScrollPane extends JPanel implements Scrollable{ 106 | /** 107 | * Serial ID 108 | */ 109 | private static final long serialVersionUID = -5413484937511138066L; 110 | 111 | @Override 112 | public Dimension getPreferredScrollableViewportSize(){ 113 | return new Dimension(this.getParent().getPreferredSize().width, this.getPreferredSize().height); 114 | } 115 | 116 | @Override 117 | public int getScrollableBlockIncrement(Rectangle arg0, int arg1, int arg2){ 118 | return getScrollableUnitIncrement(arg0, arg1, arg2); 119 | } 120 | 121 | @Override 122 | public boolean getScrollableTracksViewportHeight(){ 123 | return false; 124 | } 125 | 126 | @Override 127 | public boolean getScrollableTracksViewportWidth(){ 128 | return true; 129 | } 130 | 131 | @Override 132 | public int getScrollableUnitIncrement(Rectangle arg0, int arg1, int arg2){ 133 | return this.getComponentCount() == 0 ? 1 : ((this.getHeight() / this.getComponentCount()) * 2); 134 | } 135 | } 136 | } 137 | -------------------------------------------------------------------------------- /osuSkinChecker/src/dev/roanh/osuskinchecker/ini/Version.java: -------------------------------------------------------------------------------- 1 | package dev.roanh.osuskinchecker.ini; 2 | 3 | import dev.roanh.osuskinchecker.ini.SkinIni.Printable; 4 | 5 | /** 6 | * Enum for all the different NoteBodyStyle options 7 | * @author Roan 8 | * @see Printable 9 | */ 10 | public enum Version implements Printable{ 11 | /** 12 | * Version 1.0 13 | */ 14 | V1("1", "(Old style)"), 15 | /** 16 | * Version 2.0 17 | */ 18 | V2("2", "(Basic new style)"), 19 | /** 20 | * Version 2.1 21 | */ 22 | V21("2.1", "(Taiko position changes)"), 23 | /** 24 | * Version 2.2 25 | */ 26 | V22("2.2", "(UI changes)"), 27 | /** 28 | * Version 2.3 29 | */ 30 | V23("2.3", "(New Catch catcher style)"), 31 | /** 32 | * Version 2.4 33 | */ 34 | V24("2.4", "(Mania stage scaling reduction)"), 35 | /** 36 | * Version 2.5 37 | */ 38 | V25("2.5", "(Mania upscroll and column improvements)"), 39 | /** 40 | * Version 2.6 41 | */ 42 | V26("2.6", "(No added functionality)"), 43 | /** 44 | * Version 2.7 45 | */ 46 | V27("2.7", "(No added functionality)"), 47 | /** 48 | * Latest version 49 | */ 50 | LATEST("latest", "(For personal skins)"); 51 | 52 | /** 53 | * The display name for this setting 54 | */ 55 | public final String name; 56 | /** 57 | * The extra information for this setting 58 | */ 59 | public final String extra; 60 | 61 | /** 62 | * Constructs a new Version with the 63 | * given name and information 64 | * @param name The display name for this version 65 | * @param extra The description for this version 66 | */ 67 | private Version(String name, String extra){ 68 | this.name = name; 69 | this.extra = extra; 70 | } 71 | 72 | /** 73 | * Parses the given input for a Version 74 | * @param str The input to parse 75 | * @return The Version parsed from the given input string 76 | */ 77 | public static Version fromString(String str){ 78 | switch(str){ 79 | case "1": 80 | return V1; 81 | case "2": 82 | case "2.0": 83 | return V2; 84 | case "2.1": 85 | return V21; 86 | case "2.2": 87 | return V22; 88 | case "2.3": 89 | return V23; 90 | case "2.4": 91 | return V24; 92 | case "2.5": 93 | return V25; 94 | case "2.6": 95 | return V26; 96 | case "2.7": 97 | return V27; 98 | case "latest": 99 | return LATEST; 100 | default: 101 | SkinIni.usedDefault.add("Version"); 102 | return V1; 103 | } 104 | } 105 | 106 | /** 107 | * Compares this version to the given other version. 108 | * @param other The version to compare to. 109 | * @return True if this version is after 110 | * or the same as the given other version. 111 | */ 112 | public boolean isAfterOrSame(Version other){ 113 | return this.ordinal() >= other.ordinal(); 114 | } 115 | 116 | @Override 117 | public String toString(){ 118 | return name + " " + extra; 119 | } 120 | 121 | @Override 122 | public String print(){ 123 | return name; 124 | } 125 | } --------------------------------------------------------------------------------