border the menu screens
This commit is contained in:
parent
df7f80e31c
commit
3370b924be
@ -71,9 +71,11 @@ impl ScreenSpaceRender for HowToPlayScreen {
|
|||||||
raylib: &mut crate::utilities::non_ref_raylib::HackedRaylibHandle,
|
raylib: &mut crate::utilities::non_ref_raylib::HackedRaylibHandle,
|
||||||
config: &GameConfig
|
config: &GameConfig
|
||||||
) {
|
) {
|
||||||
|
let screen_size = raylib.get_screen_size();
|
||||||
|
|
||||||
// Render the background
|
// Render the background
|
||||||
raylib.clear_background(Color::BLACK);
|
raylib.clear_background(Color::BLACK);
|
||||||
|
raylib.draw_rectangle_lines(0, 0, screen_size.x as i32, screen_size.y as i32, config.colors.white);
|
||||||
|
|
||||||
let screen_size = raylib.get_screen_size();
|
let screen_size = raylib.get_screen_size();
|
||||||
|
|
||||||
|
@ -105,8 +105,11 @@ impl ScreenSpaceRender for MainMenuScreen {
|
|||||||
raylib: &mut crate::utilities::non_ref_raylib::HackedRaylibHandle,
|
raylib: &mut crate::utilities::non_ref_raylib::HackedRaylibHandle,
|
||||||
config: &GameConfig,
|
config: &GameConfig,
|
||||||
) {
|
) {
|
||||||
|
let screen_size = raylib.get_screen_size();
|
||||||
|
|
||||||
// Render the background
|
// Render the background
|
||||||
raylib.clear_background(Color::BLACK);
|
raylib.clear_background(Color::BLACK);
|
||||||
|
raylib.draw_rectangle_lines(0, 0, screen_size.x as i32, screen_size.y as i32, config.colors.white);
|
||||||
|
|
||||||
// Calculate the logo position
|
// Calculate the logo position
|
||||||
let screen_size = raylib.get_screen_size();
|
let screen_size = raylib.get_screen_size();
|
||||||
|
@ -71,9 +71,11 @@ impl ScreenSpaceRender for OptionsScreen {
|
|||||||
raylib: &mut crate::utilities::non_ref_raylib::HackedRaylibHandle,
|
raylib: &mut crate::utilities::non_ref_raylib::HackedRaylibHandle,
|
||||||
config: &GameConfig
|
config: &GameConfig
|
||||||
) {
|
) {
|
||||||
|
let screen_size = raylib.get_screen_size();
|
||||||
|
|
||||||
// Render the background
|
// Render the background
|
||||||
raylib.clear_background(Color::BLACK);
|
raylib.clear_background(Color::BLACK);
|
||||||
|
raylib.draw_rectangle_lines(0, 0, screen_size.x as i32, screen_size.y as i32, config.colors.white);
|
||||||
|
|
||||||
let screen_size = raylib.get_screen_size();
|
let screen_size = raylib.get_screen_size();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user