WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Friendly NamePlates (https://www.wowinterface.com/forums/showthread.php?t=58780)

Johanan 06-04-21 02:01 AM

Friendly NamePlates
 
/run C_NamePlate.SetNamePlateFriendlySize(50,100) - how to make an addon out of this?

C_NamePlate.SetNamePlateFriendlySize(50,100) - i tried to insert this into my addon but it doesn't work

(retail)

Johanan 06-05-21 02:47 AM

Fix it
Code:

local myFrame = CreateFrame("Frame")
myFrame:HookScript("OnEvent",
  function()
    C_NamePlate.SetNamePlateFriendlySize(50,100)
  end
);
myFrame:RegisterEvent("PLAYER_LOGIN")

But they periodically stop working (return to their original state), what should I do?

Dridzt 06-05-21 03:48 AM

There's nothing you can do if they stop working inside instances.

That's a blizzard limitation imposed on addons.

Johanan 06-05-21 04:05 AM

Quote:

Originally Posted by Dridzt (Post 339349)
There's nothing you can do if they stop working inside instances.

That's a blizzard limitation imposed on addons.

That is, is it better to use a macro?

Dridzt 06-05-21 02:12 PM

Quote:

Originally Posted by Johanan (Post 339350)
That is, is it better to use a macro?

Macro is the same as addon in this particular case.
Friendly nameplates simply ignore changes no matter the method (addon or macro) inside instances.

Blizzard has restricted the players ability to modify friendly nameplates in instances because they were used in bossmods that were deemed too powerful / trivializing content.

Similar to how API changes have been made in the past to camera API to prevent AVR, to unit position API etc.

Johanan 06-06-21 09:41 AM

Quote:

Originally Posted by Dridzt (Post 339353)
Macro is the same as addon in this particular case.
Friendly nameplates simply ignore changes no matter the method (addon or macro) inside instances.

Blizzard has restricted the players ability to modify friendly nameplates in instances because they were used in bossmods that were deemed too powerful / trivializing content.

Similar to how API changes have been made in the past to camera API to prevent AVR, to unit position API etc.

That is, both with an addon and with a macro, they will return to their original state sometimes? And then you have to either reuse the macro, or write /reload to reboot the addon?

jeffy162 06-06-21 10:50 AM

No, he means that you can't do anything to nameplates, at all, when you are in an instance. Friendly OR enemy nameplates.

rulezyx 06-21-21 09:42 AM

I would recommend to use this addon: https://www.curseforge.com/wow/addon...dly-nameplates

or at least the code.

You can adjust the size as you want and theres space to set up other options.

Friendly nameplate addons do not work in dungeons but arenas.

There are limitations but the size will stay as set even in dungeons.

Most overall limitations are related to the anchors and timers, so addons cant mess around with setting up special timers/frames above nameplates while in combat.

The size will only resett by making changes to the cvar within the instance and for this example by pressing the cvar macro over and over.

Johanan 06-23-21 04:55 AM

Quote:

Originally Posted by rulezyx (Post 339430)
or at least the code.

What code?

rulezyx 06-30-21 07:15 PM

Quote:

Originally Posted by Johanan (Post 339447)
What code?

Use the addon and it will do what you are looking for.

For more customization (size) you have to edit the values in the lua file of the addon (code).

Theres a description (green text) next to the values in the file.


All times are GMT -6. The time now is 01:54 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI