self:SetOwner(UIParent, "ANCHOR_NONE")
if self.NineSlice then
-- WoW 9.1.5
self.NineSlice:Hide()
elseif self.SetBackdrop then
-- Burning Crusade Classic
self:SetBackdrop({})
end
PawnUIFrame:StartMoving()
PawnUIFrame:StopMovingOrSizing()
PawnUIFrame:StopMovingOrSizing()
PawnUI_ScalesTab_Refresh()
if BackdropTemplateMixin then Mixin(self, BackdropTemplateMixin) end
self:SetBackdrop({
bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
tile = true,
edgeSize = 16,
tileSize = 16,
insets = { left = 4, right = 4, top = 4, bottom = 4 },
})
self:SetBackdropColor(0, 0, 0, 0.5)
FauxScrollFrame_OnVerticalScroll(PawnUIFrame_StatsList, offset, 16, PawnUIFrame_StatsList_Update)
PawnUI_ValuesTab_Refresh()
PawnUIFrame_StatsList_SelectStat(0)
PawnUI_CompareTab_Refresh()
PawnUI_InitGemsTab()
PawnUIFrame_TooltipUpgradeList_SetSelection(true, false)
PawnUIFrame_TooltipUpgradeList_SetSelection(true, true)
PawnUIFrame_TooltipUpgradeList_SetSelection(false, false)
PawnUIFrame_UpgradeTrackingList_SetSelection(false)
PawnUIFrame_UpgradeTrackingList_SetSelection(true)
PawnUIFrame_ButtonPositionList_SetSelection(PawnButtonPositionRight)
PawnUIFrame_ButtonPositionList_SetSelection(PawnButtonPositionLeft)
PawnUIFrame_ButtonPositionList_SetSelection(PawnButtonPositionHidden)
--VgerCore.Message("Pawn initialization: PawnFrame:OnLoad")
tinsert(UISpecialFrames, self:GetName()) -- closes when you press Escape
self:RegisterEvent("ADDON_LOADED")
self:RegisterEvent("PLAYER_LOGIN")
self:RegisterEvent("PLAYER_LOGOUT")
self:RegisterEvent("UNIT_INVENTORY_CHANGED")
self:RegisterEvent("ITEM_LOCKED")
self:RegisterEvent("GROUP_ROSTER_UPDATE")
self:RegisterEvent("MERCHANT_UPDATE")
-- These events don't exist on Classic versions.
if VgerCore.SpecsExist then
self:RegisterEvent("PLAYER_SPECIALIZATION_CHANGED")
end
if VgerCore.ArtifactsExist then
self:RegisterEvent("ARTIFACT_UPDATE")
end
PawnUITabList = { PawnUIScalesTabPage, PawnUIValuesTabPage, PawnUICompareTabPage, PawnUIGemsTabPage, PawnUIOptionsTabPage, PawnUIHelpTabPage, PawnUIAboutTabPage }
PawnUICreateTabs()
if BackdropTemplateMixin then Mixin(self, BackdropTemplateMixin) end
self:SetBackdrop({
bgFile = "Interface\\AddOns\\Pawn\\Textures\\Background",
tile = false,
insets = { left = 0, right = 0, top = 0, bottom = -311 },
})
PawnOnEvent(event, ...)
PlaySound(SOUNDKIT.IG_CHARACTER_INFO_OPEN)
PawnUI_EnsureLoaded()
PlaySound(SOUNDKIT.IG_CHARACTER_INFO_CLOSE)
self:StartMoving()
self:StopMovingOrSizing()
self:StopMovingOrSizing()
tinsert(UISpecialFrames, self:GetName()) -- closes when you press Escape
if BackdropTemplateMixin then Mixin(self, BackdropTemplateMixin) end
self:SetBackdrop({
bgFile = "Interface\\DialogFrame\\UI-DialogBox-Background",
edgeFile = "Interface\\DialogFrame\\UI-DialogBox-Border",
tile = true,
tileSize = 32,
edgeSize = 32,
insets = { left = 10, right = 11, top = 11, bottom = 10 },
})
if BackdropTemplateMixin then Mixin(self, BackdropTemplateMixin) end
self:SetBackdrop({
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
tile = true,
edgeSize = 16,
})
self:SetBackdropColor(0, 0, 0, 0.5)
tinsert(UISpecialFrames, self:GetName()) -- closes when you press Escape
PawnUIStringDialogMultiLine.TextBox = PawnUIStringDialogMultiLine_TextBox
if BackdropTemplateMixin then Mixin(self, BackdropTemplateMixin) end
self:SetBackdrop({
bgFile = "Interface\\DialogFrame\\UI-DialogBox-Background",
edgeFile = "Interface\\DialogFrame\\UI-DialogBox-Border",
tile = true,
tileSize = 32,
edgeSize = 32,
insets = { left = 10, right = 11, top = 11, bottom = 10 },
})