I'm having no luck figuring out the syntax for listeners to the new buttons, so I can't handle the click-events atm... I've tried some obvious forms like;
Code: Select all
function JobComplete_PlaceExplosiveCharge()
this.SubType = 1
this.AddInterfaceComponent("ManualBtn", "Button", "Manual Detonation")
end
function InterfaceComponent_ManualBtn()--no
Echo("Click!")
end
function InterfaceComponent_Button()--no
Echo("Click!")
end
function InterfaceComponent_Click()--no
Echo("Click!")
end
function Click_Button()--no
Echo("Click!")
end
function Click_ManualBtn()--no
Echo("Click!")
end
function Click_InterfaceComponent()--no
Echo("Click!")
end
function InterfaceComponent_Click_ManualBtn()--no
Echo("Click!")
end
function InterfaceComponent_ManualBtn_Click()--no
Echo("Click!")
end
function Click_InterfaceComponent_Button()--no
Echo("Click!")
end
function Click_InterfaceComponent_ManualBtn()--no
Echo("Click!")
end
function Click_Button_InterfaceComponent()--no
Echo("Click!")
end
function Click_ManualBtn_InterfaceComponent()--no
Echo("Click!")
end
function ManualBtn()--no
Echo("Click!")
end
function ManualBtn_Button()-no
Echo("Click!")
end
function Button_ManualBtn()-no
Echo("Click!")
end
-don't worry I didn't test each one separately
So I need some help pinpointing the form for listeners to the new btns!!
I'd go check the mod mentioned in the update, but that isn't in the workshop yet...
Muchos gracias!