-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KTX tools module #14
Comments
Sure, why not. 👍 |
fyi so there's no duplication, consider me working on the "Extraction of texture region names from .atlas files, which could be saved as a type-safe enum. ". i'm currently waiting on someone else's very recent work, for me to generate the code..i'll see what i can whip up for my own project soon here, and go from there. it should be able to generate type-safe enums from all asset types (fonts/images/atlas etc). i'm sick of plain strings :) |
That's great! I'll create a separate branch and setup Gradle submodule for you. |
There. Try checking out |
think i'm running into an issue with the gradle scripts for ktx (in general, unrelated to ktx-tools). resources aren't getting stored in the jar..i'm thinking this is because the top-level one ends up overriding the default behavior (gradle defaults to copy the resources as expected). you can try adding a src/main/resources/blah.txt to any of the submodules and see it not get copied. looks like the resourceDirs get wiped somehow? |
@sreich How are you building the jar? I added |
guess it's been a long day, silly mistake...i was putting them into src/resources, and since the resource is how gradle finds the plugin in the first place..that is why it couldn't find it. now the plugin works great. so i'll continue working on it and the generator. thanks for your patience 😉 |
It's OK. Might I ask why do you need classpath resources in the plugin in the first place? |
from my understanding of gradle, it is required for the plugin to get picked up by gradle (the implementation-class). that's the only resource i will have https://docs.gradle.org/current/userguide/custom_plugins.html#sec:custom_plugins_standalone_project |
Oh, I see. I completely forgot about the meta-data thing. Carry on. |
@czyzby I would be happy to help with that task. The feature/ktx-tools branch is quite behind develop now, is it still the branch that should be used? |
@DavidPartouche Feel free to fork the current |
You can do a standalone library that can be invoked from a gradle plugin. Best of two worlds!
For your info, I'm doing this kind of things (it's more a PoC actually): generating an |
An equivalent to
gdx-tools
that could automate some KTX-related operations. Potential candidates:.properties
files to type-safe i18n enums fromktx-i18n
..json
definition to type-safe builders fromktx-style
.ktx-style
builders from an existingSkin
instance..atlas
files, which could be saved as a type-safe enum. Useful for bothktx-style
builders and generalTextureAtlas
usage.Could be implemented as standalone library or Gradle plugin. Or both. The first approach seems the most flexible.
@kotcrab
The text was updated successfully, but these errors were encountered: