added markup size change option

This commit is contained in:
kohashiwakaba committed 2022-03-13 19:39:22 +09:00
1 parent 024fbf06e8
commit d3722e30ff
7 files changed
+480 -410

No files matched your search

+14
View File
@@ -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