-------------------------------- # Signal_diag8 - test object for the diagonal signal images. # # Graphics rendered by simutrans-blender-kit (assets/signal_block), sheet is # 4 columns x 2 rows: column = direction (0=n 1=s 2=w 3=e), row = state # (0=red 1=green). # # It carries the SIXTEEN diagonal images the engine wants: eight places per # state. Each entry reuses the render of the direction it faces and is moved to # its place with the ,x,y offset - which is exactly what a pakset author would # do, and what makie's file cannot do with only eight entries. # # The offsets put the post BESIDE the rail, not on it. On screen the N|E and S|W # tiles carry the same straight line at x=-32 from their own tile centre, and the # E|S and N|W tiles carry the one at y=+16, so the post is moved 28 px to the left # of the first line and 24 px above the second. The two bends of one line get # different numbers only because their tile centres are offset from each other. # # The eight places, in the order the engine numbers them: # 0,1 bend N|E : north end, east end # 2,3 bend E|S : east end, south end # 4,5 bend N|W : north end, west end # 6,7 bend S|W : south end, west end --------------------------------- Obj=roadsign Name=Signal_diag8 copyright=simutrans-blender-kit (test object) waytype=track is_signal=1 cost=800 min_speed=0 intro_year=1900 intro_month=1 Icon=> signal_static.0.0 Cursor=signal_static.0.0 # --- the normal images: 4 directions x 2 states ----------------------------- # RED Image[0]=signal_static.0.0 Image[1]=signal_static.0.1 Image[2]=signal_static.0.2 Image[3]=signal_static.0.3 # GREEN Image[4]=signal_static.1.0 Image[5]=signal_static.1.1 Image[6]=signal_static.1.2 Image[7]=signal_static.1.3 # --- the diagonal images: 8 places x 2 states ------------------------------- # RED Diagonal[0]=signal_static.0.0,4,-16 Diagonal[1]=signal_static.0.3,4,16 Diagonal[2]=signal_static.0.3,32,-8 Diagonal[3]=signal_static.0.1,-32,-8 Diagonal[4]=signal_static.0.0,32,-40 Diagonal[5]=signal_static.0.2,-32,-40 Diagonal[6]=signal_static.0.1,-60,16 Diagonal[7]=signal_static.0.2,-60,-16 # GREEN Diagonal[8]=signal_static.1.0,4,-16 Diagonal[9]=signal_static.1.3,4,16 Diagonal[10]=signal_static.1.3,32,-8 Diagonal[11]=signal_static.1.1,-32,-8 Diagonal[12]=signal_static.1.0,32,-40 Diagonal[13]=signal_static.1.2,-32,-40 Diagonal[14]=signal_static.1.1,-60,16 Diagonal[15]=signal_static.1.2,-60,-16 ---------------------------------------