Skip to content

Commit

Permalink
Make aux window more usable
Browse files Browse the repository at this point in the history
  • Loading branch information
karashiiro committed Jun 11, 2022
1 parent cbc517b commit 7dedb7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions FFXIVOpcodeWizard.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/UserDictionary/Words/=FFXIV/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
5 changes: 4 additions & 1 deletion MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,14 @@ private void DetectionProgram_UpdateOne(DetectionProgram.State state)
this.resultsPanelViewModel.UpdateContents();
}

private static (string, bool) DetectionProgram_RequestParameter(Scanner scanner, int paramIndex)
private (string, bool) DetectionProgram_RequestParameter(Scanner scanner, int paramIndex)
{
var auxWindow = new AuxInputPrompt(scanner.ParameterPrompts[paramIndex]);
auxWindow.ShowDialog();
auxWindow.Owner = this;
auxWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;
auxWindow.Activate();
auxWindow.Focus();
return (auxWindow.ReturnValue, auxWindow.Skipping);
}

Expand Down

0 comments on commit 7dedb7a

Please sign in to comment.