i wanted to add a new size-tag for the weapons tab in the ship configuration menu (on the top left where the slots are shown with their size and a number S1 S2 and so on).
As this is a UI-thing i looked at the lua-files and found two that seem to be relevant:
..\ui\addons\ego_detailmonitorhelper\helper.lua
For my understanding the section "Helper.upgradetypes" is relevant for my goal so i added the "extrasmall" part to the "weapons" section:
I also added the new tag to "function Helper.getSlotSizeText(slotsize)":{ supertype = "macro", type = "weapon", category = "weapons", mergeslots = false, allowempty = true, emode = "Weapons",
text = { extrasmall = ReadText(1001, 8075), small = ReadText(1001, 8075), medium = ReadText(1001, 8076), large = ReadText(1001, 8077), extralarge = ReadText(1001, 8078) },
shorttext = { extrasmall = ReadText(1001, 52), small = ReadText(1001, 51), medium = ReadText(1001, 50), large = ReadText(1001, 49), extralarge = ReadText(1001, 48) },
},
And last but not least in "Helper.slotSizeOrder"function Helper.getSlotSizeText(slotsize)
if slotsize == "extralarge" then
return ReadText(1001, 48)
elseif slotsize == "large" then
return ReadText(1001, 49)
elseif slotsize == "medium" then
return ReadText(1001, 50)
elseif slotsize == "small" then
return ReadText(1001, 51)
elseif slotsize == "extrasmall" then
return ReadText(1001, 52)
end
return ""
end
But that all does not work. If i give a weapon the extrasmall tag, it shows nothing...["extralarge"] = 1,
["large"] = 2,
["medium"] = 3,
["small"] = 4,
["extrasmall"] = 5,

Did i miss something? Is there a hardcoded part which makes my attempt impossible?
Hopefully someone can help me out here

Thanks in advance!
EDIT: The modification of the file in general works. When i replace the Text for the "Small" Tag, the changed text is shown in the game.