ATSW2: readable task rows, and the background painting comes off
grom: "make it inherit pfui font colors or something because that is super hard to read, for the right panel obviously, I still want recipes colored by difficulty" / "let's remove the background art on the left, looks goofy." The task rows are the right panel's only difficulty-coloured text, and the ramp is dark orange through red — fine on the left list over its own dark backing, unreadable on the stripped right half with the world through it. pfUI's font, outlined, white; the recipe list keeps the ramp. Both the write and the restore needed answering: ATSW_UpdateTasks repaints every row on each bag, craft and task change, and the template's OnLeave puts back this.R/G/B, which that same function sets. ATSWBackground is hidden rather than blanked, because the addon re-sets its texture on every open and every profession switch; Hide survives both. Nothing anchors to it or to its shadow. The skin lives in benilla-config/, which is gitignored; this is its record. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SgstFWtn1RxEJ5kVrpgYwn
This commit is contained in:
@@ -4534,3 +4534,20 @@ version 1 answers that by resizing it to a 12 px pfUI bar with its own backdrop,
|
||||
same with version 2's geometry — and the **task delete buttons**, which inherit `UIPanelCloseButton`
|
||||
and therefore want `SkinCloseButton`, not `SkinButton`: the latter leaves a correct but empty box
|
||||
where the addon draws a red X.
|
||||
|
||||
**Two more after he looked at it:** *"make it inherit pfui font colors or something because that is
|
||||
super hard to read, for the right panel obviously, I still want recipes colored by difficulty"* and
|
||||
*"let's remove the background art on the left, looks goofy."*
|
||||
|
||||
The task rows were the right panel's only difficulty-coloured text, and the ramp is dark orange
|
||||
through red — fine on the left list over the list's own dark backing, unreadable on the stripped
|
||||
right half with the world showing through. They take pfUI's font outlined and white now; the recipe
|
||||
list keeps the ramp. Both the write **and** the restore had to be answered: `ATSW_UpdateTasks`
|
||||
repaints every row on each bag, craft and task change, and the template's `OnLeave` puts back
|
||||
`this.R/G/B`, which that same function sets.
|
||||
|
||||
The background painting is `ATSWBackground` (one of thirteen per profession off `ATSW_Background`,
|
||||
vignetted by `ATSWBackgroundShadow`) — the one piece of this window version 1 has no counterpart
|
||||
for. **Hidden, not blanked**, because the addon re-sets the texture on every open and every
|
||||
profession switch; `Hide` survives both, and a `hooksecurefunc` on `ATSW_UpdateBackground` is belt
|
||||
and braces. Nothing anchors to either texture, so nothing moved.
|
||||
|
||||
Reference in New Issue
Block a user