forked from skennedysocal/WoW_Hardcore
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathInspectStatusScreen.lua
More file actions
72 lines (62 loc) · 2.56 KB
/
InspectStatusScreen.lua
File metadata and controls
72 lines (62 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
local IPanel = CreateFrame("Frame", nil, CharacterFrame)
IPanel:SetPoint("TOPLEFT", CharacterFrame, "TOPLEFT", -50, -200)
IPanel:SetPoint("BOTTOMRIGHT", CharacterFrame, "BOTTOMRIGHT", -200, 0)
local I_f = CreateFrame("Frame", "YourFrameName", IPanel)
I_f:SetSize(400, 400)
I_f:SetPoint("CENTER")
I_f:Hide()
local I_t = I_f:CreateTexture(nil, "ARTWORK")
I_t:SetTexture("Interface\\PaperDollInfoFrame\\UI-Character-General-TopLeft")
I_t:SetPoint("TOPLEFT", CharacterFrame, "TOPLEFT", 2, -1)
I_t:SetWidth(256)
I_t:SetHeight(256)
local I_tr = I_f:CreateTexture(nil, "ARTWORK")
I_tr:SetTexture("Interface\\PaperDollInfoFrame\\UI-Character-General-TopRight")
I_tr:SetPoint("TOPLEFT", CharacterFrame, "TOPLEFT", 258, -1)
I_tr:SetWidth(128)
I_tr:SetHeight(256)
local I_bl = I_f:CreateTexture(nil, "ARTWORK")
I_bl:SetTexture("Interface\\PaperDollInfoFrame\\UI-Character-General-BottomLeft")
I_bl:SetPoint("TOPLEFT", CharacterFrame, "TOPLEFT", 2, -257)
I_bl:SetWidth(256)
I_bl:SetHeight(256)
local I_br = I_f:CreateTexture(nil, "ARTWORK")
I_br:SetTexture("Interface\\PaperDollInfoFrame\\UI-Character-General-BottomRight")
I_br:SetPoint("TOPLEFT", CharacterFrame, "TOPLEFT", 258, -257)
I_br:SetWidth(128)
I_br:SetHeight(256)
local title_text = I_f:CreateFontString(nil, "ARTWORK")
title_text:SetFont("Interface\\Addons\\Hardcore\\Media\\BreatheFire.ttf", 22, "")
title_text:SetPoint("TOPLEFT", CharacterFrame, "TOPLEFT", 150, -45)
title_text:SetTextColor(1, 0.82, 0)
title_text:SetText("Hardcore")
IPanel:SetPoint("CENTER", 0, 0)
IPanel:Hide()
local AceGUI = LibStub("AceGUI-3.0")
local I_f2 = AceGUI:Create("HardcoreFrameEmpty")
I_f2:SetPoint("TOPLEFT", CharacterFrame, "TOPLEFT", 8, -38)
I_f2:SetWidth(360)
I_f2:SetHeight(350)
I_f2:Hide()
function ShowInspectHC(_hardcore_character, other_name, version)
IPanel:SetParent(InspectFrame)
IPanel:SetPoint("TOPLEFT", InspectFrame, "TOPLEFT", -50, -200)
IPanel:SetPoint("BOTTOMRIGHT", InspectFrame, "BOTTOMRIGHT", -200, 0)
I_t:SetPoint("TOPLEFT", InspectFrame, "TOPLEFT", 2, -1)
I_tr:SetPoint("TOPLEFT", InspectFrame, "TOPLEFT", 258, -1)
I_bl:SetPoint("TOPLEFT", InspectFrame, "TOPLEFT", 2, -257)
I_br:SetPoint("TOPLEFT", InspectFrame, "TOPLEFT", 258, -257)
I_f2:SetPoint("TOPLEFT", InspectFrame, "TOPLEFT", 8, -38)
title_text:SetPoint("TOPLEFT", InspectFrame, "TOPLEFT", 150, -45)
local class, class_en, _ = UnitClass("target")
UpdateCharacterHC(_hardcore_character, other_name, version, I_f2, class, class_en, UnitLevel("target"))
IPanel:Show()
I_f:Show()
I_f2:Show()
end
function HideInspectHC()
IPanel:Hide()
I_f:Hide()
I_f2:Hide()
I_f2:ReleaseChildren()
end