Skip to content

Commit 62bbf71

Browse files
cscoder69claude
andcommitted
v1.2.1: translations for the setup guide and new options, layout room for longer languages, docs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent ed1ee3f commit 62bbf71

4 files changed

Lines changed: 303 additions & 21 deletions

File tree

‎CLAUDE.md‎

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CS.Coder - Quest Indicator — notes for Claude (and any dev)
22

3-
Read this first when working on the addon. Last updated 2026-11-08 (v1.1.0 published).
3+
Read this first when working on the addon. Last updated 2026-11-09 (v1.2.1 published).
44

55
## Working with the user
66
- Chat in **Brazilian Portuguese**; code, comments, commits, docs and in-game text in **English**.
@@ -92,14 +92,28 @@ live in game after `/reload`.
9292
settings" / "Configure". Configure = Look (icon, size, anchor, X/Y, float, glow + "Use default";
9393
the user wants it all on one page), What to show, Done, each beside
9494
its own live preview (`previews` list: `BuildPreview` can make several). Any close marks it seen.
95-
Texts are English only until the user approves the layout.
95+
Translated in all 6 languages (2026-11-09).
9696
- **Icon anchor** (`anchor`, `objectAnchor`): top/bottom/left/right of the plate; side anchors use
9797
the health bar (`PlateBar`). Changing it resets X/Y to that side's start.
98-
- **Lua 200-locals limit:** the main chunk is close to it (about 6 free on 2026-11-09). New helpers
98+
- **Lua 200-locals limit:** the main chunk is close to it (8 free after v1.2.1). New helpers
9999
go inside `do ... end` blocks (see the setup guide and the plate measuring code).
100100
- **Plates on WoW Forever are restricted:** GetTop/GetPoint error ("Can't measure restricted
101101
regions"); size and scale can be read. `MeasurePlate` protects every read and estimates the bar.
102-
- `/cqi` opens the options, `/cqi toggle` toggles the addon.
102+
- **Quest items' own look** (`objectOwnLook`, `objectStyle`, `objectBounce`, `objectGlow`, off by
103+
default): `Look(f, key)` picks the item's or the shared value; the icon picker edits any style key
104+
(`AddIconPicker(..., key)`, `iconPicker.key`). Float height/time and glow intensity stay shared.
105+
- **Count on quest items** (`objectProgress`, on by default): `IsQuestObject` returns progress too.
106+
When tooltips show nothing, mobs and items fall back to their name in an unfinished objective of
107+
the quest log (`ObjectiveKindForName`, catches "Coyote" in "Coyote Tail: 3/8" too).
108+
- **Hover help:** sliders and dropdowns show `TIP_<label key>` (when it exists) and `SLIDER_HINT`.
109+
- **What's new** (`ShowNews`, `/cqi news`): once per version after an update (`root.lastVersion`;
110+
never in the "dev" copy, never on a fresh install). **Update `NEWS_TEXT` in all 6 languages for
111+
every release.**
112+
- **Profile sharing** (Profiles tab, `OpenShareWindow`): "CQI1:key=bTRUE/nNUM/sTEXT;..." with
113+
%XX escapes; import only takes known keys of the right type into the current profile.
114+
- **Badge experiment** (2026-11-09): built, tried in game, user found it ugly and dropped it; the
115+
commits were reverted. Do not bring it back unless asked (maybe with real artwork).
116+
- `/cqi` opens the options, `/cqi toggle` toggles the addon, `/cqi setup` the guide, `/cqi news` what's new, `/cqi plate` measures the target plate.
103117

