mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-11 16:10:01 +00:00
core: change environment handling
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
pfUI.api = { }
|
||||
|
||||
local _G = getfenv(0)
|
||||
local T, C, L = pfUI:LoadEnvironment()
|
||||
-- load pfUI environment
|
||||
setfenv(1, pfUI:GetEnvironment())
|
||||
|
||||
-- [ strsplit ]
|
||||
-- Splits a string using a delimiter.
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
pfUI.uf = CreateFrame("Frame",nil,UIParent)
|
||||
pfUI.uf.frames = {}
|
||||
|
||||
-- load pfUI environment
|
||||
setfenv(1, pfUI:GetEnvironment())
|
||||
|
||||
local pfValidUnits = {}
|
||||
pfValidUnits["player"] = true
|
||||
pfValidUnits["target"] = true
|
||||
|
||||
Reference in New Issue
Block a user