Commit Graph

40 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
8f003997b1 fix crash, try #2 2014-01-25 13:36:01 -05:00
Vanessa Ezekowitz
8eb5b6c394 fix crash 2014-01-25 13:20:01 -05:00
Vanessa Ezekowitz
e057d357c8 split signs_lib from homedecor, put them into their own separate mods
package the two together as a modpack so that regular homedecor users don't
see a functional change, but others can take signs_lib and use it as a
standalone mod.

also get rid of some *~ files
2014-01-25 12:57:05 -05:00