Setting:Destroy() function Setting:Destroy()ĭescription: Permanently destroys a setting. Note: Still has conversion methods listed in RetrieveSaveData(). SettingsModule:WriteSaveData() function SettingsModule:WriteSaveData(save: string)ĭescription: JSON decodes a string returned from :RetrieveSaveData and sets the resulting table to the settings. However it does have built-in conversion for the following data types: Note: This method will not save certain values, like objects. SettingsModule:RetrieveSaveData() function SettingsModule:RetrieveSaveData()ĭescription: Returns a JSON encoded string for data storage. If timeout is specified, it will wait for the setting until the timeout has completed, in which then it will throw a warning and return nothing. If it doesn’t exist yet, it will continuously wait until it does and return it. SettingsModule:WaitForSetting() function SettingsModule:WaitForSetting(name: string, timeout: number)ĭescription: Returns a setting. SettingsModule.new() function SettingsModule.new(name: string, value: any)ĭescription: Creates a new setting. This allows for the use of compound operators such as += and -= to make your scripting experience… You are now able to set the value of a setting using setting.Value. The third installment of SettingsModule makes use of metatables and metamethods to make some properties read-only and others able to be edited. ![]() NOTICE: v1.2 is backwards-compatible with v1.1, although some features endorsed in v1.1 are now deprecated. ![]() ![]() SettingsModule v1.2 | Open-source, easy-to-use settings module Community Resources SettingsModule v1.2 Update Log
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |