Skip to content

Commit

Permalink
Add localization for comboboxes
Browse files Browse the repository at this point in the history
Enum values are now stored in the message localization
Widen the first 3 GUI tabs a little, don't need to truncate translations (as much?).
Closes #6
  • Loading branch information
kwsch committed Apr 11, 2024
1 parent 90a29f1 commit db9ea4a
Show file tree
Hide file tree
Showing 22 changed files with 296 additions and 165 deletions.
11 changes: 5 additions & 6 deletions ItemPrinterDeGacha.WinForms/Controls/AdjacentViewer.Designer.cs

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

3 changes: 2 additions & 1 deletion ItemPrinterDeGacha.WinForms/Controls/AdjacentViewer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ public partial class AdjacentViewer : UserControl
public AdjacentViewer()
{
InitializeComponent();
CB_Mode.Items.AddRange(Program.Localization.LocalizeEnum<PrintMode>());
CB_Mode.SelectedIndex = 2; // Ball
CB_Count.SelectedIndex = CB_Count.Items.Count - 1;
CB_Count.SelectedIndex = CB_Count.Items.Count - 1; // Default to 10
CB_Mode.SelectedIndexChanged += (_, _) => TryPrint();
CB_Count.SelectedIndexChanged += (_, _) => TryPrint();
}
Expand Down
43 changes: 22 additions & 21 deletions ItemPrinterDeGacha.WinForms/Controls/BallSearch.Designer.cs

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

0 comments on commit db9ea4a

Please sign in to comment.