-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from PierroD/10-feat-add-safeArea
Feat add safeArea to the FpsUnlocker
- Loading branch information
Showing
29 changed files
with
534 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
LINDRA - Market/LINDRA - Market/Properties/Resources.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127 changes: 127 additions & 0 deletions
127
LINDRA - Market/LINDRA - Market/form/FpsUnlocker/Views/UC_Area.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
LINDRA - Market/LINDRA - Market/form/FpsUnlocker/Views/UC_Area.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using LINDRA___Market.Utils; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Data; | ||
using System.Drawing; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
|
||
namespace LINDRA___Market.form.FpsUnlocker.Views | ||
{ | ||
public partial class UC_Area : UserControl | ||
{ | ||
public UC_Area() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void UC_Area_Load(object sender, EventArgs e) | ||
{ | ||
this.BackColor = AppColors.backgroundColor; | ||
labelSafeArea.ForeColor = AppColors.textColor; | ||
labelSafeAreaXValue.ForeColor = AppColors.textColor; | ||
labelSafeAreaYValue.ForeColor = AppColors.textColor; | ||
trackbarSafeAreaX.ThumbColor = AppColors.primaryColor; | ||
trackbarSafeAreaY.ThumbColor = AppColors.primaryColor; | ||
} | ||
|
||
private void update_timer_Tick(object sender, EventArgs e) | ||
{ | ||
if (trackbarSafeAreaX.Value != FpsSettings.bar_horizontal) trackbarSafeAreaX.Value = FpsSettings.bar_horizontal; | ||
if (trackbarSafeAreaY.Value != FpsSettings.bar_vertical) trackbarSafeAreaY.Value = FpsSettings.bar_vertical; | ||
} | ||
|
||
private void trackbarSafeAreaX_ValueChanged(object sender, EventArgs e) | ||
{ | ||
labelSafeAreaXValue.Text = $"{(double)trackbarSafeAreaX.Value / 100}"; | ||
FpsSettings.bar_horizontal = trackbarSafeAreaX.Value; | ||
} | ||
|
||
private void trackbarSafeAreaY_ValueChanged(object sender, EventArgs e) | ||
{ | ||
labelSafeAreaYValue.Text = $"{(double)trackbarSafeAreaY.Value / 100}"; | ||
FpsSettings.bar_vertical = trackbarSafeAreaY.Value; | ||
|
||
} | ||
} | ||
} |
Oops, something went wrong.