Module game_logic::scenes::main_menu [−][src]
Expand description
This scene encompasses the main menu system
+Module main_menu
Fields
has_updated_discord_rpc: bool
volume_percentage: f32
show_debug_info: bool
Implementations
pub fn new(
raylib_handle: &mut RaylibHandle,
thread: &RaylibThread,
constants: &ProjectConstants,
game_settings: &mut PersistentGameSettings
) -> Self
pub fn new(
raylib_handle: &mut RaylibHandle,
thread: &RaylibThread,
constants: &ProjectConstants,
game_settings: &mut PersistentGameSettings
) -> Self
Construct a new MainMenu
pub async fn render_options_frame(
&mut self,
raylib: &mut RaylibHandle,
rl_thread: &RaylibThread,
discord: &Sender<DiscordRpcSignal>,
global_resources: &GlobalResources,
constants: &ProjectConstants
) -> MenuStateSignal
pub async fn render_credits_frame(
&mut self,
raylib: &mut RaylibHandle,
rl_thread: &RaylibThread,
discord: &Sender<DiscordRpcSignal>,
global_resources: &GlobalResources,
constants: &ProjectConstants,
audio_subsystem: &mut RaylibAudio
) -> MenuStateSignal
pub async fn render_leaderboard_frame(
&mut self,
raylib: &mut RaylibHandle,
rl_thread: &RaylibThread,
discord: &Sender<DiscordRpcSignal>,
global_resources: &GlobalResources,
constants: &ProjectConstants,
audio_subsystem: &mut RaylibAudio
) -> MenuStateSignal
Trait Implementations
Formats the value using the given formatter. Read more
+}Fields
has_updated_discord_rpc: bool
volume_percentage: f32
show_debug_info: bool
Implementations
pub fn new(
raylib_handle: &mut RaylibHandle,
thread: &RaylibThread,
constants: &ProjectConstants,
game_settings: &mut PersistentGameSettings
) -> Self
pub fn new(
raylib_handle: &mut RaylibHandle,
thread: &RaylibThread,
constants: &ProjectConstants,
game_settings: &mut PersistentGameSettings
) -> Self
Construct a new MainMenu
pub async fn render_options_frame(
&mut self,
raylib: &mut RaylibHandle,
rl_thread: &RaylibThread,
discord: &Sender<DiscordRpcSignal>,
global_resources: &GlobalResources,
constants: &ProjectConstants
) -> MenuStateSignal
pub async fn render_credits_frame(
&mut self,
raylib: &mut RaylibHandle,
rl_thread: &RaylibThread,
discord: &Sender<DiscordRpcSignal>,
global_resources: &GlobalResources,
constants: &ProjectConstants,
audio_subsystem: &mut RaylibAudio
) -> MenuStateSignal
pub async fn render_leaderboard_frame(
&mut self,
raylib: &mut RaylibHandle,
rl_thread: &RaylibThread,
discord: &Sender<DiscordRpcSignal>,
global_resources: &GlobalResources,
constants: &ProjectConstants,
audio_subsystem: &mut RaylibAudio
) -> MenuStateSignal
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MainMenu
impl UnwindSafe for MainMenu
Blanket Implementations
Mutably borrows from an owned value. Read more
diff --git a/rustdoc/game_logic/scenes/pause_menu/index.html b/rustdoc/game_logic/scenes/pause_menu/index.html index 63918790..45ce15ab 100644 --- a/rustdoc/game_logic/scenes/pause_menu/index.html +++ b/rustdoc/game_logic/scenes/pause_menu/index.html @@ -1,6 +1,6 @@Module game_logic::scenes::pause_menu [−][src]
Expand description
This scene encompasses the main menu system
+Module pause_menu
Module game_logic::scenes::pause_menu [−][src]
Expand description
This scene encompasses the main menu system
Structs
Struct game_logic::scenes::pause_menu::PauseMenu [−][src]
pub struct PauseMenu {
show_debug_info: bool,
-}
Fields
show_debug_info: bool
Implementations
pub fn new(
raylib_handle: &mut RaylibHandle,
thread: &RaylibThread,
constants: &ProjectConstants,
game_settings: &mut PersistentGameSettings
) -> Self
pub fn new(
raylib_handle: &mut RaylibHandle,
thread: &RaylibThread,
constants: &ProjectConstants,
game_settings: &mut PersistentGameSettings
) -> Self
Construct a new PauseMenu
Trait Implementations
Formats the value using the given formatter. Read more
+}Fields
show_debug_info: bool
Implementations
pub fn new(
raylib_handle: &mut RaylibHandle,
thread: &RaylibThread,
constants: &ProjectConstants,
game_settings: &mut PersistentGameSettings
) -> Self
pub fn new(
raylib_handle: &mut RaylibHandle,
thread: &RaylibThread,
constants: &ProjectConstants,
game_settings: &mut PersistentGameSettings
) -> Self
Construct a new PauseMenu
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PauseMenu
impl UnwindSafe for PauseMenu
Blanket Implementations
Mutably borrows from an owned value. Read more
diff --git a/rustdoc/src/game_logic/scenes/main_menu.rs.html b/rustdoc/src/game_logic/scenes/main_menu.rs.html index 0136de33..1e496472 100644 --- a/rustdoc/src/game_logic/scenes/main_menu.rs.html +++ b/rustdoc/src/game_logic/scenes/main_menu.rs.html @@ -566,6 +566,28 @@ 564 565 566 +567 +568 +569 +570 +571 +572 +573 +574 +575 +576 +577 +578 +579 +580 +581 +582 +583 +584 +585 +586 +587 +588//! This scene encompasses the main menu system
use chrono::Duration;
@@ -675,11 +697,16 @@
// TODO: Render stuff
//Label Colors
- let label_colors = Color::BLACK;
- let label_shadow_colors = Color::GRAY;
+ let label_colors = Color::new(123, 201, 244, 255);
+ let label_shadow_colors = Color::new(82, 135, 195, 255);
//Initial Option placeholder words in the main menu
+ draw.draw_text(&constants.game_name, 103, 93, 60, label_shadow_colors);
+ draw.draw_text(&constants.game_name, 97, 87, 60, label_shadow_colors);
draw.draw_text(&constants.game_name, 100, 90, 60, label_colors);
+
+
+ //Options
draw.draw_text("Start Game", 100, 190, 34, label_colors);
draw.draw_text("Credits", 100, 410, 34, label_colors);
draw.draw_text("Leaderboard", 100, 470, 34, label_colors);
@@ -714,7 +741,7 @@
}
//Volume Controller
- //Color Pallete Variables
+ //Colors Pallete Variables
let tile_color = Color::new(158, 93, 65, 255);
let outer_ring_color = Color::new(255, 191, 113, 255);
let inner_ring_color = Color::new(244, 203, 184, 255);
@@ -963,9 +990,10 @@
constants: &ProjectConstants,
audio_subsystem: &mut RaylibAudio,
) -> MenuStateSignal {
+
//Colors
- let label_colors = Color::BLACK;
- let label_shadow_colors = Color::GRAY;
+ let label_colors = Color::new(123, 201, 244, 255);
+ let label_shadow_colors = Color::new(82, 135, 195, 255);
let credits_colours = Color::new(82, 135, 195, 255);
let mut draw = raylib.begin_drawing(rl_thread);
@@ -982,6 +1010,8 @@
let window_height = draw.get_screen_height();
let window_width = draw.get_screen_width();
+ draw.draw_text("Credits", (window_width / 2) - 97, 27, 55, label_shadow_colors);
+ draw.draw_text("Credits", (window_width / 2) - 103, 33, 55, label_shadow_colors);
draw.draw_text("Credits", (window_width / 2) - 100, 30, 55, label_colors);
draw.draw_text(
@@ -1079,8 +1109,8 @@
audio_subsystem: &mut RaylibAudio,
) -> MenuStateSignal {
//Colors
- let label_colors = Color::BLACK;
- let label_shadow_colors = Color::GRAY;
+ let label_colors = Color::new(123, 201, 244, 255);
+ let label_shadow_colors = Color::new(82, 135, 195, 255);
let mut draw = raylib.begin_drawing(rl_thread);
draw.clear_background(Color::WHITE);
@@ -1097,6 +1127,20 @@
draw.draw_text(&mouse_y.to_string(), 70, 5, 20, Color::BLACK);
let window_width = draw.get_screen_width();
+ draw.draw_text(
+ "Leaderboard",
+ (window_width / 2) - 173,
+ 27,
+ 55,
+ label_shadow_colors,
+ );
+ draw.draw_text(
+ "Leaderboard",
+ (window_width / 2) - 179,
+ 33,
+ 55,
+ label_shadow_colors,
+ );
draw.draw_text(
"Leaderboard",
(window_width / 2) - 176,
diff --git a/rustdoc/src/game_logic/scenes/pause_menu.rs.html b/rustdoc/src/game_logic/scenes/pause_menu.rs.html
index a65ebf1c..172fb11f 100644
--- a/rustdoc/src/game_logic/scenes/pause_menu.rs.html
+++ b/rustdoc/src/game_logic/scenes/pause_menu.rs.html
@@ -156,6 +156,8 @@
154
155
156
+157
+158
//! This scene encompasses the main menu system
use na::Vector1;
@@ -212,8 +214,8 @@
draw.clear_background(Color::WHITE);
//Color Pallette
- let label_colors = Color::BLACK;
- let label_shadow_colors = Color::GRAY;
+ let label_colors = Color::new(123, 201, 244, 255);
+ let label_shadow_colors = Color::new(82, 135, 195, 255);
//Obtain mouse position
let mouse_x = draw.get_mouse_x();
@@ -236,6 +238,8 @@
}
// Title
+ draw.draw_text("Paused", 97, 87, 60, label_shadow_colors);
+ draw.draw_text("Paused", 103, 93, 60, label_shadow_colors);
draw.draw_text("Paused", 100, 90, 60, label_colors);
//Return to Main Menu button variables