-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow editing more things about company
- Loading branch information
Showing
14 changed files
with
271 additions
and
95 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
use super::{Inspect, InspectArgs}; | ||
|
||
impl Inspect<i64> for i64 { | ||
fn render(data: &Self, label: &'static str, ui: &mut egui::Ui, _args: &InspectArgs) { | ||
// Values are consistent | ||
let mut cp = *data; | ||
ui.horizontal(|ui| { | ||
ui.add(egui::DragValue::new(&mut cp)); | ||
ui.label(label); | ||
}); | ||
} | ||
|
||
fn render_mut( | ||
data: &mut Self, | ||
label: &'static str, | ||
ui: &mut egui::Ui, | ||
args: &InspectArgs, | ||
) -> bool { | ||
let before = *data; | ||
ui.horizontal(|ui| { | ||
ui.label(label); | ||
ui.add(egui::DragValue::new(data).clamp_range( | ||
args.min_value.unwrap_or(f32::MIN)..=args.max_value.unwrap_or(f32::MAX), | ||
)); | ||
}); | ||
before != *data | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ mod f32; | |
mod f64; | ||
pub mod geometry; | ||
mod i32; | ||
mod i64; | ||
mod option; | ||
mod str; | ||
mod string; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.