move weather library out of gfx

This commit is contained in:
MihailRis
2025-03-05 18:39:34 +03:00
parent 8640730520
commit 7a86cbdd60
5 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -273,7 +273,7 @@ console.add_command(
return "weather preset not found"
end
local preset = json.parse(file.read(filename))
gfx.weather.change(preset, args[2], args[1])
weather.change(preset, args[2], args[1])
return "weather set to "..filename.." preset ("..tostring(args[2]).." s)"
end
)
@@ -282,9 +282,9 @@ console.add_command(
"weather",
"Display current weather preset name",
function (args, kwargs)
local name = gfx.weather.get_current()
local name = weather.get_current()
if name == "" then
return "unnamed " .. json.tostring(gfx.weather.get_current_data(), true)
return "unnamed " .. json.tostring(weather.get_current_data(), true)
else
return name
end