From cc37e9bddfc93be6e6591e255eec3d00c750cd79 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Sun, 5 Feb 2023 02:49:21 +0100 Subject: [PATCH] update tooltip for missing metadata highlighting --- src/core/VictoryDisplay.ttslua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/core/VictoryDisplay.ttslua b/src/core/VictoryDisplay.ttslua index cb900f4b..df076b68 100644 --- a/src/core/VictoryDisplay.ttslua +++ b/src/core/VictoryDisplay.ttslua @@ -27,11 +27,11 @@ function onLoad() buttonParameters.position.x = 1.69 self.createButton(buttonParameters) - -- index 3: hightling button + -- index 3: highlighting button self.createButton({ label = "!", click_function = "highlightMissingData", - tooltip = "Enable / Disable highlighting of cards without metadata (VP on these is not counted).", + tooltip = "Enable highlighting of cards without metadata (VP on these is not counted).", function_owner = self, scale = { 0.15, 0.15, 0.15 }, color = { 1, 0, 0 }, @@ -174,6 +174,11 @@ end -- toggles the highlight for objects with missing metadata function highlightMissingData() + self.editButton({ + index = 3, + tooltip = (currentlyHighlighting and "Enable" or "Disable") .. + " highlighting of cards without metadata (VP on these is not counted)." + }) for _, obj in pairs(missingData) do if obj ~= nil then if currentlyHighlighting then