Suite modifs event
This commit is contained in:
parent
974f1b0d57
commit
6393439f31
1 changed files with 17 additions and 3 deletions
|
|
@ -183,6 +183,9 @@ namespace DMX2
|
|||
|
||||
bool IEventTarget.CanFeedback { get { return true; } }
|
||||
|
||||
void IEventTarget.ClearFeedBack(){
|
||||
feedbacks.Clear ();
|
||||
}
|
||||
void IEventTarget.AddFeedback (IFeedbackInfo info)
|
||||
{
|
||||
feedbacks.Add(info);
|
||||
|
|
@ -231,6 +234,8 @@ namespace DMX2
|
|||
SeqLinUI ui = null;
|
||||
|
||||
int master = 100;
|
||||
int mastercible;
|
||||
int masterinitial;
|
||||
|
||||
public int Master {
|
||||
get {
|
||||
|
|
@ -400,6 +405,8 @@ namespace DMX2
|
|||
targets[c].FeedBack((byte)valeurscourantes [c]);
|
||||
}
|
||||
}
|
||||
if(mastercible!=masterinitial)
|
||||
Master = (int)(progression * (mastercible - masterinitial) + masterinitial);
|
||||
} else {
|
||||
FinDeTransition ();
|
||||
}
|
||||
|
|
@ -424,6 +431,8 @@ namespace DMX2
|
|||
if(targets.ContainsKey(c))
|
||||
targets[c].FeedBack((byte)valeurscourantes [c]);
|
||||
}
|
||||
if(masterinitial !=mastercible)
|
||||
Master = mastercible;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -453,6 +462,7 @@ namespace DMX2
|
|||
tempsTransition = effetcourrant.Transition;
|
||||
enTransition = true;
|
||||
timeStamp = TimeSpan.Zero;
|
||||
masterinitial = mastercible = Master;
|
||||
if (ui != null)
|
||||
ui.EffetChange ();
|
||||
//foreach(var t in targets.Values) t.Attache = false;
|
||||
|
|
@ -688,11 +698,11 @@ namespace DMX2
|
|||
}
|
||||
|
||||
static System.Text.RegularExpressions.Regex regexCommandExec = new System.Text.RegularExpressions.Regex(
|
||||
@"(?<effet>\d+)(t(?<transition>\d+))?",
|
||||
@"(?<effet>\d+)(m(?<master>\d+))?(t(?<transition>\d+))?",
|
||||
System.Text.RegularExpressions.RegexOptions.Compiled);
|
||||
|
||||
static System.Text.RegularExpressions.Regex regexCommandProcess = new System.Text.RegularExpressions.Regex(
|
||||
@"(?<effet>\d+)(?<params>(t\d+)?)?",
|
||||
@"(?<effet>\d+)(?<params>(m\d+)?(t\d+)?)?",
|
||||
System.Text.RegularExpressions.RegexOptions.Compiled);
|
||||
|
||||
public override void Command (string command)
|
||||
|
|
@ -711,6 +721,10 @@ namespace DMX2
|
|||
int transition = int.Parse (cmd.Groups ["transition"].Value);
|
||||
tempsTransition = TimeSpan.FromMilliseconds( transition *100);
|
||||
}
|
||||
|
||||
if (cmd.Groups ["master"].Success) {
|
||||
mastercible = int.Parse (cmd.Groups ["master"].Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue