mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
81-722.
Поправлены экраны под новые модели
This commit is contained in:
@@ -1164,7 +1164,7 @@ ENT.ButtonMap["BMCIK"] = {
|
||||
sensor = true,
|
||||
system = "BMCIK",
|
||||
hideseat = 0.2,
|
||||
hide=true,
|
||||
hide = true
|
||||
}
|
||||
|
||||
for i=1,3 do
|
||||
@@ -1196,24 +1196,47 @@ ENT.ButtonMap["TNM"] = {
|
||||
height = 115,
|
||||
scale = 0.06,
|
||||
|
||||
hide=2,
|
||||
hide=2
|
||||
}
|
||||
ENT.ButtonMap["BMTS"] = {
|
||||
pos = Vector(473.8,-12.8,44.7),
|
||||
pos = Vector(473.8,-11.85,45.2-0.5),
|
||||
ang = Angle(0,90,90),
|
||||
width = 512,
|
||||
height = 80,
|
||||
scale = 0.1012,
|
||||
|
||||
hide=2,
|
||||
scale = 0.0975,
|
||||
hide = 2
|
||||
}
|
||||
ENT.ButtonMap["BIT"] = {
|
||||
pos = Vector(-455.4,-10.85,52.62),
|
||||
ENT.ButtonMap["BIT1"] = {
|
||||
pos = Vector(-455.37,-10.92504,52.35969),
|
||||
ang = Angle(0,90,90),
|
||||
width = 1024,
|
||||
height = 192,
|
||||
scale = 0.0268,
|
||||
hideseat = 1.5,
|
||||
scale = 0.026947,
|
||||
hideseat = 1.5
|
||||
}
|
||||
ENT.ButtonMap["BIT2"] = {
|
||||
pos = Vector(1.55365,-10.92493,51.99417),
|
||||
ang = Angle(0,90,97),
|
||||
width = 1024,
|
||||
height = 192,
|
||||
scale = 0.026947,
|
||||
hideseat = 1.5
|
||||
}
|
||||
ENT.ButtonMap["BIT3"] = {
|
||||
pos = Vector(-4.83291,10.92509,51.99417),
|
||||
ang = Angle(0,-90,97),
|
||||
width = 1024,
|
||||
height = 192,
|
||||
scale = 0.026947,
|
||||
hideseat = 1.5
|
||||
}
|
||||
ENT.ButtonMap["BIT4"] = {
|
||||
pos = Vector(377.70719,16.66898,52.35969),
|
||||
ang = Angle(0,-90,90),
|
||||
width = 1024,
|
||||
height = 192,
|
||||
scale = 0.026947,
|
||||
hideseat = 1.5
|
||||
}
|
||||
ENT.ButtonMap["SarmatButtons"] = {
|
||||
pos = Vector(476.2,30.2,-6.4),
|
||||
@@ -1762,12 +1785,14 @@ function ENT:DrawPost()
|
||||
surface.DrawTexturedRectRotated(256,64,512,128,0)
|
||||
end)
|
||||
self.RTMaterial:SetTexture("$basetexture", self.BITScr)
|
||||
self:DrawOnPanel("BIT",function(...)
|
||||
surface.SetMaterial(self.RTMaterial)
|
||||
surface.SetDrawColor(255,255,255,200)
|
||||
for i=1,4 do
|
||||
self:DrawOnPanel("BIT"..i,function(...)
|
||||
surface.DrawTexturedRectRotated(512,128,1024,256,0)
|
||||
end)
|
||||
end
|
||||
self.RTMaterial:SetTexture("$basetexture", self.TNMScr)
|
||||
surface.SetDrawColor(255,255,255)
|
||||
self:DrawOnPanel("TNM",function(...)
|
||||
surface.SetMaterial(self.RTMaterial)
|
||||
surface.SetDrawColor(255,255,255)
|
||||
|
||||
@@ -441,36 +441,36 @@ ENT.Lights = {
|
||||
}
|
||||
|
||||
ENT.ButtonMap["BIT1"] = {
|
||||
pos = Vector(-455.4,-10.85,52.62),
|
||||
pos = Vector(-455.75,-10.92504,52.35969),
|
||||
ang = Angle(0,90,90),
|
||||
width = 1024,
|
||||
height = 192,
|
||||
scale = 0.0268,
|
||||
hideseat=1.5,
|
||||
scale = 0.026947,
|
||||
hideseat = 1.5
|
||||
}
|
||||
ENT.ButtonMap["BIT2"] = {
|
||||
pos = Vector(1.8,-11,52.35),
|
||||
ang = Angle(0,90,90+9),
|
||||
pos = Vector(1.55365,-10.92493,51.99417),
|
||||
ang = Angle(0,90,97),
|
||||
width = 1024,
|
||||
height = 192,
|
||||
scale = 0.02684+0.0003,
|
||||
hideseat=1.5,
|
||||
scale = 0.026947,
|
||||
hideseat = 1.5
|
||||
}
|
||||
ENT.ButtonMap["BIT3"] = {
|
||||
pos = Vector(-5,11,52.35),
|
||||
ang = Angle(0,-90,90+9),
|
||||
pos = Vector(-4.83291,10.92509,51.99417),
|
||||
ang = Angle(0,-90,97),
|
||||
width = 1024,
|
||||
height = 192,
|
||||
scale = 0.02684+0.0003,
|
||||
hideseat=1.5,
|
||||
scale = 0.026947,
|
||||
hideseat = 1.5
|
||||
}
|
||||
ENT.ButtonMap["BIT4"] = {
|
||||
pos = Vector(449.3,10.85,52.62),
|
||||
pos = Vector(449.44,10.92504,52.35969),
|
||||
ang = Angle(0,-90,90),
|
||||
width = 1024,
|
||||
height = 192,
|
||||
scale = 0.0268,
|
||||
hideseat=1.5,
|
||||
scale = 0.026947,
|
||||
hideseat = 1.5
|
||||
}
|
||||
function ENT:Initialize()
|
||||
self.BaseClass.Initialize(self)
|
||||
@@ -791,7 +791,7 @@ end
|
||||
function ENT:DrawPost()
|
||||
self.RTMaterial:SetTexture("$basetexture", self.BITScr)
|
||||
surface.SetMaterial(self.RTMaterial)
|
||||
surface.SetDrawColor(255,255,255)
|
||||
surface.SetDrawColor(255,255,255,200)
|
||||
for i=1,4 do
|
||||
self:DrawOnPanel("BIT"..i,function(...)
|
||||
surface.DrawTexturedRectRotated(512,128,1024,256,0)
|
||||
|
||||
@@ -437,36 +437,36 @@ ENT.Lights = {
|
||||
[19] = { "light",Vector(-46.4,-66,28.1)+Vector(0,-0.4,-0), Angle(0,0,0), Color(254,210,18), brightness = 0.3, scale = 0.1, texture = "sprites/light_glow02.vmt" },
|
||||
}
|
||||
ENT.ButtonMap["BIT1"] = {
|
||||
pos = Vector(-455.4,-10.85,52.62),
|
||||
pos = Vector(-455.75,-10.92504,52.35969),
|
||||
ang = Angle(0,90,90),
|
||||
width = 1024,
|
||||
height = 192,
|
||||
scale = 0.0268,
|
||||
hideseat=1.5,
|
||||
scale = 0.026947,
|
||||
hideseat = 1.5
|
||||
}
|
||||
ENT.ButtonMap["BIT2"] = {
|
||||
pos = Vector(1.8,-11,52.35),
|
||||
ang = Angle(0,90,90+9),
|
||||
pos = Vector(1.55365,-10.92493,51.99417),
|
||||
ang = Angle(0,90,97),
|
||||
width = 1024,
|
||||
height = 192,
|
||||
scale = 0.02684+0.0003,
|
||||
hideseat=1.5,
|
||||
scale = 0.026947,
|
||||
hideseat = 1.5
|
||||
}
|
||||
ENT.ButtonMap["BIT3"] = {
|
||||
pos = Vector(-5,11,52.35),
|
||||
ang = Angle(0,-90,90+9),
|
||||
pos = Vector(-4.83291,10.92509,51.99417),
|
||||
ang = Angle(0,-90,97),
|
||||
width = 1024,
|
||||
height = 192,
|
||||
scale = 0.02684+0.0003,
|
||||
hideseat=1.5,
|
||||
scale = 0.026947,
|
||||
hideseat = 1.5
|
||||
}
|
||||
ENT.ButtonMap["BIT4"] = {
|
||||
pos = Vector(449.3,10.85,52.62),
|
||||
pos = Vector(449.44,10.92504,52.35969),
|
||||
ang = Angle(0,-90,90),
|
||||
width = 1024,
|
||||
height = 192,
|
||||
scale = 0.0268,
|
||||
hideseat=1.5,
|
||||
scale = 0.026947,
|
||||
hideseat = 1.5
|
||||
}
|
||||
function ENT:Initialize()
|
||||
self.BaseClass.Initialize(self)
|
||||
@@ -754,7 +754,7 @@ end
|
||||
function ENT:DrawPost()
|
||||
self.RTMaterial:SetTexture("$basetexture", self.BITScr)
|
||||
surface.SetMaterial(self.RTMaterial)
|
||||
surface.SetDrawColor(255,255,255)
|
||||
surface.SetDrawColor(255,255,255,200)
|
||||
for i=1,4 do
|
||||
self:DrawOnPanel("BIT"..i,function(...)
|
||||
surface.DrawTexturedRectRotated(512,128,1024,256,0)
|
||||
|
||||
@@ -194,7 +194,7 @@ else
|
||||
function TRAIN_SYSTEM:ClientInitialize()
|
||||
end
|
||||
function TRAIN_SYSTEM:ClientThink()
|
||||
if not self.Train:ShouldDrawPanel("BIT") then return end
|
||||
if not self.Train:ShouldDrawPanel("BIT1") then return end
|
||||
render.PushRenderTarget(self.Train.BITScr,0,0,1024, 256)
|
||||
render.Clear(0, 0, 0, 0)
|
||||
cam.Start2D()
|
||||
@@ -215,7 +215,7 @@ else
|
||||
function TRAIN_SYSTEM:BIT(Train)
|
||||
local state = Train:GetNW2Int("BIT:State",0)
|
||||
if state == 0 then return end
|
||||
surface.SetDrawColor(20,10,20,255)
|
||||
surface.SetDrawColor(20,10,20)
|
||||
surface.DrawRect(0,0,1024,192)
|
||||
|
||||
if state > 0 then
|
||||
|
||||
Reference in New Issue
Block a user