Remove unit type in brackets from Unit Panel (Vox Populii/EUI)
If using Vox Populii/Community Patch with EUI
Go to UnitPanel.LUA in:
MODS\(6a) Community Balance Overhaul - Compatibility Files (EUI)\LUA
Find:
--------------------------------------------------------------------------------
-- Refresh unit portrait and name
--------------------------------------------------------------------------------
local function UpdateUnitPortrait( unit )
local name
if unit:IsGreatPerson() then
name = unit:GetNameNoDesc()
if not name or #name == 0 then
name = unit:GetName()
end
else
name = unit:GetName()
end
name = Locale_ToUpper(name)
---
Where the space is in the middle (before else) add:
elseif(unit:HasName() and not unit:IsGreatPerson()) then
name = unit:GetNameNoDesc();
if(name == nil or #name == 0) then
name = unit:GetName();
end
---
So you should now have:
--------------------------------------------------------------------------------
-- Refresh unit portrait and name
--------------------------------------------------------------------------------
local function UpdateUnitPortrait( unit )
local name
if unit:IsGreatPerson() then
name = unit:GetNameNoDesc()
if not name or #name == 0 then
name = unit:GetName()
end
elseif(unit:HasName() and not unit:IsGreatPerson()) then
name = unit:GetNameNoDesc();
if(name == nil or #name == 0) then
name = unit:GetName();
end
else
name = unit:GetName()
end
name = Locale_ToUpper(name)
---
You'll now have your unit name but no unit type in brackets.
This guide was created by its original author on the Steam Community. Are you the author and want it removed? Request removal.