File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -282,12 +282,12 @@ func (e *Engine) Continue() {
282
282
e .State .TeamState [TeamBlue ].BotSubstitutionIntend = false
283
283
e .State .TeamState [TeamYellow ].BotSubstitutionIntend = false
284
284
e .SendCommand (CommandHalt , "" )
285
- } else if e .State .NextCommand != CommandUnknown {
286
- log .Printf ("Let game continue with next command" )
287
- e .SendCommand (e .State .NextCommand , e .State .NextCommandFor )
288
285
} else if e .State .Command == CommandHalt {
289
286
// continue with a stop after halt to let the robots prepare
290
287
e .SendCommand (CommandStop , "" )
288
+ } else if e .State .NextCommand != CommandUnknown {
289
+ log .Printf ("Let game continue with next command" )
290
+ e .SendCommand (e .State .NextCommand , e .State .NextCommandFor )
291
291
} else {
292
292
if e .State .Command != CommandStop {
293
293
// halt the game, if not in STOP.
Original file line number Diff line number Diff line change 17
17
v-on:click =" triggerContinue"
18
18
v-bind:disabled =" !continuePossible" >
19
19
Continue
20
- <span v-if =" state. nextCommand !== ''" >with</span >
21
- <span :class =" {'team-blue': state. nextCommandFor === 'Blue', 'team-yellow': state. nextCommandFor === 'Yellow'}" >
22
- {{state. nextCommand}}
20
+ <span v-if =" nextCommand !== ''" >with</span >
21
+ <span :class =" {'team-blue': nextCommandFor === 'Blue', 'team-yellow': nextCommandFor === 'Yellow'}" >
22
+ {{nextCommand}}
23
23
</span >
24
24
</b-button >
25
25
</div >
51
51
},
52
52
keymapContinue () {
53
53
return {
54
- ' ctrl+alt+ space ' : () => {
54
+ ' ctrl+space ' : () => {
55
55
if (! this .$refs .btnContinue .disabled ) {
56
56
this .triggerContinue ()
57
57
}
65
65
return this .state .command === ' halt' ;
66
66
},
67
67
continuePossible () {
68
- return this .halted || this . state . nextCommand !== ' ' ;
68
+ return this .nextCommand !== ' ' ;
69
69
},
70
70
stopAllowed () {
71
71
return isNonPausedStage (this .$store .state .refBoxState )
72
72
|| isPreStage (this .$store .state .refBoxState );
73
73
},
74
+ nextCommand () {
75
+ if (this .halted ) {
76
+ return ' stop'
77
+ }
78
+ return this .state .nextCommand ;
79
+ },
80
+ nextCommandFor () {
81
+ if (this .halted ) {
82
+ return ' '
83
+ }
84
+ return this .state .nextCommandFor ;
85
+ }
74
86
}
75
87
}
76
88
</script >
You can’t perform that action at this time.
0 commit comments