mirror of
https://github.com/kwsch/NHSE.git
synced 2026-04-01 14:34:51 -05:00
jp/en/zh -- only english has been translated (duh) keep in mind this translates the text in the program, not the internal flag names. not sure if other languages need to be supported; from PKHeX's experience, only spanish is updated (besides jp/zh), as most users speak english or are fine using the program in english. pls localize villager names and item names for non-english :P -- preferrably automated from raw game dumps
31 lines
821 B
C#
31 lines
821 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
using NHSE.Core;
|
|
|
|
namespace NHSE.WinForms
|
|
{
|
|
public partial class SingleObjectEditor<T> : Form where T : class
|
|
{
|
|
public SingleObjectEditor(T obj, PropertySort sort)
|
|
{
|
|
InitializeComponent();
|
|
this.TranslateInterface(GameInfo.CurrentLanguage);
|
|
DialogResult = DialogResult.Cancel;
|
|
PG_Item.PropertySort = sort;
|
|
PG_Item.SelectedObject = obj;
|
|
}
|
|
|
|
private void B_Cancel_Click(object sender, EventArgs e) => Close();
|
|
|
|
private void B_Save_Click(object sender, EventArgs e)
|
|
{
|
|
DialogResult = DialogResult.OK;
|
|
Close();
|
|
}
|
|
|
|
private void PG_Item_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
|
|
{
|
|
}
|
|
}
|
|
}
|