mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-23 12:30:50 +00:00
api: add config profile variable
This commit is contained in:
@@ -3,6 +3,7 @@ pfUI_config = {}
|
|||||||
|
|
||||||
function pfUI:LoadConfig()
|
function pfUI:LoadConfig()
|
||||||
-- MODULE SUBGROUP ENTRY VALUE
|
-- MODULE SUBGROUP ENTRY VALUE
|
||||||
|
pfUI:UpdateConfig("global", nil, "profile", "default")
|
||||||
pfUI:UpdateConfig("global", nil, "pixelperfect", "0")
|
pfUI:UpdateConfig("global", nil, "pixelperfect", "0")
|
||||||
pfUI:UpdateConfig("global", nil, "font_size", "12")
|
pfUI:UpdateConfig("global", nil, "font_size", "12")
|
||||||
pfUI:UpdateConfig("global", nil, "font_default", "arial")
|
pfUI:UpdateConfig("global", nil, "font_default", "arial")
|
||||||
|
|||||||
@@ -40,6 +40,11 @@ pfUI:SetScript("OnEvent", function()
|
|||||||
pfUI_init = {}
|
pfUI_init = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not pfUI_profiles then
|
||||||
|
pfUI_profiles = {}
|
||||||
|
pfUI_profiles["default"] = pfUI_config
|
||||||
|
end
|
||||||
|
|
||||||
pfUI:LoadConfig()
|
pfUI:LoadConfig()
|
||||||
|
|
||||||
-- reload environment
|
-- reload environment
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
## Author: Shagu, 2016
|
## Author: Shagu, 2016
|
||||||
## Notes: A complete user interface replacement.
|
## Notes: A complete user interface replacement.
|
||||||
## Version: 0.1
|
## Version: 0.1
|
||||||
## SavedVariables: pfUI_playerDB
|
## SavedVariables: pfUI_profiles, pfUI_playerDB
|
||||||
## SavedVariablesPerCharacter: pfUI_config, pfUI_init
|
## SavedVariablesPerCharacter: pfUI_config, pfUI_init
|
||||||
|
|
||||||
# main
|
# main
|
||||||
|
|||||||
Reference in New Issue
Block a user