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

MegaMekLab Issue 1703: Allow bays to be added to aerospace fighters #5920

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion MekHQ/src/mekhq/gui/MekLabTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ private class AeroPanel extends EntityPanel {
private ASStructureTab structureTab;
private ASEquipmentTab equipmentTab;
private ASBuildTab buildTab;
private TransportTab transportTab;
private PreviewTab previewTab;

public AeroPanel(Aero a) {
Expand All @@ -575,14 +576,17 @@ public void reloadTabs() {
equipmentTab = new ASEquipmentTab(this);
buildTab = new ASBuildTab(this);
FluffTab fluffTab = new FluffTab(this);
transportTab = new TransportTab(this);
structureTab.addRefreshedListener(this);
equipmentTab.addRefreshedListener(this);
buildTab.addRefreshedListener(this);
transportTab.addRefreshedListener(this);
fluffTab.setRefreshedListener(this);

addTab("Structure/Armor", new JScrollPaneWithSpeed(structureTab));
addTab("Equipment", new JScrollPaneWithSpeed(equipmentTab));
addTab("Assign Criticals", new JScrollPaneWithSpeed(buildTab));
addTab("Transport Bays", new JScrollPaneWithSpeed(transportTab));
addTab("Fluff", new JScrollPaneWithSpeed(fluffTab));
addTab("Preview", new JScrollPaneWithSpeed(previewTab));
this.repaint();
Expand All @@ -593,6 +597,7 @@ public void refreshAll() {
structureTab.refresh();
equipmentTab.refresh();
buildTab.refresh();
transportTab.refresh();
previewTab.refresh();
refreshSummary();
}
Expand All @@ -616,7 +621,7 @@ public void refreshEquipment() {

@Override
public void refreshTransport() {
// not used for fighters
transportTab.refresh();
}

@Override
Expand Down