Skip to content

Commit

Permalink
Adds Light and Dark BG
Browse files Browse the repository at this point in the history
  • Loading branch information
kots727 authored Sep 17, 2022
1 parent 79d123f commit 9eed9ad
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/kotlin/com/noahbres/meepmeep/MeepMeep.kt
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,14 @@ open class MeepMeep @JvmOverloads constructor(private val windowSize: Int, fps:
colorManager.isDarkMode = false
ImageIO.read(classLoader.getResourceAsStream("background/season-2022-powerplay/field-2022-official.png"))
}
Background.FIELD_POWERPLAY_KAI_DARK -> {
colorManager.isDarkMode = true
ImageIO.read(classLoader.getResourceAsStream("background/season-2022-powerplay/field-2022-kai-dark.png"))
}
Background.FIELD_POWERPLAY_KAI_LIGHT -> {
colorManager.isDarkMode = false
ImageIO.read(classLoader.getResourceAsStream("background/season-2022-powerplay/field-2022-kai-light.png"))
}

}.getScaledInstance(windowSize, windowSize, Image.SCALE_SMOOTH)

Expand Down Expand Up @@ -447,6 +455,8 @@ open class MeepMeep @JvmOverloads constructor(private val windowSize: Int, fps:
FIELD_ULTIMATEGOAL_INNOV8RZ_DARK,
FIELD_FREIGHTFRENZY_OFFICIAL,
FIELD_FREIGHTFRENZY_ADI_DARK,
FIELD_POWERPLAY_OFFICIAL
FIELD_POWERPLAY_OFFICIAL,
FIELD_POWERPLAY_KAI_DARK,
FIELD_POWERPLAY_KAI_LIGHT
}
}

0 comments on commit 9eed9ad

Please sign in to comment.