Skip to content

Commit 19cc9d8

Browse files
authored
Add U-Bahn
1 parent decc220 commit 19cc9d8

13 files changed

Lines changed: 691 additions & 8 deletions

File tree

src-ui/changes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
<main>
3434
<div style="margin-bottom: 5px;"><b>Latest types</b> (<em><a href="/list.html" target="_parent">all types</a></em>)</div>
3535
<ul>
36+
<li><a href="/p?ubahn" target="_parent">U-Bahn</a></li>
3637
<li><a href="/p?soulmates" target="_parent">Soul Mates ソウルメイツ</a></li>
3738
<li><a href="/p?longest" target="_parent">The Longest 短辺消失</a></li>
3839
<li><a href="/p?yokeimoji" target="_parent">Yokeimoji Cross 余計文字クロス</a></li>
3940
<li><a href="/p?golemgrad" target="_parent">Golem Grad</a></li>
4041
<li><a href="/p?bwloop" target="_parent">Kuroshiro Loop クロシロループ</a></li>
4142
<li><a href="/p?hamlepaths" target="_parent">Hamle Paths</a></li>
42-
<li><a href="/p?ruleofthree" target="_parent">Rule of Three</a></li>
4343
</ul>
4444
</main>
4545
</body>

src-ui/img/ubahn.png

122 Bytes
Loading

src-ui/js/ui/KeyPopup.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ ui.keypopup = {
252252
heavydots: [10, 0],
253253
suguru: [10, 10],
254254
marutaring: [10, 0],
255+
ubahn: [10, 135],
255256
nuriloop: [10, 0],
256257
tetroctb: [10, 0],
257258
hasunomura: [10, 0],
@@ -419,6 +420,8 @@ ui.keypopup = {
419420
this.generate_kurarin(mode);
420421
} else if (type === 134) {
421422
this.generate_narrowfence(mode);
423+
} else if (type === 135) {
424+
this.generate_ubahn(mode);
422425
} else if (type === 5339) {
423426
this.generate_swslither();
424427
}
@@ -1062,6 +1065,13 @@ ui.keypopup = {
10621065
);
10631066
},
10641067

1068+
generate_ubahn: function(mode) {
1069+
this.generate_main(
1070+
[["o", "O"], ["l", "L"], ["i", "I"], ["t", "T"], ["x", "X"], " "],
1071+
3
1072+
);
1073+
},
1074+
10651075
generate_swslither: function() {
10661076
this.generate_main(
10671077
[["5", "🐑"], ["6", "🐺"], null, "1", "2", "3", "0", " ", ["-", "?"]],

src-ui/js/ui/Misc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ function toBGimage(pid) {
251251
"trainstations",
252252
"tslither",
253253
"turnaround",
254+
"ubahn",
254255
"voxas",
255256
"vslither",
256257
"wafusuma",

src-ui/list.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ <h2 id="title"><span lang="ja">パズルの種類のリスト</span><span lang="
257257
<li data-pid="diamond"></li>
258258
<li data-pid="energywalk"></li>
259259
<li data-pid="keywest"></li>
260+
<li data-pid="ubahn"></li>
260261
</ul>
261262
</div>
262263
<div class="lists lines">

src-ui/p.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ <h2 id="title2">読み込み中です...</h2>
8484
<li data-value="3"><span>__use_tri.3__</span></li>
8585
</menu></li>
8686
<li class="check" data-config="bgcolor"><span>__bgcolor.menu__</span></li>
87-
<li class="check" data-config="autoerr"><span data-disp-pid="hitori">__autoerr.menu.hitori__</span
88-
><span data-disp-pid="gokigen,wagiri">__autoerr.menu.gokigen__</span></li>
8987
<li class="check" data-config="multierr"><span>__multierr__</span></li>
9088
<li class="check" data-config="forceallcell"><span>__forceallcell.menu__</span></li>
9189
<li class="check" data-config="dirauxmark"><span>__dirauxmark.menu__</span></li>
@@ -266,6 +264,7 @@ <h2 id="title2">読み込み中です...</h2>
266264
<input type="checkbox">
267265
<span data-disp-pid="hitori">__autoerr.tool.hitori__</span>
268266
<span data-disp-pid="gokigen">__autoerr.tool.gokigen__</span>
267+
<span data-disp-pid="ubahn">__autoerr.tool.ubahn__</span>
269268
<span data-disp-pid="wagiri">__autoerr.tool.wagiri__</span>
270269
</label>
271270
</div>

src-ui/res/p.en.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
"use_tri.2": "Pull-to-input",
4343
"use_tri.3": "One button",
4444
"bgcolor.menu": "Input background color",
45-
"autoerr.menu.hitori": "Show overlapped number",
46-
"autoerr.menu.gokigen": "Loop slash with color",
4745
"multierr": "Check multiple errors",
4846
"forceallcell.menu": "Number in all cells",
4947
"dirauxmark.menu": "Direction aux. mark",
@@ -179,6 +177,7 @@
179177
"autocmp.recoil": "Paint background of path obstacles",
180178
"autoerr.tool.hitori": "Show overlapped number as red",
181179
"autoerr.tool.gokigen": "Draw loop line as red",
180+
"autoerr.tool.ubahn": "Paint background of cell types",
182181
"autoerr.tool.wagiri": "Draw loop line as bold",
183182
"dirauxmark.tool": "Enable to input aux mark of direction",
184183
"enline.tool": "Enable to draw line only between the points",

src-ui/res/p.ja.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
"use_tri.2": "引っ張り入力",
4343
"use_tri.3": "1ボタン",
4444
"bgcolor.menu": "背景色入力",
45-
"autoerr.menu.hitori": "重複した数字を表示",
46-
"autoerr.menu.gokigen": "ループした斜線の色分け",
4745
"multierr": "複数エラー検出",
4846
"forceallcell.menu": "全マス数字必須",
4947
"dirauxmark.menu": "方向の補助記号",

src/puzzle/Config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,11 @@
438438
exec = !!puzzle.painter.autocmp;
439439
break;
440440
case "autoerr":
441-
exec = pid === "hitori" || pid === "gokigen" || pid === "wagiri";
441+
exec =
442+
pid === "hitori" ||
443+
pid === "gokigen" ||
444+
pid === "wagiri" ||
445+
pid === "ubahn";
442446
break;
443447
case "singlenum":
444448
exec = pid === "hanare" || pid === "putteria" || pid === "twinarea";

src/pzpr/variety.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@
486486
turnaround: [0, 0, "ターンアラウンド", "Turnaround"],
487487
turnrun: [0, 0, "トツゲキループ", "Turn and Run", "trainstations"],
488488
twinarea: [0, 0, "ツインエリア", "Twin Area", "hanare"],
489+
ubahn: [0, 0, "U-Bahn", "U-Bahn"],
489490
usotatami: [0, 0, "ウソタタミ", "Uso-tatami", "fillmat"],
490491
usoone: [0, 0, "ウソワン", "Uso-one"],
491492
uturns: [0, 0, "U-Turns", "U-Turns", "kusabi"],

0 commit comments

Comments
 (0)