104118
## Local checks (run before every hand-off)
105119
LuaJIT (Lua 5.1, same as WoW) is installed: `C:\Users\Claudio\AppData\Local\Programs\LuaJIT\bin\luajit.exe`.
@@ -131,10 +145,14 @@ whether the mock is missing an API (e.g. it once returned nil for `GetHighlightT
131145
- 1.1.0 (2026-11-08): options v2 (4 tabs, fixed preview, gates), profiles, 6 languages, color by
132146
quest type, combat fade/hide, minimap button, hand-driven float, ForeverLootSparkles cvar fix.
133147
First release through the GitHub Action (worked first time).
148+
- 1.2.0 (2026-11-09): progress text with fonts/formats, sound, one scrolling settings page, preview
149+
window, 37 icons in 3 categories (icon picker), two-column layout.
150+
- 1.2.1 (2026-11-09): setup guide, icon anchor, items' own look and count, re-cut icons, new sound
151+
list (picked by ear), hover help, what's new window, profile export/import, welcome line,
152+
restricted-plate fixes. Version numbers: third digit only for now.
134153

135154
## Ideas the user liked, not done yet
136-
- **Separate look for mobs vs items** (own style, float and glow per kind). Proposed a [Mobs | Items]
137-
selector; after that the user chose the 4-tab layout, and this stayed open — ask before building.
155+
- ~~Separate look for mobs vs items~~ DONE in v1.2.1 (`objectOwnLook`).
138156
- **Badges** (like ItemTree's "Keep 12" pill): a floating, draggable tracker of objective badges
139157
("Timberling Sprouts 8/12"), or a badge with progress above the mob.
140158
- More: custom icon color, show only on target/mouseover, transparency, hide in dungeons/raids,
@@ -147,10 +165,10 @@ whether the mock is missing an API (e.g. it once returned nil for `GetHighlightT
147165
undoes the icon scale (`f.text`, `PlaceText`).
148166
2. X / Y labels with -200..200 ranges and mouse-wheel steps — BUILT 2026-11-09 (items got X too).
149167
Drag-to-position on the preview: user postponed it for a long time (2026-11-09).
150-
3. Separate look for mobs vs items (approved).
168+
3. Separate look for mobs vs items — DONE v1.2.1.
151169
4. Custom icon color + transparency.
152-
5. Sound when an objective completes (user loved it).
153-
6. Small extras, LAST: keybinding toggle, hide in dungeons/raids, only on target/mouseover.
170+
5. Sound when an objective completes — DONE (sound list picked by ear in v1.2.1).
171+
6. Small extras, LAST: hide in dungeons/raids, only on target/mouseover. Keybinding: user said NO (2026-11-09).
154172
- Objective tracker with badges: later, it overlaps Questie.
155173
- CurseForge page: GIF of the icons, screenshots of the panel/styles, better title/summary/description.
156174
- **Other WoW clients** (Classic Era/Anniversary, Cata/MoP Classic, Retail): user decided 2026-11-09

‎CSCoder_QuestIndicator.lua‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,9 +1727,9 @@ local function BuildIconTab(tab)
17271727
note:SetWidth(560)
17281728
note:SetJustifyH("LEFT")
17291729
Gate(ItemsOn, Loc(note, "ITEM_LOOK_TIP"))
1730-
Gate(ItemLookOn, AddIconPicker(tab, COL1 + 4, y - 40, "objectStyle"))
1731-
GateCheck(ItemLookOn, AddCheck(tab, "FLOAT", nil, "objectBounce", COL2, y - 38))
1732-
GateCheck(ItemLookOn, AddCheck(tab, "GLOW_SECTION", nil, "objectGlow", COL2, y - 70))
1730+
Gate(ItemLookOn, AddIconPicker(tab, COL1 + 4, y - 50, "objectStyle"))
1731+
GateCheck(ItemLookOn, AddCheck(tab, "FLOAT", nil, "objectBounce", COL2, y - 48))
1732+
GateCheck(ItemLookOn, AddCheck(tab, "GLOW_SECTION", nil, "objectGlow", COL2, y - 80))
17331733
end
17341734

17351735
local function BuildBehaviorTab(tab)
@@ -1990,7 +1990,7 @@ end
19901990
-- TOP right under its heading.
19911991
local SETTINGS_SECTIONS = {
19921992
{ key = "TAB_DISPLAY", build = BuildDisplayTab, height = 258 },
1993-
{ key = "TAB_ICON", build = BuildIconTab, height = 300 },
1993+
{ key = "TAB_ICON", build = BuildIconTab, height = 312 },
19941994
{ key = "TAB_PROGRESS", build = BuildProgressTab, height = 340 },
19951995
{ key = "TAB_BEHAVIOR", build = BuildBehaviorTab, height = 152 },
19961996
}
@@ -2304,11 +2304,11 @@ local function BuildWizard()
23042304
version:SetPoint("BOTTOMRIGHT", -24, 20)
23052305
version:SetText(AddonVersion())
23062306
local useDefault = CreateFrame("Button", nil, welcome, "UIPanelButtonTemplate")
2307-
useDefault:SetSize(200, 30)
2307+
useDefault:SetSize(240, 30)
23082308
useDefault:SetPoint("BOTTOMRIGHT", welcome, "BOTTOM", -8, 40)
23092309
Loc(useDefault, "WIZ_USE_DEFAULT")
23102310
local configure = CreateFrame("Button", nil, welcome, "UIPanelButtonTemplate")
2311-
configure:SetSize(200, 30)
2311+
configure:SetSize(240, 30)
23122312
configure:SetPoint("BOTTOMLEFT", welcome, "BOTTOM", 8, 40)
23132313
Loc(configure, "WIZ_CONFIGURE")
23142314

@@ -2358,7 +2358,7 @@ local function BuildWizard()
23582358
back:SetPoint("RIGHT", nextButton, "LEFT", -8, 0)
23592359
Loc(back, "WIZ_BACK")
23602360
local openOptions = CreateFrame("Button", nil, footer, "UIPanelButtonTemplate")
2361-
openOptions:SetSize(170, 26)
2361+
openOptions:SetSize(200, 26)
23622362
openOptions:SetPoint("RIGHT", back, "LEFT", -8, 0)
23632363
Loc(openOptions, "WIZ_OPEN_OPTIONS")
23642364

@@ -2413,7 +2413,7 @@ do
24132413
if not news then
24142414
local backdrop = BackdropTemplateMixin and "BackdropTemplate" or nil
24152415
news = CreateFrame("Frame", ADDON .. "News", UIParent, backdrop)
2416-
news:SetSize(520, 400)
2416+
news:SetSize(540, 450)
24172417
news:SetPoint("CENTER", 0, 60)
24182418
news:SetFrameStrata("DIALOG")
24192419
news:EnableMouse(true)
@@ -2436,7 +2436,7 @@ do
24362436
sub:SetText(TITLE)
24372437
local body = news:CreateFontString(nil, "ARTWORK", "GameFontHighlight")
24382438
body:SetPoint("TOPLEFT", 28, -100)
2439-
body:SetWidth(464)
2439+
body:SetWidth(484)
24402440
body:SetJustifyH("LEFT")
24412441
body:SetSpacing(4)
24422442
Loc(body, "NEWS_TEXT")

0 commit comments

Comments
 (0)