Skip to content

Commit adf689a

Browse files
authored
Add Mr. OK and Mr. NO
1 parent e35c8d6 commit adf689a

9 files changed

Lines changed: 698 additions & 3 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?mrokmrno" target="_parent">Mr. OK and Mr. NO</a></li>
3637
<li><a href="/p?slovak" target="_parent">Slovak Sums</a></li>
3738
<li><a href="/p?anymino" target="_parent">Anymino</a></li>
3839
<li><a href="/p?elasticlink" target="_parent">Elastic Link</a></li>
3940
<li><a href="/p?landmeasure" target="_parent">Land Measurement</a></li>
4041
<li><a href="/p?trizone" target="_parent">Trizone サントイッチ</a></li>
4142
<li><a href="/p?ubahn" target="_parent">U-Bahn</a></li>
42-
<li><a href="/p?soulmates" target="_parent">Soul Mates ソウルメイツ</a></li>
4343
</ul>
4444
</main>
4545
</body>

src-ui/css/ui.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ div#keypopup {
360360
}
361361
div.panelbase {
362362
margin: 1pt;
363+
font-variant-emoji: text;
363364
}
364365

365366
div.kpcell {

src-ui/js/ui/KeyPopup.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ ui.keypopup = {
259259
hasunomura: [10, 0],
260260
bramble: [10, 0],
261261
golemgrad: [10, 0],
262+
mrokmrno: [137, 137],
262263
topo: [10, 10],
263264
soulmates: [10, 10],
264265
landmeasure: [10, 0],
@@ -428,6 +429,8 @@ ui.keypopup = {
428429
this.generate_ubahn(mode);
429430
} else if (type === 136) {
430431
this.generate_slovak(mode);
432+
} else if (type === 137) {
433+
this.generate_mrokmrno(mode);
431434
} else if (type === 5339) {
432435
this.generate_swslither();
433436
}
@@ -1135,6 +1138,24 @@ ui.keypopup = {
11351138
);
11361139
},
11371140

1141+
generate_mrokmrno: function(mode) {
1142+
var mbcolor = ui.puzzle.painter.mbcolor;
1143+
var items = [
1144+
["1", "N"],
1145+
["2", "K"],
1146+
["3", "O"],
1147+
["4", "😶"],
1148+
["5", "🙂"],
1149+
["6", "🙁"],
1150+
" "
1151+
];
1152+
if (mode === 3) {
1153+
items.push(["q", { text: "⋅", color: mbcolor }]);
1154+
}
1155+
1156+
this.generate_main(items, 3);
1157+
},
1158+
11381159
generate_main: function(list, split) {
11391160
for (var i = 0; i < list.length; i++) {
11401161
this.inputcol(list[i]);

src-ui/list.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ <h2 id="title"><span lang="ja">パズルの種類のリスト</span><span lang="
460460
<li data-pid="retroships"></li>
461461
<li data-pid="regional-poly"></li>
462462
<li data-pid="yajirushi"></li>
463+
<li data-pid="mrokmrno"></li>
463464
</ul>
464465
</div>
465466
</div>

src/puzzle/KeyInput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ pzpr.classmgr.makeCommon({
157157
key = "-";
158158
} else if (keycode === 106) {
159159
key = "*";
160-
} else if (keycode === 107) {
160+
} else if (keycode === 107 || keycode === 59 || keycode === 61) {
161161
key = "+";
162162
}
163163

@@ -171,7 +171,7 @@ pzpr.classmgr.makeCommon({
171171
if (this.isCTRL) {
172172
keylist.unshift("ctrl");
173173
}
174-
if (this.isSHIFT) {
174+
if (this.isSHIFT && key !== "+") {
175175
keylist.unshift("shift");
176176
}
177177
key = keylist.join("+");

src/pzpr/variety.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@
305305
mochinyoro: [1, 0, "モチにょろ", "Mochinyoro", "nurikabe"],
306306
moonsun: [0, 0, "月か太陽", "Moon or Sun", "country"],
307307
morningwalk: [0, 0, "Morning Walk", "Morning Walk", "icewalk"],
308+
mrokmrno: [0, 0, "OKさんとNOくん", "Mr. OK and Mr. NO"],
308309
mrtile: [0, 0, "ミラーリングタイル", "Mirroring Tile", "chainedb"],
309310
mukkonn: [0, 0, "Mukkonn Enn", "Mukkonn Enn", "compass"],
310311
myopia: [0, 0, "Myopia", "Myopia"],

src/res/failcode.en.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@
176176
"bkNoNum.hanare": "A room has no numbers.",
177177
"bkNoNum.kaero": "An area has no letters.",
178178
"bkNoNum.kramma": "An area has no marks.",
179+
"bkNoNum.mrokmrno": "A group doesn't have exactly 2 letters spelling out \"OK\" or \"NO\".",
179180
"bkNoNum.nanro": "There is an empty room.",
180181
"bkNoNum.narrow": "A region has no symbols.",
181182
"bkNoNum.nawabari": "A room has no numbers.",
@@ -406,6 +407,7 @@
406407
"ceNoEnd.kaidan": "A rectangle is not closed.",
407408
"ceNoLine.arukone": "A crossing is left blank.",
408409
"ceNoLine": "There is an empty cell.",
410+
"ceNoMouth.mrokmrno": "A face has no mouth.",
409411
"ceNoNum.compass": "There is an area without a clue.",
410412
"ceNoNum.kakuro": "There is an empty cell.",
411413
"ceNoNum.lohkous": "There is an area without a clue.",
@@ -422,6 +424,8 @@
422424
"ceTapaNe.tapa": "The number is not equal to the length of surrounding shaded cells.",
423425
"ceTooManyBlocks.doppelblock": "There are more than two blocks in a row or column.",
424426
"ceUnused.kinkonkan": "A mirror is unused.",
427+
"ceWrongSmile.mrokmrno": "A smiling face is next to the word NO.",
428+
"ceWrongFrown.mrokmrno": "A frowning face is next to the word OK.",
425429
"ciNotOnCnr.loute": "A circle is not at the corner of an area.",
426430
"circleNotPromontory.kurodoko": "A circle is not a dead end.",
427431
"circleShade.kissing": "A crossed cell is shaded.",

0 commit comments

Comments
 (0)