79 Commits

Author SHA1 Message Date
Vanessa Dannenberg
a428eef936 split signs.lua into multiple files by sign class
also sort the signs in each file by MUTCD number
2018-09-30 20:52:40 -04:00
Vanessa Dannenberg
9f4116e3e1 split init.lua into files by role 2018-09-29 18:37:04 -04:00
Vanessa Dannenberg
e960923bcd reworked all of the smaller models and most images
for consistency in size (per MUTCD for multi-lane conventional roads).  This
had the side benefit of reducing the number of unique models, also.

Some signs are bigger than before, some are smaller.  All of the reworked
models are now 50 mm thick (a bit thinner than before).

Also, consistent image resolution -- all reworked signs' graphics are
256px, which means most of them are lower resolution than before, but not
enough to make a big impact in quality.

Also, split the pole mount and the signs' eging from the main texture,
otherwise positions of these things in a sign image are unpredictable.

Got rid of all the entity UV guides images, as they're all invalid now.
2018-09-29 08:24:48 -04:00
Vanessa Dannenberg
87cfdede7b add "no turn on red light"
and "use lane with green arrow"
2018-09-29 00:01:38 -04:00
Vanessa Dannenberg
45ff960a15 make that function auto-generate floor and ceiling boxes from the wall box. 2018-09-28 23:00:10 -04:00
Vanessa Dannenberg
9e45672d13 functionalize shifting coll/sel boxes for on-pole placement
(rather than each node needing an if/then cbox=/else cbox=/end clause)
2018-09-28 22:41:19 -04:00
Vanessa Dannenberg
d66c1391c5 fix wrong selection box on "do not enter" 2018-09-28 22:21:43 -04:00
Vanessa Dannenberg
5ba5b9cf8d add R4-8 (keep left) and R10-5 (left on green arrow only) 2018-09-28 21:16:37 -04:00
Vanessa Dannenberg
ebe854c4d2 add MUTCD ID numbers to all signs where possible
rewrite a few descriptions to accommodate
replace mentions of "Basic" with "Generic" since those are all editable signs
2018-09-28 20:23:08 -04:00
Vanessa Dannenberg
c4ef1a19f0 add "stop here on red" sign 2018-09-27 10:32:34 -04:00
Vanessa Dannenberg
0421fc92ad add "wrong way" sign 2018-09-27 10:00:32 -04:00
Vanessa Dannenberg
3734688684 add do-not-enter sign 2018-09-27 09:38:04 -04:00
Vanessa Dannenberg
29005d38d6 fix sizes of US Route (24x24 regulatory) and US Interstate signs
to better comply with MUTCD 2009
2018-09-27 09:01:03 -04:00
Vanessa Dannenberg
e0a1f313c7 add "keep right" sign 2018-09-27 08:28:16 -04:00
Vanessa Dannenberg
fed550ca52 fix wrong selection box on image-only signs 2018-09-27 07:54:00 -04:00
Vanessa Dannenberg
42ff069415 Add speed limit sign 2018-09-27 07:23:48 -04:00
Vanessa Dannenberg
e20baa4999 add left- and right-lane-ends signs (W4-2 and mirror) 2018-09-27 05:23:06 -04:00
Vanessa Dannenberg
a486a57084 added two-way and merging traffic signs 2018-09-27 05:13:10 -04:00
Vanessa Dannenberg
0ba346139b add type 3 object markers (l, c, r) 2018-09-27 05:01:01 -04:00
Vanessa Dannenberg
e5f057fd65 fix missing check for coloredwood fences 2018-09-27 04:24:37 -04:00
Vanessa Dannenberg
f809be39e0 add stop-ahead, signal-ahead, and yield-ahead signs 2018-09-27 04:22:32 -04:00
Vanessa Dannenberg
8471420ae3 add wield images where needed 2018-09-27 03:56:04 -04:00
Vanessa Dannenberg
eb5eb8dcc9 add "stop for pedestrian" (in-crosswal) sign 2018-09-27 03:49:39 -04:00
Vanessa Dannenberg
b350098e3e check for "fencelike" drawtype instead of specific nodes
that way it works on more kinds of fences.
2018-09-27 02:19:06 -04:00
Vanessa Dannenberg
6002d55901 move custom after_place_node out of loop. derp :P 2018-09-27 02:14:38 -04:00
Vanessa Dannenberg
2d790e5740 convert roads/infrastructure signs to street signs versions
(and un-register them and their recipes)
2018-09-27 02:12:24 -04:00
Vanessa Dannenberg
1b705a4227 add stop, yield, and pedestrian crossing signs 2018-09-27 01:44:53 -04:00
Vanessa Dannenberg
6b5bddfacd make on-pole variants of the smaller signs
fully automatic placement of US route, US interstate, or yellow or
orange warning diamonds on a pole.  works with:

