Skip to content

Commit

Permalink
名前の変更
Browse files Browse the repository at this point in the history
  • Loading branch information
rikupin1105 committed Aug 11, 2022
1 parent 3d1760e commit eb86a4d
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/SportsCoderForVolleyball/Models/Control.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private async Task GameSetAsync()
//セットごとのポイント
await Task.Delay(4000);
Instance.Option.InfomationPointParSet();
Instance.IsAnimation.Value = false;
Instance.IsDisplayScoreboard.Value = false;

//セットごとのポイントを削除
await Task.Delay(10000);
Expand Down
2 changes: 1 addition & 1 deletion src/SportsCoderForVolleyball/Models/Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class Data
public Control Control { get; set; } = new();

//アニメーション
public ReactiveProperty<bool> IsAnimation = new(true);
public ReactiveProperty<bool> IsDisplayScoreboard = new(true);
public ReactiveProperty<bool> IsDisplayTechnicalTimeout = new(false);
public ReactiveProperty<bool> IsDisplayLeftTimeout = new(false);
public ReactiveProperty<bool> IsDisplayRightTimeout = new(false);
Expand Down
34 changes: 17 additions & 17 deletions src/SportsCoderForVolleyball/Models/Option.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ public async void LeftTimeout()
else
{
Instance.TimeOutLeft.Value++;
if (Instance.IsAnimation.Value == false)
if (Instance.IsDisplayScoreboard.Value == false)
{
Instance.IsAnimation.Value = true;
Instance.IsDisplayScoreboard.Value = true;
await Task.Delay(1000);
}

Expand Down Expand Up @@ -115,9 +115,9 @@ public async void RightTimeOut()
else
{
Instance.TimeOutRight.Value++;
if (Instance.IsAnimation.Value == false)
if (Instance.IsDisplayScoreboard.Value == false)
{
Instance.IsAnimation.Value = true;
Instance.IsDisplayScoreboard.Value = true;
await Task.Delay(1000);
}

Expand Down Expand Up @@ -159,9 +159,9 @@ public async void TechnicalTimeOut()
}
else
{
if (Instance.IsAnimation.Value == false)
if (Instance.IsDisplayScoreboard.Value == false)
{
Instance.IsAnimation.Value = true;
Instance.IsDisplayScoreboard.Value = true;
await Task.Delay(1000);
}

Expand All @@ -185,7 +185,7 @@ public async void TechnicalTimeOut()
}
public async void InfomationScore()
{
if (Instance.IsAnimation.Value)
if (Instance.IsDisplayScoreboard.Value)
{
//表示されているとき
if (Instance.IsDisplayGetSet.Value)
Expand All @@ -195,14 +195,14 @@ public async void InfomationScore()
else
{
await DeleteOption();
Instance.IsAnimation.Value = false;
Instance.IsDisplayScoreboard.Value = false;
}
}
else
{
//未表示のとき

Instance.IsAnimation.Value = true;
Instance.IsDisplayScoreboard.Value = true;
if (Instance.IsDisplayGetSet.Value)
{
Instance.IsDisplayGetSet.Value = false;
Expand Down Expand Up @@ -276,9 +276,9 @@ public async void InfomationAttackPoint()
}
else
{
if (Instance.IsAnimation.Value == false)
if (Instance.IsDisplayScoreboard.Value == false)
{
Instance.IsAnimation.Value = true;
Instance.IsDisplayScoreboard.Value = true;
await Task.Delay(1000);
}

Expand All @@ -296,9 +296,9 @@ public async void InfomationBlockPoint()
}
else
{
if (Instance.IsAnimation.Value == false)
if (Instance.IsDisplayScoreboard.Value == false)
{
Instance.IsAnimation.Value = true;
Instance.IsDisplayScoreboard.Value = true;
await Task.Delay(1000);
}
await DeleteOption();
Expand All @@ -315,9 +315,9 @@ public async void InfomationServePoint()
}
else
{
if (Instance.IsAnimation.Value == false)
if (Instance.IsDisplayScoreboard.Value == false)
{
Instance.IsAnimation.Value = true;
Instance.IsDisplayScoreboard.Value = true;
await Task.Delay(1000);
}
await DeleteOption();
Expand All @@ -334,9 +334,9 @@ public async void InfomationServeError()
}
else
{
if (Instance.IsAnimation.Value == false)
if (Instance.IsDisplayScoreboard.Value == false)
{
Instance.IsAnimation.Value = true;
Instance.IsDisplayScoreboard.Value = true;
await Task.Delay(1000);
}
await DeleteOption();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace SportsCoderForVolleyball.ViewModels
{
public class ScoreBoardViewModel : BindableBase
{
public ReactiveProperty<bool> IsAnimation { get; set; } = Data.Instance.IsAnimation.ObserveProperty(x => x.Value).ToReactiveProperty();
public ReactiveProperty<bool> IsDisplayScoreboard { get; set; } = Data.Instance.IsDisplayScoreboard.ObserveProperty(x => x.Value).ToReactiveProperty();

//UI部品
public ReactiveProperty<int> Set { get; set; } = Data.Instance.Set.ObserveProperty(x => x.Value).ToReactiveProperty();
Expand Down
2 changes: 1 addition & 1 deletion src/SportsCoderForVolleyball/Views/ScoreBoard.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<Grid.Style>
<Style TargetType="Grid">
<Style.Triggers>
<DataTrigger Binding="{Binding IsAnimation.Value}" Value="True">
<DataTrigger Binding="{Binding IsDisplayScoreboard.Value}" Value="True">
<DataTrigger.EnterActions>
<BeginStoryboard>
<Storyboard>
Expand Down

0 comments on commit eb86a4d

Please sign in to comment.