From d64e9279fe0392f81dffc4a0e8c6fb18e1cb4807 Mon Sep 17 00:00:00 2001 From: jKalfis Date: Thu, 3 Sep 2026 17:27:38 +0100 Subject: [PATCH] Update config.lua --- config.lua | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/config.lua b/config.lua index e28a060..81a72cc 100644 --- a/config.lua +++ b/config.lua @@ -1,3 +1,12 @@ +```lua +------------------------------------------------------------ +-- pfUI-DQB +-- config.lua +-- +-- Default configuration for DQB. +-- GUI registration is handled by GUI.lua. +------------------------------------------------------------ + local DQB = pfUI and pfUI.dqb if not DQB then @@ -11,6 +20,10 @@ end function DQB:InitializeConfig() + -------------------------------------------------------- + -- Root + -------------------------------------------------------- + if not pfUI_config then pfUI_config = {} end @@ -28,8 +41,10 @@ function DQB:InitializeConfig() pfUI_config.dqb.general = {} end - if pfUI_config.dqb.general.enable == nil then - pfUI_config.dqb.general.enable = "1" + local general = pfUI_config.dqb.general + + if general.enable == nil then + general.enable = "1" end @@ -203,4 +218,6 @@ function DQB:InitializeConfig() if merchant.text_color == nil then merchant.text_color = "ffffff" end + end +```