Skip to content

Commit b85a259

Browse files
cscoder69claude
andcommitted
Options window: bigger (840x730) with room around the edges
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent c2cf187 commit b85a259

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎CSCoder_QuestIndicator.lua‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,7 +2240,7 @@ end
22402240

22412241
local function BuildProfilesTab(tab)
22422242
-- This tab is laid out from the panel's top; the box starts lower in the options window.
2243-
local TOP = TOP - 36
2243+
local TOP, LEFT = TOP - 48, LEFT + 20
22442244
local function Desc(key, y)
22452245
local fs = tab:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall")
22462246
fs:SetPoint("TOPLEFT", LEFT, y)
@@ -2328,8 +2328,8 @@ local CONTENT_WIDTH = 600 -- until the scroll frame reports its real width
23282328

23292329
local function BuildSettingsTab(tab, box)
23302330
local scroll = CreateFrame("ScrollFrame", nil, tab, "UIPanelScrollFrameTemplate")
2331-
scroll:SetPoint("TOPLEFT", box, "TOPLEFT", 4, -8)
2332-
scroll:SetPoint("BOTTOMRIGHT", box, "BOTTOMRIGHT", -26, 6)
2331+
scroll:SetPoint("TOPLEFT", box, "TOPLEFT", 12, -14)
2332+
scroll:SetPoint("BOTTOMRIGHT", box, "BOTTOMRIGHT", -32, 14)
23332333
local content = CreateFrame("Frame", nil, scroll)
23342334
content:SetWidth(CONTENT_WIDTH)
23352335
scroll:SetScrollChild(content)
@@ -2341,7 +2341,7 @@ local function BuildSettingsTab(tab, box)
23412341
for _, s in ipairs(SETTINGS_SECTIONS) do
23422342
local section = CreateFrame("Frame", nil, content)
23432343
section:SetHeight(1)
2344-
section:SetPoint("TOPLEFT", content, "TOPLEFT", -12, -(y + SECTION_HEADER) - TOP)
2344+
section:SetPoint("TOPLEFT", content, "TOPLEFT", 0, -(y + SECTION_HEADER) - TOP)
23452345
section:SetPoint("RIGHT", content, "RIGHT")
23462346
local heading = section:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge")
23472347
heading:SetPoint("TOPLEFT", section, "TOPLEFT", LEFT, TOP + SECTION_HEADER - 8)
@@ -2361,7 +2361,7 @@ local configWindow -- the options window (the panel lives inside it)
23612361

23622362
local function BuildConfigWindow()
23632363
local w = CreateFrame("Frame", ADDON .. "Config", UIParent)
2364-
w:SetSize(780, 680)
2364+
w:SetSize(840, 730)
23652365
w:SetFrameStrata("DIALOG")
23662366
w:SetToplevel(true)
23672367
w:SetClampedToScreen(true)
@@ -2374,10 +2374,10 @@ local function BuildConfigWindow()
23742374
local point, _, relativePoint, x, y = self:GetPoint()
23752375
if x and y then root.windowPos = { point, relativePoint, math.floor(x + 0.5), math.floor(y + 0.5) } end
23762376
end)
2377-
Skin.Window(w, 76)
2377+
Skin.Window(w, 84)
23782378
if _G.UISpecialFrames then table.insert(_G.UISpecialFrames, w:GetName()) end -- Esc closes it
23792379
local close = Skin.Close(w)
2380-
close:SetPoint("TOPRIGHT", -12, -12)
2380+
close:SetPoint("TOPRIGHT", -18, -18)
23812381
w:SetScript("OnShow", function(self)
23822382
self:ClearAllPoints()
23832383
local pos = root.windowPos
@@ -2431,7 +2431,7 @@ function BuildPanel()
24312431
configWindow = BuildConfigWindow()
24322432
local logo = panel:CreateTexture(nil, "ARTWORK")
24332433
logo:SetSize(52, 52)
2434-
logo:SetPoint("TOPLEFT", 14, -12)
2434+
logo:SetPoint("TOPLEFT", 22, -16)
24352435
logo:SetTexture("Interface\\AddOns\\" .. ADDON .. "\\icons\\logo")
24362436
local header = panel:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge")
24372437
header:SetPoint("TOPLEFT", logo, "TOPRIGHT", 10, -8)
@@ -2445,16 +2445,16 @@ function BuildPanel()
24452445
versionText:SetText(version)
24462446
local sub = panel:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall")
24472447
sub:SetPoint("TOPLEFT", header, "BOTTOMLEFT", 0, -6)
2448-
sub:SetPoint("RIGHT", panel, "RIGHT", -170, 0)
2448+
sub:SetPoint("RIGHT", panel, "RIGHT", -190, 0)
24492449
sub:SetJustifyH("LEFT")
24502450
sub:SetTextColor(0.90, 0.68, 0.30)
24512451
Loc(sub, "DESC")
24522452

24532453
-- Options box over the whole panel, in the Ace3 tab style players know (BlizzMove and many others):
24542454
-- the game's options-frame tab textures on top of a bordered pane, tabs stretched to fill it.
24552455
local box = CreateFrame("Frame", nil, panel)
2456-
box:SetPoint("TOPLEFT", 12, -112)
2457-
box:SetPoint("BOTTOMRIGHT", -12, 12)
2456+
box:SetPoint("TOPLEFT", 22, -128)
2457+
box:SetPoint("BOTTOMRIGHT", -22, 22)
24582458
Skin.Panel(box, { 0.045, 0.045, 0.055, 0.85 }, Skin.RING)
24592459

24602460
-- The preview lives in its own small window (movable, closable), so the options get the whole
@@ -2498,7 +2498,7 @@ function BuildPanel()
24982498

24992499
local toggle = Skin.Button(panel)
25002500
toggle:SetSize(110, 22)
2501-
toggle:SetPoint("TOPRIGHT", panel, "TOPRIGHT", -44, -12)
2501+
toggle:SetPoint("TOPRIGHT", panel, "TOPRIGHT", -50, -18)
25022502
Loc(toggle, "PREVIEW")
25032503
toggle:SetScript("OnClick", function()
25042504
if window:IsShown() then

0 commit comments

Comments
 (0)