Turned "randomize" into a context menu entry instead of using the TTS event

This commit is contained in:
Chr1Z93 2024-11-05 10:41:10 +01:00
parent 7d27903761
commit 4f132c2284

View File

@ -248,6 +248,8 @@ function addContextMenu()
end
end)
end)
self.addContextMenuItem("Randomize", randomize)
end
function updateClass(newClass)
@ -292,7 +294,7 @@ function isClassName(str)
return false
end
function onRandomize()
function randomize()
local newSymbol = listOfSymbols[math.random(1, #listOfSymbols)]
while newSymbol == "None" do