Fixed: Op variable REVSIGN does not exist

This commit is contained in:
Deyan Dobromirov 2023-08-22 15:31:30 +03:00
parent b723d41c7b
commit 779bb3abf9
2 changed files with 6 additions and 4 deletions

View File

@ -84,7 +84,7 @@ local asmlib = trackasmlib; if(not asmlib) then -- Module present
------------ CONFIGURE ASMLIB ------------
asmlib.InitBase("track","assembly")
asmlib.SetOpVar("TOOL_VERSION","8.724")
asmlib.SetOpVar("TOOL_VERSION","8.725")
asmlib.SetIndexes("V" ,1,2,3)
asmlib.SetIndexes("A" ,1,2,3)
asmlib.SetIndexes("WV",1,2,3)

View File

@ -1865,7 +1865,7 @@ function SetButtonSlider(cPanel, sVar, nMin, nMax, nDec, tBtn)
local sTool = GetOpVar("TOOLNAME_NL")
local tConv = GetOpVar("STORE_CONVARS")
local syDis = GetOpVar("OPSYM_DISABLE")
local syRev = GetOpVar("OPSYM_REVSIGN")
local syRev = GetOpVar("OPSYM_REVISION")
local sKey, sNam, bExa = GetNameExp(sVar)
local sBase = (bExa and sNam or ("tool."..sTool.."."..sNam))
local pPanel = vguiCreate("DAsmInSliderButton", cPanel); if(not IsValid(pPanel)) then
@ -1875,13 +1875,15 @@ function SetButtonSlider(cPanel, sVar, nMin, nMax, nDec, tBtn)
pPanel:Configure(nMin, nMax, tConv[sKey], nDec)
for iD = 1, #tBtn do
local vBtn, sTip = tBtn[iD]
local sTxt = tostring(vBtn.N)
local sTxt = tostring(vBtn.N):Trim()
if(vBtn.T) then
if(vBtn.T == syRev) then
sTip = languageGetPhrase(sBase.."_bas"..sTxt)
elseif(vBtn.T == syDis) then
sTip = languageGetPhrase("tool."..sTool..".buttonas"..sTxt)
else sTip = tostring(vBtn.T) end
else
sTip = tostring(vBtn.T):Trim()
end
end
pPanel:SetButton(sTxt, sTip)
pPanel:SetAction(vBtn.L, vBtn.R)