Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
added tribute downloads group
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-sanesi committed Nov 16, 2023
1 parent e19c66e commit 8c0e34e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<properties/>
<border type="none"/>
<children>
<grid id="27dc6" layout-manager="GridLayoutManager" row-count="13" column-count="4" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<grid id="27dc6" layout-manager="GridLayoutManager" row-count="14" column-count="4" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints border-constraint="Center"/>
<properties/>
Expand Down Expand Up @@ -321,6 +321,24 @@
<text value="Enable PvE Cave Building"/>
</properties>
</component>
<grid id="f9db3" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<grid row="13" column="0" row-span="1" col-span="4" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
<border type="none" title="Tribute Downloads"/>
<children>
<component id="770f4" class="javax.swing.JCheckBox" binding="enableTributeDownloadsCheckBox" default-binding="true">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="Enable Tribute Downloads"/>
</properties>
</component>
</children>
</grid>
</children>
</grid>
<component id="1ca39" class="dev.cele.asa_sm.ui.components.AccordionTopBar">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class RulesAccordion {
private JCheckBox allowPlatformSaddleMultiCheckBox;
private JCheckBox enableDifficultyOverrideCheckBox;
private JCheckBox enablePvECaveBuildingCheckBox;
private JCheckBox enableTributeDownloadsCheckBox;

public RulesAccordion(AsaServerConfigDto configDto) {
}
Expand All @@ -54,7 +55,7 @@ public RulesAccordion(AsaServerConfigDto configDto) {
contentPane = new JPanel();
contentPane.setLayout(new BorderLayout(0, 0));
final JPanel panel1 = new JPanel();
panel1.setLayout(new GridLayoutManager(13, 4, new Insets(0, 0, 0, 0), -1, -1));
panel1.setLayout(new GridLayoutManager(14, 4, new Insets(0, 0, 0, 0), -1, -1));
contentPane.add(panel1, BorderLayout.CENTER);
enableHardcoreModeCheckBox = new JCheckBox();
enableHardcoreModeCheckBox.setText("Enable Hardcore Mode");
Expand All @@ -77,9 +78,6 @@ public RulesAccordion(AsaServerConfigDto configDto) {
enableCreativeModeCheckBox = new JCheckBox();
enableCreativeModeCheckBox.setText("Enable Creative Mode");
panel1.add(enableCreativeModeCheckBox, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
enablePvECaveBuildingCheckBox = new JCheckBox();
enablePvECaveBuildingCheckBox.setText("Enable Pve Cave Building");
panel1.add(enablePvECaveBuildingCheckBox, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 1, false));
enablePvPCaveBuildingCheckBox = new JCheckBox();
enablePvPCaveBuildingCheckBox.setText("Enable PvP Cave Building");
panel1.add(enablePvPCaveBuildingCheckBox, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
Expand Down Expand Up @@ -170,6 +168,16 @@ public RulesAccordion(AsaServerConfigDto configDto) {
final JLabel label12 = new JLabel();
label12.setText("levels");
panel1.add(label12, new GridConstraints(12, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
enablePvECaveBuildingCheckBox = new JCheckBox();
enablePvECaveBuildingCheckBox.setText("Enable PvE Cave Building");
panel1.add(enablePvECaveBuildingCheckBox, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final JPanel panel3 = new JPanel();
panel3.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
panel1.add(panel3, new GridConstraints(13, 0, 1, 4, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
panel3.setBorder(BorderFactory.createTitledBorder(null, "Tribute Downloads", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null));
enableTributeDownloadsCheckBox = new JCheckBox();
enableTributeDownloadsCheckBox.setText("Enable Tribute Downloads");
panel3.add(enableTributeDownloadsCheckBox, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final AccordionTopBar accordionTopBar1 = new AccordionTopBar();
accordionTopBar1.setExpanded(true);
accordionTopBar1.setTitle("Rules");
Expand All @@ -182,4 +190,5 @@ public RulesAccordion(AsaServerConfigDto configDto) {
public JComponent $$$getRootComponent$$$() {
return contentPane;
}

}

0 comments on commit 8c0e34e

Please sign in to comment.