Buttons added

This commit is contained in:
Cooldude2606
2017-12-11 20:07:06 +00:00
parent 7e0caa0922
commit a4eeef1d1a
4 changed files with 83 additions and 6 deletions

View File

@@ -11,11 +11,10 @@ local Gui = {}
local Gui_data = {}
-- this is to enforce the read only propetry of the gui
function Gui._add_data(key,value)
function Gui._add_data(key,value_key,value)
if game then return end
if not Gui_data[key] then Gui_data[key] = {value}
else table.insert(Gui_data[key],value)
end
if not Gui_data[key] then Gui_data[key] = {} end
Gui_data[key][value_key] = value
end
function Gui._get_data(key) return Gui_data[key] end