-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make power grids easier to split up, reconnect, and merge parts to (#…
…73056) * Write message if grids are successfully merged * Stop dragging appliance if merging it to a grid This was a bug that let you drag power grids and break the game * Remove power cords linked between merging grids Extension cords are dropped to the ground * Add functions for removing all but one power grid part The appliance menu can now exit `app_loop` manually by setting `veh` to nullptr. I needed to add this because it'd be ambiguous which of the split-apart vehicles the menu is targeting otherwise. * Move app menu's Merge functionality into Plug If the connected appliances are adjacent & mergable powergrids, then merge them. Otherwise, connect with a power cord. * Rename "power grid" to part name if split down to one part * Ask to split part off from power grid when trying to drag it (unless the part is wall mounted) * Recalc powergrid pos & pivot when it gets split up * Improve clarity of power grid removal section * Remove CANT_DRAG tag. Instead, determine draggability when trying to grab * Do cleanup after merging, as power cords between merged vehicles now get disconnected * Adjust cable disconnection messages in menu Disconnect cables -> Disconnect items / tow cables / items and tow cables * Clang fixes
- Loading branch information
Showing
9 changed files
with
190 additions
and
101 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.