Looking for an addon/script (nameplates + totems)

Re: Looking for an addon/script (nameplates + totems)

Postby Lawz » 09 May 2014, 22:47

That's exactly the kind of addon I was looking for, I'll try it asap, can't atm! Thanks a lot!
Nuriloria wrote:DK damage is LOW

skyL wrote:UnhDk are one of most hardest classes.

Audaciter wrote:most dpriests can handle a warrior alone for roughly 2 mins

argorok wrote:theres nothing wrong about warrior dmg

Brainac wrote:we do play at peak times often [...] those remaining good teams are just queue dodging us
User avatar
 
Posts: 1637
Joined: 26 Jun 2012, 22:51
 

Re: Looking for an addon/script (nameplates + totems)

Postby Schaka » 09 May 2014, 23:55

Ported it to TBC (2.4.3). Thank you: https://github.com/Schaka/TotemPlates
User avatar
 
Posts: 88
Joined: 03 Mar 2013, 00:02
 

Re: Looking for an addon/script (nameplates + totems)

Postby verballeet » 11 May 2014, 22:49

thanks, works great,

is there any way how to turn of displaying nameplates of snakes from snake trap and mirror images?
User avatar
 
Posts: 24
Joined: 19 Dec 2013, 12:23
 

Re: Looking for an addon/script (nameplates + totems)

Postby raisnilt » 12 May 2014, 00:38

verballeet wrote:thanks, works great,
is there any way how to turn of displaying nameplates of snakes from snake trap and mirror images?

For snakes its easy i think, here's one method:
Open with Notepad "Interface\AddOns\TotemPlates\TotemPlates.lua" and replace the entire code with this one:
Spoiler
local AddOn = "TotemPlates"

local Table = {
   ["Nameplates"] = {},
   ["Snakes"] = {
      "Viper",
      "Venomous Snake",
   },
   ["Totems"] = {
      ["Mana Spring Totem VIII"] = false,
      ["Cleansing Totem"] = false,
      ["Magma Totem VII"] = false,
      ["Earth Elemental Totem"] = false,
      ["Earthbind Totem"] = false,
      ["Fire Resistance Totem VI"] = false,
      ["Flametongue Totem VIII"] = false,
      ["Frost Resistance Totem VI"] = false,
      ["Grounding Totem"] = true,
      ["Healing Stream Totem IX"] = false,
      ["Nature Resistance Totem VI"] = false,
      ["Searing Totem X"] = false,
      ["Sentry Totem"] = false,
      ["Stoneclaw Totem X"] = false,
      ["Stoneskin Totem X"] = false,
      ["Strength of Earth Totem VIII"] = false,
      ["Totem of Wrath IV"] = false,
      ["Tremor Totem"] = true,
      ["Windfury Totem"] = false,
      ["Wrath of Air Totem"] = false,
      ["Fire Elemental Totem"] = false,
      ["Mana Tide Totem"] = false,
   },
   xOfs = -10,
   yOfs = -40,
   Scale = 1,
}

local function UpdateObjects(hp)
   frame = hp:GetParent()
   local threat, hpborder, cbshield, cbborder, cbicon, overlay, oldname, level, bossicon, raidicon, elite = frame:GetRegions()
   local name = oldname:GetText()

   overlay:SetAlpha(1)
   threat:Show()
   hpborder:Show()
   oldname:Show()
   level:Show()
   hp:SetAlpha(1)
   if frame.totem then frame.totem:Hide() end

   for _,snake in pairs(Table["Snakes"]) do
      if ( name == snake ) then
         overlay:SetAlpha(0)
         threat:Hide()
         hpborder:Hide()
         oldname:Hide()
         level:Hide()
         hp:SetAlpha(0)
         break
      end
   end

   for totem in pairs(Table["Totems"]) do
      if ( name == totem and Table["Totems"][totem] == true ) then
         overlay:SetAlpha(0)
         threat:Hide()
         hpborder:Hide()
         oldname:Hide()
         level:Hide()
         hp:SetAlpha(0)
         if not frame.totem then
            frame.totem = frame:CreateTexture(nil, "BACKGROUND")
            frame.totem:ClearAllPoints()
            frame.totem:SetPoint("CENTER",frame,"CENTER",Table.xOfs,Table.yOfs)
         else
            frame.totem:Show()
         end   
         frame.totem:SetTexture("Interface\\AddOns\\" .. AddOn .. "\\Textures\\" .. totem)
         frame.totem:SetWidth(64 *Table.Scale)
         frame.totem:SetHeight(64 *Table.Scale)
         break
      elseif ( name == totem ) then
         overlay:SetAlpha(0)
         threat:Hide()
         hpborder:Hide()
         oldname:Hide()
         level:Hide()
         hp:SetAlpha(0)
         break
      end
   end
