|
|
@ -30,6 +30,13 @@ namespace PenaltyMaster3000.Helpers
|
|
|
|
set => SetProperty(ref goalTopRightVisibility, value);
|
|
|
|
set => SetProperty(ref goalTopRightVisibility, value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Visibility questionPointTopRightVisibility;
|
|
|
|
|
|
|
|
public Visibility QuestionPointTopRightVisibility
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
get => questionPointTopRightVisibility;
|
|
|
|
|
|
|
|
set => SetProperty(ref questionPointTopRightVisibility, value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Top Left
|
|
|
|
// Top Left
|
|
|
|
private Visibility ballTopLeftVisibility;
|
|
|
|
private Visibility ballTopLeftVisibility;
|
|
|
|
public Visibility BallTopLeftVisibility
|
|
|
|
public Visibility BallTopLeftVisibility
|
|
|
@ -44,6 +51,13 @@ namespace PenaltyMaster3000.Helpers
|
|
|
|
get => goalTopLeftVisibility;
|
|
|
|
get => goalTopLeftVisibility;
|
|
|
|
set => SetProperty(ref goalTopLeftVisibility, value);
|
|
|
|
set => SetProperty(ref goalTopLeftVisibility, value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Visibility questionPointTopLeftVisibility;
|
|
|
|
|
|
|
|
public Visibility QuestionPointTopLeftVisibility
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
get => questionPointTopLeftVisibility;
|
|
|
|
|
|
|
|
set => SetProperty(ref questionPointTopLeftVisibility, value);
|
|
|
|
|
|
|
|
}
|
|
|
|
// ---
|
|
|
|
// ---
|
|
|
|
|
|
|
|
|
|
|
|
// Middle
|
|
|
|
// Middle
|
|
|
@ -61,6 +75,13 @@ namespace PenaltyMaster3000.Helpers
|
|
|
|
set => SetProperty(ref goalTopMiddleVisibility, value);
|
|
|
|
set => SetProperty(ref goalTopMiddleVisibility, value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Visibility questionPointTopMiddleVisibility;
|
|
|
|
|
|
|
|
public Visibility QuestionPointTopMiddleVisibility
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
get => questionPointTopMiddleVisibility;
|
|
|
|
|
|
|
|
set => SetProperty(ref questionPointTopMiddleVisibility, value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Down middle
|
|
|
|
// Down middle
|
|
|
|
private Visibility ballDownMiddleVisibility;
|
|
|
|
private Visibility ballDownMiddleVisibility;
|
|
|
|
public Visibility BallDownMiddleVisibility
|
|
|
|
public Visibility BallDownMiddleVisibility
|
|
|
@ -75,6 +96,13 @@ namespace PenaltyMaster3000.Helpers
|
|
|
|
get => goalDownMiddleVisibility;
|
|
|
|
get => goalDownMiddleVisibility;
|
|
|
|
set => SetProperty(ref goalDownMiddleVisibility, value);
|
|
|
|
set => SetProperty(ref goalDownMiddleVisibility, value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Visibility questionPointDownMiddleVisibility;
|
|
|
|
|
|
|
|
public Visibility QuestionPointDownMiddleVisibility
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
get => questionPointDownMiddleVisibility;
|
|
|
|
|
|
|
|
set => SetProperty(ref questionPointDownMiddleVisibility, value);
|
|
|
|
|
|
|
|
}
|
|
|
|
// ---
|
|
|
|
// ---
|
|
|
|
|
|
|
|
|
|
|
|
// Down right
|
|
|
|
// Down right
|
|
|
@ -92,6 +120,13 @@ namespace PenaltyMaster3000.Helpers
|
|
|
|
set => SetProperty(ref goalDownRightVisibility, value);
|
|
|
|
set => SetProperty(ref goalDownRightVisibility, value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Visibility questionPointDownRightVisibility;
|
|
|
|
|
|
|
|
public Visibility QuestionPointDownRightVisibility
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
get => questionPointDownRightVisibility;
|
|
|
|
|
|
|
|
set => SetProperty(ref questionPointDownRightVisibility, value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Down left
|
|
|
|
// Down left
|
|
|
|
private Visibility ballDownLeftVisibility;
|
|
|
|
private Visibility ballDownLeftVisibility;
|
|
|
|
public Visibility BallDownLeftVisibility
|
|
|
|
public Visibility BallDownLeftVisibility
|
|
|
@ -106,6 +141,13 @@ namespace PenaltyMaster3000.Helpers
|
|
|
|
get => goalDownLeftVisibility;
|
|
|
|
get => goalDownLeftVisibility;
|
|
|
|
set => SetProperty(ref goalDownLeftVisibility, value);
|
|
|
|
set => SetProperty(ref goalDownLeftVisibility, value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Visibility questionPointDownLeftVisibility;
|
|
|
|
|
|
|
|
public Visibility QuestionPointDownLeftVisibility
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
get => questionPointDownLeftVisibility;
|
|
|
|
|
|
|
|
set => SetProperty(ref questionPointDownLeftVisibility, value);
|
|
|
|
|
|
|
|
}
|
|
|
|
/// ---
|
|
|
|
/// ---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -144,6 +186,34 @@ namespace PenaltyMaster3000.Helpers
|
|
|
|
return element1 == Visibility.Visible && element2 == Visibility.Visible;
|
|
|
|
return element1 == Visibility.Visible && element2 == Visibility.Visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Update the view with the question point position.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="gesturePosition"></param>
|
|
|
|
|
|
|
|
public void SetQuestionPoint(string gesturePosition)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
switch (gesturePosition)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
case "HandUpRight":
|
|
|
|
|
|
|
|
QuestionPointTopRightVisibility = Visibility.Visible;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case "HandUpLeft":
|
|
|
|
|
|
|
|
QuestionPointTopLeftVisibility = Visibility.Visible;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case "HandDownRight":
|
|
|
|
|
|
|
|
QuestionPointDownRightVisibility = Visibility.Visible;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case "HandDownLeft":
|
|
|
|
|
|
|
|
QuestionPointTopRightVisibility = Visibility.Visible;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
default: return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Update the view with the latest shot and defense.
|
|
|
|
/// Update the view with the latest shot and defense.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
@ -176,18 +246,22 @@ namespace PenaltyMaster3000.Helpers
|
|
|
|
switch (shotPosition)
|
|
|
|
switch (shotPosition)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case "HandUpRight":
|
|
|
|
case "HandUpRight":
|
|
|
|
|
|
|
|
QuestionPointTopRightVisibility = Visibility.Hidden;
|
|
|
|
BallTopRightVisibility = Visibility.Visible;
|
|
|
|
BallTopRightVisibility = Visibility.Visible;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case "HandUpLeft":
|
|
|
|
case "HandUpLeft":
|
|
|
|
|
|
|
|
QuestionPointTopLeftVisibility = Visibility.Hidden;
|
|
|
|
BallTopLeftVisibility = Visibility.Visible;
|
|
|
|
BallTopLeftVisibility = Visibility.Visible;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case "HandDownRight":
|
|
|
|
case "HandDownRight":
|
|
|
|
|
|
|
|
QuestionPointDownRightVisibility = Visibility.Hidden;
|
|
|
|
BallDownRightVisibility = Visibility.Visible;
|
|
|
|
BallDownRightVisibility = Visibility.Visible;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case "HandDownLeft":
|
|
|
|
case "HandDownLeft":
|
|
|
|
|
|
|
|
QuestionPointTopRightVisibility = Visibility.Hidden;
|
|
|
|
BallTopRightVisibility = Visibility.Visible;
|
|
|
|
BallTopRightVisibility = Visibility.Visible;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
@ -240,16 +314,22 @@ namespace PenaltyMaster3000.Helpers
|
|
|
|
// Rest should be hidden
|
|
|
|
// Rest should be hidden
|
|
|
|
BallTopRightVisibility = Visibility.Hidden;
|
|
|
|
BallTopRightVisibility = Visibility.Hidden;
|
|
|
|
GoalTopRightVisibility = Visibility.Hidden;
|
|
|
|
GoalTopRightVisibility = Visibility.Hidden;
|
|
|
|
|
|
|
|
QuestionPointTopRightVisibility = Visibility.Hidden;
|
|
|
|
BallTopMiddleVisibility = Visibility.Hidden;
|
|
|
|
BallTopMiddleVisibility = Visibility.Hidden;
|
|
|
|
GoalTopMiddleVisibility = Visibility.Hidden;
|
|
|
|
GoalTopMiddleVisibility = Visibility.Hidden;
|
|
|
|
|
|
|
|
QuestionPointTopMiddleVisibility = Visibility.Hidden;
|
|
|
|
BallTopLeftVisibility = Visibility.Hidden;
|
|
|
|
BallTopLeftVisibility = Visibility.Hidden;
|
|
|
|
GoalTopLeftVisibility = Visibility.Hidden;
|
|
|
|
GoalTopLeftVisibility = Visibility.Hidden;
|
|
|
|
|
|
|
|
QuestionPointTopLeftVisibility = Visibility.Hidden;
|
|
|
|
BallDownRightVisibility = Visibility.Hidden;
|
|
|
|
BallDownRightVisibility = Visibility.Hidden;
|
|
|
|
GoalDownRightVisibility = Visibility.Hidden;
|
|
|
|
GoalDownRightVisibility = Visibility.Hidden;
|
|
|
|
|
|
|
|
QuestionPointDownRightVisibility = Visibility.Hidden;
|
|
|
|
BallDownMiddleVisibility = Visibility.Hidden;
|
|
|
|
BallDownMiddleVisibility = Visibility.Hidden;
|
|
|
|
GoalDownMiddleVisibility = Visibility.Hidden;
|
|
|
|
GoalDownMiddleVisibility = Visibility.Hidden;
|
|
|
|
|
|
|
|
QuestionPointDownMiddleVisibility = Visibility.Hidden;
|
|
|
|
BallDownLeftVisibility = Visibility.Hidden;
|
|
|
|
BallDownLeftVisibility = Visibility.Hidden;
|
|
|
|
GoalDownLeftVisibility = Visibility.Hidden;
|
|
|
|
GoalDownLeftVisibility = Visibility.Hidden;
|
|
|
|
|
|
|
|
QuestionPointDownLeftVisibility = Visibility.Hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|