mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 18:36:01 +00:00
api: allow custom transparency
This commit is contained in:
+3
-3
@@ -10,7 +10,7 @@ pfUI:RegisterModule("gui", function ()
|
||||
pfUI.gui:SetHeight(500)
|
||||
pfUI.gui:Hide()
|
||||
|
||||
pfUI.api:CreateBackdrop(pfUI.gui, nil, nil, true)
|
||||
pfUI.api:CreateBackdrop(pfUI.gui, nil, nil, .8)
|
||||
pfUI.gui:SetPoint("CENTER",0,0)
|
||||
pfUI.gui:SetMovable(true)
|
||||
pfUI.gui:EnableMouse(true)
|
||||
@@ -143,7 +143,7 @@ pfUI:RegisterModule("gui", function ()
|
||||
frame.drag = CreateFrame("Frame", nil, frame)
|
||||
frame.drag:SetAllPoints(frame)
|
||||
frame.drag:SetFrameStrata("DIALOG")
|
||||
pfUI.api:CreateBackdrop(frame.drag, nil, nil, true)
|
||||
pfUI.api:CreateBackdrop(frame.drag, nil, nil, .8)
|
||||
frame.drag.backdrop:SetBackdropBorderColor(.2, 1, .8)
|
||||
frame.drag:EnableMouseWheel(1)
|
||||
frame.drag.text = frame.drag:CreateFontString("Status", "LOW", "GameFontNormal")
|
||||
@@ -635,7 +635,7 @@ pfUI:RegisterModule("gui", function ()
|
||||
pfUI.gui.deco:ClearAllPoints()
|
||||
pfUI.gui.deco:SetPoint("TOPLEFT", pfUI.gui, "TOPLEFT", 4*default_border + 100,-2*default_border)
|
||||
pfUI.gui.deco:SetPoint("BOTTOMRIGHT", pfUI.gui, "BOTTOMRIGHT", -2*default_border,2*default_border)
|
||||
pfUI.api:CreateBackdrop(pfUI.gui.deco, nil, nil, true)
|
||||
pfUI.api:CreateBackdrop(pfUI.gui.deco, nil, nil, .8)
|
||||
|
||||
pfUI.gui.deco.up = CreateFrame("Frame", nil, pfUI.gui.deco)
|
||||
pfUI.gui.deco.up:SetPoint("TOPLEFT", pfUI.gui.deco, "TOPLEFT", 0,0)
|
||||
|
||||
Reference in New Issue
Block a user