Changes for layout and selfview

This commit is contained in:
Heath Volmer
2017-10-05 17:43:10 -06:00
parent af33aa41bf
commit f9d320e2b2
4 changed files with 20 additions and 13 deletions

View File

@@ -446,9 +446,20 @@ namespace PepperDash.Essentials.UIDrivers.VC
void SetupSelfViewControls()
{
TriList.SetSigFalseAction(UIBoolJoin.VCStagingSelfViewLayoutPress, this.ShowSelfViewLayout);
TriList.SetSigFalseAction(UIBoolJoin.VCSelfViewTogglePress, () => { });
TriList.SetSigFalseAction(UIBoolJoin.VCRemoteViewTogglePress, () => { });
TriList.SetSigFalseAction(UIBoolJoin.VCSelfViewPipTogglePress, () => { });
var svc = Codec as IHasCodecSelfview;
if (svc != null)
{
TriList.SetSigFalseAction(UIBoolJoin.VCSelfViewTogglePress, svc.SelfviewModeToggle);
svc.SelfviewIsOnFeedback.LinkInputSig(TriList.BooleanInput[UIBoolJoin.VCSelfViewTogglePress]);
//TriList.SetSigFalseAction(UIBoolJoin.VCSelfViewPipTogglePress, () => { });
}
var lc = Codec as IHasCodecLayouts;
if (lc != null)
{
TriList.SetSigFalseAction(UIBoolJoin.VCRemoteViewTogglePress, lc.LocalLayoutToggle);
lc.LocalLayoutFeedback.LinkInputSig(TriList.StringInput[UIStringJoin.VCLayoutModeText]);
}
}
/// <summary>