Skip to content

Commit

Permalink
add angry eyes and bow
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Spaink committed Aug 22, 2023
1 parent 76a1682 commit 41d2432
Show file tree
Hide file tree
Showing 27 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# rustaceanize.me
# [rustaceanize.me](https://sspaink.github.io/rustaceanize.me/)

:crab: Try it out: <https://sspaink.github.io/rustaceanize.me/> :crab:

Expand Down
Binary file added assets/eyes/angry.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/angry_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/bow.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/bow_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.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.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.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.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.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/green_angry.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/green_angry_bow.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/green_angry_top.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/green_girl_bow.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/green_happy_bow.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/orange_angry.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/orange_angry_bow.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/orange_angry_top.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/orange_girl_bow.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/orange_happy_bow.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/purple_angry.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/purple_angry_bow.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/purple_angry_top.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/purple_girl_bow.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/purple_happy_bow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 13 additions & 11 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,19 +144,21 @@ fn display_thumbnails(
ui.collapsing(RichText::new(id).size(20.0).strong(), |ui| {
egui::Grid::new(id).show(ui, |ui| {
let mut current = 0;
if removable {
current += 1;
}
if removable
&& ui
.add(egui::ImageButton::new(
remove_thumb.texture_id(ctx),
remove_thumb.size_vec2(),
))
.clicked()
{
*active = None
};

for (name, image) in assets.iter() {
if removable
&& ui
.add(egui::ImageButton::new(
remove_thumb.texture_id(ctx),
remove_thumb.size_vec2(),
))
.clicked()
{
*active = None
};

if ui
.add(egui::ImageButton::new(
image.thumb.texture_id(ctx),
Expand Down
8 changes: 6 additions & 2 deletions src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ impl Assets {

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

let images = [load_image!("eyes", "happy"), load_image!("eyes", "girl")];
let images = [
load_image!("eyes", "happy"),
load_image!("eyes", "girl"),
load_image!("eyes", "angry"),
];
category_count.push(images.len());

for i in images {
Expand All @@ -62,7 +66,7 @@ impl Assets {

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

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

for i in images {
Expand Down

0 comments on commit 41d2432

Please sign in to comment.