mirror of
https://gitea.your-land.de/Sokomine/yl_speak_up.git
synced 2025-09-09 04:26:23 +02:00
added function yl_speak_up.sort_keys
This commit is contained in:
parent
bd89ba9d56
commit
cfe6f83ad4
@ -1986,6 +1986,17 @@ yl_speak_up.get_sorted_options = function(options, sort_by)
|
||||
end
|
||||
|
||||
|
||||
-- simple sort of keys of a table
|
||||
yl_speak_up.sort_keys = function(t)
|
||||
local keys = {}
|
||||
for k, v in pairs(t) do
|
||||
table.insert(keys, k)
|
||||
end
|
||||
table.sort(keys)
|
||||
return keys
|
||||
end
|
||||
|
||||
|
||||
-- helper function for formspec "yl_speak_up:talk" *and* formspec "yl_speak_up:edit_option_dialog"
|
||||
-- when a parameter was changed in edit mode;
|
||||
-- this is called when the player is in edit_mode (editing the NPC);
|
||||
|
Loading…
Reference in New Issue
Block a user