mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-09 23:20:00 +00:00
refine textures and buttons
This commit is contained in:
+14
-16
@@ -185,17 +185,16 @@ pfUI:RegisterModule("panel", function ()
|
||||
|
||||
pfUI.panel.left.hide = CreateFrame("Button", nil, pfUI.panel.left)
|
||||
pfUI.panel.left.hide:ClearAllPoints()
|
||||
pfUI.panel.left.hide:SetWidth(15)
|
||||
pfUI.panel.left.hide:SetWidth(16)
|
||||
pfUI.panel.left.hide:SetHeight(pfUI.panel.left:GetHeight())
|
||||
pfUI.panel.left.hide:SetPoint("LEFT", 0, 0)
|
||||
pfUI.panel.left.hide:SetBackdrop(pfUI.backdrop)
|
||||
pfUI.panel.left.hide.text = pfUI.panel.left.hide:CreateFontString("Status", "LOW", "GameFontNormal")
|
||||
pfUI.panel.left.hide.text:SetFont("Interface\\AddOns\\pfUI\\fonts\\arial.ttf", pfUI_config.global.font_size, "OUTLINE")
|
||||
pfUI.panel.left.hide.text:ClearAllPoints()
|
||||
pfUI.panel.left.hide.text:SetAllPoints(pfUI.panel.left.hide)
|
||||
pfUI.panel.left.hide.text:SetPoint("LEFT", 0, 0)
|
||||
pfUI.panel.left.hide.text:SetFontObject(GameFontWhite)
|
||||
pfUI.panel.left.hide.text:SetText("< ")
|
||||
pfUI.panel.left.hide.texture = pfUI.panel.left.hide:CreateTexture("pfPanelLeftHide")
|
||||
pfUI.panel.left.hide.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\left")
|
||||
pfUI.panel.left.hide.texture:ClearAllPoints()
|
||||
pfUI.panel.left.hide.texture:SetPoint("TOPLEFT", pfUI.panel.left.hide, "TOPLEFT", 3, -5)
|
||||
pfUI.panel.left.hide.texture:SetPoint("BOTTOMRIGHT", pfUI.panel.left.hide, "BOTTOMRIGHT", -3, 5)
|
||||
pfUI.panel.left.hide.texture:SetVertexColor(.25,.25,.25,1)
|
||||
pfUI.panel.left.hide:SetScript("OnClick", function()
|
||||
if pfUI.chat.left:IsShown() then pfUI.chat.left:Hide() else pfUI.chat.left:Show() end
|
||||
end)
|
||||
@@ -250,17 +249,16 @@ pfUI:RegisterModule("panel", function ()
|
||||
|
||||
pfUI.panel.right.hide = CreateFrame("Button", nil, pfUI.panel.right)
|
||||
pfUI.panel.right.hide:ClearAllPoints()
|
||||
pfUI.panel.right.hide:SetWidth(15)
|
||||
pfUI.panel.right.hide:SetWidth(16)
|
||||
pfUI.panel.right.hide:SetHeight(pfUI.panel.right:GetHeight())
|
||||
pfUI.panel.right.hide:SetPoint("RIGHT", 0, 0)
|
||||
pfUI.panel.right.hide:SetBackdrop(pfUI.backdrop)
|
||||
pfUI.panel.right.hide.text = pfUI.panel.right.hide:CreateFontString("Status", "LOW", "GameFontNormal")
|
||||
pfUI.panel.right.hide.text:SetFont("Interface\\AddOns\\pfUI\\fonts\\arial.ttf", pfUI_config.global.font_size, "OUTLINE")
|
||||
pfUI.panel.right.hide.text:ClearAllPoints()
|
||||
pfUI.panel.right.hide.text:SetAllPoints(pfUI.panel.right.hide)
|
||||
pfUI.panel.right.hide.text:SetPoint("LEFT", 0, 0)
|
||||
pfUI.panel.right.hide.text:SetFontObject(GameFontWhite)
|
||||
pfUI.panel.right.hide.text:SetText(" >")
|
||||
pfUI.panel.right.hide.texture = pfUI.panel.right.hide:CreateTexture("pfPanelRightHide")
|
||||
pfUI.panel.right.hide.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\right")
|
||||
pfUI.panel.right.hide.texture:ClearAllPoints()
|
||||
pfUI.panel.right.hide.texture:SetPoint("TOPLEFT", pfUI.panel.right.hide, "TOPLEFT", 3, -5)
|
||||
pfUI.panel.right.hide.texture:SetPoint("BOTTOMRIGHT", pfUI.panel.right.hide, "BOTTOMRIGHT", -3, 5)
|
||||
pfUI.panel.right.hide.texture:SetVertexColor(.25,.25,.25,1)
|
||||
pfUI.panel.right.hide:SetScript("OnClick", function()
|
||||
if pfUI.chat.right:IsShown() then pfUI.chat.right:Hide() else pfUI.chat.right:Show() end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user