1. 4 Weeks Ago  

    Change default nameplates position

    Hi everyone,

    Can anyone help with some information on how to change the nameplates position? would like to move them a bit higher above the player/npc.
    Would also like to keep the default blizzard UI, without using and addon such as TidyPlates.

    I also asked chat GPT for a script and provided with something like this [see below] but it did not work.

    -- Function to adjust the height of nameplates
    local function AdjustNameplateHeight()
    -- Iterate through each visible nameplate
    for i = 1, select("#", C_NamePlate.GetNamePlates()) do
    local nameplate = select(i, C_NamePlate.GetNamePlates())
    -- Adjust the height of the nameplate
    nameplate:SetHeight(20) -- Set the desired height here (in pixels)
    end
    end

    -- Register an event handler to execute the function when nameplates are shown or updated
    local frame = CreateFrame("Frame")
    frame:RegisterEvent("NAME_PLATE_CREATED")
    frame:RegisterEvent("NAME_PLATE_UNIT_ADDED")
    frame:SetScript("OnEvent", function(self, event, ...)
    AdjustNameplateHeight()
    end)

  2. 4 Weeks Ago  

  3. 4 Weeks Ago  
    Thank you very much! Exactly what I needed!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •