Update config.lua

This commit is contained in:
jKalfis
2026-09-03 18:44:31 +01:00
committed by GitHub
parent 862c7c17d6
commit 589d222b18
+63 -123
View File
@@ -1,27 +1,10 @@
------------------------------------------------------------
-- 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
return
end
------------------------------------------------------------
-- Default configuration
------------------------------------------------------------
function DQB:InitializeConfig()
--------------------------------------------------------
-- Root
--------------------------------------------------------
if not pfUI_config then
pfUI_config = {}
end
@@ -30,9 +13,9 @@ function DQB:InitializeConfig()
pfUI_config.dqb = {}
end
--------------------------------------------------------
------------------------------------------------
-- General
--------------------------------------------------------
------------------------------------------------
if not pfUI_config.dqb.general then
pfUI_config.dqb.general = {}
@@ -44,51 +27,51 @@ function DQB:InitializeConfig()
general.enable = "1"
end
--------------------------------------------------------
-- Quest & Gossip
--------------------------------------------------------
------------------------------------------------
-- Gossip & Quest
------------------------------------------------
if not pfUI_config.dqb.questgossip then
pfUI_config.dqb.questgossip = {}
if not pfUI_config.dqb.gossipquest then
pfUI_config.dqb.gossipquest = {}
end
local questgossip = pfUI_config.dqb.questgossip
local gossipquest = pfUI_config.dqb.gossipquest
if questgossip.background_global == nil then
questgossip.background_global = "1"
if gossipquest.pfui_style == nil then
gossipquest.pfui_style = "0"
end
if questgossip.background_color == nil then
questgossip.background_color = "000000"
if gossipquest.fix_fonts == nil then
gossipquest.fix_fonts = "0"
end
if questgossip.background_alpha == nil then
questgossip.background_alpha = "0.85"
if gossipquest.remove_parchment == nil then
gossipquest.remove_parchment = "0"
end
if questgossip.text_global == nil then
questgossip.text_global = "1"
if gossipquest.background_color == nil then
gossipquest.background_color = "000000"
end
if questgossip.text_font == nil then
questgossip.text_font = "Arial"
if gossipquest.background_alpha == nil then
gossipquest.background_alpha = "0.85"
end
if questgossip.text_size == nil then
questgossip.text_size = "12"
if gossipquest.font == nil then
gossipquest.font = "Arial"
end
if questgossip.text_style == nil then
questgossip.text_style = ""
if gossipquest.title_color == nil then
gossipquest.title_color = "ffd100"
end
if questgossip.text_color == nil then
questgossip.text_color = "ffffff"
if gossipquest.text_color == nil then
gossipquest.text_color = "ffffff"
end
--------------------------------------------------------
------------------------------------------------
-- Quest Log
--------------------------------------------------------
------------------------------------------------
if not pfUI_config.dqb.questlog then
pfUI_config.dqb.questlog = {}
@@ -96,8 +79,16 @@ function DQB:InitializeConfig()
local questlog = pfUI_config.dqb.questlog
if questlog.background_global == nil then
questlog.background_global = "1"
if questlog.pfui_style == nil then
questlog.pfui_style = "0"
end
if questlog.fix_fonts == nil then
questlog.fix_fonts = "0"
end
if questlog.remove_parchment == nil then
questlog.remove_parchment = "0"
end
if questlog.background_color == nil then
@@ -108,108 +99,57 @@ function DQB:InitializeConfig()
questlog.background_alpha = "0.85"
end
if questlog.text_global == nil then
questlog.text_global = "1"
if questlog.font == nil then
questlog.font = "Arial"
end
if questlog.text_font == nil then
questlog.text_font = "Arial"
end
if questlog.text_size == nil then
questlog.text_size = "12"
end
if questlog.text_style == nil then
questlog.text_style = ""
if questlog.title_color == nil then
questlog.title_color = "ffd100"
end
if questlog.text_color == nil then
questlog.text_color = "ffffff"
end
--------------------------------------------------------
-- Item Text
--------------------------------------------------------
------------------------------------------------
-- Books
------------------------------------------------
if not pfUI_config.dqb.itemtext then
pfUI_config.dqb.itemtext = {}
if not pfUI_config.dqb.books then
pfUI_config.dqb.books = {}
end
local itemtext = pfUI_config.dqb.itemtext
local books = pfUI_config.dqb.books
if itemtext.background_global == nil then
itemtext.background_global = "1"
if books.pfui_style == nil then
books.pfui_style = "0"
end
if itemtext.background_color == nil then
itemtext.background_color = "000000"
if books.fix_fonts == nil then
books.fix_fonts = "0"
end
if itemtext.background_alpha == nil then
itemtext.background_alpha = "0.85"
if books.remove_parchment == nil then
books.remove_parchment = "0"
end
if itemtext.text_global == nil then
itemtext.text_global = "1"
if books.background_color == nil then
books.background_color = "000000"
end
if itemtext.text_font == nil then
itemtext.text_font = "Arial"
if books.background_alpha == nil then
books.background_alpha = "0.85"
end
if itemtext.text_size == nil then
itemtext.text_size = "12"
if books.font == nil then
books.font = "Arial"
end
if itemtext.text_style == nil then
itemtext.text_style = ""
if books.title_color == nil then
books.title_color = "ffd100"
end
if itemtext.text_color == nil then
itemtext.text_color = "ffffff"
if books.text_color == nil then
books.text_color = "ffffff"
end
--------------------------------------------------------
-- Merchant
--------------------------------------------------------
if not pfUI_config.dqb.merchant then
pfUI_config.dqb.merchant = {}
end
local merchant = pfUI_config.dqb.merchant
if merchant.background_global == nil then
merchant.background_global = "1"
end
if merchant.background_color == nil then
merchant.background_color = "000000"
end
if merchant.background_alpha == nil then
merchant.background_alpha = "0.85"
end
if merchant.text_global == nil then
merchant.text_global = "1"
end
if merchant.text_font == nil then
merchant.text_font = "Arial"
end
if merchant.text_size == nil then
merchant.text_size = "12"
end
if merchant.text_style == nil then
merchant.text_style = ""
end
if merchant.text_color == nil then
merchant.text_color = "ffffff"
end
end
end