Skip to content

Commit

Permalink
Made overlay more responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpmartell committed Aug 1, 2024
1 parent 13d1548 commit a1be776
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions LittleWarGameClient/GameForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion LittleWarGameClient/OverlayForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions LittleWarGameClient/OverlayForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,17 @@ private void OnGameOverlayActivated(bool overlayActivated)
InvokeUI(() =>
{
IsActivated = true;
GameForm.Instance.Visible = false;
TransparencyKey = Color.Fuchsia;
GameForm.Instance.ActiveControl = null;
});
}
else
{
InvokeUI(() =>
{
IsActivated = false;
GameForm.Instance.Visible = true;
TransparencyKey = Color.Black;
GameForm.Instance.ActiveControl = GameForm.Instance.webBrowser;
});
}
}
Expand Down

0 comments on commit a1be776

Please sign in to comment.