📄 weather.luac.lua
字号:
-- Decompiled using luadec 0.7 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l ;;;;;; 5abb134a_manila.luac
GetDisplayName = function(l_1_0)
if l_1_0.state == "" then
return l_1_0.cityName
else
return l_1_0.cityName .. ", " .. l_1_0.state
end
end
StartGizmoView = function()
end
StartCityPicker = function()
IsScrollable = true
end
setLastUpdate = function(l_4_0)
trace("last update: " .. tostring(l_4_0))
if l_4_0 < 2 then
LastUpdateMinAgo.String = string.format(Locale:GetString("IDS_MINAGO"), l_4_0)
elseif l_4_0 < 60 then
LastUpdateMinAgo.String = string.format(Locale:GetString("IDS_MINSAGO"), l_4_0)
elseif l_4_0 < 120 then
LastUpdateMinAgo.String = string.format(Locale:GetString("IDS_HOURAGO"), 1)
elseif l_4_0 < 1440 then
local l_4_1 = l_4_0 / 60
l_4_1 = l_4_1 - (l_4_1 % 1)
LastUpdateMinAgo.String = string.format(Locale:GetString("IDS_HOURSAGO"), l_4_1)
elseif l_4_0 < 2880 then
LastUpdateMinAgo.String = string.format(Locale:GetString("IDS_DAYAGO"), 1)
elseif l_4_0 < 7200 then
local l_4_1 = l_4_0 / 1440
l_4_1 = l_4_1 - (l_4_1 % 1)
LastUpdateMinAgo.String = string.format(Locale:GetString("IDS_DAYSAGO"), l_4_1)
else
if GizmoView ~= nil then
LastUpdateMinAgo.String = ""
weather:ClearCache(cityList[currentCity])
if _application.Store:GetIntValue(Lifetime_Permanent,"Data.AutoDownloadOff") == 0 then
DoBeginGetForecast(cityList[currentCity], false)
end
else
trace("GizmoView=nil")
end
end
end
onTimePulse = function()
if forecastMinutes ~= -1 then
forecastMinutes = forecastMinutes + 1
setLastUpdate(forecastMinutes)
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -