This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Tooltip and Additional Class
#2
Run this script once:
Code:
objs = db:getall('SELECT id, cls FROM visobjects WHERE cls NOT LIKE "%tooltip%"')

for _, obj in ipairs(objs) do
  cls = obj.cls

  if type(cls) == 'string' and #cls > 0 then
    cls = cls .. ' tooltip'
  else
    cls = 'tooltip'
  end

  db:update('visobjects', { cls = cls }, { id = obj.id })
end
Reply


Messages In This Thread
Tooltip and Additional Class - by Ibrahim - 16.12.2022, 07:15
RE: Tooltip and Additional Class - by admin - 16.12.2022, 10:55
RE: Tooltip and Additional Class - by Ibrahim - 16.12.2022, 13:10

Forum Jump: