Methods - vpinball/b2s-backglass GitHub Wiki
B2S Methods Documentation
B2S Method List
-
B2SSetData
- Description: Backup method to set data.
- Parameters:
idORname
(Object): Identifier or name.value
(Object): Value to set.
- Return Type:
Void
-
B2SPulseData
- Description: Pulse the set data.
- Parameters:
idORname
(Object): Identifier or name.
- Return Type:
Void
-
B2SSetPos
- Description: Set position.
- Parameters:
idORname
(Object): Identifier or name.xpos
(Object): X position.ypos
(Object): Y position.
- Return Type:
Void
-
B2SSetIllumination
- Description: Method to set illumination.
- Parameters:
name
(Object): Name.value
(Object): Value to set.
- Return Type:
Void
-
B2SSetLED
- Description: Set LED.
- Parameters:
digit
(Object): Digit.valueORtext
(Object): Value or text.
- Return Type:
Void
-
B2SSetLEDDisplay
- Description: Set LED display.
- Parameters:
display
(Object): Display.text
(Object): Text.
- Return Type:
Void
-
B2SSetReel
- Description: Set reel.
- Parameters:
digit
(Object): Digit.value
(Object): Value to set.
- Return Type:
Void
-
B2SSetScore
- Description: Set score (1-24).
- Parameters:
display
(Object): Display.value
(Object): Value to set.
- Return Type:
Void
-
B2SSetScorePlayer
- Description: Set score for a specific player.
- Parameters:
playerno
(Object): Player number.score
(Object): Score to set.
- Return Type:
Void
-
B2SSetScorePlayer1
- Description: Set score for player 1.
- Parameters:
score
(Object): Score to set.
- Return Type:
Void
-
B2SSetScorePlayer2
- Description: Set score for player 2.
- Parameters:
score
(Object): Score to set.
- Return Type:
Void
-
B2SSetScorePlayer3
- Description: Set score for player 3.
- Parameters:
score
(Object): Score to set.
- Return Type:
Void
-
B2SSetScorePlayer4
- Description: Set score for player 4.
- Parameters:
score
(Object): Score to set.
- Return Type:
Void
-
B2SSetScorePlayer5
- Description: Set score for player 5.
- Parameters:
score
(Object): Score to set.
- Return Type:
Void
-
B2SSetScorePlayer6
- Description: Set score for player 6.
- Parameters:
score
(Object): Score to set.
- Return Type:
Void
-
B2SSetScoreDigit
- Description: Set score digit.
- Parameters:
digit
(Object): Digit.value
(Object): Value to set.
- Return Type:
Void
-
B2SSetScoreRollover
- Description: Set score rollover (25-28).
- Parameters:
id
(Object): Identifier.value
(Object): Value to set.
- Return Type:
Void
-
B2SSetScoreRolloverPlayer1
- Description: Set score rollover for player 1.
- Parameters:
value
(Object): Value to set.
- Return Type:
Void
-
B2SSetScoreRolloverPlayer2
- Description: Set score rollover for player 2.
- Parameters:
value
(Object): Value to set.
- Return Type:
Void
-
B2SSetScoreRolloverPlayer3
- Description: Set score rollover for player 3.
- Parameters:
value
(Object): Value to set.
- Return Type:
Void
-
B2SSetScoreRolloverPlayer4
- Description: Set score rollover for player 4.
- Parameters:
value
(Object): Value to set.
- Return Type:
Void
-
B2SSetCredits
- Description: Set credits (29).
- Parameters:
digitORvalue
(Object): Digit or value.value
(Object, Optional): Value to set.
- Return Type:
Void
-
B2SSetPlayerUp
- Description: Set player up (30).
- Parameters:
idORvalue
(Object): Identifier or value.value
(Object, Optional): Value to set.
- Return Type:
Void
-
B2SSetCanPlay
- Description: Set can play (31).
- Parameters:
idORvalue
(Object): Identifier or value.value
(Object, Optional): Value to set.
- Return Type:
Void
-
B2SSetBallInPlay
- Description: Set ball in play (32).
- Parameters:
idORvalue
(Object): Identifier or value.value
(Object, Optional): Value to set.
- Return Type:
Void
-
B2SSetTilt
- Description: Set tilt (33).
- Parameters:
idORvalue
(Object): Identifier or value.value
(Object, Optional): Value to set.
- Return Type:
Void
-
B2SSetMatch
- Description: Set match (34).
- Parameters:
idORvalue
(Object): Identifier or value.value
(Object, Optional): Value to set.
- Return Type:
Void
-
B2SSetGameOver
- Description: Set game over (35).
- Parameters:
idORvalue
(Object): Identifier or value.value
(Object, Optional): Value to set.
- Return Type:
Void
-
B2SSetShootAgain
- Description: Set shoot again (36).
- Parameters:
idORvalue
(Object): Identifier or value.value
(Object, Optional): Value to set.
- Return Type:
Void
-
B2SStartAnimation
- Description: Start animation.
- Parameters:
animationname
(String): Animation name.playreverse
(Boolean, Optional): Play in reverse.
- Return Type:
Void
-
B2SStartAnimationReverse
- Description: Start animation in reverse.
- Parameters:
animationname
(String): Animation name.
- Return Type:
Void
-
B2SStopAnimation
- Description: Stop animation.
- Parameters:
animationname
(String): Animation name.
- Return Type:
Void
-
B2SStopAllAnimations
- Description: Stop all animations.
- Parameters: None
- Return Type:
Void
-
B2SIsAnimationRunning
- Description: Check if animation is running.
- Parameters:
animationname
(String): Animation name.
- Return Type:
Boolean
-
B2SStartRotation
- Description: Start rotation.
- Parameters: None
- Return Type:
Void
-
B2SStopRotation
- Description: Stop rotation.
- Parameters: None
- Return Type:
Void
-
B2SShowScoreDisplays
- Description: Show score displays.
- Parameters: None
- Return Type:
Void
-
B2SHideScoreDisplays
- Description: Hide score displays.
- Parameters: None
- Return Type:
Void
-
B2SStartSound
- Description: Start sound.
- Parameters:
soundname
(String): Sound name.
- Return Type:
Void
-
B2SPlaySound
- Description: Play sound.
- Parameters:
soundname
(String): Sound name.
- Return Type:
Void
-
B2SStopSound
- Description: Stop sound.
- Parameters:
soundname
(String): Sound name.
- Return Type:
Void
-
B2SMapSound
- Description: Map sound.
- Parameters:
digit
(Object): Digit.soundname
(String): Sound name.
- Return Type:
Void