chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
665c869
)
script: Demonstrate that we can use the desc in a log message
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 1 May 2022 18:28:28 +0000
(19:28 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 1 May 2022 18:39:26 +0000
(19:39 +0100)
We can now improve many more messages, but I have other fish to fry ATM.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts
patch
|
blob
|
history
diff --git
a/templates/script.ts
b/templates/script.ts
index 982870db7e4e448cee9af7c19674c582b509b5ab..3f75b1c13dcc4d0e7be00e707572eb5ad720f53f 100644
(file)
--- a/
templates/script.ts
+++ b/
templates/script.ts
@@
-1171,7
+1171,8
@@
function drag_mousedown(e : MouseEvent, shifted: boolean) {
ungrab_all_except(note_already);
}
if (pinned && !wresting) {
- add_log_message('That piece is pinned to the table.');
+ let p = pieces[c.clicked[0]!]!;
+ add_log_message('That piece ('+p.desc+') is pinned to the table.');
return;
}
grab_clicked(clicked, !wresting, multigrab);