mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
Additional fix #333
This commit is contained in:
@@ -174,7 +174,7 @@ function Metrostroi.AddSkin(category,name,tbl)
|
||||
if not texture or not texture.defaults then return end
|
||||
for k,v in pairs(texture.defaults) do
|
||||
local id = VGUI[k].ID
|
||||
print(List:GetOptionData(List:GetSelectedID()),id,VGUI[id],v)
|
||||
-- print(List:GetOptionData(List:GetSelectedID()),id,VGUI[id],v)
|
||||
if id and VGUI[id] then
|
||||
VGUI[id](v,true)
|
||||
end
|
||||
|
||||
@@ -284,7 +284,7 @@ local function EditCSEnts()
|
||||
set = set..Format("\tbodygroup = %d,\n",bodygroup)
|
||||
end
|
||||
set = set.."}\n"
|
||||
print(set)
|
||||
-- print(set)
|
||||
end,"Print settings","Print LUA part to clipboard and print it")
|
||||
PrSet:Dock(RIGHT)
|
||||
end
|
||||
|
||||
@@ -920,7 +920,7 @@ function Metrostroi.Load(name,keep_signs)
|
||||
-- Create paths definition
|
||||
Metrostroi.Paths = {}
|
||||
if true then return end
|
||||
print(type(TrackLoadedData))
|
||||
-- print(type(TrackLoadedData))
|
||||
for pathID,path in pairs(TrackLoadedData) do
|
||||
local currentPath = { id = pathID }
|
||||
Metrostroi.Paths[pathID] = currentPath
|
||||
@@ -1114,7 +1114,7 @@ function Metrostroi.Load(name,keep_signs)
|
||||
if auto then
|
||||
for k,v in pairs(auto) do
|
||||
local ent = ents.Create("gmod_track_autodrive_plate")
|
||||
print(k,v,ent)
|
||||
-- print(k,v,ent)
|
||||
if IsValid(ent) then
|
||||
ent:SetPos(v.Pos)
|
||||
ent:SetAngles(v.Angles)
|
||||
|
||||
@@ -79,10 +79,10 @@ if Turbostroi and not TURBOSTROI then
|
||||
if IsValid(Player(index)) then
|
||||
if value==0 then
|
||||
Player(index):PrintMessage( HUD_PRINTCONSOLE, "--START" )
|
||||
print("--START")
|
||||
-- print("--START")
|
||||
end
|
||||
Player(index):PrintMessage( HUD_PRINTCONSOLE, system )
|
||||
print(system)
|
||||
-- print(system)
|
||||
end
|
||||
end,
|
||||
}
|
||||
@@ -155,7 +155,7 @@ if Turbostroi and not TURBOSTROI then
|
||||
if not IsValid(ply) or not ply:IsSuperAdmin() then return end
|
||||
local train = ply:GetTrain()
|
||||
if IsValid(train) then
|
||||
print(cmd:sub(1,2),cmd:sub(3,4))
|
||||
-- print(cmd:sub(1,2),cmd:sub(3,4))
|
||||
SendMessage(train,6,cmd:sub(1,255),cmd:sub(256,511),ply:UserID(),0)
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -59,7 +59,7 @@ else
|
||||
|
||||
self.Reloaded = true
|
||||
local rn = Format("%03d",self.RouteNumber)
|
||||
print(self.RouteNumber)
|
||||
-- print(self.RouteNumber)
|
||||
for i=1,2 do
|
||||
if IsValid(scents["route"..i]) then
|
||||
scents["route"..i]:SetSkin(rn[i])
|
||||
|
||||
Reference in New Issue
Block a user