-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added on-the-fly interpolation and model chaining features
- Loading branch information
N00MKRAD
committed
Sep 14, 2020
1 parent
c1c70ed
commit 550cfc2
Showing
23 changed files
with
3,814 additions
and
809 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
Large diffs are not rendered by default.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
using Cupscale.UI; | ||
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 Cupscale.Forms | ||
{ | ||
public partial class InterpForm : Form | ||
{ | ||
string leftModelName; | ||
string rightModelName; | ||
|
||
public InterpForm(string leftModel, string rightModel) | ||
{ | ||
leftModelName = leftModel; | ||
rightModelName = rightModel; | ||
InitializeComponent(); | ||
Show(); | ||
CenterToParent(); | ||
} | ||
|
||
private void InterpForm_Load(object sender, EventArgs e) | ||
{ | ||
interpSlider.Value = PreviewTabHelper.interpValue / 5; | ||
UpdateLabels(); | ||
} | ||
|
||
private void saveBtn_Click(object sender, EventArgs e) | ||
{ | ||
PreviewTabHelper.interpValue = interpSlider.Value * 5; | ||
Close(); | ||
} | ||
|
||
private void interpSlider_ValueChanged(object sender, EventArgs e) | ||
{ | ||
UpdateLabels(); | ||
} | ||
|
||
void UpdateLabels () | ||
{ | ||
leftModelLabel.Text = leftModelName + ": " + (100 - interpSlider.Value * 5) + "%"; | ||
rightModelLabel.Text = rightModelName + ": " + interpSlider.Value * 5 + "%"; | ||
} | ||
} | ||
} |
Oops, something went wrong.