Push button tile
$object.pushbuttontile:description$
Properties
color
$object.pushbuttontile.color:description$
id
Unique object identifier. Each object in Traintastic has a globally unique id that can be used in scripts (see world.get_object).
text
$object.pushbuttontile.text:description$
text_color
$object.pushbuttontile.text_color:description$
Events
on_pressed
$object.pushbuttontile.on_pressed:description$
Handler signature
function (push_button, user_data)
Arguments
-
push_button- $object.pushbuttontile.on_pressed.parameter.push_button:description$ -
user_data- optional user-provided value (see Events).