Add Rebuild X Keyboard Commands#2129
Open
CnCRAZER wants to merge 4 commits intoPhobos-developers:developfrom
Open
Add Rebuild X Keyboard Commands#2129CnCRAZER wants to merge 4 commits intoPhobos-developers:developfrom
CnCRAZER wants to merge 4 commits intoPhobos-developers:developfrom
Conversation
Introduce BuildLastOfTab commands to re-queue the last produced item from each sidebar tab (Power/Infrastructure, Defense/Combat, Infantry, Vehicles/Aircraft). Adds BuildLastOfTab.cpp/.h with a templated CommandClass (explicit instantiations for tabs 0..3) and UI strings. Register the new commands in Commands.cpp and add sources to the Visual Studio project file. Add per-tab last-built tracking to HouseExt (LastBuiltPerTab, LastBuiltRTTIPerTab, LastBuiltIsNavalPerTab), initialize defaults, and include them in serialization. Add a hook (Hooks.BuildLastTab.cpp) into HouseClass object delivery to update the per-tab last-built info when the current player's factory delivers an object.
Document four new keyboard commands (Rebuild Structure, Rebuild Defense, Rebuild Infantry, Rebuild Vehicle) in docs/User-Interface.md, add a What's New entry in docs/Whats-New.md, and credit RAZER in CREDITS.md. Adds brief descriptions and localization note for the new commands.
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces four new keyboard commands that allow players to quickly re-queue the last produced structure, defense, infantry, or vehicle unit from each sidebar tab. The implementation involves new command classes, updates to the player state to track the last-built item per tab, and documentation updates to describe the new features.
New keyboard commands and tracking system:
Rebuild Structure,Rebuild Defense,Rebuild Infantry, andRebuild Vehicle—that re-queue the last produced item in each respective sidebar tab. These commands are now registered and available in the interface. [1] [2] [3] [4] [5]HouseExtto remember the last built item, its type, and whether it was naval, for each sidebar tab. This state is properly serialized for save/load support. [1] [2] [3]Hooks.BuildLastTab.cppto update the last-built tracking whenever a player gains a new unit or building from a factory.Documentation and credits:
User-Interface.mdandWhats-New.md) to describe the new rebuild commands and their usage. [1] [2]CREDITS.mdfile under RAZER.Project configuration:
Phobos.vcxproj) to include the new source files for the build last commands and their hooks. [1] [2]