Skip to content

Commit

Permalink
pirate and fez
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Spaink committed Aug 23, 2023
1 parent 8d8cf04 commit 2ef2c42
Show file tree
Hide file tree
Showing 128 changed files with 48 additions and 38 deletions.
Binary file added assets/eyes/pirate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/eyes/pirate_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/facial_hair/bushy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/facial_hair/bushy_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/hats/fez.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/hats/fez_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_angry_bow_bushy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_angry_bushy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_angry_fez.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_angry_fez_bushy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_angry_fez_mustache.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_angry_top_bushy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_girl_bow_bushy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_girl_bushy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_girl_fez.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_girl_fez_bushy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_girl_fez_mustache.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_girl_top_bushy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_happy_bow_bushy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_happy_bushy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_happy_fez.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_happy_fez_bushy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_happy_fez_mustache.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_happy_top_bushy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_pirate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pregen_crabs/blue_pirate_bow.png
Binary file added pregen_crabs/blue_pirate_bow_bushy.png
Binary file added pregen_crabs/blue_pirate_bow_mustache.png
Binary file added pregen_crabs/blue_pirate_bushy.png
Binary file added pregen_crabs/blue_pirate_fez.png
Binary file added pregen_crabs/blue_pirate_fez_bushy.png
Binary file added pregen_crabs/blue_pirate_fez_mustache.png
Binary file added pregen_crabs/blue_pirate_mustache.png
Binary file added pregen_crabs/blue_pirate_top.png
Binary file added pregen_crabs/blue_pirate_top_bushy.png
Binary file added pregen_crabs/blue_pirate_top_mustache.png
Binary file added pregen_crabs/green_angry_bow_bushy.png
Binary file added pregen_crabs/green_angry_bushy.png
Binary file added pregen_crabs/green_angry_fez.png
Binary file added pregen_crabs/green_angry_fez_bushy.png
Binary file added pregen_crabs/green_angry_fez_mustache.png
Binary file added pregen_crabs/green_angry_top_bushy.png
Binary file added pregen_crabs/green_girl_bow_bushy.png
Binary file added pregen_crabs/green_girl_bushy.png
Binary file added pregen_crabs/green_girl_fez.png
Binary file added pregen_crabs/green_girl_fez_bushy.png
Binary file added pregen_crabs/green_girl_fez_mustache.png
Binary file added pregen_crabs/green_girl_top_bushy.png
Binary file added pregen_crabs/green_happy_bow_bushy.png
Binary file added pregen_crabs/green_happy_bushy.png
Binary file added pregen_crabs/green_happy_fez.png
Binary file added pregen_crabs/green_happy_fez_bushy.png
Binary file added pregen_crabs/green_happy_fez_mustache.png
Binary file added pregen_crabs/green_happy_top_bushy.png
Binary file added pregen_crabs/green_pirate.png
Binary file added pregen_crabs/green_pirate_bow.png
Binary file added pregen_crabs/green_pirate_bow_bushy.png
Binary file added pregen_crabs/green_pirate_bow_mustache.png
Binary file added pregen_crabs/green_pirate_bushy.png
Binary file added pregen_crabs/green_pirate_fez.png
Binary file added pregen_crabs/green_pirate_fez_bushy.png
Binary file added pregen_crabs/green_pirate_fez_mustache.png
Binary file added pregen_crabs/green_pirate_mustache.png
Binary file added pregen_crabs/green_pirate_top.png
Binary file added pregen_crabs/green_pirate_top_bushy.png
Binary file added pregen_crabs/green_pirate_top_mustache.png
Binary file added pregen_crabs/orange_angry_bow_bushy.png
Binary file added pregen_crabs/orange_angry_bushy.png
Binary file added pregen_crabs/orange_angry_fez.png
Binary file added pregen_crabs/orange_angry_fez_bushy.png
Binary file added pregen_crabs/orange_angry_fez_mustache.png
Binary file added pregen_crabs/orange_angry_top_bushy.png
Binary file added pregen_crabs/orange_girl_bow_bushy.png
Binary file added pregen_crabs/orange_girl_bushy.png
Binary file added pregen_crabs/orange_girl_fez.png
Binary file added pregen_crabs/orange_girl_fez_bushy.png
Binary file added pregen_crabs/orange_girl_fez_mustache.png
Binary file added pregen_crabs/orange_girl_top_bushy.png
Binary file added pregen_crabs/orange_happy_bow_bushy.png
Binary file added pregen_crabs/orange_happy_bushy.png
Binary file added pregen_crabs/orange_happy_fez.png
Binary file added pregen_crabs/orange_happy_fez_bushy.png
Binary file added pregen_crabs/orange_happy_fez_mustache.png
Binary file added pregen_crabs/orange_happy_top_bushy.png
Binary file added pregen_crabs/orange_pirate.png
Binary file added pregen_crabs/orange_pirate_bow.png
Binary file added pregen_crabs/orange_pirate_bow_bushy.png
Binary file added pregen_crabs/orange_pirate_bow_mustache.png
Binary file added pregen_crabs/orange_pirate_bushy.png
Binary file added pregen_crabs/orange_pirate_fez.png
Binary file added pregen_crabs/orange_pirate_fez_bushy.png
Binary file added pregen_crabs/orange_pirate_fez_mustache.png
Binary file added pregen_crabs/orange_pirate_mustache.png
Binary file added pregen_crabs/orange_pirate_top.png
Binary file added pregen_crabs/orange_pirate_top_bushy.png
Binary file added pregen_crabs/orange_pirate_top_mustache.png
Binary file added pregen_crabs/purple_angry_bow_bushy.png
Binary file added pregen_crabs/purple_angry_bushy.png
Binary file added pregen_crabs/purple_angry_fez.png
Binary file added pregen_crabs/purple_angry_fez_bushy.png
Binary file added pregen_crabs/purple_angry_fez_mustache.png
Binary file added pregen_crabs/purple_angry_top_bushy.png
Binary file added pregen_crabs/purple_girl_bow_bushy.png
Binary file added pregen_crabs/purple_girl_bushy.png
Binary file added pregen_crabs/purple_girl_fez.png
Binary file added pregen_crabs/purple_girl_fez_bushy.png
Binary file added pregen_crabs/purple_girl_fez_mustache.png
Binary file added pregen_crabs/purple_girl_top_bushy.png
Binary file added pregen_crabs/purple_happy_bow_bushy.png
Binary file added pregen_crabs/purple_happy_bushy.png
Binary file added pregen_crabs/purple_happy_fez.png
Binary file added pregen_crabs/purple_happy_fez_bushy.png
Binary file added pregen_crabs/purple_happy_fez_mustache.png
Binary file added pregen_crabs/purple_happy_top_bushy.png
Binary file added pregen_crabs/purple_pirate.png
Binary file added pregen_crabs/purple_pirate_bow.png
Binary file added pregen_crabs/purple_pirate_bow_bushy.png
Binary file added pregen_crabs/purple_pirate_bow_mustache.png
Binary file added pregen_crabs/purple_pirate_bushy.png
Binary file added pregen_crabs/purple_pirate_fez.png
Binary file added pregen_crabs/purple_pirate_fez_bushy.png
Binary file added pregen_crabs/purple_pirate_fez_mustache.png
Binary file added pregen_crabs/purple_pirate_mustache.png
Binary file added pregen_crabs/purple_pirate_top.png
Binary file added pregen_crabs/purple_pirate_top_bushy.png
Binary file added pregen_crabs/purple_pirate_top_mustache.png
74 changes: 38 additions & 36 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,42 +50,44 @@ impl eframe::App for App {
.resizable(false)
.min_width(200.0)
.show(ctx, |ui| {
display_thumbnails(
"Color",
&mut ferris.color,
ctx,
ui,
&assets.colors,
false,
&assets.remove_thumb,
);
display_thumbnails(
"Eyes",
&mut ferris.eyes,
ctx,
ui,
&assets.eyes,
false,
&assets.remove_thumb,
);
display_thumbnails(
"Hat",
&mut ferris.hat,
ctx,
ui,
&assets.hats,
true,
&assets.remove_thumb,
);
display_thumbnails(
"Facial Hair",
&mut ferris.facial_hair,
ctx,
ui,
&assets.facial_hair,
true,
&assets.remove_thumb,
);
egui::ScrollArea::vertical().show(ui, |ui| {
display_thumbnails(
"Color",
&mut ferris.color,
ctx,
ui,
&assets.colors,
false,
&assets.remove_thumb,
);
display_thumbnails(
"Eyes",
&mut ferris.eyes,
ctx,
ui,
&assets.eyes,
false,
&assets.remove_thumb,
);
display_thumbnails(
"Hat",
&mut ferris.hat,
ctx,
ui,
&assets.hats,
true,
&assets.remove_thumb,
);
display_thumbnails(
"Facial Hair",
&mut ferris.facial_hair,
ctx,
ui,
&assets.facial_hair,
true,
&assets.remove_thumb,
);
});

ui.vertical_centered_justified(|ui| {
if ui.button(RichText::new("save").size(30.0)).clicked() {
Expand Down
12 changes: 10 additions & 2 deletions src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ impl Assets {
load_image!("eyes", "happy"),
load_image!("eyes", "girl"),
load_image!("eyes", "angry"),
load_image!("eyes", "pirate"),
];
category_count.push(images.len());

Expand All @@ -67,7 +68,11 @@ impl Assets {

let mut hats: HashMap<String, Image> = HashMap::new();

let images = [load_image!("hats", "top"), load_image!("hats", "bow")];
let images = [
load_image!("hats", "top"),
load_image!("hats", "bow"),
load_image!("hats", "fez"),
];
category_count.push(images.len() + 1);

for i in images {
Expand All @@ -76,7 +81,10 @@ impl Assets {

let mut facial_hair: HashMap<String, Image> = HashMap::new();

let images = [load_image!("facial_hair", "mustache")];
let images = [
load_image!("facial_hair", "mustache"),
load_image!("facial_hair", "bushy"),
];
category_count.push(images.len() + 1);

for i in images {
Expand Down

0 comments on commit 2ef2c42

Please sign in to comment.