]> git.lizzy.rs Git - signs_lib.git/commit
API changes to allow for more mounting styles
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>
Thu, 26 Sep 2019 04:48:53 +0000 (00:48 -0400)
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>
Thu, 26 Sep 2019 04:48:53 +0000 (00:48 -0400)
commit3836215268b3a50ed7dbc6b07b2a2ced771487b2
tree24cd8953d97cc4daa44d6eb4f4d10922e3f6a2ad
parent6a4ddfddab4ae46b46599ebf26dec15f95ba98fd
API changes to allow for more mounting styles

NODE NAMES:

The base name of a node can be whatever you want.  The basic wall sign
will keep the node name you give, while its hanging, on-pole, and yard
variants will, where applicable, use the same name, with "_onpole",
"_hanging", or "_yard" appended.

One exception:

If your node has "_wall" in its name, that bit will be stripped-out when
generating the above node variations.  For example:

"default:sign_wall_wood"

...will become...

"default:sign_wood_onpole"
"default:sign_wood_hanging"
"default:sign_wood_yard"

MODELS:

The base sign model and entity files must now be named:

sign:   mymod_foosign_wall.obj
        mymod_foosign_facedir_wall.obj

entity: mymod_foosign_entity_wall.obj

their other variants, where applicable, must be:

mymod_foosign_onpole.obj
mymod_foosign_hanging.obj
mymod_foosign_yard.obj

mymod_foosign_entity_onpole.obj
mymod_foosign_entity_hanging.obj
mymod_foosign_entity_yard.obj

For `facedir` signs, the "_facedir" in the base sign model filename is
automatically stripped from the name when generating the entity model
filename, as entities don't have a concept of wallmounted/facedir/etc.
For example:

"mymod_foosign_facedir_wall.obj"

...will become...

"mymod_foosign_entity_wall.obj"

* allow passing custom onpole, hanging, and yard sign models, for
situations where the filename(s) thereof can't be derived from the base
sign model filename.

* allow passing a custom pole mount, hanging, and yard sign stick
textures as the third, fourth, and fifth tiles{} entries, respectively
(independent of the above model file option)

* fine-tuned the pole mount on the standard sign models to eliminate
overlapping faces (so it looks better with basic_signs' glass sign.

* Move basic_signs wooden yard sign back to signs_lib.
30 files changed:
API.md
MODELS.md
README.md
api.lua
models/basic_signs wooden yard sign two sticks.blend [new file with mode: 0644]
models/signs_lib_standard_facedir_sign_onpole.obj [new file with mode: 0644]
models/signs_lib_standard_facedir_sign_wall.obj [new file with mode: 0644]
models/signs_lib_standard_sign_entity_hanging.obj [new file with mode: 0644]
models/signs_lib_standard_sign_entity_onpole.obj [new file with mode: 0644]
models/signs_lib_standard_sign_entity_wall.obj [new file with mode: 0644]
models/signs_lib_standard_sign_entity_yard.obj [new file with mode: 0644]
models/signs_lib_standard_sign_hanging.obj [new file with mode: 0644]
models/signs_lib_standard_sign_onpole.obj [new file with mode: 0644]
models/signs_lib_standard_sign_wall.obj [new file with mode: 0644]
models/signs_lib_standard_sign_yard.obj [new file with mode: 0644]
models/signs_lib_standard_sign_yard_two_sticks.obj [new file with mode: 0644]
models/signs_lib_standard_wall_sign.obj [deleted file]
models/signs_lib_standard_wall_sign_entity.obj [deleted file]
models/signs_lib_standard_wall_sign_entity_hanging.obj [deleted file]
models/signs_lib_standard_wall_sign_entity_onpole.obj [deleted file]
models/signs_lib_standard_wall_sign_facedir.obj [deleted file]
models/signs_lib_standard_wall_sign_facedir_onpole.obj [deleted file]
models/signs_lib_standard_wall_sign_hanging.obj [deleted file]
models/signs_lib_standard_wall_sign_onpole.obj [deleted file]
models/standard pole mount already positioned.blend
models/standard pole mount already positioned.blend1 [new file with mode: 0644]
models/standard wooden sign.blend
models/standard wooden sign.blend1 [new file with mode: 0644]
models/standard wooden yard sign.blend [new file with mode: 0644]
standard_signs.lua