From 52c19cd6dde51497fccf4756317a11e8fd9bb86c Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Wed, 5 Jun 2024 20:38:06 +0200 Subject: [PATCH] updated hover mode --- objects/OptionPanelSource.830bd0/HandHelper.450688.json | 2 +- src/accessories/HandHelper.ttslua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/objects/OptionPanelSource.830bd0/HandHelper.450688.json b/objects/OptionPanelSource.830bd0/HandHelper.450688.json index 21b6edb4..bb0c1c3b 100644 --- a/objects/OptionPanelSource.830bd0/HandHelper.450688.json +++ b/objects/OptionPanelSource.830bd0/HandHelper.450688.json @@ -22,7 +22,7 @@ "ImageURL": "http://cloud-3.steamusercontent.com/ugc/1704036721123215146/E44A3B99EACF310E49E94977151A03C9A3DC7F17/", "WidthScale": 0 }, - "Description": "Displays the hand size (total or by title for \"Dream Enhancing Serum\"), hover over it to temporarily toggle counting method.\n\nWill detect if DES is present during each Upkeep.\n\nAllows you to randomly discard a card from your hand.", + "Description": "Displays the hand size (total or by title for \"Dream Enhancing Serum\" - hover over it to temporarily to see the regular count).\n\nWill detect if DES is present during each Upkeep.\n\nAllows you to randomly discard a card from your hand.", "DragSelectable": true, "GMNotes": "", "GUID": "450688", diff --git a/src/accessories/HandHelper.ttslua b/src/accessories/HandHelper.ttslua index 75aa86ce..2e6f3984 100644 --- a/src/accessories/HandHelper.ttslua +++ b/src/accessories/HandHelper.ttslua @@ -45,7 +45,7 @@ end -- updates colors when object is dropped somewhere function onDrop() updateColors() end --- toggles counting method while hovered +-- disables DES counting while hovered function onObjectHover(hoverColor, object) if hoverColor ~= handColor then return end @@ -80,7 +80,7 @@ function updateValue() -- get opposite value if currently hovered if hovering then - hasDES = not hasDES + hasDES = false end self.editButton({ index = 1, label = "DES: " .. (hasDES and "✓" or "✗") })