Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Highly Customized] Distribution click action mode #1453

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

CrimRecya
Copy link
Contributor

[ ] Distribution Mode Spread / Filter

  • Change the click action.
    • When the range is 0, it is the original default behavior of the game. The range can be adjusted to 4, 8 or 16 cells by shortcut keys.
      • The targets within the range will be allocated equally to the selected technos. Only when the behavior to be performed by the current techno is the same as that displayed by the mouse will it be allocated. Otherwise, it will return to the original default behavior of the game (it will not be effective for technos in the air)
    • When the filter is None, it is the default behavior of the game. You can adjust the filter mode to:
      • Auto - if the behavior to be executed by the current techno is different from the behavior displayed by the mouse, and the behavior to be executed will make the techno move near the target, the behavior will be replaced with area guard.
      • Type - on the basis of Auto, only targets of the same type (like infantries, vehicles or buildings) will be selected among the targets allocated in the range.
      • Name - on the basis of Type, only targets of the same name (or with the same GroupAs) will be selected among the targets allocated in the range.
  • For localization add TXT_DISTR_SPREAD, TXT_DISTR_FILTER, TXT_DISTR_SPREAD_DESC and TXT_DISTR_FILTER_DESC into your .csf file.
2024-12-16.01-47-48.mp4

Copy link

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

Copy link
Contributor

@TaranDahl TaranDahl left a comment

Choose a reason for hiding this comment

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

lgtm

@CrimRecya
Copy link
Contributor Author

CrimRecya commented Dec 16, 2024

In theory, it should work normally in multi-players, but I haven't tested it yet. It would be great if it could work as expected.
In addition, as for the display of the current mode, the scheme has not been finalized yet. At present, I want it to be displayed directly at the mouse position, such as the display range of SW, instead of using print message like in video. If anyone has any good ideas, PLEASE comment.

@CrimRecya CrimRecya changed the title Distribution click action mode [Highly Customized] Distribution click action mode Dec 26, 2024
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.

2 participants