mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 20:50:01 +00:00
refine textures and buttons
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
+10
-7
@@ -404,9 +404,12 @@ pfUI:RegisterModule("bags", function ()
|
||||
frame.close:SetBackdrop(pfUI.backdrop)
|
||||
frame.close:SetHeight(15)
|
||||
frame.close:SetWidth(15)
|
||||
frame.close:SetText("x")
|
||||
frame.close:SetTextColor(1,.25,.25,1)
|
||||
frame.close:SetFont("Interface\\AddOns\\pfUI\\fonts\\arial.ttf", pfUI_config.global.font_size, "OUTLINE")
|
||||
frame.close.texture = frame.close:CreateTexture("pfBagClose")
|
||||
frame.close.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\close")
|
||||
frame.close.texture:ClearAllPoints()
|
||||
frame.close.texture:SetPoint("TOPLEFT", frame.close, "TOPLEFT", 4, -4)
|
||||
frame.close.texture:SetPoint("BOTTOMRIGHT", frame.close, "BOTTOMRIGHT", -4, 4)
|
||||
frame.close.texture:SetVertexColor(1,.25,.25,1)
|
||||
frame.close:SetScript("OnEnter", function ()
|
||||
frame.close:SetBackdrop(pfUI.backdrop_col)
|
||||
frame.close:SetBackdropBorderColor(1,.25,.25,1)
|
||||
@@ -432,11 +435,11 @@ pfUI:RegisterModule("bags", function ()
|
||||
frame.bags:SetWidth(15)
|
||||
frame.bags:SetTextColor(1,1,.25,1)
|
||||
frame.bags:SetFont("Interface\\AddOns\\pfUI\\fonts\\arial.ttf", pfUI_config.global.font_size, "OUTLINE")
|
||||
frame.bags.texture = frame.bags:CreateTexture(nil,"BACKGROUND")
|
||||
frame.bags.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\arrow_up")
|
||||
frame.bags.texture = frame.bags:CreateTexture("pfBagArrowUp")
|
||||
frame.bags.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\up")
|
||||
frame.bags.texture:ClearAllPoints()
|
||||
frame.bags.texture:SetPoint("TOPLEFT", frame.bags, "TOPLEFT", 4, -2)
|
||||
frame.bags.texture:SetPoint("BOTTOMRIGHT", frame.bags, "BOTTOMRIGHT", -4, 2)
|
||||
frame.bags.texture:SetPoint("TOPLEFT", frame.bags, "TOPLEFT", 5, -3)
|
||||
frame.bags.texture:SetPoint("BOTTOMRIGHT", frame.bags, "BOTTOMRIGHT", -5, 3)
|
||||
frame.bags.texture:SetVertexColor(.25,.25,.25,1)
|
||||
|
||||
frame.bags:SetScript("OnEnter", function ()
|
||||
|
||||
+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