Reformat with cargo fmt
This commit is contained in:
parent
505aed8138
commit
fbf3d3815c
4 changed files with 103 additions and 75 deletions
27
src/gui.rs
27
src/gui.rs
|
|
@ -1,13 +1,22 @@
|
|||
use eframe::egui;
|
||||
use eframe::egui::Ui;
|
||||
|
||||
use crate::sheet::{Characteristic, CharacterSheet};
|
||||
use crate::sheet::Characteristic;
|
||||
|
||||
pub trait SheetGui where Self: Sized {
|
||||
fn shortcut(&self, _ui: &mut Ui, category: &str, character_field: &Characteristic) -> (u32, u32, u32) { (0, 0, 0) }
|
||||
fn gui_address(&mut self, ui: &mut Ui);
|
||||
fn gui_stamina(&mut self, ui: &mut Ui);
|
||||
fn gui_luck(&mut self, ui: &mut Ui);
|
||||
fn gui_skill(&mut self, ui: &mut Ui);
|
||||
fn secondary_stats(&mut self, ui: &mut Ui);
|
||||
pub trait SheetGui
|
||||
where
|
||||
Self: Sized,
|
||||
{
|
||||
fn shortcut(
|
||||
&self,
|
||||
_ui: &mut Ui,
|
||||
_category: &str,
|
||||
_character_field: &Characteristic,
|
||||
) -> (u32, u32, u32) {
|
||||
(0, 0, 0)
|
||||
}
|
||||
fn gui_address(&mut self, ui: &mut Ui);
|
||||
fn gui_stamina(&mut self, ui: &mut Ui);
|
||||
fn gui_luck(&mut self, ui: &mut Ui);
|
||||
fn gui_skill(&mut self, ui: &mut Ui);
|
||||
fn secondary_stats(&mut self, ui: &mut Ui);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue