From 63fb734ec74dd308e0e632bd60969d4357e3be24 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 5 Jul 2021 20:58:29 +0100 Subject: [PATCH] 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 --- templates/script.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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[] = []; -- 2.30.2