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

Infantry Record Sheet rework #544

Merged
merged 6 commits into from
Mar 29, 2020
Merged

Infantry Record Sheet rework #544

merged 6 commits into from
Mar 29, 2020

Conversation

neoancient
Copy link
Member

Moves conventional infantry record sheet printing to the new framework, using Batik as the SVG library instead of svgSalamander. We are currently distributing with a custom build of svgSalamander that has some fixes to text layout, but with the infantry record sheets no longer using it, the release is good enough for loading the SVG images still used by ProtoMechs and BattleArmor.

The infantry sheets use two new classes in the printing package. PrintSmallUnitSheet is responsible for the overall page, including the header and footer. It uses PrintInfantry for each platoon or point up to four per page. The same class will also handle individual BA points/squads and protomechs as those sheets get redesigned.

Sample:
Foot_Platoon__MG__etc__sing_non-Linux-generated_files-job_1315.pdf

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.

One question for my edification; looks good!

|| infantry.getMovementMode() == EntityMovementMode.SUBMARINE;
hideElement(UW_LABEL, !scuba);
InfantryWeapon singleSecondary = (infantry.getSecondaryN() == 1)? infantry.getSecondaryWeapon() : null;
for (int j = 0; j <= 21; j++) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The soldiers themselves are 1-based and ranges are 0-based?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, which could be a little confusing but it coincides with the text label. The soldiers and numbered 1-30 and the range table headers start at zero.

@neoancient neoancient merged commit faa17e3 into master Mar 29, 2020
@neoancient neoancient deleted the infantry_rs branch March 29, 2020 20:13
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

2 participants