|
8 | 8 | <h3 class="md-title" style="flex: 1">RLBot</h3> |
9 | 9 |
|
10 | 10 | <div class="md-toolbar-section-end"> |
| 11 | + <span v-if="!matchSettings.enable_state_setting"> |
| 12 | + <md-icon class="warning-icon">warning</md-icon><md-tooltip md-direction="bottom">State setting is turned off, sandbox won't work!</md-tooltip> |
| 13 | + </span> |
11 | 14 | <md-button @click="$router.replace('/sandbox')"> |
12 | 15 | State Setting Sandbox |
13 | 16 | </md-button> |
|
211 | 214 | <md-dialog-title>Extra Options</md-dialog-title> |
212 | 215 |
|
213 | 216 | <md-dialog-content> |
214 | | - <md-switch v-model="matchSettings.skip_replays">Skip Replays</md-switch> |
215 | | - <md-switch v-model="matchSettings.instant_start">Instant Start</md-switch> |
216 | | - <md-switch v-model="matchSettings.enable_lockstep">Enable lockstep</md-switch> |
| 217 | + <div class="md-layout"> |
| 218 | + <div class="md-layout-item"> |
| 219 | + <div><md-switch v-model="matchSettings.skip_replays">Skip Replays</md-switch></div> |
| 220 | + <div><md-switch v-model="matchSettings.instant_start">Instant Start</md-switch></div> |
| 221 | + <div><md-switch v-model="matchSettings.enable_lockstep">Enable Lockstep</md-switch></div> |
| 222 | + </div> |
| 223 | + <div class="md-layout-item"> |
| 224 | + <div><md-switch v-model="matchSettings.enable_rendering">Enable Rendering (bots can draw on screen)</md-switch></div> |
| 225 | + <div><md-switch v-model="matchSettings.enable_state_setting">Enable State Setting (bots can teleport)</md-switch></div> |
| 226 | + <div><md-switch v-model="matchSettings.auto_save_replay">Auto Save Replay</md-switch></div> |
| 227 | + </div> |
| 228 | + </div> |
217 | 229 | <mutator-field label="Existing Match Behaviour" :options="matchOptions.match_behaviours" v-model="matchSettings.match_behavior"></mutator-field> |
218 | 230 | </md-dialog-content> |
219 | 231 |
|
|
464 | 476 | respawn_time: null |
465 | 477 | }, |
466 | 478 | randomizeMap: false, |
| 479 | + enable_rendering: false, |
| 480 | + enable_state_setting: false, |
| 481 | + auto_save_replay: false, |
467 | 482 | }, |
468 | 483 | randomMapPool: [], |
469 | 484 | showMutatorDialog: false, |
|
553 | 568 | this.matchSettings.instant_start = false; |
554 | 569 | this.matchSettings.enable_lockstep = false; |
555 | 570 | this.matchSettings.randomizeMap = false; |
| 571 | + this.matchSettings.enable_rendering = false; |
| 572 | + this.matchSettings.enable_state_setting = true; |
| 573 | + this.matchSettings.auto_save_replay = false; |
556 | 574 | this.resetMutatorsToDefault(); |
557 | 575 |
|
558 | 576 | this.updateBGImage(this.matchSettings.map); |
|
654 | 672 |
|
655 | 673 | matchSettingsReceived: function (matchSettings) { |
656 | 674 | if (matchSettings) { |
657 | | - this.matchSettings = matchSettings; |
| 675 | + Object.assign(this.matchSettings, matchSettings); |
658 | 676 | this.updateBGImage(this.matchSettings.map); |
659 | 677 | } else { |
660 | 678 | this.resetMatchSettingsToDefault(); |
|
0 commit comments