Threat Plates

Threat Plates

32M Downloads

Turn off Headline View in Arenas

Closed this issue ยท 4 comments

commented

Is there a way to automatically turn off Headline View for friendly players in arena (use Healthbar View instead)? I like how clean the Headline View looks in cities, etc., but often find it hard to locate teammates in Headline even with the class icon widget on.

Similar to #141 but the other way round.

Tried using the Custom Style Examples in the Wiki but can't seem to import.

commented

I just checked the import of some (not all) of the example custom styles. It still works. Which one did you try and did you enable scripting first (with /tptp toggle-scripting)?

commented

Ah I didn't realize I needed to enable scripting for these examples. Thanks! I will explore a bit how to turn off Headline mode in arenas with a script. In the meantime it would still be nice if ThreatPlates could provide an option for this, as people could have different preferences for PvP.

Thank you for the amazing addon ๐Ÿ™

commented

This seems to accomplish exactly what I was looking for (MoP Classic):

-- PLAYER_ENTERING_WORLD
function(...)
  local in_instance, instance_type = IsInInstance()
  local db = ThreatPlates.Environment.Profile
  if instance_type == "arena" or instance_type == "pvp"  then
    db.Visibility.FriendlyPlayer.UseHeadlineView = false
  else
    db.Visibility.FriendlyPlayer.UseHeadlineView = true
  end
  -- print("db.Visibility.FriendlyPlayer.UseHeadlineView = ", db.Visibility.FriendlyPlayer.UseHeadlineView)
end

Thanks!

commented

Good to hear. Right now the order in which custom styles are applied compared to the main nameplate code is a bit tricky, so I would not have been sure that this works. But as it does: ๐Ÿ‘