Added settings and warnings

This commit is contained in:
Cooldude2606 committed 2020-06-01 20:29:17 +01:00
1 parent f1864985ff
commit 7811ad2e11
10 files changed
+112 -54

No files matched your search

+4 -1
View File
@@ -3,10 +3,13 @@
local Event = require 'utils.event' ---@dep utils.event
--- Stores the join message that the player have
--- Stores the visible state of alt mode
local PlayerData = require 'expcore.player_data' --- @dep expcore.player_data
local UsesAlt = PlayerData.Settings:combine('UsesAlt')
UsesAlt:set_default(false)
UsesAlt:set_metadata{
stringify = function(value) return value and 'Visible' or 'Hidden' end
}
--- When your data loads apply alt view if you have it enabled
UsesAlt:on_load(function(player_name, uses_alt)