drwhut / tabletop-club

An open-source platform for playing tabletop games in a physics-based 3D environment for Windows, macOS, and Linux! Made with the Godot Engine.
https://tabletopclub.net
MIT License
1.27k stars 55 forks source link

Feature: Asset Names #124

Closed elmodor closed 1 year ago

elmodor commented 1 year ago

Is your feature request related to a problem? Please describe. Currently the asset name is based on the file name. This is very difficult. For cards, I like my filenames to have a suffix based on front or back: my_card_f.png my_card_b.png The name of this card in the game is: my_card_f

Describe the solution you'd like Config.cfg:

[my_card_f.png]
name="My Card"
desc="My Card"
back_face="my_card_b.png"

[my_card_b.png]
ignore=true

In game the card uses the "name" tag instead of the filename. If name tag is empty, it uses the filename.

Describe alternatives you've considered You could name front cards "My Card.png" and the back card "My Card_b.png" but having a config option makes it easier.