import { OperationPauseAction } from './OperationPauseAction' ; import { BoardManager } from './boardManager' ; import { AnimationToolBar } from './AnimationToolBar' ; import { Action } from './Action' ; import { CircularMenu } from './CircularMenu' ; /**
 * menu for actions
 */ export class ActionTimeLineMenu extends CircularMenu { constructor ( t ) { super ( true ) ; this . radius = 40 ; this . addButtonImage ( { src : "img/icons/parallel.svg" , title : "Execute the action in parallel or not. Make that we do not for the action(s) to finish. Action(s) will continue to be executed with the next ones." , onclick : ( ) => { const a = BoardManager . timeline . actions [ t ] ; a . isBlocking = ! a . isBlocking ; AnimationToolBar . update ( ) ; CircularMenu . hide ( ) ; } } ) ; this . addButtonImage ( { src : "img/icons/1F6D1.svg" , title : "Make that action a key action or not" , onclick : ( ) => { BoardManager . executeOperation ( new OperationPauseAction ( t ) ) ; CircularMenu . hide ( ) ; } } ) ; this . layout ( ) ; } }