Added radio buttons to extent check boxs

This commit is contained in:
Cooldude2606
2019-05-11 21:00:43 +01:00
parent 0559bade9c
commit 35a3d11f58
5 changed files with 138 additions and 44 deletions

View File

@@ -90,6 +90,13 @@ Global.register(Store.data,function(tbl)
Store.data = tbl
end)
--- Check for if a lcoation is registered
-- @tparam location string the location to test for
-- @treturn boolean true if registered
function Store.is_registered(location)
return not not Store.callbacks[location]
end
--- Registers a new location with an update callback which is triggered when the value updates
-- @tparam location string a unique string that points to the data, string used rather than token to allow migration
-- @tparam callback function this callback will be called when the stored value is set to a new value
@@ -109,6 +116,8 @@ function Store.register(location,callback,start_value)
Store.data[location] = start_value
Store.callbacks[location] = callback
return location
end
--- Registers a new cross server synced location with an update callback, and external script is required for cross server