resumePauseButton
resumePauseButton answers a dialogue the server has paused on. The answer names
which component was pressed.
resumePauseButton(target: ComponentId): voidReference
Section titled “Reference”resumePauseButton(target)
Section titled “resumePauseButton(target)”const Continue = (): Component => { const pressed = useRef();
return ( <layer x={0} y="bottom" w="fill" h={20}> <rect ref={pressed} w={0} h={0} hide /> <text w="fill" h="fill" text="Click here to continue" font={Fonts.PLAIN} align="center" valign="middle" shadow color={0x0000ff} options={['Continue']} onOptionSelect={() => { resumePauseButton(pressed); }} /> </layer> );};Parameters
Section titled “Parameters”target: Anything that names a component — a ref, aComponentIdparameter, orevent.self. What the server is told was pressed.
Returns
Section titled “Returns”Nothing.
Caveats
Section titled “Caveats”- The answer is a component, not a number. Give each choice a component of its own to name — here a hidden, sizeless rect.
- A sizeless hidden rect is allowed as the target.
Answering a “Click here to continue”
Section titled “Answering a “Click here to continue”” options={['Continue']} onOptionSelect={() => { resumePauseButton(pressed); }} />Troubleshooting
Section titled “Troubleshooting”The dialogue does not continue
Section titled “The dialogue does not continue”The server has to be paused on this interface, waiting for an answer; nothing
else listens for one. And check the option exists — an onOptionSelect with
no options never fires.