refactor: pass &FrameDate into draw_frame()

This commit is contained in:
Jack Wills
2024-12-04 21:28:10 +00:00
parent 096c6526a8
commit 35aec5060f
5 changed files with 179 additions and 136 deletions
+3 -4
View File
@@ -266,10 +266,9 @@ impl GuiState {
self.delete_container = id;
}
/// Check if the current gui_status contains any of the given status'
/// Don't really like this methodology for gui state, needs a re-think
pub fn status_contains(&self, status: &[Status]) -> bool {
status.iter().any(|i| self.status.contains(i))
/// Return a copy of the Status HashSet
pub fn get_status(&self) -> HashSet<Status> {
self.status.clone()
}
/// Remove a gui_status into the current gui_status HashSet