From 0db6b602513a0bdcc40335995a73f7b213bc3f3e Mon Sep 17 00:00:00 2001 From: dawnDus <96957561+dawndus@users.noreply.github.com> Date: Sat, 5 Mar 2022 13:02:09 -0500 Subject: [PATCH] Display Nicalis copyright with nicalis data --- src/scene/title_scene.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/scene/title_scene.rs b/src/scene/title_scene.rs index 219dbd4..93ff015 100644 --- a/src/scene/title_scene.rs +++ b/src/scene/title_scene.rs @@ -125,8 +125,8 @@ impl TitleScene { } } -// asset copyright for freeware version -static COPYRIGHT_PIXEL: &str = "2004.12 Studio Pixel"; +static COPYRIGHT_PIXEL: &str = "2004.12 Studio Pixel"; // Freeware +static COPYRIGHT_NICALIS: &str = "@2022 NICALIS INC."; // Nicalis font uses @ for copyright impl Scene for TitleScene { fn init(&mut self, state: &mut SharedGameState, ctx: &mut Context) -> GameResult { @@ -337,7 +337,12 @@ impl Scene for TitleScene { } self.draw_text_centered(&VERSION_BANNER, state.canvas_size.1 - 15.0, state, ctx)?; - self.draw_text_centered(COPYRIGHT_PIXEL, state.canvas_size.1 - 30.0, state, ctx)?; + + if state.constants.is_cs_plus { + self.draw_text_centered(COPYRIGHT_NICALIS, state.canvas_size.1 - 30.0, state, ctx)?; + } else { + self.draw_text_centered(COPYRIGHT_PIXEL, state.canvas_size.1 - 30.0, state, ctx)?; + } self.nikumaru_rec.draw(state, ctx, &self.frame)?;