update tooltip for missing metadata highlighting
This commit is contained in:
parent
e9116d09d9
commit
cc37e9bddf
@ -27,11 +27,11 @@ function onLoad()
|
|||||||
buttonParameters.position.x = 1.69
|
buttonParameters.position.x = 1.69
|
||||||
self.createButton(buttonParameters)
|
self.createButton(buttonParameters)
|
||||||
|
|
||||||
-- index 3: hightling button
|
-- index 3: highlighting button
|
||||||
self.createButton({
|
self.createButton({
|
||||||
label = "!",
|
label = "!",
|
||||||
click_function = "highlightMissingData",
|
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,
|
function_owner = self,
|
||||||
scale = { 0.15, 0.15, 0.15 },
|
scale = { 0.15, 0.15, 0.15 },
|
||||||
color = { 1, 0, 0 },
|
color = { 1, 0, 0 },
|
||||||
@ -174,6 +174,11 @@ end
|
|||||||
|
|
||||||
-- toggles the highlight for objects with missing metadata
|
-- toggles the highlight for objects with missing metadata
|
||||||
function highlightMissingData()
|
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
|
for _, obj in pairs(missingData) do
|
||||||
if obj ~= nil then
|
if obj ~= nil then
|
||||||
if currentlyHighlighting then
|
if currentlyHighlighting then
|
||||||
|
Loading…
Reference in New Issue
Block a user