From 300aafd665c1c830b1aa51a6d4cfc12233235b5a Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Sat, 29 May 2021 12:24:04 +0100 Subject: [PATCH] add show / hide implementations --- agb/src/display/object.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/agb/src/display/object.rs b/agb/src/display/object.rs index 2ae631c1..990a105b 100644 --- a/agb/src/display/object.rs +++ b/agb/src/display/object.rs @@ -37,6 +37,12 @@ impl ObjectStandard { pub fn set_hflip(&mut self, hflip: bool) { self.attributes.set_hflip(hflip) } + pub fn show(&mut self) { + self.attributes.set_mode(Mode::Normal) + } + pub fn hide(&mut self) { + self.attributes.set_mode(Mode::Hidden) + } } pub struct ObjectAttributeStandard {