Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
fixed ui bug
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAF0e committed Jan 20, 2023
1 parent 0629178 commit 4d65a0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions pop_sim_rust_gui/patch_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@
- **F** [18/01/23] Added temporary close table button as it was causing performance issues
- **F** [18/01/23] Table v2 is out! Table looks nicer, and info is easier to read
- **F** [18/01/23] Added a time between frames counter to show simulation performance
- **B** [20/01/23] Fixed a strange table id problem
18 changes: 9 additions & 9 deletions pop_sim_rust_gui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// TODO:
// -[] Migrant/Emigrant system
// -[] Mortality
// -[] Differing death causes(random old age death)
// -[] Epidemics
// -[] Outside world influence(Migrant/Emigrant v2, plagues, things occuring outside of sim_region)
Expand Down Expand Up @@ -279,14 +278,15 @@ fn main() {
((self.sim_data.people[id].age as f32) /
12.0) as i32
).to_string();

egui::CollapsingHeader
::new(collap_header_text)
.open(Some(true))
.show(ui, |ui| {
ui.label(text);
});
ui.separator();
ui.push_id(self.sim_data.people[id].id, |ui| {
egui::CollapsingHeader
::new(collap_header_text)
.open(Some(true))
.show(ui, |ui| {
ui.label(text);
});
ui.separator();
});
}
}
);
Expand Down

0 comments on commit 4d65a0f

Please sign in to comment.