1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

FIX AKBVoltage 703,707, etc

This commit is contained in:
Hellss
2022-07-25 02:23:24 +03:00
parent 3a299c9ea0
commit 7930664514
23 changed files with 33 additions and 27 deletions

View File

@@ -424,7 +424,7 @@ ENT.ButtonMap["BatteryVoltage"] = {
scale = 0.0625,
buttons = {
{ID = "!BatteryVoltage", x=0,y=0,w=60,h=60,tooltip="",tooltipFunc = function(ent) return Format(Metrostroi.GetPhrase("Train.Buttons.BatteryVoltage"),ent:GetPackedRatio("BatteryVoltage")*100) end},
{ID = "!BatteryVoltage", x=0,y=0,w=60,h=60,tooltip="",tooltipFunc = function(ent) return Format(Metrostroi.GetPhrase("Train.Buttons.BatteryVoltage"),ent:GetPackedRatio("BatteryVoltage")*150) end},
}
}
@@ -1319,7 +1319,7 @@ function ENT:Think()
self:Animate("brake",1-self:GetPackedRatio("CranePosition"),0.00, 0.48, 256,24)
self:Animate("controller",controller[self:GetNW2Int("ControllerPosition",0)+1],0.148, 0.333, 2,false)
self:Animate("reverser",self:GetPackedRatio("ReverserPosition"),0.6, 0.4, 4,false)
self:Animate("volt1",self:GetPackedRatio("BatteryVoltage"),0.62,0.495,45,3)
self:Animate("volt1",self:GetPackedRatio("BatteryVoltage"),0.63,0.39,45,3)
self:Animate("rcureverser",self:GetPackedBool("RCUPosition") and 1 or 0,0,0.5,3,false)
self:ShowHide("reverser",self:GetNW2Int("WrenchMode",0)==1)
self:ShowHide("rcureverser",self:GetNW2Int("WrenchMode",0)==3)