From 9eed9ad01499e69cb6a4a8c9d1de71cd82752e9e Mon Sep 17 00:00:00 2001 From: kots727 <90489449+kots727@users.noreply.github.com> Date: Fri, 16 Sep 2022 23:39:22 -0700 Subject: [PATCH] Adds Light and Dark BG --- src/main/kotlin/com/noahbres/meepmeep/MeepMeep.kt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/noahbres/meepmeep/MeepMeep.kt b/src/main/kotlin/com/noahbres/meepmeep/MeepMeep.kt index 5c6f642..7577b51 100644 --- a/src/main/kotlin/com/noahbres/meepmeep/MeepMeep.kt +++ b/src/main/kotlin/com/noahbres/meepmeep/MeepMeep.kt @@ -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) @@ -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 } }