Skip to content

Commit

Permalink
Add simpler simple mode, and label simple mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebane1 committed Jun 28, 2024
1 parent d00ba69 commit d34a839
Show file tree
Hide file tree
Showing 10 changed files with 892 additions and 88 deletions.
13 changes: 10 additions & 3 deletions FFXIVLooseTextureCompiler/Configuration Dialogues/FilePicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ public bool Enabled {
}
}

public string CurrentPath { get => currentPath; set { currentPath = value; filePath.Text = value; } }
public string CurrentPath {
get => currentPath;
set {
currentPath = value;
filePath.Text = value;
OnFileSelected?.Invoke(this, EventArgs.Empty);
}
}

private void filePicker_Load(object sender, EventArgs e) {
AutoScaleDimensions = new SizeF(96, 96);
Expand Down Expand Up @@ -81,7 +88,7 @@ private void openButton_Click(object sender, EventArgs e) {
}
}
if (OnFileSelected != null) {
OnFileSelected.Invoke(this, EventArgs.Empty);
OnFileSelected?.Invoke(this, EventArgs.Empty);
}
}

Expand Down Expand Up @@ -156,7 +163,7 @@ private void filePath_Leave(object sender, EventArgs e) {
filePath.Text = filePath.Text;
currentPath = filePath.Text;
if (OnFileSelected != null) {
OnFileSelected.Invoke(this, EventArgs.Empty);
OnFileSelected?.Invoke(this, EventArgs.Empty);
}
} else {
filePath.Text = CurrentPath;
Expand Down
2 changes: 1 addition & 1 deletion FFXIVLooseTextureCompiler/FFXIVLooseTextureCompiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Version>2.0.1.5</Version>
<Version>2.0.1.6</Version>
<RunPostBuildEvent>Always</RunPostBuildEvent>
<Title>FFXIV Loose Texture Compiler</Title>
<Copyright>Lawener Industries</Copyright>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<Compile Update="Configuration Dialogues\CustomUnderlayForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="MainFormMoreSimplified.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="MainFormSimplified.cs">
<SubType>Form</SubType>
</Compile>
Expand Down
47 changes: 25 additions & 22 deletions FFXIVLooseTextureCompiler/MainForm.Designer.cs

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

Loading

0 comments on commit d34a839

Please sign in to comment.