Commit Graph

56 Commits

Author SHA1 Message Date
LazyJ
c485a3a3a9 fix text not appearing on newly placed locked signs 2015-04-24 12:15:35 -04:00
Vanessa Ezekowitz
674435a0ec fix missing check for placing locked wall sign 2015-04-15 03:59:23 -04:00
Vanessa Ezekowitz
f003f4e6b2 Make default and locked wooden signs old-style wallmounted
instead of using 6d facedir

Caveat: this breaks worlds that used signs_lib, in the sense that many
(if not most) default and wooden locked wall signs in areas that were
affected by signs_lib will have to be fixed using the screwdriver.

The intent of this commit is to make signs_lib behave the same way
default signs always have in the past, instead of forcing 6dfacedir on
everyone.

This sucks, but it had to be done sooner or later.  when this mod was
first written, wallmounted nodeboxes weren't possible.

This change ONLY affects the default wooden wall signs and locked wooden
wall signs.  Metal signs, yard signs, signs on fenceposts, and hanging
signs are not affected.
2015-04-12 20:38:16 -04:00
Tim
24db06a0b0 fix intllib support and remove unnecessary checks of it 2015-02-05 10:15:05 +01:00
Vanessa Ezekowitz
ea36a41da4 minor "Z" positioning tweak for yard sign text
also documented the meanings of the different lines.
2015-01-31 14:46:33 -05:00
Vanessa Ezekowitz
a97bbbc23e OPTIMIZE _ALL_ THE TEXTURES! \:D/ 2015-01-23 13:53:00 -05:00
Tim
be4ed12b6c whitespace cleanup:
* remove all trailing whitespaces
* make inbox and computer use the prevalent indentation rules
* CRLF->LF where found
2015-01-21 00:44:23 +01:00
Vanessa Ezekowitz
619d229157 adjust spacing of text entity on wall signs
(at some orientations at far map coords, the entity z-fights.  Irrlicht
positioning rounding errors?)
2014-12-27 05:00:33 -05:00
Vanessa Ezekowitz
bb8b3eea20 use current intllib API 2014-12-27 01:13:05 -05:00
Diego Martinez
d213e5aa16 Localize globals. 2014-12-21 15:01:08 -03:00
Vanessa Ezekowitz
71dad95d40 PNGCRUSH _ALL_ THE TEXTURES! "\_:D/ 2014-11-02 13:03:34 -05:00
Diego Martinez
8e953b4ee8 Add safeguard to prevent entity duplication. 2014-09-27 15:44:55 -03:00
Diego Martinez
5dd778cbdf Quick patch to fix texture errors.
Reportedly, the color would be nil in some rare case.
2014-09-19 15:57:20 -03:00
Diego Martinez
9901cd6dde Fix word wrapping 2014-09-08 00:46:44 -03:00
Vanessa Ezekowitz
338dc8a38f Add a color reference to the signs dialog 2014-09-01 22:31:56 -04:00
Vanessa Ezekowitz
91a9eaaeda add all of the recently-added signs to the auto-update ABM 2014-08-31 01:14:57 -04:00
Vanessa Ezekowitz
b6892806b8 fix locked sign ownership 2014-08-28 19:10:30 -04:00
Vanessa Ezekowitz
76b0435163 add locked wall sign, drop-in replacement for the old locked_sign mod
except because they used the old legacy wallmount draw type, you will have
to use the screwdriver to rotate these signs after updating.
2014-08-17 15:53:22 -04:00
Vanessa Ezekowitz
5d73e994a7 better handling of abusive sign input,
avoid breaking old signs' word wrapping

also increase the sign input limit to 600 chars, to allow for ample amounts of
color codes.
2014-08-11 21:08:59 -04:00
Vanessa Ezekowitz
6d73ca3f9f Added more metal sign colors
Red w/white border (e.g. "Stop" or similar),
white w/red border (e.g. "Yield", "Do not enter", and similar),
white w/black border (speed limit, other info signs)

renamed and simplified their edge/top/bottom textures since they always have
metal edges anyways (made them all use the same files).  Simplified the code
that creates them.  Minor changes to the code that places them to facilitate
this expansion (also allows for future expansion if necessary).
2014-08-10 11:47:44 -04:00
Vanessa Ezekowitz
03902e5392 trim text to 480 chars on input
hard-cut rendered text to SIGNS_WIDTH

(text already stored in a sign is unaffected)
2014-08-08 23:47:20 -04:00
Vanessa Ezekowitz
d652a47f69 make signs auto-recover after /clearobjects 2014-08-05 21:09:55 -04:00
Vanessa Ezekowitz
c26d52ebdd PNGCRUSH _ALL_ THE TEXTURES! "\_:D/ 2014-08-04 13:47:16 -04:00
Vanessa Ezekowitz
e47b86f789 raise green and yellow signs' fronts to 32px
(the black and white borders are too thick at 16px)
2014-08-03 23:34:57 -04:00
Vanessa Ezekowitz
86cf33201d add green and yellow wall signs
(intended for traffic signage or similar)

Rework related textures.  Use steel ingots and green, white, black, yellow dyes
to craft.  Can also use "sheet metal" from my fork of Zeg9's steel mod.
2014-08-03 21:03:56 -04:00
Vanessa Ezekowitz
5f34d62ceb rename green/yellow sign images for consistency 2014-08-03 20:16:35 -04:00
Vanessa Ezekowitz
37ed09edae consolidate text pos and nodebox def tables
each sign type has a separate table which now defines the nodebox
model and position of the text on that model, instead of separate
sets of tables for each.
2014-08-03 19:53:52 -04:00
Vanessa Ezekowitz
c5ce3bc53d texture and size cleanups on signs
MUCH more readable background texture for all signs

use exact-to-pixel dimensions on all signs
move sign models to start of signs_lib where they can be seen
make homedecor's brass/iron signs-on-posts use them
adjust all textures accordingly
2014-08-03 19:44:21 -04:00
Diego Martinez
d408c04d5e Fix signs' text not rendering correctly after restart. 2014-07-21 13:19:46 -03:00
Diego Martinez
6518120958 Change formspec to use textarea element.
This also removes the pipe as line separator, and uses real
newlines instead.

To be compatible with older signs, those older signs are *NOT*
updated, and still use the old line handling code. In order to
take advantage of the new UI, old signs will have to be
replaced. This is an unfortunate drawback that cannot be
fixed.

Newly-placed signs will have the new features right away.
2014-07-16 14:08:37 -03:00
Vanessa Ezekowitz
316f03b95a Add background image to signs_lib formspec 2014-07-14 14:45:43 -04:00
Vanessa Ezekowitz
bcdd04b7f4 fix crash in signs_lib 2014-07-06 06:56:31 -04:00
Diego Martínez
a985c6f868 Fix signs not subtracting from stack.
Reported by Zeno`.
2014-06-30 22:31:38 -03:00
Vanessa Ezekowitz
7e2052fe98 added stock green and yellow sign images.
fits wall and yard sign models only, not used within this mod (for
use by other, third-party mods).  uses one common grey "metal" back image.
2014-06-23 07:10:46 -04:00
Vanessa Ezekowitz
7821848a7a fix indentation error in sign-on-post node def 2014-06-23 06:50:59 -04:00
Vanessa Ezekowitz
8cfe951223 expose signs' entity position tables for API 2014-06-23 06:47:19 -04:00
Vanessa Ezekowitz
9021760e7e functionalize the code for determining the type of sign
to be placed and the on_receive_fields calls, expose them in the API.
2014-06-23 06:33:54 -04:00
Vanessa Ezekowitz
f6e85db33d Add hanging-from-the-ceiling sign
point at the ceiling while placing a regular sign and it becomes a ceiling-
mounted one handing from a pair of short chains.
2014-06-11 00:06:56 -04:00
Vanessa Ezekowitz
9be635cb5f change license to LGPL to conform to what's written in the forum post
since forever.

Also clarify it in the copyright message, spread the license file around
a bit, and remove some useless "last changed" dates since they've been
inaccurate for a long time.
2014-06-06 03:26:42 -04:00
Diego Martinez
cf6e079044 Fix wrapped lines not drawing. 2014-06-04 05:35:46 -03:00
Diego Martinez
c15c0f06ef Remove debugging statement from last addition. 2014-06-03 07:41:43 -03:00
Diego Martinez
0d84bc13e2 Add support for colored text. 2014-06-03 07:04:26 -03:00
Diego Martinez
7bf1c43c2d Fix signs logging for real now. 2014-05-21 05:40:37 -03:00
Diego Martínez
287559ac97 Print actions to log file when players write to signs. 2014-04-26 10:04:30 -03:00
Xanthin
75d684e628 Add german translation. 2014-04-04 09:11:25 -03:00
Xanthin
e702ef9f13 Fixes to translation. 2014-04-04 09:10:26 -03:00
Vanessa Ezekowitz
ab4b89d76b fix missing infinite stacks detection on signs lib 2014-03-14 12:09:59 -04:00
Vanessa Ezekowitz
a9d42ea19d Fix quoting error in signs lib 2014-02-03 20:18:02 -05:00
Vanessa Ezekowitz
a6122f03d9 Remove old ownership code and use Minetest's built-in ownership code instead
Some minor code rewrites here and there to accommodate this changeover.
2014-01-30 15:53:21 -05:00
Vanessa Ezekowitz
b11b3a95ec that time I was a little UNDERzealous with the coloring of the signs :D 2014-01-25 22:07:50 -05:00