Skip to content
Snippets Groups Projects
Commit 06e1b2ee authored by Robert Goldmann's avatar Robert Goldmann
Browse files

added credits

parent 3188374a
No related branches found
No related tags found
No related merge requests found
app.name=Bricked
version.code=0
version.name=0.0.0
version.date=23.01.17
version.code=1
version.name=1.0.0
version.date=23.11.17
author=Max Wittig, Robert Goldmann (Vielen Dank an Tobias)
credits=used libraries:\ngson\nTinySound\n\nsounds:\nSoundbible.com - 2158-Text-Message-Alert-5\nSoundbible.com - 2157-Text-Message-Alert-4\nSoundbible.com - 2154-Text-Message-Alert-1\nSoundbible.com - 2068-Whoosh\nSoundbible.com - 2108-Shoot-Arrow\nSoundbSoundbible.comible - 783-Click\nOrangefreesounds - winning-sound-effect\nfreesoundeffects.com - torpedo-explosion-466457\nFreesound.org - 4359\nFreesound.org - 332629\nFreesound.org - 162464
shortcut.debug.console=F12
app.name=Bricked
version.code=0
version.name=0.0.0
version.date=23.01.17
version.code=1
version.name=1.0.0
version.date=23.11.17
author=Max Wittig, Robert Goldmann (Vielen Dank an Tobias)
credits=used libraries:\ngson\nTinySound\n\nsounds:\nSoundbible.com - 2158-Text-Message-Alert-5\nSoundbible.com - 2157-Text-Message-Alert-4\nSoundbible.com - 2154-Text-Message-Alert-1\nSoundbible.com - 2068-Whoosh\nSoundbible.com - 2108-Shoot-Arrow\nSoundbSoundbible.comible - 783-Click\nOrangefreesounds - winning-sound-effect\nfreesoundeffects.com - torpedo-explosion-466457\nFreesound.org - 4359\nFreesound.org - 332629\nFreesound.org - 162464
shortcut.debug.console=F12
package de.bricked.ui;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Locale;
import java.util.ResourceBundle;
......@@ -141,7 +142,7 @@ public class Controller implements CommandLineAvailabale
public void showAchievements()
{
//TODO add achievement ui
}
@Override
......@@ -165,6 +166,12 @@ public class Controller implements CommandLineAvailabale
public void about()
{
AlertGenerator.showAboutAlert(bundle.getString("app.name"), bundle.getString("version.name"), bundle.getString("version.code"), bundle.getString("version.date"), bundle.getString("author"), icon, stage, null, false);
ArrayList<String> creditLines = new ArrayList<>();
for(String currentLine : bundle.getString("credits").split("\n"))
{
creditLines.add(currentLine);
}
AlertGenerator.showAboutAlertWithCredits(bundle.getString("app.name"), bundle.getString("version.name"), bundle.getString("version.code"), bundle.getString("version.date"), bundle.getString("author"), creditLines, icon, stage, null, false);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment