From: Ian Jackson Date: Mon, 5 Jul 2021 19:58:29 +0000 (+0100) Subject: script: dragging: Make this hex X-Git-Tag: otter-0.7.2~255 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=63fb734ec74dd308e0e632bd60969d4357e3be24;p=otter.git script: dragging: Make this hex In case we every want to add more. (We don't right now, it turns out.) Signed-off-by: Ian Jackson --- diff --git a/templates/script.ts b/templates/script.ts index 5c45c7a1..a8fffcd1 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -802,11 +802,11 @@ type DragInfo = { } enum DRAGGING { // bitmask - NO = 0, - MAYBE_GRAB = 1, - MAYBE_UNGRAB = 2, - YES = 4, - RAISED = 8, + NO = 0x00, + MAYBE_GRAB = 0x01, + MAYBE_UNGRAB = 0x02, + YES = 0x04, + RAISED = 0x08, }; var drag_pieces : DragInfo[] = [];