Refactor and improve encounter data handling and formatting
All checks were successful
forgejo/Czech Quests/addon/pipeline/head This commit looks good

This commit is contained in:
Roman Jaroš 2025-04-19 00:41:40 +02:00
parent a32b698ebf
commit f37808207e
8 changed files with 226 additions and 83 deletions

View file

@ -115,7 +115,6 @@ function EncounterFrame:CreateHeader()
HeaderFrame.button.icon3:Hide()
HeaderFrame.button.icon4:Hide()
HeaderFrame.button.expandedIcon:SetPoint("TOPLEFT", HeaderFrame.button, "TOPLEFT", 10, -6);
HeaderFrame.button.expandedIcon:SetText("+")
HeaderFrame.expanded = false
HeaderFrame.empty = false
@ -141,7 +140,6 @@ function EncounterFrame:CreateHeader()
function HeaderFrame:Open()
local header = self
header.button.expandedIcon:SetText("-")
header.button.expandedIcon:SetPoint("TOPLEFT", HeaderFrame.button, "TOPLEFT", 10, -5);
if (header.empty == false) then
header.description:Show()
header.descriptionBG:Show()
@ -152,7 +150,6 @@ function EncounterFrame:CreateHeader()
function HeaderFrame:Close()
local header = self
header.button.expandedIcon:SetText("+")
header.button.expandedIcon:SetPoint("TOPLEFT", HeaderFrame.button, "TOPLEFT", 10, -6);
header.description:Hide()
header.descriptionBG:Hide()
header.descriptionBGBottom:Hide()