ernie tweaks

This commit is contained in:
Downforce Agent 2024-07-12 13:16:27 -05:00
parent bfcb21769e
commit 656dbd0975
3 changed files with 35 additions and 6 deletions

View File

@ -1,11 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="Ernie"> <form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="Ernie">
<grid id="27dc6" layout-manager="GridLayoutManager" row-count="3" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1" binding="frameContainer"> <grid id="27dc6" binding="frameContainer" layout-manager="GridLayoutManager" row-count="3" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="10" left="5" bottom="5" right="5"/> <margin top="10" left="5" bottom="5" right="5"/>
<constraints> <constraints>
<xy x="20" y="20" width="500" height="400"/> <xy x="20" y="20" width="500" height="400"/>
</constraints> </constraints>
<properties/> <properties>
<background color="-15128227"/>
<foreground color="-592129"/>
</properties>
<border type="none"/> <border type="none"/>
<children> <children>
<component id="b5829" class="javax.swing.JLabel"> <component id="b5829" class="javax.swing.JLabel">
@ -13,6 +16,8 @@
<grid row="0" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/> <grid row="0" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties> <properties>
<font name="Exo 2"/>
<foreground color="-592129"/>
<text value="A new update for Firestar is available!"/> <text value="A new update for Firestar is available!"/>
</properties> </properties>
</component> </component>
@ -21,7 +26,9 @@
<constraints> <constraints>
<grid row="2" column="0" row-span="1" col-span="2" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/> <grid row="2" column="0" row-span="1" col-span="2" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties/> <properties>
<background color="-15128227"/>
</properties>
<border type="none"/> <border type="none"/>
<children> <children>
<grid id="61273" layout-manager="GridLayoutManager" row-count="1" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1"> <grid id="61273" layout-manager="GridLayoutManager" row-count="1" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
@ -29,7 +36,9 @@
<constraints> <constraints>
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/> <grid row="2" 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> </constraints>
<properties/> <properties>
<background color="-15128227"/>
</properties>
<border type="none"/> <border type="none"/>
<children> <children>
<component id="56086" class="javax.swing.JButton" binding="notnowbtn"> <component id="56086" class="javax.swing.JButton" binding="notnowbtn">
@ -41,6 +50,11 @@
</grid> </grid>
</constraints> </constraints>
<properties> <properties>
<background color="-2271221"/>
<borderPainted value="false"/>
<focusPainted value="false"/>
<font name="Exo 2"/>
<foreground color="-657921"/>
<text value="No Thanks"/> <text value="No Thanks"/>
</properties> </properties>
</component> </component>
@ -53,6 +67,11 @@
</grid> </grid>
</constraints> </constraints>
<properties> <properties>
<background color="-2271221"/>
<borderPainted value="false"/>
<focusPainted value="false"/>
<font name="Exo 2"/>
<foreground color="-592129"/>
<text value="Open in Browser"/> <text value="Open in Browser"/>
</properties> </properties>
</component> </component>
@ -68,6 +87,8 @@
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/> <grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties> <properties>
<font name="Exo 2"/>
<foreground color="-657921"/>
<text value="If you want to stay on this version,"/> <text value="If you want to stay on this version,"/>
</properties> </properties>
</component> </component>
@ -76,6 +97,8 @@
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/> <grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties> <properties>
<font name="Exo 2"/>
<foreground color="-592129"/>
<text value="you can disable this notification in the Options."/> <text value="you can disable this notification in the Options."/>
</properties> </properties>
</component> </component>
@ -90,7 +113,11 @@
<children> <children>
<component id="1efd0" class="javax.swing.JEditorPane" binding="changelogDisplay"> <component id="1efd0" class="javax.swing.JEditorPane" binding="changelogDisplay">
<constraints/> <constraints/>
<properties/> <properties>
<background color="-15128227"/>
<font name="Exo 2"/>
<foreground color="-592129"/>
</properties>
</component> </component>
</children> </children>
</scrollpane> </scrollpane>

View File

@ -71,6 +71,7 @@ public class Ernie implements ActionListener, Runnable {
surebtn.addActionListener(this); surebtn.addActionListener(this);
changelogDisplay.setEditable(false); changelogDisplay.setEditable(false);
changelogDisplay.setPage(changelog); changelogDisplay.setPage(changelog);
changelogDisplay.putClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES, Boolean.TRUE); // makes text smaller than joe biden's windmill if font set manually. wtf??
frame.setTitle("An update is available!"); frame.setTitle("An update is available!");
frame.setSize(450, 400); frame.setSize(450, 400);
@ -95,6 +96,7 @@ public class Ernie implements ActionListener, Runnable {
String releasepage = "https://git.worlio.com/bonkmaykr/firestar/releases"; String releasepage = "https://git.worlio.com/bonkmaykr/firestar/releases";
try { try {
Desktop.getDesktop().browse(new URI(releasepage)); Desktop.getDesktop().browse(new URI(releasepage));
frame.dispose();
} catch (Exception ex) { } catch (Exception ex) {
JOptionPane.showMessageDialog(frame, "Couldn't open your web browser!\nYou can check out the latest release at the URL below:\n"+releasepage, "Error", JOptionPane.ERROR_MESSAGE); JOptionPane.showMessageDialog(frame, "Couldn't open your web browser!\nYou can check out the latest release at the URL below:\n"+releasepage, "Error", JOptionPane.ERROR_MESSAGE);
} }

View File

@ -31,7 +31,7 @@ public class Main {
// Build Information // Build Information
public static final String vstr = "Release 1.3"; public static final String vstr = "Release 1.3";
public static final String vcode = "Tetsuo"; public static final String vcode = "Tetsuo";
public static final String vtag = "tetsuo-1.3"; public static final String vtag = "dekka-1.1"; //tetsuo-1.3
public static final int vint = 1; public static final int vint = 1;
// User Settings // User Settings