diff --git a/.idea/artifacts/Decomp_Trainer_Editor_jar.xml b/.idea/artifacts/Decomp_Trainer_Editor_jar.xml index 205763a..910a214 100644 --- a/.idea/artifacts/Decomp_Trainer_Editor_jar.xml +++ b/.idea/artifacts/Decomp_Trainer_Editor_jar.xml @@ -1,6 +1,6 @@ - $PROJECT_DIR$/out/artifacts/Decomp_Trainer_Editor_jar + $PROJECT_DIR$/out/artifacts/Decomp_Trainer_Editor diff --git a/src/META-INF/MANIFEST.MF b/src/META-INF/MANIFEST.MF new file mode 100644 index 0000000..b167820 --- /dev/null +++ b/src/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Main-Class: me.disturbo.main.MainActivity + diff --git a/src/me/disturbo/ui/extensions/ComboBoxFiltered.java b/src/me/disturbo/ui/extensions/ComboBoxFiltered.java index 88f13ec..0c934e1 100644 --- a/src/me/disturbo/ui/extensions/ComboBoxFiltered.java +++ b/src/me/disturbo/ui/extensions/ComboBoxFiltered.java @@ -62,7 +62,11 @@ private final void configFocus(){ @Override public void focusGained(FocusEvent e) { // Base case - if(!showAll.equals("")) setModel(new DefaultComboBoxModel(getFilteredElements(field.getText()))); + if(!showAll.equals("")){ + String text = field.getText(); + setModel(new DefaultComboBoxModel(getFilteredElements(field.getText()))); + setSelectedItem(text); + } setPopupVisible(true); } @@ -103,7 +107,7 @@ private final void autocomplete(JTextField field){ String[] filtered = getFilteredElements(text); if(filtered.length == 0) filtered = elements.toArray(new String[0]); if(!showAll.equals("")) setModel(new DefaultComboBoxModel(filtered)); - setSelectedItem(filtered[0]); + setSelectedItem(this.elements.contains(text) ? text : filtered[0]); } private final String[] getFilteredElements(String text){ diff --git a/src/me/disturbo/ui/party/PartyMemberPanel.java b/src/me/disturbo/ui/party/PartyMemberPanel.java index dd88aba..899b776 100644 --- a/src/me/disturbo/ui/party/PartyMemberPanel.java +++ b/src/me/disturbo/ui/party/PartyMemberPanel.java @@ -165,6 +165,5 @@ public final void savePartyMemberData(PartyMember member){ moves.add(keys.get(indexOfMove)); } member.moves = moves; - System.out.println(member.species + " " + member.heldItem.equals("")); } }