added markup size change option
This commit is contained in:
1 parent
024fbf06e8
commit
d3722e30ff
7 files changed
+480
-410
No files matched your search
+14
@@ -367,6 +367,7 @@ function EID:getDescriptionObj(Type, Variant, SubType, entity, checkModifiers)
|
||||
end
|
||||
end
|
||||
end
|
||||
description = EID:replaceMarkupSize(description)
|
||||
return description
|
||||
end
|
||||
|
||||
@@ -1430,3 +1431,16 @@ function EID:PlayersActionPressed(button, inputFunc)
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
function EID:replaceMarkupSize(description)
|
||||
if EID.Config["MarkupSize"] == "small" then
|
||||
for normal, small in pairs(EID.MarkupSizeMap) do
|
||||
description.Description = string.gsub(description.Description, normal, small)
|
||||
end
|
||||
elseif EID.Config["MarkupSize"] == "big" then
|
||||
for normal, small in pairs(EID.MarkupSizeMap) do
|
||||
description.Description = string.gsub(description.Description, small, normal)
|
||||
end
|
||||
end
|
||||
return description
|
||||
end
|
||||
Reference in new issue
Block a user