* all default fences
* homedecor's fences
* gloopblocks steel fence
* coloredwood fences
* Bobblocks "pole" and "wavypole" (which are fences also)
* streets signal/streetlight bigpole (straight piece only, only when vertical)
2018-09-26 22:24:25 -04:00
Vanessa Dannenberg
ca84272bf5 remove a debug print 2018-09-26 05:18:10 -04:00
Vanessa Dannenberg
ec67529419 add/fix screwdriver handling 2018-09-26 04:23:53 -04:00
Vanessa Dannenberg
561b8c68a9 fix LBM not restoring all signs 2018-09-26 04:00:36 -04:00
Vanessa Dannenberg
ed2608da1f make all highway etc signs wall mounted
(doesn't affect the street intersection sign)
2018-09-26 03:50:38 -04:00
Vanessa Dannenberg
71d069c4bc use wallmounted mode for all but the intersection signs. 2018-09-26 01:57:26 -04:00
Vanessa Dannenberg
024844c88c add orange variants of the highway signs and warning signs 2018-09-25 22:56:04 -04:00
Vanessa Dannenberg
bb36b78472 add 4-line warning sign, rename 3-line accordingly 2018-09-25 22:17:47 -04:00
Vanessa Dannenberg
df9b0e6f09 add "US Route", US "Interstate", and diamond-shaped warning signs
(1 line, 3 chars max in 31 px font for the route/interstate signs,
3 lines x 15 chars max in 15 px font for the warning sign)
2018-09-25 21:20:50 -04:00
Vanessa Dannenberg
c8e68f844a add blue/white and yellow/black variants
renamed green ones to have "green" in their names
2018-09-25 00:56:12 -04:00
Vanessa Dannenberg
3fd11131d3 add inv images and crafts for highway signs
consolidate signs_lib-based recipes
2018-09-24 22:53:03 -04:00
Vanessa Dannenberg
af4cbd5a35 add small and large highway signs
minor adjustment to medium sign size
tweaked text settings here and there a bit
2018-09-24 22:27:45 -04:00
Vanessa Dannenberg
fa15f7c0ad rework entities to get the text margins right. 2018-09-24 20:24:21 -04:00
Vanessa Dannenberg
079c21bd41 add a larger 2x2 sign for highways
uses a bigger, 31-px font
2018-09-24 19:38:10 -04:00
Vanessa Dannenberg
c95f7cce2f don't double-up the line texture to cover both sign sides
instead use the entity's UV mapping to handle it.
2018-09-24 15:38:43 -04:00
Vanessa Dannenberg
5c8262072d fix signs not updating properly via LBM or punch
also move the entities' surfaces outward a bit, to compensate for an engine
positioning glitch
2018-09-23 03:23:34 -04:00
Vanessa Dannenberg
b270628717 fix new sign entity being in the wrong place after restart 2018-09-21 20:38:58 -04:00
Vanessa Dannenberg
b664627336 add recipes to make the top-only section
and to make the full-height from top-only + steel ingot
2018-09-21 20:22:32 -04:00
Vanessa Dannenberg
9e2b65e84e add a version of the standard sign that's just the top part,
in case one wants to place it on top of some other kind of pole.
2018-09-21 20:17:31 -04:00
Vanessa Dannenberg
4a4567f027 automatically double-up the entered lines
so that line 1 does both sides of the top section
and line 2 does both sides of the bottom
2018-09-21 04:44:37 -04:00
Vanessa Dannenberg
1b0cc4ee64 clean-up input formspec 2018-09-21 02:55:21 -04:00
Vanessa Dannenberg
7bc0017232 default color = white 2018-09-21 02:11:19 -04:00
Vanessa Dannenberg
a7ce152b04 remove some cruft 2018-09-21 02:08:36 -04:00