mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
* Global change. Замена всех устаревших функции на аналогичные * Global change. Добавил локальные переменные там, где это было рентабельно.
This commit is contained in:
@@ -310,11 +310,11 @@ local function showAddons(ply)
|
||||
else
|
||||
v.message = Metrostroi.GetPhrase("N\\A")
|
||||
end
|
||||
if GetConVarNumber("metrostroi_addons_check_ignore") > 0 and (v.error or not v.message) then
|
||||
if GetConVar("metrostroi_addons_check_ignore"):GetInt() > 0 and (v.error or not v.message) then
|
||||
RunConsoleCommand("metrostroi_addons_check_ignore",0)
|
||||
end
|
||||
end
|
||||
if GetConVarNumber("metrostroi_addons_check_ignore") > 0 and not ply or WaitAddons > 0 then return end
|
||||
if GetConVar("metrostroi_addons_check_ignore"):GetInt() > 0 and not ply or WaitAddons > 0 then return end
|
||||
|
||||
if IsValid(MetrostroiWorkshopVGUI) then MetrostroiWorkshopVGUI:Close() end
|
||||
local badCount = 0
|
||||
@@ -332,7 +332,7 @@ local function showAddons(ply)
|
||||
local scrollPanel = vgui.Create( "DScrollPanel", frame )
|
||||
--scrollPanel:SetMinimumSize(nil,450)
|
||||
for i,a in ipairs(RequiredAddons) do
|
||||
if badCount ~= 0 and not showall and GetConVarNumber("metrostroi_addons_check_skip_error") > 0 and not a.error and a.message ~= "N\\A" or not a.error and a.reason then continue end
|
||||
if badCount ~= 0 and not showall and GetConVar("metrostroi_addons_check_skip_error"):GetInt() > 0 and not a.error and a.message ~= "N\\A" or not a.error and a.reason then continue end
|
||||
|
||||
--local a = v[1]
|
||||
local addon = vgui.Create("DPanel")
|
||||
|
||||
Reference in New Issue
Block a user