-
Notifications
You must be signed in to change notification settings - Fork 26
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
Mech/vehicle/omnivehicle turret fixes & improvements #316
Merged
Conversation
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
…et/rear-mounting code
…de, remove some redundant menu code
…h turret for cost & weight purposes
…s on non-omnivehicles on wide CV GUI Specifically, omnivehicle code didn't properly unset turret max tonnage when disabled, and the wide CV GUI specifically resets them to 0 even for non-omnivehicles. Also remove max tonnage stuff from sponson turrets since they're unrelated to omnivehicles. Note: non-wide CV omnivehicle code remains incomplete.
Comment out non-functioning crit loc snapshot code
Thank you for your submission. |
Gonna include a couple more turret-related fixes, hold on a bit. |
This occurred during the `cmbTurret.setSelectedItem("Single Turret")` call after the `Load = false`, resulting in a call to `RecalcArmorLocations`. The fix is to remove these lines since they were redundant with the later call to `BuildTurretSelector` which properly sets `cmbTurret`.
Omnivehicle turrets: - Turret tonnage from items now checked against max turret tonnage - Avoid unsetting turret tonnage for locked chassis (omni variants) - Ensure turret tonnage is kept in sync b/w UI and model - Copy rest of related code from wide UI to non-wide UI, including rear turret tonnage support Also: - Fix wide UI not resetting omni variant combobox when loading new vehicle - Fix changing from dual turrets to single turret not removing rear turret location
Also fix base loadout not referring to itself and rename SetTurretx to SetTurretxItems for clarity
Also add rear turret armor and tonnage limit to HTML export
…onnages Also fix lock chassis button getting out of sync with omni checkbox
… bar To help make it fit in the info bar, turret tonnages are hidden if corresponding turret doesn't exist, and reduce width of some boxes there
Also improve validation error behavior a bit
lbmaian
changed the title
Mech and CV turret fixes
Mech/vehicle/omnivehicle turret fixes & improvements
Dec 11, 2023
Bundled omnivehicle turret fixes. Ok should be good to go. |
Sorry I meant to review yesterday, but will do so later today. |
WEKarnesky
approved these changes
Dec 14, 2023
Thanks for merging. I'll have another PR upcoming with more fixes (unrelated to turrets!) in a day or so. |
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.
Mech turrets:
Vehicle turrets:
Omnivehicle turrets:
Misc omni stuff: