add menu tracks metadata

This commit is contained in:
Downforce Agent 2024-07-16 00:54:26 -05:00
parent 7e398fbbca
commit de0f951ce2
2 changed files with 134 additions and 22 deletions

View File

@ -3,7 +3,7 @@
<grid id="27dc6" binding="frameContainer" layout-manager="GridLayoutManager" row-count="5" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1"> <grid id="27dc6" binding="frameContainer" layout-manager="GridLayoutManager" row-count="5" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="10" left="10" bottom="10" right="10"/> <margin top="10" left="10" bottom="10" right="10"/>
<constraints> <constraints>
<xy x="20" y="20" width="711" height="400"/> <xy x="20" y="20" width="756" height="460"/>
</constraints> </constraints>
<properties> <properties>
<background color="-15128227"/> <background color="-15128227"/>
@ -14,7 +14,7 @@
<children> <children>
<scrollpane id="bd8d3"> <scrollpane id="bd8d3">
<constraints> <constraints>
<grid row="3" column="0" row-span="1" col-span="2" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/> <grid row="3" column="0" row-span="1" col-span="1" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties> <properties>
<background color="-15128227"/> <background color="-15128227"/>
@ -40,7 +40,7 @@
</component> </component>
</children> </children>
</scrollpane> </scrollpane>
<grid id="eb54e" layout-manager="GridLayoutManager" row-count="1" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1"> <grid id="eb54e" layout-manager="GridLayoutManager" row-count="2" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/> <margin top="0" left="0" bottom="0" right="0"/>
<constraints> <constraints>
<grid row="4" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/> <grid row="4" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
@ -52,22 +52,9 @@
</properties> </properties>
<border type="none"/> <border type="none"/>
<children> <children>
<component id="a7b02" class="javax.swing.JButton" binding="saveBtn">
<constraints>
<grid row="0" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="2" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<background color="-2271221"/>
<borderPainted value="false"/>
<focusPainted value="false"/>
<font name="Exo 2"/>
<foreground color="-1"/>
<text value="Save"/>
</properties>
</component>
<component id="adce7" class="javax.swing.JButton" binding="cancelBtn"> <component id="adce7" class="javax.swing.JButton" binding="cancelBtn">
<constraints> <constraints>
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="2" fill="1" indent="0" use-parent-layout="false"/> <grid row="1" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="2" fill="1" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties> <properties>
<background color="-2271221"/> <background color="-2271221"/>
@ -80,9 +67,35 @@
</component> </component>
<hspacer id="8ecbf"> <hspacer id="8ecbf">
<constraints> <constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/> <grid row="0" column="0" row-span="2" col-span="1" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
</hspacer> </hspacer>
<component id="b6c2f" class="javax.swing.JCheckBox" binding="checkAdditive">
<constraints>
<grid row="0" column="1" row-span="1" col-span="2" vsize-policy="0" hsize-policy="3" anchor="9" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<enabled value="false"/>
<font name="Exo 2"/>
<foreground color="-1"/>
<opaque value="false"/>
<text value="Append to default playlist"/>
<visible value="false"/>
</properties>
</component>
<component id="a7b02" class="javax.swing.JButton" binding="saveBtn">
<constraints>
<grid row="1" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="2" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<background color="-2271221"/>
<borderPainted value="false"/>
<focusPainted value="false"/>
<font name="Exo 2"/>
<foreground color="-1"/>
<text value="Save"/>
</properties>
</component>
</children> </children>
</grid> </grid>
<grid id="cc2" layout-manager="GridLayoutManager" row-count="3" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1"> <grid id="cc2" layout-manager="GridLayoutManager" row-count="3" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
@ -257,6 +270,102 @@
</component> </component>
</children> </children>
</grid> </grid>
<grid id="2d649" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="2" left="2" bottom="2" right="2"/>
<constraints>
<grid row="3" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="1" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="-1" height="100"/>
<maximum-size width="-1" height="300"/>
</grid>
</constraints>
<properties>
<opaque value="false"/>
</properties>
<border type="line" title="Info">
<font name="Exo 2"/>
<title-color color="-1"/>
<color color="-1"/>
</border>
<children>
<grid id="6168c" layout-manager="GridLayoutManager" row-count="7" 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="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<opaque value="false"/>
</properties>
<border type="none"/>
<children>
<component id="43fad" class="javax.swing.JLabel" binding="dSTitleLabel">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Exo 2"/>
<foreground color="-1"/>
<text value="Menu:"/>
</properties>
</component>
<component id="74c7a" class="javax.swing.JLabel" binding="dMTitleLabel">
<constraints>
<grid row="4" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Exo 2"/>
<foreground color="-1"/>
<text value="Lobby:"/>
</properties>
</component>
<component id="1fda4" class="javax.swing.JLabel" binding="dSTitle">
<constraints>
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Exo 2" style="2"/>
<foreground color="-1"/>
<text value="no track"/>
</properties>
</component>
<component id="99b42" class="javax.swing.JLabel" binding="dMTitle">
<constraints>
<grid row="5" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Exo 2" style="2"/>
<foreground color="-1"/>
<text value="no track"/>
</properties>
</component>
<component id="c11e8" class="javax.swing.JLabel">
<constraints>
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Exo 2" style="2"/>
<foreground color="-1"/>
<text value="no size"/>
</properties>
</component>
<component id="8480f" class="javax.swing.JLabel">
<constraints>
<grid row="6" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Exo 2" style="2"/>
<foreground color="-1"/>
<text value="no size"/>
</properties>
</component>
<vspacer id="73ce0">
<constraints>
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>
</vspacer>
</children>
</grid>
</children>
</grid>
</children> </children>
</grid> </grid>
</form> </form>

View File

@ -28,8 +28,6 @@ import java.awt.event.WindowEvent;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@ -54,7 +52,12 @@ public class Suggs implements ActionListener, ListSelectionListener {
private JButton deleteSongBtn; private JButton deleteSongBtn;
private JButton addSongBtn; private JButton addSongBtn;
private JButton moveUpBtn; private JButton moveUpBtn;
private JLabel dSTitleLabel;
private JLabel dMTitleLabel;
private JLabel dSTitle;
private JLabel dMTitle;
private JCheckBox checkAdditive;
JFrame parent; JFrame parent;
int curIndex = -1; int curIndex = -1;
@ -83,7 +86,7 @@ public class Suggs implements ActionListener, ListSelectionListener {
frame.add(frameContainer); // initialize window contents -- will be handled by IntelliJ IDEA frame.add(frameContainer); // initialize window contents -- will be handled by IntelliJ IDEA
frame.setSize(700, 400); frame.setSize(700, 400);
frame.setMinimumSize(new Dimension(650,280)); frame.setMinimumSize(new Dimension(700,400));
frame.setTitle("Soundtrack Mod Generator"); frame.setTitle("Soundtrack Mod Generator");
frame.setResizable(true); frame.setResizable(true);
frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);