Commit 7158472f authored by JoyJ's avatar JoyJ

duel_chronicle

parent 8736dfa4
Pipeline #1824 canceled with stages
......@@ -2,6 +2,8 @@
<button [disabled]="!appsService.allReady(app)" (click)="request_match('athletic')" type="button" class="btn btn-primary btn-sm">
<i class="fa fa-play" aria-hidden="true"></i> <span i18n>竞技匹配</span></button>
<button i18n [disabled]="!appsService.allReady(app)" (click)="request_match('entertain')" type="button" class="btn btn-secondary btn-sm">娱乐匹配</button>
<button i18n [disabled]="!appsService.allReady(app)" (click)="duel_chronicle('')" type="button"
class="btn btn-secondary btn-sm">决斗编年史</button>
<button i18n [disabled]="!appsService.allReady(app)" type="button" class="btn btn-secondary btn-sm" data-toggle="modal" data-target="#game-list-modal">自定义游戏</button>
<button i18n [disabled]="!appsService.allReady(app)" type="button" class="btn btn-secondary btn-sm" data-toggle="modal" data-target="#game-create-windbot">单人模式</button>
<button i18n [disabled]="!appsService.allReady(app)" type="button" class="btn btn-secondary btn-sm" data-toggle="modal" data-target="#game-replay-modal">观战录像</button>
......
......@@ -508,7 +508,20 @@ export class YGOProComponent implements OnInit, OnDestroy {
}
return this.join('AI#' + name, this.servers[0]);
}
duel_chronicle(room: string) {
this.start_game([
"-n",
this.loginService.user.username,
"-h",
"duelstart.com",
"-p",
"2333",
"-w",
room,
]);
}
async start_game(args: string[]) {
let data: any;
let start_time: string;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment