mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Save settings button (#187)
* Show warning in images ui when invalid settings
This commit is contained in:
@@ -17,6 +17,7 @@ pub mod ui_images {
|
||||
use egui::{ColorImage, ImageData};
|
||||
|
||||
pub const IMPORT_GAMES_IMAGE: &[u8] = include_bytes!("../../resources/import_games_button.png");
|
||||
pub const SAVE_IMAGE: &[u8] = include_bytes!("../../resources/save.png");
|
||||
pub const LOGO_32: &[u8] = include_bytes!("../../resources/logo32.png");
|
||||
pub const LOGO_ICON: &[u8] = include_bytes!("../../resources/logo_small.png");
|
||||
|
||||
@@ -24,6 +25,10 @@ pub mod ui_images {
|
||||
ImageData::Color(load_image_from_memory(IMPORT_GAMES_IMAGE).unwrap())
|
||||
}
|
||||
|
||||
pub fn get_save_image() -> ImageData {
|
||||
ImageData::Color(load_image_from_memory(SAVE_IMAGE).unwrap())
|
||||
}
|
||||
|
||||
pub fn get_logo() -> ImageData {
|
||||
ImageData::Color(load_image_from_memory(LOGO_32).unwrap())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user