mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-12-01 00:29:58 +00:00
make inventory button an one-shot button
This commit is contained in:
parent
13bbf897dd
commit
65be03261c
|
|
@ -185,13 +185,12 @@ impl PlayerController for TouchPlayerController {
|
||||||
self.state.inventory()
|
self.state.inventory()
|
||||||
|| state
|
|| state
|
||||||
.touch_controls
|
.touch_controls
|
||||||
.point_in(Rect::new_size(
|
.consume_click_in(Rect::new_size(
|
||||||
state.canvas_size.0 as isize - 48 - right,
|
state.canvas_size.0 as isize - 48 - right,
|
||||||
top,
|
top,
|
||||||
48,
|
48,
|
||||||
48,
|
48,
|
||||||
))
|
)),
|
||||||
.is_some(),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
self.state.set_jump(
|
self.state.set_jump(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue