Draft of Ultima chess rules; almost OK HalfChess
[vchess.git] / public / javascripts / components / game.js
index cb4d273..d76ab01 100644 (file)
@@ -25,6 +25,7 @@ Vue.component('my-game', {
        },
        render(h) {
                const [sizeX,sizeY] = VariantRules.size;
+               console.log(sizeX + " " + sizeY);
                const smallScreen = (screen.width <= 420);
                // Precompute hints squares to facilitate rendering
                let hintSquares = doubleArray(sizeX, sizeY, false);
@@ -660,6 +661,7 @@ Vue.component('my-game', {
                                                                                                                "value": "0",
                                                                                                                innerHTML: "None"
                                                                                                        },
+                                                                                                       attrs: { "selected": this.sound==0 },
                                                                                                }
                                                                                        ),
                                                                                        h("option",
@@ -668,6 +670,7 @@ Vue.component('my-game', {
                                                                                                                "value": "1",
                                                                                                                innerHTML: "Newgame"
                                                                                                        },
+                                                                                                       attrs: { "selected": this.sound==1 },
                                                                                                }
                                                                                        ),
                                                                                        h("option",
@@ -676,6 +679,7 @@ Vue.component('my-game', {
                                                                                                                "value": "2",
                                                                                                                innerHTML: "All"
                                                                                                        },
+                                                                                                       attrs: { "selected": this.sound==2 },
                                                                                                }
                                                                                        ),
                                                                                ],