Skip to content

Commit

Permalink
Kotlin String cleaups
Browse files Browse the repository at this point in the history
Signed-off-by: Jadon Fowler <[email protected]>
  • Loading branch information
phase committed Jul 3, 2018
1 parent 171929d commit f4b3b2a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 165 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/io/jadon/sbhs/PaletteManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ object PaletteManager {
}
val upload = JButton(" Upload Palette")
upload.addActionListener {
println("Uploading palette " + name)
println("Uploading palette $name")
val fc = JFileChooser()
if (fc.showOpenDialog(SBHS.frame) == JFileChooser.APPROVE_OPTION) {
try {
Expand Down Expand Up @@ -137,7 +137,7 @@ object PaletteManager {
jp.add(upload)
val save = JButton(" Save Palette")
save.addActionListener {
println("Saving palette " + name)
println("Saving palette $name")
//Create Image
val img = BufferedImage(16, 1, BufferedImage.TYPE_INT_RGB)
for (x in 0..15) {
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/io/jadon/sbhs/SBHS.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object SBHS {
val WIDTH = 1280
val HEIGHT = 840

var frame: JFrame = JFrame("Sonic Battle Hack Suite ${VERSION} - By Phase")
var frame: JFrame = JFrame("Sonic Battle Hack Suite $VERSION - By Phase")
lateinit var spriteTabs: JTabbedPane

fun getImage(name: String): Image = ImageIcon(SBHS::class.java.getResource("/$name")
Expand Down Expand Up @@ -140,9 +140,9 @@ object SBHS {
splash.message = "About Page"
// About Page
val t = JTextPane()
t.text = "Sonic Battle Hack Suite ${VERSION} was made by Phase.\n" +
t.text = "Sonic Battle Hack Suite $VERSION was made by Phase.\n" +
"You can find the source at https://github.com/phase/sbhs\n" +
"Current ROM open: ${gameLocation}\n\n" +
"Current ROM open: $gameLocation\n\n" +
"Build Info:\n" +
"JVM: ${BuildInfo.JVM_INFO}\n" +
"Gradle: ${BuildInfo.GRADLE_INFO}\n"
Expand Down
107 changes: 0 additions & 107 deletions src/main/kotlin/io/jadon/sbhs/test/Grid.java

This file was deleted.

53 changes: 0 additions & 53 deletions src/main/kotlin/io/jadon/sbhs/test/ScrollImageTest.java

This file was deleted.

0 comments on commit f4b3b2a

Please sign in to comment.