mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 15:23:48 +01:00
Schema: Fix numbered entries
This commit is contained in:
parent
7bde15d703
commit
bf2ba5be9d
@ -36,6 +36,7 @@ function generate_settingtypes(self)
|
||||
settings = {"[" .. table.concat(modlib.table.repetition("*", self._level)) .. self.name .. "]"}
|
||||
end
|
||||
local function setting(key, value_scheme)
|
||||
key = tostring(key)
|
||||
assert(not key:find("[=%.%s]"))
|
||||
value_scheme.name = self.name .. "." .. key
|
||||
value_scheme.title = value_scheme.title or self.title .. " " .. field_name_to_title(key)
|
||||
|
Loading…
Reference in New Issue
Block a user