Skip to content

Commit

Permalink
Make buttons more responsive after a screen transition
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Jul 28, 2024
1 parent 548a1ca commit ab308a5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/ui/widget.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
use bevy::ecs::system::EntityCommand;
use bevy::prelude::*;
use bevy::ui::FocusPolicy;
use bevy_mod_picking::prelude::*;

use crate::animation::backup::Backup;
use crate::animation::offset::Offset;
use crate::ui::prelude::*;

pub fn overlay(mut entity: EntityWorldMut) {
entity.insert(NodeBundle {
style: Style::ABS_FILL,
z_index: ZIndex::Global(1000),
..default()
});
entity.insert((
NodeBundle {
style: Style::ABS_FILL,
z_index: ZIndex::Global(1000),
..default()
},
Pickable::IGNORE,
));
}

pub fn blocking_overlay(mut entity: EntityWorldMut) {
Expand Down

0 comments on commit ab308a5

Please sign in to comment.