mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-21 09:53:14 +00:00
8d8adde2b1
sealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealed
24 lines
No EOL
633 B
C#
24 lines
No EOL
633 B
C#
using System.Windows.Forms;
|
|
using PKHeX.Core;
|
|
using PKHeX.WinForms.Properties;
|
|
|
|
namespace PKHeX.WinForms.Controls
|
|
{
|
|
public sealed class SummaryPreviewer
|
|
{
|
|
private readonly ToolTip ShowSet = new ToolTip { InitialDelay = 200, IsBalloon = false };
|
|
|
|
public void Show(Control pb, PKM pk)
|
|
{
|
|
if (pk.Species == 0)
|
|
{
|
|
Clear();
|
|
return;
|
|
}
|
|
var text = ShowdownSet.GetLocalizedPreviewText(pk, Settings.Default.Language);
|
|
ShowSet.SetToolTip(pb, text);
|
|
}
|
|
|
|
public void Clear() => ShowSet.RemoveAll();
|
|
}
|
|
} |