Move druid settings inside system folder

This commit is contained in:
Insality
2020-01-30 01:45:25 +03:00
parent 513a4c141b
commit 0542ec4e69
5 changed files with 9 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
local druid = require("druid.druid")
local druid_settings = require("druid.settings")
local druid_settings = require("druid.system.settings")
local lang = {
locale_text = "Localized"

View File

@@ -1,16 +1,16 @@
local druid = require("druid.druid")
local const = require("druid.const")
local settings = require("druid.settings")
local lang = require("example.kenney.lang")
local function setup_druid()
settings.play_sound = function(name)
druid.set_sound_function(function(name)
sound.play("kenney:/sound#" .. name)
end
end)
settings.get_text = function(lang_id)
druid.set_text_function(function(lang_id)
return lang.get_locale(lang_id)
end
end)
-- TODO: Call druid.finish_setup?
-- Need to update all gui, in case, when gui init was befure this init