📄 2.lua
字号:
-- Decompiled using luadec 0.7 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ; 72ac571f_manila_17E0E.luac
weatherStateVal = tonumber(this.Namespace:FindName("CurrentState").String)
playRain = false
playIce = false
if weatherStateVal >= 12 and weatherStateVal <= 18 then
playRain = true
elseif weatherStateVal == 26 or weatherStateVal == 29 then
playRain = true
elseif weatherStateVal == 31 then
playIce = true
elseif weatherStateVal >= 39 and weatherStateVal <= 42 then
playRain = true
end
if this.Namespace:FindName("WiperEnabled").String == "false" then
playRain = false
playIce = false
end
if playRain then
local rc = this.Namespace:FindName("RainComponent")
if rc ~= nil then
rc._visible = true
StartComponents(rc)
rc.Namespace:FindName("RainGroup")._visible = true
rc:SetFrameAll(2)
end
else
local rc = this.Namespace:FindName("RainComponent")
rc._visible = false
StopComponents(rc)
end
if playIce then
local ic = this.Namespace:FindName("IceComponent")
if ic ~= nil then
ic._visible = true
StartComponents(ic)
ic.Namespace:FindName("IceGroup")._visible = true
ic:SetFrameAll(2)
end
else
local ic = this.Namespace:FindName("IceComponent")
ic._visible = false
StopComponents(ic)
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -