|
19 | 19 | "nuritwin", |
20 | 20 | "marutaring", |
21 | 21 | "tetroctb", |
22 | | - "bramble" |
| 22 | + "bramble", |
| 23 | + "disco" |
23 | 24 | ], |
24 | 25 | { |
25 | 26 | //--------------------------------------------------------- |
|
45 | 46 | play: ["shade", "unshade", "info-blk"] |
46 | 47 | } |
47 | 48 | }, |
| 49 | + "MouseEvent@disco": { |
| 50 | + inputModes: { |
| 51 | + edit: ["info-blk"], |
| 52 | + play: ["shade", "unshade", "info-blk"] |
| 53 | + }, |
| 54 | + mouseinputAutoEdit: function() { |
| 55 | + this.inputborder(); |
| 56 | + } |
| 57 | + }, |
48 | 58 | "MouseEvent@cocktail,martini,tetroctb,bramble#2": { |
49 | 59 | dispInfoBlk: function() { |
50 | 60 | var cell = this.getcell(); |
|
184 | 194 | Board: { |
185 | 195 | hasborder: 1 |
186 | 196 | }, |
187 | | - "Board@shimaguni,stostone,heyablock,cocktail,martini,nuritwin,marutaring,tetroctb": { |
| 197 | + "Board@shimaguni,stostone,heyablock,cocktail,martini,nuritwin,marutaring,tetroctb,disco": { |
188 | 198 | addExtraInfo: function() { |
189 | 199 | this.stonegraph = this.addInfoList(this.klass.AreaStoneGraph); |
190 | 200 | } |
|
306 | 316 | "AreaShadeGraph@chocona,tetroctb,bramble": { |
307 | 317 | enabled: true |
308 | 318 | }, |
309 | | - "AreaShadeGraph@nuritwin,marutaring": { |
| 319 | + "AreaShadeGraph@nuritwin,marutaring,disco": { |
310 | 320 | enabled: true, |
311 | 321 | coloring: true |
312 | 322 | }, |
|
318 | 328 | component.hinge = null; |
319 | 329 | } |
320 | 330 | }, |
321 | | - "AreaStoneGraph:AreaShadeGraph@shimaguni,stostone,heyablock,cocktail,martini,nuritwin,marutaring,tetroctb": { |
| 331 | + "AreaStoneGraph:AreaShadeGraph@shimaguni,stostone,heyablock,cocktail,martini,nuritwin,marutaring,tetroctb,disco": { |
322 | 332 | // Same as LITS AreaTetrominoGraph |
323 | 333 | enabled: true, |
324 | 334 | relation: { "cell.qans": "node", "border.ques": "separator" }, |
|
374 | 384 | paint: function() { |
375 | 385 | this.drawBGCells(); |
376 | 386 |
|
377 | | - if (this.pid !== "nuritwin") { |
| 387 | + if (this.pid !== "nuritwin" && this.pid !== "disco") { |
378 | 388 | this.drawGrid(); |
379 | 389 | } |
380 | 390 |
|
381 | 391 | if ( |
382 | 392 | this.pid === "stostone" || |
383 | 393 | this.pid === "nuritwin" || |
| 394 | + this.pid === "disco" || |
384 | 395 | this.pid === "marutaring" |
385 | 396 | ) { |
386 | 397 | this.drawDotCells_stostone(); |
387 | 398 | } |
388 | 399 | this.drawShadedCells(); |
389 | 400 |
|
390 | | - if (this.pid === "nuritwin") { |
| 401 | + if (this.pid === "nuritwin" || this.pid === "disco") { |
391 | 402 | this.drawGrid(); |
392 | 403 | } |
393 | 404 |
|
|
423 | 434 | ); |
424 | 435 | } |
425 | 436 | }, |
426 | | - "Graphic@stostone,nuritwin,marutaring#1": { |
| 437 | + "Graphic@stostone,nuritwin,marutaring,disco#1": { |
427 | 438 | irowakeblk: true, |
428 | 439 | bgcellcolor_func: "error1", |
429 | 440 | bcolor: "rgb(80, 204, 80)", |
|
534 | 545 | : this.getCircleFillColor_qnum(cell); |
535 | 546 | } |
536 | 547 | }, |
537 | | - "Graphic@martini,nuritwin#2": { |
| 548 | + "Graphic@martini,nuritwin,disco#2": { |
538 | 549 | shadecolor: "#444444" |
539 | 550 | }, |
540 | 551 |
|
|
560 | 571 | this.encodeNumber16(); |
561 | 572 | } |
562 | 573 | }, |
| 574 | + "Encode@disco": { |
| 575 | + decodePzpr: function(type) { |
| 576 | + this.decodeBorder(); |
| 577 | + }, |
| 578 | + encodePzpr: function(type) { |
| 579 | + this.encodeBorder(); |
| 580 | + } |
| 581 | + }, |
563 | 582 | //--------------------------------------------------------- |
564 | 583 | FileIO: { |
565 | 584 | decodeData: function() { |
|
584 | 603 | } |
585 | 604 | } |
586 | 605 | }, |
| 606 | + "FileIO@disco": { |
| 607 | + decodeData: function() { |
| 608 | + this.decodeBorderQues(); |
| 609 | + this.decodeCellAns(); |
| 610 | + }, |
| 611 | + encodeData: function() { |
| 612 | + this.encodeBorderQues(); |
| 613 | + this.encodeCellAns(); |
| 614 | + } |
| 615 | + }, |
587 | 616 |
|
588 | 617 | //--------------------------------------------------------- |
589 | 618 | // 正解判定処理実行部 |
|
631 | 660 | "checkShadeCellCount" |
632 | 661 | ] |
633 | 662 | }, |
634 | | - "AnsCheck@nuritwin#1": { |
| 663 | + "AnsCheck@nuritwin,disco#1": { |
635 | 664 | checklist: [ |
636 | 665 | "check2x2ShadeCell", |
637 | | - "checkShadeBlockSize", |
638 | | - "checkSizesEqual", |
| 666 | + "checkShadeBlockSize@nuritwin", |
| 667 | + "checkSizesEqual@nuritwin", |
639 | 668 | "checkTwoBlocks", |
640 | 669 | "checkConnectShade", |
641 | 670 | "checkNoShadeCellInArea", |
|
987 | 1016 | this.checkOneArea(this.board.sblk8mgr, "csDivide"); |
988 | 1017 | } |
989 | 1018 | }, |
990 | | - "AnsCheck@nuritwin": { |
| 1019 | + "AnsCheck@nuritwin,disco": { |
991 | 1020 | checkShadeBlockSize: function() { |
992 | 1021 | var blocks = this.board.stonegraph.components; |
993 | 1022 | for (var id = 0; id < blocks.length; id++) { |
|
0 commit comments