Added Sliders

This commit is contained in:
Cooldude2606
2019-05-14 20:04:31 +01:00
parent 0bd4170629
commit 4b3459f20f
7 changed files with 211 additions and 8 deletions

View File

@@ -31,11 +31,9 @@ function Dropdown.new_dropdown(name)
if self.dynamic_options then
local player = Game.get_player_by_index(element.player_index)
local dynamic_options = self.dynamic_options(player,element)
local items = element.items
for _,v in pairs(dynamic_options) do
table.insert(items,v)
element.add_item(v)
end
element.items = items
end
if self.store then
local category = self.categorize and self.categorize(element) or nil