SetOnEquipmentSelectionChanged
Subscribe to this event to be notified when the user changes the selected equipment. The equipment can be selected by a quick mouse click (on PC/Mac) or a tap (on touch screen). If the left mouse button is held on an equipment, this event will not fire.
Event callback
OnEquipmentSelectionChanged(name: string)
Parameters
- name (string): The name of the selected equipment.
Example
Subscribes to this event and then output the selected equipment to the console.
SYM3.SetOnEquipmentSelectionChanged(onSelectionChanged);
function onSelectionChanged(name)
{
console.log("onSelectionChanged: name=" + name);
}