/*

DO NOT EDIT THIS FILE!

This file contains definitions for house doors and banners. If you want to set these up on a map, place a new instance of it, and then right click it to set its
variables. You can see an example of how this all works in one of the example maps (peaceful forest).

Basically, sign_x and sign_y are the number of horizontal and vertical tiles from the door where the sign is located.
banner_x and banner_y are the same for the -lower left corner- of the banner.

Use negative values if the object is to the left or below the house door (for x).
Use positive values if the object is to the right or above the house door (for y).

For example, if I put a sign below the door, on its left side, it would be;

sign_x=-1 (one tile to the left)
sign_y=-1 (one tile below)

Right click and edit the existing house doors in an example map and look for the bolded variables to see working examples.
You can edit any of the values under Edit by double clicking the box to the right (where the value is displayed).

*/

obj
	house_door
		name="Empty House"
		icon='capital tiles.dmi'
		icon_state="7,11"

		var
			vacant_sign
			loc_name
			sign_x
			sign_y // Offsets for a 'sign' that can be saved.
			banner_x
			banner_y // Offsets for a 'banner' that can be saved.


		density=1
		New()
			..()
			if(top_state)
				overlays=list()
				var/obj/Z=new
				Z.icon=icon
				Z.icon_state=top_state
				Z.pixel_y=32
				overlays+=Z
			vacant_sign=icon('capital tiles.dmi',"vacant")
			overlays+=vacant_sign
		var
			top_state="7,12"
		oniga
			icon='oniga house door.dmi'
			icon_state="bottom"
			top_state="top"
		laws_end
			icon='adobe.dmi'
			icon_state="house door"
			top_state=null
		stone_door
			icon='stone door.dmi'
			top_state=null

	house_sign
		name="Sign"
		icon='player house.dmi'
		icon_state="sign"
		wall_sign
			icon_state="wall sign"
		var
			sign_text="A boring sign!"
		verb
			Read_Sign()
				set src in view()
				var/html="<TITLE>[name]</TITLE>[sign_text]"
				usr << browse(html,"window=[name];size=300x450")

	house_banner
		name="House Banner"
		icon='house_banner.dmi'
		var
			border_state="border"
		chaturanga
			border_state="chaturanga"

obj
	shop_stall
		name="Player Shop Stall"
		icon='shop stall.dmi'
		icon_state="open"