mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
3d7bfcfe11
https://github.com/kwsch/PKHeX/issues/3758#issuecomment-1417458988 Removes the Level textbox behavior that resets the text to "1" when the textbox is empty. Can be left empty, and will be treated as 1 when values are stored. Adds an accessibility label for the "Make Shiny" button Adds an accessibility description and enter/space keypress to toggle similar to the click event. For determining if something is shiny, if the Shiny button is not tab-able, it is shiny. I wasn't able to get the Shiny star/square indicator to be able to be tabbed to for some reason.
47 lines
1.5 KiB
C#
47 lines
1.5 KiB
C#
namespace PKHeX.WinForms.Controls
|
|
{
|
|
partial class GenderToggle
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Component Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.SuspendLayout();
|
|
//
|
|
// GenderToggle
|
|
//
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
|
|
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
|
|
this.Name = "GenderToggle";
|
|
this.Size = new System.Drawing.Size(18, 18);
|
|
this.Click += new System.EventHandler(this.GenderToggle_Click);
|
|
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.GenderToggle_KeyDown);
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|