⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inforupdating.luac.lua

📁 htc manila 2 sourcecode
💻 LUA
字号:
-- Decompiled using luadec 1.0 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l2 ;;;;12,20,23-60,26-60,67-101,72-101; 48a47654_manila.luac 

trace("InforUpdating.lua")
gUpdatingTimer = nil
OnUpdatingTimer = function(l_1_0)
   updating.Rotation.z = updating.Rotation.z - 36
   if updating.Rotation.z < 0 then
      updating.Rotation.z = updating.Rotation.z + 360
   end
end

ShowUpdatingIndicator = function()
   trace("[MG] Show Updating Indicator\n")
   updating.Opacity:Interpolate(100, 5, 0, Interpolate_EaseInQuad, nil)
   if gUpdatingTimer == nil then
      gUpdatingTimer = timer(0.099990844726563)
      gUpdatingTimer.OnElapsed:connect(OnUpdatingTimer)
   else
      gUpdatingTimer:Start()
   end
end

StopUpdatingIndicator = function()
   trace("[MG] Hide Updating Indicator\n")
   updating.Opacity:Interpolate(0, 5, 0, Interpolate_EaseInQuad, nil)
   if gUpdatingTimer ~= nil then
      gUpdatingTimer:Stop()
   end
end

FormateTime = function(l_4_0)
   trace("updatetime=" .. tostring(l_4_0))
   if l_4_0 < 0 then
      return ""
   end
   local l_4_1 = l_4_0 / 60
   trace("hour=" .. tostring(l_4_1))
   local l_4_2 = nil
   if l_4_1 >= 24 then
      local l_4_3 = l_4_1 / 24
      local l_4_4 = tostring(l_4_3)
      local l_4_5 = string.find(l_4_4, ".")
      if l_4_5 ~= nil then
         l_4_4 = l_4_4:sub(0, l_4_5 + 1)
      end
      if l_4_3 >= 2 then
         l_4_2 = string.format(Locale:GetString("IDS_DAYSAGO"), l_4_4)
      else
         l_4_2 = string.format(Locale:GetString("IDS_DAYAGO"), l_4_4)
      end
   elseif l_4_1 >= 1 and l_4_1 < 24 then
      local l_4_5 = tostring(l_4_1)
      local l_4_6 = string.find(l_4_5, ".")
      if l_4_6 ~= nil then
         l_4_5 = l_4_5:sub(0, l_4_6 + 1)
      end
      if l_4_1 >= 2 then
         l_4_2 = string.format(Locale:GetString("IDS_HOURSAGO"), l_4_5)
      else
         l_4_2 = string.format(Locale:GetString("IDS_HOURAGO"), l_4_5)
      end
   elseif l_4_0 > 1 then
      l_4_2 = string.format(Locale:GetString("IDS_MINSAGO"), l_4_0)
   else
      l_4_2 = string.format(Locale:GetString("IDS_MINAGO"), l_4_0)
   end
   return l_4_2
end

trace("--inforupdating.lua loaded--")

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -