9 lines
349 B
Plaintext
9 lines
349 B
Plaintext
import { InventoryChecks } from @zelda1:inventory;
|
|
import { Pad, Button } from @sdk:input;
|
|
declare global visual: bool=false;
|
|
[Init] fn init() -> void {}
|
|
[Frame] fn frame() -> void {
|
|
if Pad.pressed(Button.Select) { visual=!visual; if visual { InventoryChecks.visual(); } }
|
|
if visual { InventoryChecks.draw(); } else { InventoryChecks.frame(); }
|
|
}
|