forked from mtcontrib/signs_lib
4ff54c9a4d
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.
16 lines
537 B
Lua
16 lines
537 B
Lua
-- This mod provides the visible text on signs library used by Home Decor
|
|
-- and perhaps other mods at some point in the future. Forked from thexyz's/
|
|
-- PilzAdam's original text-on-signs mod and rewritten by Vanessa Ezekowitz
|
|
-- and Diego Martinez
|
|
|
|
signs_lib = {}
|
|
|
|
signs_lib.path = minetest.get_modpath(minetest.get_current_modname())
|
|
|
|
local S, NS = dofile(signs_lib.path .. "/intllib.lua")
|
|
signs_lib.gettext = S
|
|
|
|
dofile(signs_lib.path.."/api.lua")
|
|
dofile(signs_lib.path.."/encoding.lua")
|
|
dofile(signs_lib.path.."/standard_signs.lua")
|