Implemented meta editor

This commit is contained in:
2024-06-30 17:52:25 -05:00
parent bfb37d74d8
commit 213b8227e1
3 changed files with 224 additions and 4 deletions

View File

@@ -304,7 +304,7 @@ public class MissPiggy implements ActionListener {
if (actionEvent.getSource() == toggleButton) {toggleSelected(modList.getSelectedIndex());} else
if (actionEvent.getSource() == deleteButton1) {deleteSelected();} else
if (actionEvent.getSource() == toolsMenu.getItem(0)) {throwUnimplemented();} else
if (actionEvent.getSource() == toolsMenu.getItem(0)) {metaEditorGUI(modList.getSelectedIndex());} else
if (actionEvent.getSource() == toolsMenu.getItem(1)) {throwUnimplemented();} else
if (actionEvent.getSource() == toolsMenu.getItem(2)) {throwUnimplemented();} else
@@ -447,9 +447,13 @@ public class MissPiggy implements ActionListener {
throwUnimplemented();
}
public void metaEditorGUI() {
// todo tag editor
throwUnimplemented();
public void metaEditorGUI(int index) {
if (index >= 0) {
new Clifford().Action(this, index);
frame.setEnabled(false);
} else {
JOptionPane.showMessageDialog(frame, "Please select a mod to edit first.", "Error", JOptionPane.ERROR_MESSAGE);
}
}
private void moveUp(int index) {