1
0
mirror of https://github.com/mt-mods/signs_lib.git synced 2024-11-19 16:00:17 +01:00
Commit Graph

65 Commits

Author SHA1 Message Date
Vanessa Dannenberg
b021b9666f Allow mod to specify custom selbox for on-pole variants 2019-09-15 02:00:05 -04:00
Vanessa Dannenberg
c765d3b316 allow locked and all steel signs to hang from ceiling 2019-09-15 01:47:43 -04:00
Vanessa Dannenberg
78418de9c9 create a generic hanging sign feature and
move basic_signs' hanging wooden sign back to here, use it.
2019-09-15 01:23:40 -04:00
Vanessa Dannenberg
f6673dc0f1 added a proper register-sign API call
(see api.lua and standard_signs.lua for examples)

make selectionbox call now ignores the old onpole flag (it's automatic now)
removed debug print()'s
moved the signs-on-fences lbm settings to here, from basic_signs.
some misc cleanups

added reference models for standard wooden sign ("wallmounted" on wall,
"facedir" on wall, and pole-mount variants, using standard-size pole
mount), and a separate .blend with street_signs' OM3 sign on slim pole
mount.
2019-09-14 22:45:01 -04:00
Vanessa Dannenberg
fe57c23132 Add standard wood and steel signs sound defs
use them in standard signs.
2019-09-14 17:59:21 -04:00
Vanessa Dannenberg
94745e123e get standard sign groups directly from the original default node defs
(instead of hard-coding them)
2019-09-14 17:45:42 -04:00
Vanessa Dannenberg
de69b246ec fix wrong priv 2019-09-13 17:12:40 -04:00
Vanessa Dannenberg
e2d522373d add chat command to sweep-away
and regenerate all sign entities in loaded map
(uses LBM to log all loaded blocks,
but only those with nodes in "group:sign").
2019-09-13 16:51:51 -04:00
Vanessa Dannenberg
d34d27bb81 fix 'dummy' formspec images (the hacky way) 2019-09-12 11:31:19 -04:00
Vanessa Dannenberg
e86ab17aea Fix bad UV mapping and font settings on standard signs 2019-09-12 00:29:40 -04:00
Vanessa Dannenberg
261e519e72 allow rotation to all 6 faces for both wallmounted and facedir signs, make them follow the same rotation pattern. 2019-09-11 17:03:48 -04:00
Vanessa Dannenberg
fb77cc5708 Fix missing offsets on wallmount selboxes 2019-09-11 16:21:44 -04:00
Vanessa Dannenberg
4614d66cbe Fix broken/bad screwdriver rotation handling 2019-09-11 16:03:02 -04:00
Vanessa Dannenberg
eba3ce1308 fix incorrect "onpole" activation when placing on top/bottom of post 2019-09-11 15:17:19 -04:00
Vanessa Dannenberg
4ff54c9a4d Re-built onto the new API formerly part of my street_signs mod
Any sign can now use a 15 or 31 px font, at any reasonable visual scale,
line width, number of lines, etc.

Split most signs off into a separate mod, basic_signs, which depends on
this one.  Only the default minetest_game wood and steel signs remain in
signs_lib, completely redefined. The wall/yard/ceiling function for
wooden signs has been rewitten and moved to basic_signs, too.

signs_lib can now put almost any wall sign onto almost any kind of
posts/fence, as with most signs in my street_signs mod.  Mods can add
their fences/posts to its "allowed" list, if needed (signs_lib tries to
detect most kinds of suitable fences, poles, posts, etc).

All signs affected by these changes are similar to what they've always
been, for continuity.  The main difference is that they all use a 15px
font now, with a slightly larger scale, and the positions of some have
changed slightly.

Dropped the old "@KEYWORD" feature (but it could be re-added if it turns
out to be needed), and most of the old cruft like "|" for line breaks.

Created new wood and steel sign textures, derived from HDX.

See standard_signs.lua for examples of how the new API is used. The
"standard" text sizing/position/etc. variables are all at the top of
api.lua.
2019-09-11 12:03:04 -04:00