mirror of
https://github.com/Sokomine/travelnet.git
synced 2024-08-20 05:24:18 +02:00
rearranged elevator buttons
This commit is contained in:
parent
6dbd41a67e
commit
f325e41170
8
init.lua
8
init.lua
@ -242,11 +242,11 @@ travelnet.update_formspec = function( pos, puncher_name )
|
||||
end
|
||||
|
||||
if( open_door_cmd ) then
|
||||
formspec = formspec .."label["..(x)..","..(y+2.5)..";"..tostring( k )..":]"..
|
||||
"button_exit["..(x+3)..","..(y+2.5)..";1,0.5;open_door;<>]";
|
||||
formspec = formspec .."button_exit["..(x)..","..(y+2.5)..";1,0.5;open_door;<>]"..
|
||||
"label["..(x+0.9)..","..(y+2.35)..";"..tostring( k ).."]";
|
||||
elseif( is_elevator ) then
|
||||
formspec = formspec .."label["..(x)..","..(y+2.5)..";"..tostring( k )..":]"..
|
||||
"button_exit["..(x+3)..","..(y+2.5)..";1,0.5;target;"..tostring( travelnet.targets[ owner_name ][ station_network ][ k ].nr ).."]";
|
||||
formspec = formspec .."button_exit["..(x)..","..(y+2.5)..";1,0.5;target;"..tostring( travelnet.targets[ owner_name ][ station_network ][ k ].nr ).."]"..
|
||||
"label["..(x+0.9)..","..(y+2.35)..";"..tostring( k ).."]";
|
||||
else
|
||||
formspec = formspec .."button_exit["..(x)..","..(y+2.5)..";4,0.5;target;"..k.."]";
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user