@ -69,7 +69,7 @@ kOfferLinkingBook=PtEventType.kOfferLinkingBook # [1]=offerer, [2]=link panel ID
# OnNotify Var Event Data Types
# OnNotify Var Event Data Types
kVarNumberType = PtNotifyDataType . kNumber
kVarNumberType = PtNotifyDataType . kFloat
kVarKeyType = PtNotifyDataType . kKey
kVarKeyType = PtNotifyDataType . kKey
# OnNotify MultiStageEvent - what event types
# OnNotify MultiStageEvent - what event types
kEnterStage = PtMultiStageEventType . kEnterStage
kEnterStage = PtMultiStageEventType . kEnterStage
@ -179,8 +179,12 @@ def PtAddEvent(notify,event):
elif event [ 0 ] == kControlKeyEvent :
elif event [ 0 ] == kControlKeyEvent :
notify . addControlKeyEvent ( event [ 1 ] , event [ 2 ] )
notify . addControlKeyEvent ( event [ 1 ] , event [ 2 ] )
elif event [ 0 ] == kVariableEvent :
elif event [ 0 ] == kVariableEvent :
if event [ 2 ] == kVarNumberType :
if event [ 2 ] == PtNotifyDataType . kFloat :
notify . addVarNumber ( event [ 1 ] , event [ 3 ] )
notify . addVarFloat ( event [ 1 ] , event [ 3 ] )
elif event [ 2 ] == PtNotifyDataType . kInt :
notify . addVarInt ( event [ 1 ] , event [ 3 ] )
elif event [ 2 ] == PtNotifyDataType . kNull :
notify . addVarNull ( event [ 1 ] )
elif event [ 2 ] == kVarKeyType :
elif event [ 2 ] == kVarKeyType :
notify . addVarKey ( event [ 1 ] , event [ 3 ] )
notify . addVarKey ( event [ 1 ] , event [ 3 ] )
elif event [ 0 ] == kFacingEvent :
elif event [ 0 ] == kFacingEvent :