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

Rework/context based templates #6016

Merged
merged 6 commits into from
Mar 23, 2024

Conversation

Garanas
Copy link
Member

@Garanas Garanas commented Mar 23, 2024

Description of the proposed changes

Continuation of #6015

The context-based templates feature generates and adjusts templates based on the context of your mouse. Globally speaking, this is one of two categories:

  • (1) Mouse is over a unit or a build order

In this case the first template will always be the first buildable version of the unit that you're hovering over. Then additional templates may be introduced for common tasks, such as capping an extractor with storages.

The first 'template' acts like a color picker - it enables you to copy the unit you're hovering over and build more of them.

  • (2) Mouse is over a deposit, land or water

In this scenario you can easily create mass extractors, hydrocarbons and/or walled point defenses.

context-based-templates-102.mp4

Testing done on the proposed changes

Generating various templates based on all the conditions.

Checklist

  • Changes are annotated, including comments where useful
  • Changes are documented in the changelog for the next game version

@Garanas Garanas added the feature: context-based templates related to context-based templates functionality label Mar 23, 2024
@Garanas Garanas merged commit 35d311f into deploy/fafdevelop Mar 23, 2024
3 checks passed
@Garanas Garanas deleted the rework/context-based-templates branch March 23, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: context-based templates related to context-based templates functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant