Skip to content

Add game option to show allied intel in strategic overlay#7054

Open
Garanas wants to merge 3 commits intoFAForever:developfrom
Garanas:feature/show-allied-intel
Open

Add game option to show allied intel in strategic overlay#7054
Garanas wants to merge 3 commits intoFAForever:developfrom
Garanas:feature/show-allied-intel

Conversation

@Garanas
Copy link
Copy Markdown
Member

@Garanas Garanas commented Feb 28, 2026

Description of the proposed changes

Depends on: FAForever/FA-Binary-Patches#142

Testing done on the proposed changes

Change the game option and launch local multiplayer, observe that the changes are saved and applied.

Additional context

Supports the ability to show allied intel in strategic overlay, with thanks to the efforts of RutreD! Requires the exe that is posted on Zulip.

Checklist

Summary by CodeRabbit

Release Notes

  • New Features
    • Added the ability to display allied intel in the strategic overlay. Configure this option with three states (Off, Only allied structures, On) under Interface → HUD settings. Allied intel is shared by default.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Feb 28, 2026

📝 Walkthrough

Walkthrough

This change adds a new feature enabling players to display allied intel in the strategic overlay. The implementation includes a changelog entry documenting the feature, a new UI option with three toggleable states, and corresponding tooltip help text to guide users through the Interface menu.

Changes

Cohort / File(s) Summary
Feature Documentation
changelog/snippets/feature.7054.md
Added changelog entry for feature 7054 describing the ability to show allied intel in the strategic overlay with configurable behavior.
UI Implementation
lua/options/options.lua, lua/ui/help/tooltips.lua
Added new intel_overlay_allies UI option with three states (Off, Only allied structures, On), defaulting to 1, and corresponding tooltip entry. Option triggers ren_IntelRangeBehavior handler on state change.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 Allied sight now shines so bright,
In overlays of strategic light,
Three toggles let you set it right,
To share or hide with simple click—delight!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and accurately summarizes the main change: adding a game option to show allied intel in the strategic overlay, which matches the primary modifications across all affected files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed The pull request description covers all key sections: description of changes, testing performed, and additional context with dependency information.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@changelog/snippets/feature.7054.md`:
- Around line 1-3: Replace the freeform text in
changelog/snippets/feature.7054.md with the repository's changelog snippet
template used by other files in changelog/snippets: add the required
front-matter fields (e.g., pull_request: 7054, type: feature, and relevant
category/area keys) then a short description body summarizing the change ("Add
ability to show allied intel in strategic overlay" and the default behavior and
UI location). Use the same YAML/front-matter keys and format as the other
snippets in changelog/snippets so the docs pipeline accepts it.

In `@lua/ui/help/tooltips.lua`:
- Around line 854-857: Rename the tooltip entry key to match the option key so
automatic lookup works: change options_show_allied_intel_in_strategic_overlay to
intel_overlay_allies while keeping the title and description values unchanged;
update the tooltip table entry (the object containing title and description) to
use intel_overlay_allies so it matches the option mapping used elsewhere.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 72a00be and d527a0a.

📒 Files selected for processing (3)
  • changelog/snippets/feature.7054.md
  • lua/options/options.lua
  • lua/ui/help/tooltips.lua

Comment on lines +1 to +3
- (#7054) Add ability to show allied intel in strategic overlay

By default the intel of allied structures is shared. This default is chosen to make players aware of the new features without cluttering the screen. The game option can be found under Interface -> HUD.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Fix changelog snippet format to unblock CI.

The docs pipeline already fails on this file with “Invalid format for changelog file”. Please rewrite this snippet to the repository’s expected changelog snippet template (same format as other files in changelog/snippets).

🧰 Tools
🪛 GitHub Actions: Documentation - Generate changelog

[error] 1-1: Changelog verification failed: Invalid format for changelog file.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@changelog/snippets/feature.7054.md` around lines 1 - 3, Replace the freeform
text in changelog/snippets/feature.7054.md with the repository's changelog
snippet template used by other files in changelog/snippets: add the required
front-matter fields (e.g., pull_request: 7054, type: feature, and relevant
category/area keys) then a short description body summarizing the change ("Add
ability to show allied intel in strategic overlay" and the default behavior and
UI location). Use the same YAML/front-matter keys and format as the other
snippets in changelog/snippets so the docs pipeline accepts it.

Comment on lines +854 to +857
options_show_allied_intel_in_strategic_overlay = {
title = "<LOC Show_Allied_Intel_Title>Show Allied Intel in Strategic Overlay",
description = "<LOC Show_Allied_Intel_Description>Toggles the display of allied intel in the strategic overlay.",
},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Tooltip key name does not match the option key mapping.

Line 854 uses options_show_allied_intel_in_strategic_overlay, but the option key is intel_overlay_allies. With the current naming pattern, this prevents automatic tooltip lookup for the new option.

[suggested fix]

Rename tooltip key to match the option key
-options_show_allied_intel_in_strategic_overlay = {
+options_intel_overlay_allies = {
     title = "<LOC Show_Allied_Intel_Title>Show Allied Intel in Strategic Overlay",
     description = "<LOC Show_Allied_Intel_Description>Toggles the display of allied intel in the strategic overlay.",
 },
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
options_show_allied_intel_in_strategic_overlay = {
title = "<LOC Show_Allied_Intel_Title>Show Allied Intel in Strategic Overlay",
description = "<LOC Show_Allied_Intel_Description>Toggles the display of allied intel in the strategic overlay.",
},
options_intel_overlay_allies = {
title = "<LOC Show_Allied_Intel_Title>Show Allied Intel in Strategic Overlay",
description = "<LOC Show_Allied_Intel_Description>Toggles the display of allied intel in the strategic overlay.",
},
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@lua/ui/help/tooltips.lua` around lines 854 - 857, Rename the tooltip entry
key to match the option key so automatic lookup works: change
options_show_allied_intel_in_strategic_overlay to intel_overlay_allies while
keeping the title and description values unchanged; update the tooltip table
entry (the object containing title and description) to use intel_overlay_allies
so it matches the option mapping used elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant