From: Ian Jackson Date: Sun, 12 Jun 2022 23:57:43 +0000 (+0100) Subject: script: Make mouse cursor different in wresting mode X-Git-Tag: otter-1.2.0~24 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0a34ec573c0492205c3de30daa84c596e9564de3;p=otter.git script: Make mouse cursor different in wresting mode Signed-off-by: Ian Jackson --- diff --git a/templates/script.ts b/templates/script.ts index b6a77414..e28b4dd5 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -548,7 +548,26 @@ function mousecursor_etc_reupdate() { let xy; let path = 'stroke-linecap="square" d="M -10 -10 10 10 M 10 -10 -10 10"'; - if (special_count == null) { + if (wresting) { + let text; + if (special_count == null) { + text = "WREST"; + } else if (special_count == 0) { + text = "W v"; + } else { + text = "W " + special_count; + } + xy = '60 15'; + svg = +` + + + + ${text} + `; + } else if (special_count == null) { } else { if (special_count != 0) { let text_len = special_count.toString().length;