This commit is contained in:
2020-07-10 13:22:24 +08:00
parent 8c154e38ba
commit 9549990b66
108 changed files with 5668 additions and 888 deletions

View File

@@ -12,6 +12,7 @@ do
local lastLoginBtn = "lastLoginBtn"
local token = "token"
local currGroup = "currGroup"
local showGuid = "showGuid"
Prefs = {}
@@ -113,4 +114,14 @@ do
function Prefs.setCurrGroup(phone, val)
PlayerPrefs.SetString(phone .. "_" .. currGroup, val)
end
function Prefs.getShowGuid()
local f = PlayerPrefs.GetInt(showGuid, 0)
return (f == 0 and true or false)
end
function Prefs.setShowGuid(v)
local f = v and 0 or 1
PlayerPrefs.SetInt(showGuid, f)
end
end