Skip to content

Development

Thomas--S edited this page Jun 3, 2016 · 4 revisions

Texture style guide

  • 16px for asphalt, concrete and markings

Roadmarkings Registration

Example:

streets.register_road_marking({
	name = "dashed_{color}_center_line",
	friendlyname = "Dashed Center Line",
	tex = "streets_dashed_center_line.png",
	section = "centerlines",
	dye_needed = 1,
	rotation = { r90 = 1},
})

name: This gets used to make the itemstrings. {color} gets replaced by "white" or "yellow". friendlyname: This gets used to generate the descriptions. Other information like color and rotation get automatically added during registration process. tex: Texture. Please use a white texture. The yellow one gets automatically generated out of the white one. section: This gets used for the Asphalt workshop. dye_needed: The amount of needed dye. rotation: By default, no rotated markings are generated. You have to set the respective values to 1. Possible values:

  • r90
  • r180
  • r270
Clone this wiki locally