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

23 Commits

Author SHA1 Message Date
Niklp
3e6328ac43
Update by TenPlus1 2024-04-08 21:14:29 +02:00
Niklp
64902b845d
Compress textures (thx TenPlus1) 2024-03-15 14:30:41 +01:00
Niklp
1fdff47dc8
Fix out-of-bounds in 'combine' texture modifier
Co-authored-by: tenplus1 <tenplus1@users.noreply.github.com>
2024-02-26 16:15:32 +01:00
OgelGames
30d0af57be optimize all textures
1666613 bytes -> 1023131 bytes (61% of the original size)
2021-12-08 21:06:20 +11:00
Sekai Zhou
fe5cbb0a66
Full Unicode Plane 0 charset support (63000+ chars, only ~2MB) (#2)
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2021-12-08 21:01:30 +11:00
Vanessa Dannenberg
b0fac5ef9f remove the old blue/starry background
(replaced with a transparent image so that
it can still be themed by Dreambuilder)
tidied up the formspec a bit
2021-03-04 09:40:14 -05:00
Isidor Zeuner
3ef11a995b recreate textures using latest version of https://github.com/zeuner/signs-font-generate 2020-12-05 18:55:42 +01:00
Isidor Zeuner
22af21aeaf Merge branch 'nonascii' into nonascii-european-test 2020-12-05 18:53:57 +01:00
Isidor Zeuner
af45e591e3 recreate textures using https://github.com/zeuner/signs-font-generate 2020-12-05 18:53:42 +01:00
Isidor Zeuner
942e91e00e better align to existing font 2020-11-14 13:04:50 +01:00
Isidor Zeuner
4b2d4db848 test with some european languages 2020-11-13 12:08:39 +01:00
Vanessa Dannenberg
9502812088 Add necessary bits to allow signs to be placed onto horizontal poles
(both wooden and steel signs)

only streets mod's "bigpole" supported for now.

Model changes:

To make a sign support horizontal mounting, make a single "_onpole"
model, with two copies of the pole mount, one rotated by 90°.  Make sure
the second copy appears has its own material entry, and that it is last
in the materials list in the exported .obj (`grep "g " file.obj` to
check).

When registered, signs_lib will set the "_onpole" and "_onpole_horiz"
tiles{} to reveal one mount or the other: entry 3 will expose the
vertical mount, entry 4 is the horizontal copy, with the opposite entry
being set to the "blank" image.
2019-09-21 15:45:48 -04:00
Vanessa Dannenberg
a5e711d354 Use sign formspec to switch between wide/narrow font
if available on a given sign.  The sign must have a
"foo:bar_widefont" variant, with the horizontal scaling set
appropriately (about half of the normal value for the
narrow-font sign)

Add new corresponding API to anto-generate those signs where
desired; use this feature in default wood and steel signs
2019-09-15 16:10:11 -04:00
Vanessa Dannenberg
bcb6a3aa39 add "wide font" overlay image 2019-09-15 03:18:52 -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
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
Vanessa Dannenberg
0f78ef70de add arrow symbols to fonts
accessible by putting ^1 to ^8 (think "arrow number 1", etc) in your text
for narrow-width arrows (good for "wide font" highway signs), or ^a to ^h
for double-width arrows (good for all of the normal narrow-font signs).

in order, arrows 1 and "a" point up, 2/b points up-and-right, 3/c points
right, and so on, turning clockwise

Any other ^x pair just renders directly (no escape char, sorry)
2018-10-09 07:49:41 -04:00
Vanessa Dannenberg
69b172f001 ditto for orange sign 2018-09-25 22:52:41 -04:00
Vanessa Dannenberg
908a087570 tweak yellow signs to comply with MUTCD 2009 2018-09-25 21:21:12 -04:00
codexp
c6e81f2882 add support for cyrillic cahracters 2018-03-24 20:35:42 +01:00
Vanessa Ezekowitz
9d6d9b11e1 add support for visible text on default steel signs
(if defined by subgame)
2016-09-09 04:08:20 -04:00
Diego Martinez
7d87049693 First commit.
Split from [homedecor](https://github.com/VanessaE/homedecor_modpack).
See the homedecor repository's commit log for full history.

Additionally, removed extra fonts. These will be distributed separately
to avoid bloating the repo too much.
2016-03-14 19:03:44 -03:00