1
0
Fork 0
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:
Alula 2021-04-28 21:33:39 +02:00
parent 13bbf897dd
commit 65be03261c
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

@ -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(