Skip to content

Commit

Permalink
Added Images
Browse files Browse the repository at this point in the history
  • Loading branch information
Radicalius committed Mar 29, 2017
1 parent e0c96af commit bdf073e
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 9 deletions.
12 changes: 6 additions & 6 deletions config/packs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Ascii ascii.png Ascii.zip n/a |
IronHand ironhand.jpg IronHand 0.68.zip http://dffd.bay12games.com/download.php?id=2511&f=Ironhand+0.68.zip DF
Jolly Bastion n/a JollyBastion34-10v5.zip http://www.alexanderocias.com/jollybastion/JollyBastion34-10v5.zip JollyBastion34-10v5/9x12 (recommended)
Mayday n/a dfg_40_05_win.zip http://goblinart.pl/upload/DFG/dfg_40_05_win.zip |
Obsidian n/a [16x16] Obsidian (v.0.8).zip http://dffd.bay12games.com/download.php?id=7728&f=%5B16x16%5D+Obsidian+%28v.0.8%29.zip [16x16] Obsidian
Pheobus n/a F_Phoebus_40_24v00.zip http://dffd.bay12games.com/download.php?id=2431&f=DF_Phoebus_40_24v00.zip DF_Phoebus_40_24v00
Spacefox n/a spacefox_df42_02_standalone.zip http://dffd.bay12games.com/download.php?id=11405&f=spacefox_df42_02_standalone.zip spacefox_df42_02_standalone
Jolly Bastion jollybastion.jpg JollyBastion34-10v5.zip http://www.alexanderocias.com/jollybastion/JollyBastion34-10v5.zip JollyBastion34-10v5/9x12 (recommended)
Mayday mayday.png dfg_40_05_win.zip http://goblinart.pl/upload/DFG/dfg_40_05_win.zip |
Obsidian obsidian.jpg [16x16] Obsidian (v.0.8).zip http://dffd.bay12games.com/download.php?id=7728&f=%5B16x16%5D+Obsidian+%28v.0.8%29.zip [16x16] Obsidian
Pheobus pheobus.jpg F_Phoebus_40_24v00.zip http://dffd.bay12games.com/download.php?id=2431&f=DF_Phoebus_40_24v00.zip DF_Phoebus_40_24v00
Spacefox spacefox.png spacefox_df42_02_standalone.zip http://dffd.bay12games.com/download.php?id=11405&f=spacefox_df42_02_standalone.zip spacefox_df42_02_standalone
Taffer's n/a taffer-v4.83.zip https://github.com/nc-z/taffer/archive/v4.83.zip taffer-4.83/10x
CLA n/a CLA-43.05-v23.zip https://github.com/DFgraphics/CLA/archive/43.05-v23.zip CLA-43.05-v23
CLA cla.gif CLA-43.05-v23.zip https://github.com/DFgraphics/CLA/archive/43.05-v23.zip CLA-43.05-v23
Binary file added dflauncher.jar
Binary file not shown.
Binary file added out/artifacts/dflauncher_jar/dflauncher.jar
Binary file not shown.
Binary file modified out/production/dflauncher/LaunchThread.class
Binary file not shown.
3 changes: 3 additions & 0 deletions out/production/dflauncher/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: main

Binary file modified out/production/dflauncher/Sampler.class
Binary file not shown.
Binary file modified out/production/dflauncher/main.class
Binary file not shown.
Binary file added samples/cla.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added samples/dwarfsx0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added samples/jollybastion.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added samples/mayday.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added samples/obsidian.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added samples/pheobus.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added samples/spacefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions src/LaunchThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@ public void run(){
//deleteDirectory(new File(main.install+"\\data"));
System.out.print(main.install+"\\data");
ZipFile zf = new ZipFile("packs/"+pack.filename);
ZipEntry raw = zf.getEntry(pack.path+"/raw");
ZipEntry data = zf.getEntry(pack.path+"/data");
ZipInputStream zis = new ZipInputStream(new FileInputStream("packs/"+pack.filename));
ZipEntry ze;
int total = zis.available();
while ((ze = zis.getNextEntry())!= null){
if (ze.toString().startsWith(pack.path) && !ze.toString().equals(pack.path)) {
if (ze.toString().startsWith(pack.path) && !ze.toString().contains("\\save\\") && !ze.toString().equals(pack.path)) {
String fname = main.install+"\\"+ze.toString().replace(pack.path,"").replace("/","\\");
if (ze.isDirectory()){
new File(fname).mkdir();
Expand Down
3 changes: 3 additions & 0 deletions src/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: main

5 changes: 5 additions & 0 deletions src/Sampler.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ public void paintComponent(Graphics g){
Graphics2D g2d = (Graphics2D)g;
g2d.fillRect(0,0,860,680);
icon.paintIcon(this,g,0,0);
g2d.setColor(new Color(0,0,0,150));
g2d.fillRect(0,0,860,75);
g2d.setColor(new Color(255,255,255));
g2d.setFont(new Font("Times",Font.PLAIN,40));
g2d.drawString("Dwarf Fortress",300,50);
}

public void changeImage(String image){
Expand Down
2 changes: 2 additions & 0 deletions src/main.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public static void main(String[] args) {
frame = new JFrame("DF Launcher");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(860,680);
frame.setResizable(false);
frame.setIconImage(new ImageIcon("samples/dwarfsx0.jpg").getImage());

BorderLayout bl = new BorderLayout();
frame.setLayout(bl);
Expand Down

0 comments on commit bdf073e

Please sign in to comment.