local kn = LibStub('AceAddon-3.0'):GetAddon('KuiNameplates') local mod = kn:NewModule('CustomInjector', 'AceEvent-3.0') ------------------------------------------------------------------------ Show -- function mod:PostShow(msg, f) -- move health.p to centre f.health.p:ClearAllPoints() f.health.p:SetJustifyH('CENTER') f.health.p:SetJustifyV('CENTER') f.health.p:SetPoint('CENTER') if f.level.enabled then -- change boss level text if f.level:GetText() == 'Boss' then f.level:SetText('??') end -- move level back to top left f.level:ClearAllPoints() f.level:SetPoint('BOTTOMRIGHT', f.health, 'BOTTOMRIGHT', 2.5, 0) end end -------------------------------------------------------------------- Register -- mod:RegisterMessage('KuiNameplates_PostShow', 'PostShow')