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

Aerospace record sheet facelift, part 1 #413

Merged
merged 44 commits into from
Feb 23, 2020
Merged

Aerospace record sheet facelift, part 1 #413

merged 44 commits into from
Feb 23, 2020

Conversation

neoancient
Copy link
Member

Spiffification of record sheets for aerospace and conventional fighters, fixed wing support vehicles (which use conventional fighter sheets), and small craft. Dropships and other large craft are deferred to a separate update.

A preview of some of the changes:

  1. The aerospace armor diagrams have more background detail than mechs and vehicles, so I increased the width of the pip stroke and added a white fill.
  2. I moved the heat sink pip drawing method from PrintMech to PrintEntity where it can be shared with aerospace fighters and small craft.
  3. I moved the transport bay formatting code from PrintCapitalShip to InventoryWriter, where it can be shared by small craft.
  4. I added a new utility method to PrintRecordSheet that creates a rounded rectangle, which is used for the external stores section.
  5. I moved support vehicle basic and advanced fire control from the equipment table to the features section, which is in keeping with how it is shown in TROs.
  6. I fixed a bug in the armor and structure pip layout code that can cause an endless loop when with an odd number of pips in a section that is divided in half horizontally, such as the conventional fighter nose section (which flanks the cockpit).

Here's the sample:
aerospace sample.pdf

It can happen when trying to maintain horizontal symmetry when all the rows have a gap in them and there are an odd number of pips.
To increase visibility on armor diagrams with a lot of detail.
The presence and number of hardpoints is indicated by the number of boxes in the external stores section.
The number of boxes on the last row was calculated using % 5, which resulted in a full row not being shown.
# Conflicts:
#	data/images/recordsheets/fighter_aerospace_default.svg
#	src/megameklab/com/printing/PrintAero.java
#	src/megameklab/com/printing/PrintEntity.java
Copy link
Collaborator

@sixlettervariables sixlettervariables left a comment

Choose a reason for hiding this comment

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

Just some tiny stuff, looks good.

(Have I mentioned how awesome the Rich Diffs are?)

src/megameklab/com/printing/PrintAero.java Outdated Show resolved Hide resolved
src/megameklab/com/printing/PrintAero.java Outdated Show resolved Hide resolved
Copy link
Member

@NickAragua NickAragua left a comment

Choose a reason for hiding this comment

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

Don't really have any change suggestions, just a couple of questions.

@neoancient neoancient merged commit 08542e6 into master Feb 23, 2020
@neoancient neoancient deleted the aero_rs branch February 23, 2020 02:37
@neoancient neoancient mentioned this pull request Feb 23, 2020
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.

None yet

3 participants