Commit Graph

30 Commits

Author SHA1 Message Date
kaeza
424a374d83 Add support for high resolution and proportional fonts to signs.
This also gets rid of useless constructs, and optimizes others.
2013-10-18 04:55:10 -02:00
kaeza
e97ee8256e Fix signs' text overflowing at bottom. 2013-10-18 00:12:06 -02:00
Vanessa Ezekowitz
ce09d71c4f Fixed offset bug in sign entities.
Existing signs' text will not be moved - this fix only applies to
newly-placed signs (or at leasty, newly-spawned text entities e.g. after
/clearobjects followed by punching).

Also, made a few functions local that didn't really need to be global,
some minor re-arranging of the code to accommodate the above and to tidy it
up a bit.
2013-10-17 22:05:34 -04:00
kaeza
e6e8cf04e8 Some fixes to signslib.
- Optimize texture generation by using `table.insert' and
  `table.concat' instead of concatenating strings.
- Related to first point, use `string.format' to construct
  individual textures.
- Fixed text entity not wrapping.
- Fixed small typo: `SIGN_WITH' -> `SIGN_WIDTH' :-)
2013-10-17 23:16:06 -02:00
kaeza
6b09ea3a6f Optimize create_lines() by using patterns, and prevent truncation of infotext. 2013-10-16 14:49:45 -02:00
kaeza
7219f6cd49 Make registering unknown signs a warning instead of an error. 2013-10-16 13:31:30 -02:00
Vanessa Ezekowitz
e4c02a82d6 Split ownership checking and 6d facedir into separate files. Changed
related functions to use homedecor: and lib_6d: namespaces, as
necessary, instead of simple "homedecor_" name prefixes.
2013-10-13 13:20:42 -04:00
Vanessa Ezekowitz
e04a0e5e4f changed all "homedecor_" variable and function names to "homedecor."
(underscore -> period).  Similarly for intllib calls and the DEBUG variable.
2013-10-09 12:47:22 -04:00
Vanessa Ezekowitz
2550672352 Replaced most uses of get_modpath() with variables cached at the top of init.lua 2013-10-09 12:27:49 -04:00
kaeza
dbc2242d00 Make wall signs protection-aware. 2013-10-01 22:33:26 -03:00
kaeza
53e9690679 Fix disabled signs. 2013-08-16 13:52:19 -03:00
Vanessa Ezekowitz
2efa203185 Phased out all deprecated minetest.env:* uses in favor of minetest.* 2013-06-30 23:55:07 -04:00
Zeg9
5a45d2b609 Only remove fences and signs from inventory if expected 2013-06-06 20:15:32 +02:00
Diego Martínez
53b62463fc Fix wrong check for ownership on fence placement, respect pointed_thing on_rightclick callback, and support placing fences in buildable_to nodes 2013-05-23 08:56:21 -03:00
Vanessa Ezekowitz
049b358c31 fix missing ownership check on editing yard signs 2013-05-20 21:55:40 -04:00
Vanessa Ezekowitz
987f070069 fixed inverted condition in sign ownership check 2013-05-20 21:39:25 -04:00
Diego Martínez
581b63a6b3 signs can now only be edited by owner 2013-05-20 17:51:32 -03:00
Diego Martínez
618aa5f167 Placing fences now takes into account protection systems 2013-05-19 04:20:03 -03:00
ShadowNinja
7d0a3f9056 Use "|" for linebreaks in infotext 2013-04-05 19:04:05 -04:00
ShadowNinja
7c9778d64b Use infotext for signs 2013-04-05 18:47:34 -04:00
Vanessa Ezekowitz
1ca5d00096 fixed a similar bug in signs code 2013-04-03 22:53:23 -04:00
Vanessa
349748e100 kaeza fixed node ownership detection for placing signs 2013-03-22 23:26:54 -04:00
Diego Martínez
1ce512a3c8 add logging support to signslib and re-add intllib support 2013-03-22 14:49:57 -03:00
Diego Martínez
d4f7de4640 fix wrong check for protection on node placement 2013-03-22 14:37:44 -03:00
Diego Martínez
a077685e8b Fixed yard signs being able to overwrite other nodes 2013-03-16 19:20:02 -03:00
Diego Martínez
670c44c156 Fixed fences being able to overwrite other nodes 2013-03-16 19:00:41 -03:00
Diego Martínez
07f3e65b4f Fixed text on brass/wrought-iron posts not showing 2013-03-16 18:27:13 -03:00
Diego Martínez
f79c5557fc changed way in which signs attach to fences 2013-03-11 06:59:42 -03:00
Diego Martínez
6133234771 Added localization support 2013-03-05 05:18:56 -02:00
Vanessa Ezekowitz
178386ee53 Added the ability to place a sign onto a brass or wrought iron fence
uses code from PilzAdam's rework of thexyz's signs mod.
2013-02-08 02:31:40 -05:00