Thread Tools Display Modes
04-09-12, 09:50 PM   #1
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Name of this Icon

Hey everyone, im looking for the name of this icon. I've found out all the orders but this one

I've tried MailFrameIcon, MailFramePortrait: Like most of them other where named.



What the other Mail Icon Name is: OpenMailFrameIcon
  Reply With Quote
04-09-12, 10:16 PM   #2
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
The path to the texture itself is Interface/MailFrame/Mail-Icon, I don't think the layer is named in the interface.
  Reply With Quote
04-09-12, 10:30 PM   #3
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
https://github.com/tekkub/wow-ui-sou...e.xml#L395-408
  Reply With Quote
04-09-12, 10:38 PM   #4
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
To get the actual texture object, you could do this:
Code:
local obj = select(1, MailFrame:GetRegions())
print(obj:GetTexture())
This would then print out "Interface\MailFrame\Mail-Icon"
  Reply With Quote
04-10-12, 12:04 AM   #5
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by p3lim View Post
To get the actual texture object, you could do this:
Code:
local obj = select(1, MailFrame:GetRegions())
print(obj:GetTexture())
This would then print out "Interface\MailFrame\Mail-Icon"
This works perfect Thanks !


LUA Code:
  1. local frame = CreateFrame("Frame", nil, _G["MailFrame"])
  2.         frame:SetPoint("TOPLEFT", select(1, _G["MailFrame"]:GetRegions()), 1, -1)
  3.         frame:SetSize(55, 55)
  4.         frame:SetFrameStrata("HIGH")
  5.         CreateBorderLight(frame, AftermathhUI.media.bordersize, AftermathhUI.bordercolor, AftermathhUI.bordercolor, AftermathhUI.bordercolor,0)
  6.    
  7.         select(1, _G["MailFrame"]:GetRegions()):SetSize(55, 55)
  8.         select(1, _G["MailFrame"]:GetRegions()):SetPoint("TOPLEFT", 16, -14)
  9.         select(1, _G["MailFrame"]:GetRegions()):SetParent(frame) -- Since its hidden already we need a new parent.


And Magics! ;D


Last edited by Aftermathhqt : 04-10-12 at 12:20 AM.
  Reply With Quote
04-10-12, 12:22 AM   #6
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
I would probably assign "select(1, _G["MailFrame"]:GetRegions())" to a variable so you don't have to keep calling that. I think you only need local icon = MailFrame:GetRegions().

Lua Code:
  1. local icon = MailFrame:GetRegions()
  2. local frame = CreateFrame("Frame", nil, MailFrame)
  3. frame:SetPoint("TOPLEFT", icon, 1, -1)
  4. frame:SetSize(55, 55)
  5. frame:SetFrameStrata("HIGH")
  6. CreateBorderLight(frame, AftermathhUI.media.bordersize, AftermathhUI.bordercolor, AftermathhUI.bordercolor, AftermathhUI.bordercolor,0)
  7.    
  8. icon:SetSize(55, 55)
  9. icon:SetPoint("TOPLEFT", 16, -14)
  10. icon:SetParent(frame) -- Since its hidden already we need a new parent.

Last edited by semlar : 04-10-12 at 12:28 AM.
  Reply With Quote
04-10-12, 12:34 AM   #7
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by semlar View Post
I would probably assign "select(1, _G["MailFrame"]:GetRegions())" to a variable so you don't have to keep calling that. I think you only need local icon = MailFrame:GetRegions().

Lua Code:
  1. local icon = MailFrame:GetRegions()
  2. local frame = CreateFrame("Frame", nil, MailFrame)
  3. frame:SetPoint("TOPLEFT", icon, 1, -1)
  4. frame:SetSize(55, 55)
  5. frame:SetFrameStrata("HIGH")
  6. CreateBorderLight(frame, AftermathhUI.media.bordersize, AftermathhUI.bordercolor, AftermathhUI.bordercolor, AftermathhUI.bordercolor,0)
  7.    
  8. icon:SetSize(55, 55)
  9. icon:SetPoint("TOPLEFT", 16, -14)
  10. icon:SetParent(frame) -- Since its hidden already we need a new parent.
Yeah, true that.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Name of this Icon


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off