Changes /turf/space/transit icons in map editor

So a mapper can actually see what the hell he's doing.

Also added south and west tiles while I was at it.
This commit is contained in:
Spades
2017-08-07 17:33:17 -04:00
parent 923285b2af
commit c18c374518
2 changed files with 43 additions and 0 deletions

View File

@@ -20,7 +20,10 @@
return result return result
//------------------------
/turf/space/transit/north // moving to the north /turf/space/transit/north // moving to the north
icon_state = "arrow-north"
pushdirection = SOUTH // south because the space tile is scrolling south pushdirection = SOUTH // south because the space tile is scrolling south
var/static/list/phase_shift_by_x var/static/list/phase_shift_by_x
@@ -33,8 +36,28 @@
var/transit_state = (world.maxy - src.y + x_shift)%15 + 1 var/transit_state = (world.maxy - src.y + x_shift)%15 + 1
icon_state = "speedspace_ns_[transit_state]" icon_state = "speedspace_ns_[transit_state]"
//------------------------
/turf/space/transit/south // moving to the south
icon_state = "arrow-south"
pushdirection = SOUTH // south because the space tile is scrolling south
var/static/list/phase_shift_by_x
/turf/space/transit/south/New()
..()
if(!phase_shift_by_x)
phase_shift_by_x = get_cross_shift_list(15)
var/x_shift = phase_shift_by_x[src.x % (phase_shift_by_x.len - 1) + 1]
var/transit_state = (world.maxy - src.y + x_shift)%15 + 1
var/icon/I = new(icon, "speedspace_ns_[transit_state]")
I.Flip(SOUTH)
icon = I
//------------------------
/turf/space/transit/east // moving to the east /turf/space/transit/east // moving to the east
icon_state = "arrow-east"
pushdirection = WEST pushdirection = WEST
var/static/list/phase_shift_by_y var/static/list/phase_shift_by_y
@@ -47,3 +70,23 @@
var/transit_state = (world.maxx - src.x + y_shift)%15 + 1 var/transit_state = (world.maxx - src.x + y_shift)%15 + 1
icon_state = "speedspace_ew_[transit_state]" icon_state = "speedspace_ew_[transit_state]"
//------------------------
/turf/space/transit/west // moving to the west
icon_state = "arrow-west"
pushdirection = WEST
var/static/list/phase_shift_by_y
/turf/space/transit/west/New()
..()
if(!phase_shift_by_y)
phase_shift_by_y = get_cross_shift_list(15)
var/y_shift = phase_shift_by_y[src.y % (phase_shift_by_y.len - 1) + 1]
var/transit_state = (world.maxx - src.x + y_shift)%15 + 1
var/icon/I = new(icon, "speedspace_ew_[transit_state]")
I.Flip(WEST)
icon = I
//------------------------

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 124 KiB