update tooltip for missing metadata highlighting

This commit is contained in:
Chr1Z93 2023-02-05 02:49:21 +01:00
parent e9116d09d9
commit cc37e9bddf

View File

@ -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