Commit Graph

54 Commits

Author SHA1 Message Date
Tim
40431fc050 fix fence_with_signs check for content_ignore, prevent it to destroy unknown_nodes and always return the itemstack 2015-09-10 09:42:48 +02:00
Tim
d763840b47 assign custom on_place to the right fence definition, which makes sign posts work again 2015-09-10 09:42:48 +02:00
Tim
f384d73f70 quiet down sign_lib (_G warning and debug statements) 2015-09-10 09:42:48 +02:00
Diego Martinez
451d2e26ad signs-lib: Some changes.
- Rename extra font dirs to match sizes (were off by a few px)
- Distribute colors per font, and resize default color textures
  to match default font.
- Removed character size cache (was useless and just made things
  more complex).
- Get line height from background color texture height.
2015-07-06 01:49:23 -03:00
Vanessa Ezekowitz
c19841064b respond to keyword_interact live keyword change 2015-06-26 06:11:22 -04:00
Vanessa Ezekowitz
a79c752c40 keyword --> current_keyword 2015-06-26 05:25:02 -04:00
Vanessa Ezekowitz
f0a846b200 make signs_able to display the interact_keyword setting
as used by CWz's mod of the same name

Write @KEYWORD (all caps, with the 'at') into the sign's text to display
the keyword.  Keyword displayed is automatically updated if the 15-second
update interval detects that it differs from the minetest.conf setting.

The keyword setting is only read at startup.
2015-06-26 04:22:24 -04:00
cheapie
57826a1a15 Add orange, brown, and blue signs 2015-06-13 23:35:38 -05:00
kilbith
f1dca4e990 Fix screwdriver variables 2015-05-15 13:22:05 +02:00
Vanessa Ezekowitz
f1db5635f5 use wallmounted-only rotation for default and locked signs.
includes code by nore to handle the actual rotation restriction
2015-05-14 13:35:38 -04:00
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
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