Skip to content
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

Add texture API #7

Closed
Niklp09 opened this issue Mar 1, 2024 · 5 comments · Fixed by #9
Closed

Add texture API #7

Niklp09 opened this issue Mar 1, 2024 · 5 comments · Fixed by #9
Labels
enhancement New feature or request

Comments

@Niklp09
Copy link
Member

Niklp09 commented Mar 1, 2024

Many (homedecor, display_modpack, etc.) mods depend on special game textures e.g. default_wood.png. It would make sense to have some kind of gamecompat here.

Propsal:
Just add a xcompat.textures.$texturename table, $texturenames should be the same as for xcompat.materials.

@Niklp09 Niklp09 added the enhancement New feature or request label Mar 1, 2024
@wsor4035
Copy link
Contributor

wsor4035 commented Mar 1, 2024

yes, this is on the mental todo list. potentially maybe this weekend - assuming i finish #1

@wsor4035
Copy link
Contributor

wsor4035 commented Mar 2, 2024

i had a think about this some more. in contrast to materials, im thinking of grouping by node, so:

...
apple_tree = {
  trunk_side = "texture.png",
  trunk_top = "texture.png",
  leave = "texture.png",
  fruit = "texture.png",
}
...

as compared to/instead of

...
apple_tree_trunk_side = "texture.png",
apple_tree_trunk_top = "texture.png",
apple_tree_leave = "texture.png",
apple_tree_fruit = "texture.png"
...

@OgelGames
Copy link
Contributor

I don't think they should be grouped, it doesn't make using it any easier, and it doesn't make sense for a lot of nodes that only have one texture.

@wsor4035 wsor4035 mentioned this issue Mar 3, 2024
@Lazerbeak12345
Copy link

Please also consider formspec textures.

My mods in particular have a need of a cross platform:

  • Arrow for crafting &etc.
  • FS background
  • primary and secondary inventory slot backgrounds
  • navigation arrow (can be rotated for either direction)
  • cancel confirm search and other fundamental UI icons
  • icons for minetest concepts such as crafting grids, blocks, plants, various item attributes, skins, etc.

Not all of these are immediately needed. Each of them would be appreciated. I'm willing to either find candidates - or perhaps make a few of them as SVGs to be rasterized.

@wsor4035
Copy link
Contributor

wsor4035 commented Mar 3, 2024

Lazerbeak12345: i would recommend making a new issue for ui/ux textures or something, this and the linked pr is mostly for unify duplicated code we have in other mods already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants