Skip to content

Commit 0e9092b

Browse files
Peke in LITS (#749)
1 parent 7971f7d commit 0e9092b

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

src/variety/lits.js

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,28 @@
2727
"MouseEvent@lits,invlitso": {
2828
inputModes: {
2929
edit: ["border", "info-blk"],
30-
play: ["shade", "unshade", "info-blk"]
30+
play: ["shade", "unshade", "peke", "info-blk"]
31+
},
32+
mouseinput_auto: function() {
33+
if (this.puzzle.playmode) {
34+
if (
35+
this.btn === "right" &&
36+
this.mousestart &&
37+
this.inputpeke_ifborder()
38+
) {
39+
return;
40+
}
41+
if (
42+
(this.mousestart || this.mousemove) &&
43+
(!this.firstCell.isnull || this.notInputted())
44+
) {
45+
this.inputcell();
46+
}
47+
} else if (this.puzzle.editmode) {
48+
if (this.mousestart || this.mousemove) {
49+
this.inputborder();
50+
}
51+
}
3152
}
3253
},
3354
"MouseEvent@norinori": {
@@ -171,6 +192,7 @@
171192
this.drawGrid();
172193

173194
this.drawBorders();
195+
this.drawPekes();
174196

175197
this.drawChassis();
176198
}
@@ -231,11 +253,13 @@
231253
this.decodeAreaRoom();
232254
}
233255
this.decodeCellAns();
256+
this.decodeBorderLine();
234257
},
235258
encodeData: function() {
236259
this.filever = 1;
237260
this.encodeBorderQues();
238261
this.encodeCellAns();
262+
this.encodeBorderLineIfPresent();
239263
},
240264

241265
kanpenOpen: function() {

0 commit comments

Comments
 (0)