remove comment in french and usless things, add remove buttons
This commit is contained in:
@@ -34,10 +34,6 @@ impl PolygonFrame {
|
||||
let mut all_sound: Vec<&StaticSoundData> = vec![];
|
||||
for poly in &self.polygons {
|
||||
all_sound.extend(poly.sound_to_play_btw(before, after));
|
||||
/*
|
||||
if poly.have_points_btw(before, after) {
|
||||
return true;
|
||||
}*/
|
||||
}
|
||||
all_sound
|
||||
}
|
||||
@@ -74,7 +70,7 @@ impl<Message> canvas::Program<Message> for PolygonFrame {
|
||||
&line,
|
||||
Stroke {
|
||||
width: 4.0,
|
||||
style: Style::Solid(Color::BLACK),
|
||||
style: Style::Solid(poly.color.clone()),
|
||||
..Stroke::default()
|
||||
},
|
||||
);
|
||||
@@ -116,6 +112,7 @@ pub struct Polygon {
|
||||
pub points_teta: Vec<f32>,
|
||||
pub sound: StaticSoundData,
|
||||
pub name: String,
|
||||
pub color: Color,
|
||||
}
|
||||
#[warn(dead_code)]
|
||||
impl Polygon {
|
||||
@@ -146,6 +143,7 @@ impl Polygon {
|
||||
points_teta: v,
|
||||
sound: sound,
|
||||
name: "".to_string(),
|
||||
color: Color::BLACK,
|
||||
}
|
||||
}
|
||||
pub fn segment(teta: f32, sound: StaticSoundData) -> Self {
|
||||
@@ -164,6 +162,7 @@ impl Polygon {
|
||||
Polygon {
|
||||
sound: sound,
|
||||
name: "".to_string(),
|
||||
color: Color::BLACK,
|
||||
global_teta: teta,
|
||||
points_teta: vec![
|
||||
2.0 * 5.0 * PI / 30.0,
|
||||
@@ -179,6 +178,7 @@ impl Polygon {
|
||||
Polygon {
|
||||
sound: sound,
|
||||
name: "".to_string(),
|
||||
color: Color::BLACK,
|
||||
global_teta: teta,
|
||||
points_teta: vec![
|
||||
0.0,
|
||||
@@ -195,6 +195,7 @@ impl Polygon {
|
||||
Polygon {
|
||||
sound: sound,
|
||||
name: "".to_string(),
|
||||
color: Color::BLACK,
|
||||
global_teta: teta,
|
||||
points_teta: vec![
|
||||
2.0 * PI / 30.0,
|
||||
@@ -212,6 +213,7 @@ impl Polygon {
|
||||
Polygon {
|
||||
sound: sound,
|
||||
name: "".to_string(),
|
||||
color: Color::BLACK,
|
||||
global_teta: teta,
|
||||
points_teta: vec![
|
||||
0.0,
|
||||
@@ -230,6 +232,7 @@ impl Polygon {
|
||||
Polygon {
|
||||
sound: sound,
|
||||
name: "".to_string(),
|
||||
color: Color::BLACK,
|
||||
global_teta: teta,
|
||||
points_teta: vec![
|
||||
2.0 * 3.0 * PI / 42.0,
|
||||
@@ -247,6 +250,7 @@ impl Polygon {
|
||||
Polygon {
|
||||
sound: sound,
|
||||
name: "".to_string(),
|
||||
color: Color::BLACK,
|
||||
global_teta: teta,
|
||||
points_teta: vec![
|
||||
0.0,
|
||||
@@ -265,6 +269,7 @@ impl Polygon {
|
||||
Polygon {
|
||||
sound: sound,
|
||||
name: "".to_string(),
|
||||
color: Color::BLACK,
|
||||
global_teta: teta,
|
||||
points_teta: vec![
|
||||
2.0 * 6.0 * PI / 42.0,
|
||||
@@ -284,6 +289,7 @@ impl Polygon {
|
||||
Polygon {
|
||||
sound: sound,
|
||||
name: "".to_string(),
|
||||
color: Color::BLACK,
|
||||
global_teta: teta,
|
||||
points_teta: vec![
|
||||
0.0,
|
||||
|
||||
Reference in New Issue
Block a user