From 0b435654b059651a5a829c148afd1764eef5da15 Mon Sep 17 00:00:00 2001 From: Ben Frankel Date: Sun, 17 Dec 2023 17:18:45 -0800 Subject: [PATCH] Improve tutorial slightly --- src/state/editor_screen/code_panel.rs | 6 ++---- src/state/editor_screen/upgrade_panel.rs | 2 +- src/ui/code_typer.rs | 2 +- src/upgrade.rs | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/state/editor_screen/code_panel.rs b/src/state/editor_screen/code_panel.rs index 16a8d2c..f9373ff 100644 --- a/src/state/editor_screen/code_panel.rs +++ b/src/state/editor_screen/code_panel.rs @@ -9,11 +9,9 @@ use crate::ui::FONT_HANDLE; const LIGHT_THEME_TEXT: &str = "Aargh, my eyes! -I cannot work with this light theme! +I should pick a dark theme from the panel on the right. -I need to install a dark theme from the panel on the right. - -The installed upgrades will appear on the left panel."; +Installed upgrades will appear on the left."; /// Spawns the fake code panel with light theme. pub fn spawn_light_code_panel( diff --git a/src/state/editor_screen/upgrade_panel.rs b/src/state/editor_screen/upgrade_panel.rs index 906cbf7..8457d40 100644 --- a/src/state/editor_screen/upgrade_panel.rs +++ b/src/state/editor_screen/upgrade_panel.rs @@ -77,7 +77,7 @@ pub fn spawn_upgrade_panel( }, ) .with_style(Style { - margin: UiRect::bottom(Px(15.0)), + margin: UiRect::bottom(Px(20.0)), ..default() }), FontSize::new(config.upgrade_panel_header_font_size), diff --git a/src/ui/code_typer.rs b/src/ui/code_typer.rs index 8f1fe51..9420f39 100644 --- a/src/ui/code_typer.rs +++ b/src/ui/code_typer.rs @@ -17,7 +17,7 @@ impl Plugin for CodeTyperPlugin { const FILLER_CODE: &str = concat!( " to generate lines of code! -// Install the next plugin to start spawning entities. +// Install TouchOfLifePlugin, then click to spawn entities. ", include_str!("code_typer.rs"), diff --git a/src/upgrade.rs b/src/upgrade.rs index 64692be..8ed7072 100644 --- a/src/upgrade.rs +++ b/src/upgrade.rs @@ -409,7 +409,7 @@ generate_upgrade_list!( name: "Initial Commit".to_string(), desc: "Hello world! The first step of your journey.".to_string(), no_outline: true, - base_cost: 2.0, + base_cost: 1.0, ..default() },