Skip to content

Commit

Permalink
Update v3.0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunaretic committed Jun 28, 2024
2 parents b986c6d + 526e80e commit 45e6e77
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
4 changes: 2 additions & 2 deletions FFXIV_TexTools/FFXIV_TexTools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<AssemblyTitle>FFXIV_TexTools</AssemblyTitle>
<Product>FFXIV_TexTools</Product>
<Copyright>Copyright © 2024</Copyright>
<AssemblyVersion>3.0.0.8</AssemblyVersion>
<FileVersion>3.0.0.8</FileVersion>
<AssemblyVersion>3.0.0.9</AssemblyVersion>
<FileVersion>3.0.0.9</FileVersion>
<LangVersion>9.0</LangVersion>
<OutputPath>bin\$(Configuration)\</OutputPath>
<UseWPF>true</UseWPF>
Expand Down
19 changes: 17 additions & 2 deletions FFXIV_TexTools/Views/Metadata/RacialSettingsEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ public RacialSettingsEditor()
femaleButton.SetValue(Grid.ColumnProperty, clanId);
FemaleGrid.Children.Add(femaleButton);
}
Closing += RacialSettingsEditor_Closing;
}

private void RacialSettingsEditor_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
if(Owner != null)
{
Owner.Activate();
}
}

private Button MakeButton(XivSubRace race, XivGender gender)
Expand All @@ -73,13 +82,19 @@ private Button MakeButton(XivSubRace race, XivGender gender)
return btn;
}

private void Btn_Click(object sender, RoutedEventArgs e)
private async void Btn_Click(object sender, RoutedEventArgs e)
{
var context = ((ButtonContext)((Button)e.Source).DataContext);
var wind = new RaceGenderScalingEditor(context.Race, context.Gender) { Owner = this };
wind.WindowStartupLocation = WindowStartupLocation.CenterOwner;

_ = wind.Init();
try
{
await wind.Init();
} catch(Exception ex)
{
ViewHelpers.ShowError("Racial Settings Error", "An error occurred in the racial settings menu: \n\n" + ex.Message);
}
}

private void DoneButton_Click(object sender, RoutedEventArgs e)
Expand Down

0 comments on commit 45e6e77

Please sign in to comment.