end

local function SkinObjects(frame)
   local HealthBar, CastBar = frame:GetChildren()
   local threat, hpborder, cbshield, cbborder, cbicon, overlay, oldname, level, bossicon, raidicon, elite = frame:GetRegions()

   HealthBar:HookScript("OnShow", UpdateObjects)
   HealthBar:HookScript("OnSizeChanged", UpdateObjects)

   UpdateObjects(HealthBar)
   Table["Nameplates"][frame] = true
end

local select = select
local function HookFrames(...)
   for index = 1, select('#', ...) do
      local frame = select(index, ...)
      local region = frame:GetRegions()

      if ( not Table["Nameplates"][frame] and not frame:GetName() and region and region:GetObjectType() == "Texture" and region:GetTexture() == "Interface\\TargetingFrame\\UI-TargetingFrame-Flash" ) then
         SkinObjects(frame)                  
         frame.region = region
      end
   end
end

local Frame = CreateFrame("Frame")
Frame:RegisterEvent("PLAYER_ENTERING_WORLD")
Frame:SetScript("OnUpdate", function(self, elapsed)
   if ( WorldFrame:GetNumChildren() ~= numChildren ) then
      numChildren = WorldFrame:GetNumChildren()
      HookFrames(WorldFrame:GetChildren())      
   end
end)
Frame:SetScript("OnEvent", function(self, event, name)
   if ( event == "PLAYER_ENTERING_WORLD" ) then
      if ( not _G[AddOn .. "_PlayerEnteredWorld"] ) then
         ChatFrame1:AddMessage("|cff00ccff" .. AddOn .. "|cffffffff Loaded")
         _G[AddOn .. "_PlayerEnteredWorld"] = true
      end   
   end
end)

For Mirror Images thats a bit more complicated i guess. I have some theory, but those needs more time.
So i wont work with that case unless i figure out an easier way, srry.
User avatar
 
Posts: 15
Joined: 08 Mar 2014, 18:05
 

Re: Looking for an addon/script (nameplates + totems)

Postby verballeet » 15 May 2014, 15:06

raisnilt wrote:
verballeet wrote:thanks, works great,
is there any way how to turn of displaying nameplates of snakes from snake trap and mirror images?

For snakes its easy i think, here's one method:
Open with Notepad "Interface\AddOns\TotemPlates\TotemPlates.lua" and replace the entire code with this one:
Spoiler
local AddOn = "TotemPlates"

local Table = {
   ["Nameplates"] = {},
   ["Snakes"] = {
      "Viper",
      "Venomous Snake",
   },
   ["Totems"] = {
      ["Mana Spring Totem VIII"] = false,
      ["Cleansing Totem"] = false,
      ["Magma Totem VII"] = false,
      ["Earth Elemental Totem"] = false,
      ["Earthbind Totem"] = false,
      ["Fire Resistance Totem VI"] = false,
      ["Flametongue Totem VIII"] = false,
      ["Frost Resistance Totem VI"] = false,
      ["Grounding Totem"] = true,
      ["Healing Stream Totem IX"] = false,
      ["Nature Resistance Totem VI"] = false,
      ["Searing Totem X"] = false,
      ["Sentry Totem"] = false,
      ["Stoneclaw Totem X"] = false,
      ["Stoneskin Totem X"] = false,
      ["Strength of Earth Totem VIII"] = false,
      ["Totem of Wrath IV"] = false,
      ["Tremor Totem"] = true,
      ["Windfury Totem"] = false,
      ["Wrath of Air Totem"] = false,
      ["Fire Elemental Totem"] = false,
      ["Mana Tide Totem"] = false,
   },
   xOfs = -10,
   yOfs = -40,
   Scale = 1,
}

local function UpdateObjects(hp)
   frame = hp:GetParent()
   local threat, hpborder, cbshield, cbborder, cbicon, overlay, oldname, level, bossicon, raidicon, elite = frame:GetRegions()
   local name = oldname:GetText()

   overlay:SetAlpha(1)
   threat:Show()
   hpborder:Show()
   oldname:Show()
   level:Show()
   hp:SetAlpha(1)
   if frame.totem then frame.totem:Hide() end

   for _,snake in pairs(Table["Snakes"]) do
      if ( name == snake ) then
         overlay:SetAlpha(0)
         threat:Hide()
         hpborder:Hide()
         oldname:Hide()
         level:Hide()
         hp:SetAlpha(0)
         break
      end
   end

   for totem in pairs(Table["Totems"]) do
      if ( name == totem and Table["Totems"][totem] == true ) then
         overlay:SetAlpha(0)
         threat:Hide()
         hpborder:Hide()
         oldname:Hide()
         level:Hide()
         hp:SetAlpha(0)
         if not frame.totem then
            frame.totem = frame:CreateTexture(nil, "BACKGROUND")
            frame.totem:ClearAllPoints()
            frame.totem:SetPoint("CENTER",frame,"CENTER",Table.xOfs,Table.yOfs)
         else
            frame.totem:Show()
         end   
         frame.totem:SetTexture("Interface\\AddOns\\" .. AddOn .. "\\Textures\\" .. totem)
         frame.totem:SetWidth(64 *Table.Scale)
         frame.totem:SetHeight(64 *Table.Scale)
         break
      elseif ( name == totem ) then
         overlay:SetAlpha(0)
         threat:Hide()
         hpborder:Hide()
         oldname:Hide()
         level:Hide()
         hp:SetAlpha(0)
         break
      end
   end
end

local function SkinObjects(frame)
   local HealthBar, CastBar = frame:GetChildren()
   local threat, hpborder, cbshield, cbborder, cbicon, overlay, oldname, level, bossicon, raidicon, elite = frame:GetRegions()

   HealthBar:HookScript("OnShow", UpdateObjects)
   HealthBar:HookScript("OnSizeChanged", UpdateObjects)

   UpdateObjects(HealthBar)
   Table["Nameplates"][frame] = true
end

local select = select
local function HookFrames(...)
   for index = 1, select('#', ...) do
      local frame = select(index, ...)
      local region = frame:GetRegions()

      if ( not Table["Nameplates"][frame] and not frame:GetName() and region and region:GetObjectType() == "Texture" and region:GetTexture() == "Interface\\TargetingFrame\\UI-TargetingFrame-Flash" ) then
         SkinObjects(frame)                  
         frame.region = region
      end
   end
end

local Frame = CreateFrame("Frame")
Frame:RegisterEvent("PLAYER_ENTERING_WORLD")
Frame:SetScript("OnUpdate", function(self, elapsed)
   if ( WorldFrame:GetNumChildren() ~= numChildren ) then
      numChildren = WorldFrame:GetNumChildren()
      HookFrames(WorldFrame:GetChildren())      
   end
end)
Frame:SetScript("OnEvent", function(self, event, name)
   if ( event == "PLAYER_ENTERING_WORLD" ) then
      if ( not _G[AddOn .. "_PlayerEnteredWorld"] ) then
         ChatFrame1:AddMessage("|cff00ccff" .. AddOn .. "|cffffffff Loaded")
         _G[AddOn .. "_PlayerEnteredWorld"] = true
      end   
   end
end)

For Mirror Images thats a bit more complicated i guess. I have some theory, but those needs more time.
So i wont work with that case unless i figure out an easier way, srry.


everytime somebody places totem iam geting 0.2 second freeze

disabled the addon, still geting freezes wtf

edit:nvm deleted cache and its ok
User avatar
 
Posts: 24
Joined: 19 Dec 2013, 12:23
 

Re: Looking for an addon/script (nameplates + totems)

Postby raisnilt » 15 May 2014, 16:23

verballeet wrote:everytime somebody places totem iam geting 0.2 second freeze

disabled the addon, still geting freezes wtf

Cannot reproduce that kind of problem. Tested on duel, and on friendly shaman but no freeze happened. (WotLK version)
If this happens with disabled TotemPlates => there shouldn't be any connection between them. Sorry.
Ingame BrokerCPU(an other addon) can show all running AddOns memory usage. Probably another addon makes that issue? or idk.

I have only a tip, probably TotemPlates caused that problem for another AddOn;
==> Disable all addons, still get the freeze? if no more freeze => only then continue:
Spoiler
Fix Way:
#1 Save "World of Warcraft\WTF" folder into Desktop
#2 Delete "World of Warcraft\WTF" folder
#3 Delete Totemplates
#4 Download TotemPlates again (fixed)
#5 Enable all AddOns you used and check again
#6 If no freeze, than continue (if still freeze: one AddOn cause that -> try disable them one-by-one and check again the freeze.)
#7 copy wtf from desktop one-by-one* and check freeze again.
* first just copy (example:) MiksScrollingBattleText saved vars,
#8 if you find which addon's wtf file caused, than delete that.
User avatar
 
Posts: 15
Joined: 08 Mar 2014, 18:05
 

Re: Looking for an addon/script (nameplates + totems)

Postby Optodont » 16 May 2014, 06:00

hello everyone
Is there a way to make colored nicks players?
this addon TidyPlates_Neon
User avatar
 
Posts: 67
Joined: 06 Jan 2013, 03:48
 

Re: Looking for an addon/script (nameplates + totems)

Postby nashwoodz » 20 May 2014, 11:07

download Aloft. you can change every aspect of the nameplates and make all the plates invisible how you need it
User avatar
 
Posts: 22
Joined: 31 Oct 2013, 01:22
 

Re: Looking for an addon/script (nameplates + totems)

Postby verballeet » 27 May 2014, 00:21

it is possible to move totem icons from bottom right to ontop of totem?
User avatar
 
Posts: 24
Joined: 19 Dec 2013, 12:23
 

Re: Looking for an addon/script (nameplates + totems)

Postby soro » 27 May 2014, 02:47

sick! wtb nameplates+icons on all totems with the addon Aloft for tbc xD
User avatar
 
Posts: 439
Joined: 16 Dec 2012, 21:01
Location: canada
 

Re: Looking for an addon/script (nameplates + totems)

Postby Ovelyap » 27 May 2014, 09:58

Whoa! i was searching that by years :D i love you :D

Btw, there is a method to make even the "health bar" Active on the totems that i put on "True"? For you it's Tremor and Ground.
Becouse having Healthbar will semplify the targetting :)

Thanks alot :)
User avatar
 
Posts: 19
Joined: 03 Apr 2013, 08:53
 

Re: Looking for an addon/script (nameplates + totems)

Postby raisnilt » 10 Jun 2014, 20:29

verballeet wrote:it is possible to move totem icons from bottom right to ontop of totem?

Open with Notepad "Interface\AddOns\TotemPlates\TotemPlates.lua" and change the Coordinates at line34-35:
   xOfs = -10,
   yOfs = -40,


Ovelyap wrote:...there is a method to make even the "health bar" Active on the totems that i put on "True"?

Open with Notepad "Interface\AddOns\TotemPlates\TotemPlates.lua" and replace the entire code with this one:
Spoiler
local AddOn = "TotemPlates"

local numChildren = -1
local Table = {
   ["Nameplates"] = {},
   ["Snakes"] = {
      "Viper",
      "Venomous Snake",
   },
   ["Totems"] = {
      ["Mana Spring Totem VIII"] = true,
      ["Cleansing Totem"] = true,
      ["Magma Totem VII"] = true,
      ["Earth Elemental Totem"] = true,
      ["Earthbind Totem"] = true,
      ["Fire Resistance Totem VI"] = true,
      ["Flametongue Totem VIII"] = true,
      ["Frost Resistance Totem VI"] = true,
      ["Grounding Totem"] = true,
      ["Healing Stream Totem IX"] = true,
      ["Nature Resistance Totem VI"] = true,
      ["Searing Totem X"] = true,
      ["Sentry Totem"] = true,
      ["Stoneclaw Totem X"] = true,
      ["Stoneskin Totem X"] = true,
      ["Strength of Earth Totem VIII"] = true,
      ["Totem of Wrath IV"] = true,
      ["Tremor Totem"] = true,
      ["Windfury Totem"] = true,
      ["Wrath of Air Totem"] = true,
      ["Fire Elemental Totem"] = true,
      ["Mana Tide Totem"] = true,
   },
   xOfs = -10,
   yOfs = -40,
   Scale = 1,
}

local function UpdateObjects(hp)
   frame = hp:GetParent()
   local threat, hpborder, cbshield, cbborder, cbicon, overlay, oldname, level, bossicon, raidicon, elite = frame:GetRegions()
   local name = oldname:GetText()

   overlay:SetAlpha(1)
   threat:Show()
   hpborder:Show()
   oldname:Show()
   level:Show()
   hp:SetAlpha(1)
   if frame.totem then frame.totem:Hide() end

   for _,snake in pairs(Table["Snakes"]) do
      if ( name == snake ) then
         overlay:SetAlpha(0)
         threat:Hide()
         hpborder:Hide()
         oldname:Hide()
         level:Hide()
         hp:SetAlpha(0)
         break
      end
   end

   for totem in pairs(Table["Totems"]) do
      if ( name == totem and Table["Totems"][totem] == true ) then
         --overlay:SetAlpha(0)
         threat:Hide()
         --hpborder:Hide()
         oldname:Hide()
         --level:Hide()
         --hp:SetAlpha(0)
         if not frame.totem then
            frame.totem = frame:CreateTexture(nil, "BACKGROUND")
            frame.totem:ClearAllPoints()
            frame.totem:SetPoint("CENTER",frame,"CENTER",Table.xOfs,Table.yOfs)
         else
            frame.totem:Show()
         end   
         frame.totem:SetTexture("Interface\\AddOns\\" .. AddOn .. "\\Textures\\" .. totem)
         frame.totem:SetWidth(64 *Table.Scale)
         frame.totem:SetHeight(64 *Table.Scale)
         break
      elseif ( name == totem ) then
         overlay:SetAlpha(0)
         threat:Hide()
         hpborder:Hide()
         oldname:Hide()
         level:Hide()
         hp:SetAlpha(0)
         break
      end
   end
end

local function SkinObjects(frame)
   local HealthBar, CastBar = frame:GetChildren()
   local threat, hpborder, cbshield, cbborder, cbicon, overlay, oldname, level, bossicon, raidicon, elite = frame:GetRegions()

   HealthBar:HookScript("OnShow", UpdateObjects)
   HealthBar:HookScript("OnSizeChanged", UpdateObjects)

   UpdateObjects(HealthBar)
   Table["Nameplates"][frame] = true
end

local select = select
local function HookFrames(...)
   for index = 1, select('#', ...) do
      local frame = select(index, ...)
      local region = frame:GetRegions()

      if ( not Table["Nameplates"][frame] and not frame:GetName() and region and region:GetObjectType() == "Texture" and region:GetTexture() == "Interface\\TargetingFrame\\UI-TargetingFrame-Flash" ) then
         SkinObjects(frame)                 
         frame.region = region
      end
   end
end

local Frame = CreateFrame("Frame")
Frame:RegisterEvent("PLAYER_ENTERING_WORLD")
Frame:SetScript("OnUpdate", function(self, elapsed)
   if ( WorldFrame:GetNumChildren() ~= numChildren ) then
      numChildren = WorldFrame:GetNumChildren()
      HookFrames(WorldFrame:GetChildren())     
   end
end)
Frame:SetScript("OnEvent", function(self, event, name)
   if ( event == "PLAYER_ENTERING_WORLD" ) then
      if ( not _G[AddOn .. "_PlayerEnteredWorld"] ) then
         ChatFrame1:AddMessage("|cff00ccff" .. AddOn .. "|cffffffff Loaded")
         _G[AddOn .. "_PlayerEnteredWorld"] = true
      end   
   end
end)
User avatar
 
Posts: 15
Joined: 08 Mar 2014, 18:05
 

Re: Looking for an addon/script (nameplates + totems)

Postby Mennyxti » 14 Jan 2015, 19:05

Dont works for me :/
User avatar
 
Posts: 3
Joined: 16 Dec 2014, 00:46
 

Re: Looking for an addon/script (nameplates + totems)

Postby Iceshardxy » 16 Jan 2015, 10:42

Same here.
User avatar
 
Posts: 1
Joined: 16 Jan 2015, 10:41
 

Return to Addons

Who is online

Users browsing this forum: No registered users and 2 guests