Skip to content

Commit 15e4934

Browse files
authored
Merge pull request #15 from kots727/master
Add Light/Dark PowerPlay fields
2 parents 79d123f + 761baf1 commit 15e4934

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

src/main/kotlin/com/noahbres/meepmeep/MeepMeep.kt

+11-1
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,14 @@ open class MeepMeep @JvmOverloads constructor(private val windowSize: Int, fps:
313313
colorManager.isDarkMode = false
314314
ImageIO.read(classLoader.getResourceAsStream("background/season-2022-powerplay/field-2022-official.png"))
315315
}
316+
Background.FIELD_POWERPLAY_KAI_DARK -> {
317+
colorManager.isDarkMode = true
318+
ImageIO.read(classLoader.getResourceAsStream("background/season-2022-powerplay/field-2022-kai-dark.png"))
319+
}
320+
Background.FIELD_POWERPLAY_KAI_LIGHT -> {
321+
colorManager.isDarkMode = false
322+
ImageIO.read(classLoader.getResourceAsStream("background/season-2022-powerplay/field-2022-kai-light.png"))
323+
}
316324

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

@@ -447,6 +455,8 @@ open class MeepMeep @JvmOverloads constructor(private val windowSize: Int, fps:
447455
FIELD_ULTIMATEGOAL_INNOV8RZ_DARK,
448456
FIELD_FREIGHTFRENZY_OFFICIAL,
449457
FIELD_FREIGHTFRENZY_ADI_DARK,
450-
FIELD_POWERPLAY_OFFICIAL
458+
FIELD_POWERPLAY_OFFICIAL,
459+
FIELD_POWERPLAY_KAI_DARK,
460+
FIELD_POWERPLAY_KAI_LIGHT
451461
}
452462
}
Loading
Loading

0 commit comments

Comments
 (0)