diff --git a/DMX-2.0/Conduite.cs b/DMX-2.0/Conduite.cs index bd12192..f918f7d 100644 --- a/DMX-2.0/Conduite.cs +++ b/DMX-2.0/Conduite.cs @@ -60,6 +60,16 @@ namespace DMX2 } } + int master=100; + + public int Master { + get { + return master; + } + set { + master= value; + } + } int IComparer.Compare (Circuit x, Circuit y) { @@ -121,7 +131,7 @@ namespace DMX2 foreach (var seq in Sequenceurs) { val = Math.Max (val, seq.ValeurCircuit (c)); } - c.ValeurCourante = val; + c.ValeurCourante = val * master /100; } } // Cette fonction retourne quasi immédiatement, même si il y'a beaucoup a faire sur l'affichage diff --git a/DMX-2.0/MainWindow.cs b/DMX-2.0/MainWindow.cs index ba88d84..8f9852f 100644 --- a/DMX-2.0/MainWindow.cs +++ b/DMX-2.0/MainWindow.cs @@ -140,5 +140,12 @@ namespace DMX2 fullUpdateFlag=false; updScheduled=false; } + + protected void OnMasterScaleValueChanged (object sender, EventArgs e) + { + Conduite.Courante.Master = (int)(masterScale.Value); + } + + } } \ No newline at end of file diff --git a/DMX-2.0/gtk-gui/gui.stetic b/DMX-2.0/gtk-gui/gui.stetic index e4c7324..59ef354 100644 --- a/DMX-2.0/gtk-gui/gui.stetic +++ b/DMX-2.0/gtk-gui/gui.stetic @@ -245,7 +245,7 @@ - + 260 True @@ -256,6 +256,7 @@ True 0 Top + 5