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

📄 2.lua

📁 htc manila 2 sourcecode
💻 LUA
字号:
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ; 138f4a32_manila_18452.luac 

trace("Rain and Ice Controller " .. tostring(this.Namespace:FindName("CurrentState").String))
weatherStateVal = tonumber(this.Namespace:FindName("CurrentState").String)
playRain = false
playIce = false
if 12 <= weatherStateVal and weatherStateVal <= 18 then
    playRain = true
else
  if weatherStateVal == 26 or weatherStateVal == 29 then
    playRain = true
  elseif weatherStateVal == 31 then
    playIce = true
  elseif weatherStateVal >= 39 and 42 >= weatherStateVal then
    playRain = true
  end
end
if this.Namespace:FindName("WiperEnabled").String == "false" then
  playRain = false
  playIce = false
end
local raincomponent = this.Namespace:FindName("RainComponent")
if raincomponent ~= nil then
   if playRain then
      raincomponent._visible = true
      raincomponent:PlayAll()
      raincomponent.Namespace:FindName("RainGroup")._visible = true
      raincomponent:SetFrameAll(2)
   else
      raincomponent._visible = false
      raincomponent:StopAll()
   end
end
local icecomponent = this.Namespace:FindName("IceComponent")
if icecomponent ~= nil then
   if playIce then
      icecomponent._visible = true
      icecomponent:PlayAll()
      icecomponent.Namespace:FindName("IceGroup")._visible = true
      icecomponent:SetFrameAll(2)
   else
      icecomponent._visible = false
      icecomponent:StopAll()
   end
end

⌨️ 快捷键说明

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