CompletionWindow: add 'hide unlocked skills' checkbox (account-wide) and rename 'learned' to 'learnt'#2227
Conversation
…rned' to 'learnt' Adds a new 'Hide unlocked skills' checkbox alongside 'Hide learnt skills' in the skill completion tracker. The new checkbox filters out skills already unlocked account-wide (via GW::SkillbarMgr::GetIsSkillUnlocked), which is distinct from per-character learnt status tracked in completion.ini. Applies to both Elite Skills and PvE Skills sections. Fixes #1408 Co-authored-by: Jon <3vcloud@users.noreply.github.com>
|
@claude consider the position of the "check now" button and how it might need amending after this change |
|
Claude finished @3vcloud's task in 1m 53s —— View job Analysis: "Check Now" button position after checkbox addition
The ProblemThe const float checkbox_offset = ImGui::GetContentRegionAvail().x - 200.f * ImGui::FontScale();The layout before this PR: The 200-scaled-pixel right margin was sized for one checkbox. After this PR, there are two: ImGui::SameLine(checkbox_offset);
ImGui::Checkbox("Hide learnt skills", &hide_unlocked_skills); // ~120px wide
ImGui::SameLine();
ImGui::Checkbox("Hide unlocked skills", &hide_account_unlocked_skills); // ~140px wideTotal checkbox width is ~268px but the right margin reserved is only Additionally, the button is placed at Suggested FixInside the auto skills_title = [&, checkbox_offset](const char* title) {
ImGui::PushID(title);
ImGui::Text(title);
ImGui::ShowHelp("...");
// Need ~280px for two checkboxes; 100px for the button to the left of them.
const float skills_checkbox_offset = ImGui::GetContentRegionAvail().x - 280.f * ImGui::FontScale();
ImGui::SameLine(skills_checkbox_offset - 100.f * ImGui::FontScale());
if (ImGui::Button("Check Now")) {
GW::GameThread::Enqueue(CheckAllSkills);
}
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("Will cycle through your available secondary professions to detect all unlocked skills");
}
ImGui::SameLine(skills_checkbox_offset);
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, {0, 0});
ImGui::Checkbox("Hide learnt skills", &hide_unlocked_skills);
ImGui::SameLine();
ImGui::Checkbox("Hide unlocked skills", &hide_account_unlocked_skills);
ImGui::PopStyleVar();
ImGui::PopID();
};Key changes:
Want me to apply this fix? |
|
@claude dont just waffle about it, do something about it |
|
Claude finished @3vcloud's task in 56s —— View job Fixed "Check Now" button layout
Changes made in
|
Compute a local offset sized for both checkboxes (280px instead of 200px) and scale the button-to-checkbox gap with FontScale so layout stays consistent at non-default font sizes. Co-authored-by: Jon <3vcloud@users.noreply.github.com>
Adds a new "Hide unlocked skills" checkbox alongside "Hide learnt skills" in the skill completion tracker.
The new checkbox hides skills already unlocked account-wide via
GW::SkillbarMgr::GetIsSkillUnlocked, which reflects whether any hero on the account can use the skill — distinct from the per-character "learnt" status tracked in completion.ini.Fixes #1408
Generated with Claude Code