adjust UI
This commit is contained in:
parent
4eca64e835
commit
06c2f2c30b
4 changed files with 9 additions and 10 deletions
|
@ -16,7 +16,7 @@
|
|||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<PublishUrl>publish\X64\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
|
@ -26,7 +26,7 @@
|
|||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>1</ApplicationRevision>
|
||||
<ApplicationRevision>2</ApplicationRevision>
|
||||
<ApplicationVersion>6.1.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||
|
|
4
BetterJoyForCemu/MainForm.Designer.cs
generated
4
BetterJoyForCemu/MainForm.Designer.cs
generated
|
@ -288,11 +288,11 @@
|
|||
this.tableLayoutPanel1.ColumnCount = 2;
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(6, 29);
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(2, 29);
|
||||
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
||||
this.tableLayoutPanel1.RowCount = 1;
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tableLayoutPanel1.Size = new System.Drawing.Size(388, 308);
|
||||
this.tableLayoutPanel1.Size = new System.Drawing.Size(392, 306);
|
||||
this.tableLayoutPanel1.TabIndex = 1;
|
||||
//
|
||||
// button1
|
||||
|
|
|
@ -25,22 +25,21 @@ namespace BetterJoyForCemu {
|
|||
|
||||
//list all options
|
||||
string[] myConfigs = ConfigurationManager.AppSettings.AllKeys;
|
||||
|
||||
Size childSize = new Size(87, 20);
|
||||
for (int i = 0; i != myConfigs.Length; i++)
|
||||
{
|
||||
tableLayoutPanel1.RowCount++;
|
||||
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F));
|
||||
tableLayoutPanel1.Controls.Add(new Label() { Text = myConfigs[i] }, 0, i);
|
||||
tableLayoutPanel1.Controls.Add(new Label() { Text = myConfigs[i], TextAlign=ContentAlignment.BottomLeft, AutoEllipsis=true, Size = childSize }, 0, i);
|
||||
|
||||
var value = ConfigurationManager.AppSettings[myConfigs[i]];
|
||||
Control childControl;
|
||||
if (value == "true" || value == "false")
|
||||
{
|
||||
childControl = new CheckBox() { Checked = Boolean.Parse(value) };
|
||||
childControl = new CheckBox() { Checked = Boolean.Parse(value), Size= childSize };
|
||||
}
|
||||
else
|
||||
{
|
||||
childControl = new TextBox() { Text = value };
|
||||
childControl = new TextBox() { Text = value, Size = childSize };
|
||||
}
|
||||
|
||||
tableLayoutPanel1.Controls.Add(childControl, 1, i);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# BetterJoyForCemu v6.1 (based on v6 Nightly)
|
||||
Automatically enumerate options and enble to control them directly from the UI. Any further options can be supported. -- by StarryTony
|
||||
Automatically enumerate options and enable to control them directly from the UI. Any further options can be supported. -- by StarryTony
|
||||
|
||||
![Example](/Examples/example1.png)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue