mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Anime Matrix Brightness https://github.com/seerge/g-helper/issues/2486
This commit is contained in:
@@ -47,10 +47,14 @@ namespace GHelper
|
||||
trackZoom.ValueChanged += TrackZoom_Changed;
|
||||
trackZoom.Value = Math.Min(trackZoom.Maximum, AppConfig.Get("matrix_zoom", 100));
|
||||
|
||||
trackContrast.MouseUp += TrackContrast_MouseUp; ;
|
||||
trackContrast.ValueChanged += TrackContrast_ValueChanged; ;
|
||||
trackContrast.MouseUp += TrackContrast_MouseUp;
|
||||
trackContrast.ValueChanged += TrackMatrix_ValueChanged;
|
||||
trackContrast.Value = Math.Min(trackContrast.Maximum, AppConfig.Get("matrix_contrast", 100));
|
||||
|
||||
trackBrightness.MouseUp += TrackBrightness_MouseUp;
|
||||
trackBrightness.ValueChanged += TrackMatrix_ValueChanged;
|
||||
trackBrightness.Value = Math.Min(trackBrightness.Maximum, AppConfig.Get("matrix_brightness", 0));
|
||||
|
||||
VisualiseMatrix();
|
||||
|
||||
comboScaling.DropDownStyle = ComboBoxStyle.DropDownList;
|
||||
@@ -67,7 +71,7 @@ namespace GHelper
|
||||
|
||||
}
|
||||
|
||||
private void TrackContrast_ValueChanged(object? sender, EventArgs e)
|
||||
private void TrackMatrix_ValueChanged(object? sender, EventArgs e)
|
||||
{
|
||||
VisualiseMatrix();
|
||||
}
|
||||
@@ -78,6 +82,13 @@ namespace GHelper
|
||||
SetMatrixPicture();
|
||||
}
|
||||
|
||||
private void TrackBrightness_MouseUp(object? sender, MouseEventArgs e)
|
||||
{
|
||||
AppConfig.Set("matrix_brightness", trackBrightness.Value);
|
||||
SetMatrixPicture();
|
||||
}
|
||||
|
||||
|
||||
private void ComboRotation_SelectedValueChanged(object? sender, EventArgs e)
|
||||
{
|
||||
AppConfig.Set("matrix_rotation", comboRotation.SelectedIndex);
|
||||
@@ -104,6 +115,7 @@ namespace GHelper
|
||||
{
|
||||
labelZoom.Text = trackZoom.Value + "%";
|
||||
labelContrast.Text = trackContrast.Value + "%";
|
||||
labelBrightness.Text = trackBrightness.Value + "%";
|
||||
}
|
||||
|
||||
private void ButtonReset_Click(object? sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user