|
|
@ -159,10 +159,10 @@ function SetDefaults:init()
|
|
|
|
callback = function()
|
|
|
|
callback = function()
|
|
|
|
local fields = {}
|
|
|
|
local fields = {}
|
|
|
|
for m, n in util.orderedPairs(_G[self.defaults_name[i]]) do
|
|
|
|
for m, n in util.orderedPairs(_G[self.defaults_name[i]]) do
|
|
|
|
fields[m] = {
|
|
|
|
table.insert(fields, {
|
|
|
|
text = tostring(m) .. " = " .. tostring(n),
|
|
|
|
text = tostring(m) .. " = " .. tostring(n),
|
|
|
|
hint = "",
|
|
|
|
hint = "",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
self.set_dialog = MultiInputDialog:new{
|
|
|
|
self.set_dialog = MultiInputDialog:new{
|
|
|
|
title = self.defaults_name[i] .. ":",
|
|
|
|
title = self.defaults_name[i] .. ":",
|
|
|
|