Code: Select all
-- **************************************************
-- General information about this script
-- **************************************************
ScriptName = "Test_Script"
Test_Script = {}
function Test_Script:Name()
return 'Test Script'
end
function Test_Script:Version()
return '1.0'
end
function Test_Script:UILabel()
return 'Test Script'
end
function Test_Script:Creator()
return 'Test'
end
function Test_Script:Description()
return 'Test'
end
-- **************************************************
-- Is Relevant / Is Enabled
-- **************************************************
function Test_Script:IsRelevant(moho)
return true
end
function Test_Script:IsEnabled(moho)
return true
end
-- **************************************************
-- Events
-- **************************************************
function Test_Script:OnMouseDown(moho, mouseEvent)
print('Test_Script:OnMouseDown')
end
function Test_Script:OnMouseUp(moho, mouseEvent)
print('Test_Script:OnMouseUp')
end
function Test_Script:OnKeyDown(moho, keyEvent)
print('Test_Script:OnKeyDown')
end
function Test_Script:OnKeyUp(moho, keyEvent)
print('Test_Script:OnKeyUp')
end
function Test_Script:OnInputDeviceEvent(moho, deviceEvent)
print('Test_Script:OnInputDeviceEvent')
end