Skip to content

Commit

Permalink
fixed to c.panel instead of c.global
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgibson1981 committed Feb 11, 2025
1 parent bf9edb7 commit a5502a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion api/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("global", nil, "hidebuff", "0")
pfUI:UpdateConfig("global", nil, "hidewbuff", "0")
pfUI:UpdateConfig("global", nil, "twentyfour", "1")
pfUI:UpdateConfig("global", nil, "seconds", "1")
pfUI:UpdateConfig("global", nil, "servertime", "0")
pfUI:UpdateConfig("global", nil, "autosell", "0")
pfUI:UpdateConfig("global", nil, "autorepair", "0")
Expand Down Expand Up @@ -575,6 +574,7 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("panel", nil, "hide_rightchat", "0")
pfUI:UpdateConfig("panel", nil, "hide_minimap", "0")
pfUI:UpdateConfig("panel", nil, "hide_microbar", "0")
pfUI:UpdateConfig("panel", nil, "seconds", "1")
pfUI:UpdateConfig("panel", "left", "left", "guild")
pfUI:UpdateConfig("panel", "left", "center", "durability")
pfUI:UpdateConfig("panel", "left", "right", "friends")
Expand Down Expand Up @@ -607,6 +607,7 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("panel", "xp", "rep_anchor", "pfChatRight")
pfUI:UpdateConfig("panel", "xp", "rep_position", "LEFT")
pfUI:UpdateConfig("panel", "xp", "dont_overlap", "0")


pfUI:UpdateConfig("castbar", "player", "hide_blizz", "1")
pfUI:UpdateConfig("castbar", "player", "hide_pfui", "0")
Expand Down
2 changes: 1 addition & 1 deletion modules/gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2075,7 +2075,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(nil, T["Only Count Bagspace On Regular Bags"], C.panel.bag, "ignorespecial", "checkbox")
CreateConfig(nil, T["Enable Micro Bar"], C.panel.micro, "enable", "checkbox")
CreateConfig(nil, T["Enable 24h Clock"], C.global, "twentyfour", "checkbox")
CreateConfig(nil, T["Enable Seconds"], C.global, "seconds", "checkbox")
CreateConfig(nil, T["Enable Seconds"], C.panel, "seconds", "checkbox")
CreateConfig(nil, T["Servertime"], C.global, "servertime", "checkbox")
CreateConfig(U["panel"], T["Show FPS and Latency Colors"], C.panel, "fpscolors", "checkbox")

Expand Down
2 changes: 1 addition & 1 deletion modules/panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function()
local h, m = GetGameTime()
local noon = "AM"
local time = ""
local secondsenabled = C.global.seconds == "1"
local secondsenabled = C.panel.seconds == "1"
if C.global.twentyfour == "0" then
if C.global.servertime == "1" then
if h > 12 then
Expand Down

0 comments on commit a5502a9

Please sign in to comment.