This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from Petschko/dev
Dev
- Loading branch information
Showing
60 changed files
with
2,160 additions
and
1,582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@echo off | ||
java -jar "RPG Maker MV Decrypter.jar" | ||
echo. | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
java -jar "RPG Maker MV Decrypter.jar" |
Binary file not shown.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package org.petschko.lib; | ||
|
||
import javax.swing.*; | ||
import java.awt.*; | ||
import java.io.File; | ||
|
||
/** | ||
* @author trenton-telge | ||
*/ | ||
public class CellRenderer extends DefaultListCellRenderer { | ||
private static final long serialVersionUID = 1L; | ||
private String relativePath = null; | ||
|
||
@Override | ||
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { | ||
if (value instanceof File) { | ||
File file = (File) value; | ||
String fileText = file.getName(); | ||
|
||
if(relativePath != null) | ||
fileText = file.getPath().replace(relativePath, ""); | ||
|
||
setText(fileText); | ||
|
||
if (isSelected) { | ||
setBackground(list.getSelectionBackground()); | ||
setForeground(list.getSelectionForeground()); | ||
} else { | ||
setBackground(list.getBackground()); | ||
setForeground(list.getForeground()); | ||
} | ||
|
||
setEnabled(list.isEnabled()); | ||
setFont(list.getFont()); | ||
setOpaque(true); | ||
} | ||
|
||
return this; | ||
} | ||
|
||
/** | ||
* Sets the Relative Path of the Project | ||
* | ||
* @param path - Path of the Project | ||
*/ | ||
public void setRelativePath(String path) { | ||
if(path != null) | ||
path = org.petschko.lib.File.ensureDSonEndOfPath(path); | ||
|
||
this.relativePath = path; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.petschko.lib; | ||
|
||
/** | ||
* @author Peter Dragicevic | ||
*/ | ||
public class Const { | ||
public static final String CREATOR = "Petschko"; | ||
public static final String CREATOR_URL = "https://petschko.org/"; | ||
public static final String CREATOR_DONATION_URL = "https://www.paypal.me/petschko"; | ||
|
||
// System Constance's | ||
public static final String DS = System.getProperty("file.separator"); | ||
public static final String NEW_LINE = System.getProperty("line.separator"); | ||
|
||
/** | ||
* Constructor | ||
*/ | ||
private Const() { | ||
// VOID - This is a Static-Class | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.