Develop and Download Open Source Software

Browse Subversion Repository

Diff of /RsiEditor/RsiEditor.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1 by pex, Sun Jul 26 02:18:54 2009 UTC revision 3 by pex, Fri Jun 4 08:26:57 2010 UTC
# Line 5  using System.Data; Line 5  using System.Data;
5  using System.Drawing;  using System.Drawing;
6  using System.Text;  using System.Text;
7  using System.Windows.Forms;  using System.Windows.Forms;
8    using System.IO;
9    
10  namespace RipSync.RsiEditor  namespace RipSync.RsiEditor
11  {  {
12      public partial class frmRsiEditor : Form      public partial class frmRsiEditor : Form
13      {      {
14          public const String strVersion = "Version 0.7  2009/04/05版";          public const String strVersion = "Version 0.8  2010-06-06";
15          private const int iCheckModeString  = 1;    // 入力項目チェック文字モード          private const int iCheckModeString  = 1;    // 入力項目チェック文字モード
16          private const int iCheckModeNumeric = 5;    // 入力項目チェック数値モード          private const int iCheckModeNumeric = 5;    // 入力項目チェック数値モード
17          private Boolean flgNotSave; //変更後保存していない:true          private Boolean flgNotSave; //変更後保存していない:true
18          private RsiManager rsi = new RsiManager();          private RsiManager rsi = new RsiManager();
19            private Lang lang = new Lang();
20    
21          public frmRsiEditor()          public frmRsiEditor()
22          {          {
# Line 26  namespace RipSync.RsiEditor Line 28  namespace RipSync.RsiEditor
28          /// </summary>          /// </summary>
29          private void frmRsiEditor_Load(object sender, EventArgs e)          private void frmRsiEditor_Load(object sender, EventArgs e)
30          {          {
31                string[] flist;
32                int i;
33                string fid;
34                flist = lang.GetPofileList;
35                cboLangage.Items.Clear();
36                for (i = 0; i < flist.Length; i++ )
37                {
38                    fid = flist[i];
39                    fid = Path.GetFileNameWithoutExtension(@fid);
40                    cboLangage.Items.Add(fid);
41                }
42                    Managers.Configuration config = Managers.ApplicationManager.GetInstance().Configuration;
43                cboLangage.SelectedItem = config.Language;
44    
45              InitializeControls();              InitializeControls();
46    
47              //メッセージ表示領域              //メッセージ表示領域
48              txtMessage.Text = "「新規作成」または「読み込み」ボタンをクリックしてください。";              txtMessage.Text = __("「新規作成」または「読み込み」ボタンをクリックしてください。");
49    
50          }          }
51    
# Line 41  namespace RipSync.RsiEditor Line 57  namespace RipSync.RsiEditor
57              //初期化時のコントロール使用禁止設定              //初期化時のコントロール使用禁止設定
58              SetControlsEnable(false);              SetControlsEnable(false);
59    
60                //画面オブジェクトのTextプロパティセット
61                ApplyLanguage();
62    
63              //基本              //基本
64              txtRsiFileName.Text = "";              txtRsiFileName.Text = "";
65              txtRsiFileName.BackColor = SystemColors.Control;              txtRsiFileName.BackColor = SystemColors.Control;
# Line 143  namespace RipSync.RsiEditor Line 162  namespace RipSync.RsiEditor
162              flgNotSave = false;              flgNotSave = false;
163          }          }
164    
165            public void ApplyLanguage()
166            {
167                tabEyeAuto.Text = __(" 目自動 ");
168                btnSelectEyeClose.Text = __("選択");
169                label9.Text = __("閉目");
170                btnSelectEyeThin.Text = __("選択");
171                label8.Text = __("薄目");
172                btnSelectEyeNormal.Text = __("選択");
173                label7.Text = __("通常");
174                tabKihon.Text = __(" 基本設定 ");
175                btnSelectBase.Text = __("選択");
176                label6.Text = __("ピクセル");
177                label5.Text = __("ピクセル");
178                label4.Text = __("高さ(Y)");
179                label3.Text = __("幅  (X)");
180                label2.Text = __("ベース画像");
181                label1.Text = __("絵師-キャラ");
182                tabMouthAuto.Text = __(" 口自動 ");
183                btnSelectMouthXo.Text = __("選択");
184                label16.Text = __("ぉ");
185                btnSelectMouthAa.Text = __("選択");
186                label17.Text = __("ああ");
187                btnSelectMouthN.Text = __("選択");
188                label15.Text = __("ん");
189                btnSelectMouthO.Text = __("選択");
190                label13.Text = __("お");
191                btnSelectMouthE.Text = __("選択");
192                label14.Text = __("え");
193                btnSelectMouthU.Text = __("選択");
194                label10.Text = __("う");
195                btnSelectMouthI.Text = __("選択");
196                label11.Text = __("い");
197                btnSelectMouthA.Text = __("選択");
198                label12.Text = __("あ");
199                tabEyeManual.Text = __(" 目手動 ");
200                btnSelectEyeAdd6.Text = __("選択");
201                btnSelectEyeAdd5.Text = __("選択");
202                btnSelectEyeAdd4.Text = __("選択");
203                btnSelectEyeAdd3.Text = __("選択");
204                btnSelectEyeAdd2.Text = __("選択");
205                btnSelectEyeAdd1.Text = __("選択");
206                tabMouthManual.Text = __(" 口手動 ");
207                btnSelectMouthAdd6.Text = __("選択");
208                btnSelectMouthAdd5.Text = __("選択");
209                btnSelectMouthAdd4.Text = __("選択");
210                btnSelectMouthAdd3.Text = __("選択");
211                btnSelectMouthAdd2.Text = __("選択");
212                btnSelectMouthAdd1.Text = __("選択");
213                btnDelEyeAdd1.Text = __("削除");
214                btnDelEyeAdd2.Text = __("削除");
215                btnDelEyeAdd3.Text = __("削除");
216                btnDelEyeAdd4.Text = __("削除");
217                btnDelEyeAdd5.Text = __("削除");
218                btnDelEyeAdd6.Text = __("削除");
219                btnDelMouthAdd1.Text = __("削除");
220                btnDelMouthAdd2.Text = __("削除");
221                btnDelMouthAdd3.Text = __("削除");
222                btnDelMouthAdd4.Text = __("削除");
223                btnDelMouthAdd5.Text = __("削除");
224                btnDelMouthAdd6.Text = __("削除");
225                btnVirsion.Text = __("バージョン情報");
226                btnNewFile.Text = __("新規作成");
227                btnClose.Text = __("終了");
228                btnSaveAs.Text = __("別名保存");
229                btnSave.Text = __("保存");
230                btnRead.Text = __("読み込み");
231                openFileDialogRSI.Filter = __("RipSync定義(推奨)|*.RSI|みそもくそも全部|*.*");
232                saveFileDialog.Filter = __("RipSync定義(推奨)|*.RSI|みそもくそも全部|*.*");
233                openFileDialogGraphic.Filter = __("PNGファイル|*.png|みそもくそも全部|*.*");
234                label18.Text = __("RSIファイル");
235                label19.Text = __("見つかっちゃった。(笑)");
236                Text = __("RSI ファイルエディタ(仮称)");
237    
238                if (btnSave.Enabled == false)
239                {
240                    //起動直後に言語変更されたときはガイドメッセージも再表示する
241                    //使い慣れていないケースだろうから、最初に押すボタンくらいは教えないとね。
242                    txtMessage.Text = __("「新規作成」または「読み込み」ボタンをクリックしてください。");
243                }
244                else
245                {
246                    //入力途中なら該当タブのガイダンスメッセージ表示
247                    tabGroup_Click(null, null);
248                }
249    
250            }
251    
252            public string __(string s)
253            {
254                return lang.getMessage(s);
255            }
256    
257          /// <summary>          /// <summary>
258          /// 終了ボタン          /// 終了ボタン
259          /// </summary>          /// </summary>
# Line 160  namespace RipSync.RsiEditor Line 271  namespace RipSync.RsiEditor
271              //保存されてなかったら確認にゃ              //保存されてなかったら確認にゃ
272              if (flgNotSave)              if (flgNotSave)
273              {              {
274                  DialogResult dr = MessageBox.Show("設定が変更されていますよ?\n終了しちゃって良いんですか?", "質問",                  DialogResult dr = MessageBox.Show(__("設定が変更されていますよ?\n終了しちゃって良いんですか?"), __("質問"),
275                      MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2 );                      MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2 );
276                  if (dr != DialogResult.OK)                  if (dr != DialogResult.OK)
277                  {                  {
# Line 179  namespace RipSync.RsiEditor Line 290  namespace RipSync.RsiEditor
290              //保存されてなかったら確認にゃ              //保存されてなかったら確認にゃ
291              if (flgNotSave)              if (flgNotSave)
292              {              {
293                  DialogResult dr = MessageBox.Show("設定が変更されていますよ?\n消しちゃって良いんですか?", "質問",                  DialogResult dr = MessageBox.Show(__("設定が変更されていますよ?\n消しちゃって良いんですか?"), __("質問"),
294                      MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);                      MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);
295                  if (dr != DialogResult.OK)                  if (dr != DialogResult.OK)
296                  {                  {
# Line 203  namespace RipSync.RsiEditor Line 314  namespace RipSync.RsiEditor
314              //未保存フラグ設定にゃ              //未保存フラグ設定にゃ
315              flgNotSave = true;              flgNotSave = true;
316    
317                tabGroup.SelectedIndex = 0;
318                tabGroup_Click(sender, e);
319          }          }
320    
321          /// <summary>          /// <summary>
# Line 211  namespace RipSync.RsiEditor Line 324  namespace RipSync.RsiEditor
324          private void btnRead_Click(object sender, EventArgs e)          private void btnRead_Click(object sender, EventArgs e)
325          {          {
326              //注意メッセージにゃ              //注意メッセージにゃ
327              DialogResult dr = MessageBox.Show("当プログラムで保存したRSIファイル以外を選択すると、\n保存時にデータを破壊する恐れがあります。", "☆☆☆ 注 意 ☆☆☆",              DialogResult dr = MessageBox.Show(__("当プログラムで保存したRSIファイル以外を選択すると、\n保存時にデータを破壊する恐れがあります。"), __("☆☆☆ 注 意 ☆☆☆"),
328                  MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);                  MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
329              if (dr != DialogResult.OK)              if (dr != DialogResult.OK)
330              {              {
# Line 221  namespace RipSync.RsiEditor Line 334  namespace RipSync.RsiEditor
334              //保存されてなかったら確認にゃ              //保存されてなかったら確認にゃ
335              if (flgNotSave)              if (flgNotSave)
336              {              {
337                  dr = MessageBox.Show("設定が変更されていますよ?\n消しちゃって良いんですか?", "質問",                  dr = MessageBox.Show(__("設定が変更されていますよ?\n消しちゃって良いんですか?"), __("質問"),
338                      MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);                      MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);
339                  if (dr != DialogResult.OK)                  if (dr != DialogResult.OK)
340                  {                  {
# Line 250  namespace RipSync.RsiEditor Line 363  namespace RipSync.RsiEditor
363              //未保存フラグ初期化にゃ              //未保存フラグ初期化にゃ
364              flgNotSave = false;              flgNotSave = false;
365    
366                tabGroup.SelectedIndex = 0;
367                tabGroup_Click(sender, e);
368          }          }
369    
370          /// <summary>          /// <summary>
# Line 328  namespace RipSync.RsiEditor Line 443  namespace RipSync.RsiEditor
443                  txtEshi.Text = txtEshi.Text.Trim();                  txtEshi.Text = txtEshi.Text.Trim();
444    
445                  // ・絵師の必須チェック                  // ・絵師の必須チェック
446                  bErrFlg = formDataCheck_TextBox(txtEshi, "絵師・キャラ名", iCheckModeString, true) || bErrFlg;                  bErrFlg = formDataCheck_TextBox(txtEshi, __("絵師・キャラ名"), iCheckModeString, true) || bErrFlg;
447                  //・絵師-キャラの型式チェック                  //・絵師-キャラの型式チェック
448                  // ⇒半角ハイフンの有無確認                  // ⇒半角ハイフンの有無確認
449                  if (txtEshi.Text.IndexOf("-") <= 0)                  if (txtEshi.Text.IndexOf("-") <= 0)
# Line 337  namespace RipSync.RsiEditor Line 452  namespace RipSync.RsiEditor
452                      txtEshi.BackColor = Color.Red;                      txtEshi.BackColor = Color.Red;
453                      if (txtMessage.Text.Length == 0)                      if (txtMessage.Text.Length == 0)
454                      {                      {
455                          txtMessage.Text = "絵師-キャラ名の入力型式が合ってません";                          txtMessage.Text = __("絵師-キャラ名の入力型式が合ってません");
456                      }                      }
457                  }                  }
458    
459                  // ・ベース画像、サイズの必須チェック                  // ・ベース画像、サイズの必須チェック
460                  bErrFlg = formDataCheck_TextBox(txtBase, "ベース画像", iCheckModeString, true) || bErrFlg;                  bErrFlg = formDataCheck_TextBox(txtBase, __("ベース画像"), iCheckModeString, true) || bErrFlg;
461                  bErrFlg = formDataCheck_TextBox(txtBaseHeight, "ベース画像のサイズ", iCheckModeNumeric, true) || bErrFlg;                  bErrFlg = formDataCheck_TextBox(txtBaseHeight, __("ベース画像のサイズ"), iCheckModeNumeric, true) || bErrFlg;
462                  bErrFlg = formDataCheck_TextBox(txtBaseWidth, "ベース画像のサイズ", iCheckModeNumeric, true) || bErrFlg;                  bErrFlg = formDataCheck_TextBox(txtBaseWidth, __("ベース画像のサイズ"), iCheckModeNumeric, true) || bErrFlg;
463    
464                  // ・目自動、口自動の必須チェック                  // ・目自動、口自動の必須チェック
465                  bErrFlg = formDataCheck_TextBox(txtEyeNormal, "目自動・目通常", iCheckModeString, true) || bErrFlg;                  bErrFlg = formDataCheck_TextBox(txtEyeNormal, String.Concat(__("目自動"),", ",__("目通常")), iCheckModeString, true) || bErrFlg;
466                  bErrFlg = formDataCheck_TextBox(txtEyeThin, "目自動・薄目", iCheckModeString, true) || bErrFlg;                  bErrFlg = formDataCheck_TextBox(txtEyeThin, String.Concat(__("目自動"),", ",__("薄目")), iCheckModeString, true) || bErrFlg;
467                  bErrFlg = formDataCheck_TextBox(txtEyeClose, "目自動・閉目", iCheckModeString, true) || bErrFlg;                  bErrFlg = formDataCheck_TextBox(txtEyeClose, String.Concat(__("目自動"),", ",__("閉目")), iCheckModeString, true) || bErrFlg;
468                  bErrFlg = formDataCheck_TextBox(txtMouthA, "口自動・あ", iCheckModeString, true) || bErrFlg;                  bErrFlg = formDataCheck_TextBox(txtMouthA, String.Concat(__("口自動"),", ",__("あ")), iCheckModeString, true) || bErrFlg;
469                  bErrFlg = formDataCheck_TextBox(txtMouthI, "口自動・い", iCheckModeString, true) || bErrFlg;                  bErrFlg = formDataCheck_TextBox(txtMouthI, String.Concat(__("口自動"),", ",__("い")), iCheckModeString, true) || bErrFlg;
470                  bErrFlg = formDataCheck_TextBox(txtMouthU, "口自動・う", iCheckModeString, true) || bErrFlg;                  bErrFlg = formDataCheck_TextBox(txtMouthU, String.Concat(__("口自動"),", ",__("う")), iCheckModeString, true) || bErrFlg;
471                  bErrFlg = formDataCheck_TextBox(txtMouthE, "口自動・え", iCheckModeString, true) || bErrFlg;                  bErrFlg = formDataCheck_TextBox(txtMouthE, String.Concat(__("口自動"),", ",__("え")), iCheckModeString, true) || bErrFlg;
472                  bErrFlg = formDataCheck_TextBox(txtMouthO, "口自動・お", iCheckModeString, true) || bErrFlg;                  bErrFlg = formDataCheck_TextBox(txtMouthO, String.Concat(__("口自動"),", ",__("お")), iCheckModeString, true) || bErrFlg;
473                  bErrFlg = formDataCheck_TextBox(txtMouthN, "口自動・ん", iCheckModeString, true) || bErrFlg;                  bErrFlg = formDataCheck_TextBox(txtMouthN, String.Concat(__("口自動"),", ",__("ん")), iCheckModeString, true) || bErrFlg;
474                  bErrFlg = formDataCheck_TextBox(txtMouthAa, "口自動・ああ", iCheckModeString, true) || bErrFlg;                  bErrFlg = formDataCheck_TextBox(txtMouthAa, String.Concat(__("口自動"),", ",__("ああ")), iCheckModeString, true) || bErrFlg;
475                  bErrFlg = formDataCheck_TextBox(txtMouthXo, "口自動・ぉ", iCheckModeString, true) || bErrFlg;                  bErrFlg = formDataCheck_TextBox(txtMouthXo, String.Concat(__("口自動"),", ",__("ぉ")), iCheckModeString, true) || bErrFlg;
476                                    
477                  // ・目手動、口手動の片葉チェック                  // ・目手動、口手動の片葉チェック
478                  // ・目手動、口手動の重複チェック                  // ・目手動、口手動の重複チェック
# Line 373  namespace RipSync.RsiEditor Line 488  namespace RipSync.RsiEditor
488                  //else                  //else
489                  //{                  //{
490                  //    //エラーがあったらメッセージ表示にゃ                  //    //エラーがあったらメッセージ表示にゃ
491                  //    MessageBox.Show(strErrMsg, "入力エラー",                  //    MessageBox.Show(strErrMsg, __("入力エラー"),
492                  //        MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);                  //        MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
493                  //}                  //}
494                  return bRetFlg;                  return bRetFlg;
# Line 400  namespace RipSync.RsiEditor Line 515  namespace RipSync.RsiEditor
515                      {                      {
516                          if(txtMessage.Text.Length == 0 )                          if(txtMessage.Text.Length == 0 )
517                          {                          {
518                              txtMessage.Text = _strChkKmk + "を入力してください。";                              //txtMessage.Text = _strChkKmk + "を入力してください。";
519                                txtMessage.Text = String.Format(__("{0}を入力してください。"), _strChkKmk);
520                          }                          }
521                          bErrFlg = true;                          bErrFlg = true;
522                          break;                          break;
# Line 418  namespace RipSync.RsiEditor Line 534  namespace RipSync.RsiEditor
534    
535                              if(txtMessage.Text.Length == 0 )                              if(txtMessage.Text.Length == 0 )
536                              {                              {
537                                  txtMessage.Text = _strChkKmk + "には数値を入力してください。";                                  //txtMessage.Text = _strChkKmk + "には数値を入力してください。";
538                                    txtMessage.Text = String.Format(__("{0}には数値を入力してください。"), _strChkKmk);
539                              }                              }
540                              bErrFlg = true;                              bErrFlg = true;
541                          }                          }
# Line 469  namespace RipSync.RsiEditor Line 586  namespace RipSync.RsiEditor
586                  //保存するにゃ                  //保存するにゃ
587                  if (rsi.Save(txtRsiFileName.Text) == true)                  if (rsi.Save(txtRsiFileName.Text) == true)
588                  {                  {
589                      MessageBox.Show("保存しました。", "確認", MessageBoxButtons.OK, MessageBoxIcon.Information);                      MessageBox.Show(__("保存しました。"), __("確認"), MessageBoxButtons.OK, MessageBoxIcon.Information);
590                  }                  }
591                  else                  else
592                  {                  {
593                      MessageBox.Show("保存に失敗しました。", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);                      MessageBox.Show(__("保存に失敗しました。"), __("エラー"), MessageBoxButtons.OK, MessageBoxIcon.Error);
594                  }                  }
595    
596                  //未保存フラグ初期化にゃ                  //未保存フラグ初期化にゃ
# Line 507  namespace RipSync.RsiEditor Line 624  namespace RipSync.RsiEditor
624              //保存するにゃ              //保存するにゃ
625              if (rsi.Save(txtRsiFileName.Text) == true)              if (rsi.Save(txtRsiFileName.Text) == true)
626              {              {
627                  MessageBox.Show("保存しました。", "確認", MessageBoxButtons.OK, MessageBoxIcon.Information);                  MessageBox.Show(__("保存しました。"), __("確認"), MessageBoxButtons.OK, MessageBoxIcon.Information);
628              }              }
629              else              else
630              {              {
631                  MessageBox.Show("保存に失敗しました。", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);                  MessageBox.Show(__("保存に失敗しました。"), __("エラー"), MessageBoxButtons.OK, MessageBoxIcon.Error);
632              }              }
633    
634              //未保存フラグ初期化にゃ              //未保存フラグ初期化にゃ
# Line 626  namespace RipSync.RsiEditor Line 743  namespace RipSync.RsiEditor
743          /// </summary>          /// </summary>
744          private void btnVirsion_Click(object sender, EventArgs e)          private void btnVirsion_Click(object sender, EventArgs e)
745          {          {
746              MessageBox.Show(String.Concat(strVersion, "  "), " バージョン情報", MessageBoxButtons.OK, MessageBoxIcon.Information);              MessageBox.Show(String.Concat(strVersion, "    "), __("  バージョン情報"), MessageBoxButtons.OK, MessageBoxIcon.Information);
747          }          }
748    
749          #region "選択ボタンをクリックしたときの処理"          #region "選択ボタンをクリックしたときの処理"
# Line 635  namespace RipSync.RsiEditor Line 752  namespace RipSync.RsiEditor
752          /// </summary>          /// </summary>
753          private void btnSelectBase_Click(object sender, EventArgs e)          private void btnSelectBase_Click(object sender, EventArgs e)
754          {          {
755              if (btnSelectGraphic("ベース画像", btnSelectBase, txtBase))              if (btnSelectGraphic(__("ベース画像"), btnSelectBase, txtBase))
756              {              {
757                  //現在何も処理なし                  //現在何も処理なし
758              }              }
# Line 646  namespace RipSync.RsiEditor Line 763  namespace RipSync.RsiEditor
763          //-----------------------------------------------------------------          //-----------------------------------------------------------------
764          private void btnSelectEyeNormal_Click(object sender, EventArgs e)          private void btnSelectEyeNormal_Click(object sender, EventArgs e)
765          {          {
766              if (btnSelectGraphic("目通常", btnSelectEyeNormal, txtEyeNormal))              if (btnSelectGraphic(__("目通常"), btnSelectEyeNormal, txtEyeNormal))
767              {              {
768                  //現在何も処理なし                  //現在何も処理なし
769              }              }
# Line 657  namespace RipSync.RsiEditor Line 774  namespace RipSync.RsiEditor
774          /// </summary>          /// </summary>
775          private void btnSelectEyeThin_Click(object sender, EventArgs e)          private void btnSelectEyeThin_Click(object sender, EventArgs e)
776          {          {
777              if (btnSelectGraphic("薄目", btnSelectEyeThin, txtEyeThin))              if (btnSelectGraphic(__("薄目"), btnSelectEyeThin, txtEyeThin))
778              {              {
779                  //現在何も処理なし                  //現在何も処理なし
780              }              }
# Line 668  namespace RipSync.RsiEditor Line 785  namespace RipSync.RsiEditor
785          /// </summary>          /// </summary>
786          private void btnSelectEyeClose_Click(object sender, EventArgs e)          private void btnSelectEyeClose_Click(object sender, EventArgs e)
787          {          {
788              if (btnSelectGraphic("閉目", btnSelectEyeClose, txtEyeClose))              if (btnSelectGraphic(__("閉目"), btnSelectEyeClose, txtEyeClose))
789              {              {
790                  //現在何も処理なし                  //現在何も処理なし
791              }              }
# Line 679  namespace RipSync.RsiEditor Line 796  namespace RipSync.RsiEditor
796          //-----------------------------------------------------------------          //-----------------------------------------------------------------
797          private void btnSelectMouthA_Click(object sender, EventArgs e)          private void btnSelectMouthA_Click(object sender, EventArgs e)
798          {          {
799              if (btnSelectGraphic("口あ", btnSelectMouthA, txtMouthA))              if (btnSelectGraphic(__("口あ"), btnSelectMouthA, txtMouthA))
800              {              {
801                  //現在何も処理なし                  //現在何も処理なし
802              }              }
# Line 687  namespace RipSync.RsiEditor Line 804  namespace RipSync.RsiEditor
804    
805          private void btnSelectMouthI_Click(object sender, EventArgs e)          private void btnSelectMouthI_Click(object sender, EventArgs e)
806          {          {
807              if (btnSelectGraphic("口い", btnSelectMouthI, txtMouthI))              if (btnSelectGraphic(__("口い"), btnSelectMouthI, txtMouthI))
808              {              {
809                  //現在何も処理なし                  //現在何も処理なし
810              }              }
# Line 695  namespace RipSync.RsiEditor Line 812  namespace RipSync.RsiEditor
812    
813          private void btnSelectMouthU_Click(object sender, EventArgs e)          private void btnSelectMouthU_Click(object sender, EventArgs e)
814          {          {
815              if (btnSelectGraphic("口う", btnSelectMouthU, txtMouthU))              if (btnSelectGraphic(__("口う"), btnSelectMouthU, txtMouthU))
816              {              {
817                  //現在何も処理なし                  //現在何も処理なし
818              }              }
# Line 703  namespace RipSync.RsiEditor Line 820  namespace RipSync.RsiEditor
820    
821          private void btnSelectMouthE_Click(object sender, EventArgs e)          private void btnSelectMouthE_Click(object sender, EventArgs e)
822          {          {
823              if (btnSelectGraphic("口え", btnSelectMouthE, txtMouthE))              if (btnSelectGraphic(__("口え"), btnSelectMouthE, txtMouthE))
824              {              {
825                  //現在何も処理なし                  //現在何も処理なし
826              }              }
# Line 711  namespace RipSync.RsiEditor Line 828  namespace RipSync.RsiEditor
828    
829          private void btnSelectMouthO_Click(object sender, EventArgs e)          private void btnSelectMouthO_Click(object sender, EventArgs e)
830          {          {
831              if (btnSelectGraphic("口お", btnSelectMouthO, txtMouthO))              if (btnSelectGraphic(__("口お"), btnSelectMouthO, txtMouthO))
832              {              {
833                  //現在何も処理なし                  //現在何も処理なし
834              }              }
# Line 719  namespace RipSync.RsiEditor Line 836  namespace RipSync.RsiEditor
836    
837          private void btnSelectMouthN_Click(object sender, EventArgs e)          private void btnSelectMouthN_Click(object sender, EventArgs e)
838          {          {
839              if (btnSelectGraphic("口ん", btnSelectMouthN, txtMouthN))              if (btnSelectGraphic(__("口ん"), btnSelectMouthN, txtMouthN))
840              {              {
841                  //現在何も処理なし                  //現在何も処理なし
842              }              }
# Line 727  namespace RipSync.RsiEditor Line 844  namespace RipSync.RsiEditor
844    
845          private void btnSelectMouthAa_Click(object sender, EventArgs e)          private void btnSelectMouthAa_Click(object sender, EventArgs e)
846          {          {
847              if (btnSelectGraphic("口ああ", btnSelectMouthAa, txtMouthAa))              if (btnSelectGraphic(__("口ああ"), btnSelectMouthAa, txtMouthAa))
848              {              {
849                  //現在何も処理なし                  //現在何も処理なし
850              }              }
# Line 735  namespace RipSync.RsiEditor Line 852  namespace RipSync.RsiEditor
852    
853          private void btnSelectMouthXo_Click(object sender, EventArgs e)          private void btnSelectMouthXo_Click(object sender, EventArgs e)
854          {          {
855              if (btnSelectGraphic("口ぉ", btnSelectMouthXo, txtMouthXo))              if (btnSelectGraphic(__("口ぉ"), btnSelectMouthXo, txtMouthXo))
856              {              {
857                  //現在何も処理なし                  //現在何も処理なし
858              }              }
# Line 746  namespace RipSync.RsiEditor Line 863  namespace RipSync.RsiEditor
863          //-----------------------------------------------------------------          //-----------------------------------------------------------------
864          private void btnSelectEyeAdd1_Click(object sender, EventArgs e)          private void btnSelectEyeAdd1_Click(object sender, EventArgs e)
865          {          {
866              if (btnSelectGraphic("目手動1", btnSelectEyeAdd1, txtEyeAdd1))              if (btnSelectGraphic(String.Concat(__("目手動"), "1"), btnSelectEyeAdd1, txtEyeAdd1))
867              {              {
868                  //現在何も処理なし                  //現在何も処理なし
869              }              }
# Line 754  namespace RipSync.RsiEditor Line 871  namespace RipSync.RsiEditor
871    
872          private void btnSelectEyeAdd2_Click(object sender, EventArgs e)          private void btnSelectEyeAdd2_Click(object sender, EventArgs e)
873          {          {
874              if (btnSelectGraphic("目手動2", btnSelectEyeAdd2, txtEyeAdd2))              if (btnSelectGraphic(String.Concat(__("目手動"),"2"), btnSelectEyeAdd2, txtEyeAdd2))
875              {              {
876                  //現在何も処理なし                  //現在何も処理なし
877              }              }
# Line 762  namespace RipSync.RsiEditor Line 879  namespace RipSync.RsiEditor
879    
880          private void btnSelectEyeAdd3_Click(object sender, EventArgs e)          private void btnSelectEyeAdd3_Click(object sender, EventArgs e)
881          {          {
882              if (btnSelectGraphic("目手動3", btnSelectEyeAdd3, txtEyeAdd3))              if (btnSelectGraphic(String.Concat(__("目手動"),"3"), btnSelectEyeAdd3, txtEyeAdd3))
883              {              {
884                  //現在何も処理なし                  //現在何も処理なし
885              }              }
# Line 770  namespace RipSync.RsiEditor Line 887  namespace RipSync.RsiEditor
887    
888          private void btnSelectEyeAdd4_Click(object sender, EventArgs e)          private void btnSelectEyeAdd4_Click(object sender, EventArgs e)
889          {          {
890              if (btnSelectGraphic("目手動4", btnSelectEyeAdd4, txtEyeAdd4))              if (btnSelectGraphic(String.Concat(__("目手動"),"4"), btnSelectEyeAdd4, txtEyeAdd4))
891              {              {
892                  //現在何も処理なし                  //現在何も処理なし
893              }              }
# Line 778  namespace RipSync.RsiEditor Line 895  namespace RipSync.RsiEditor
895    
896          private void btnSelectEyeAdd5_Click(object sender, EventArgs e)          private void btnSelectEyeAdd5_Click(object sender, EventArgs e)
897          {          {
898              if (btnSelectGraphic("目手動5", btnSelectEyeAdd5, txtEyeAdd5))              if (btnSelectGraphic(String.Concat(__("目手動"),"5"), btnSelectEyeAdd5, txtEyeAdd5))
899              {              {
900                  //現在何も処理なし                  //現在何も処理なし
901              }              }
# Line 786  namespace RipSync.RsiEditor Line 903  namespace RipSync.RsiEditor
903    
904          private void btnSelectEyeAdd6_Click(object sender, EventArgs e)          private void btnSelectEyeAdd6_Click(object sender, EventArgs e)
905          {          {
906              if (btnSelectGraphic("目手動6", btnSelectEyeAdd6, txtEyeAdd6))              if (btnSelectGraphic(String.Concat(__("目手動"),"6"), btnSelectEyeAdd6, txtEyeAdd6))
907              {              {
908                  //現在何も処理なし                  //現在何も処理なし
909              }              }
# Line 794  namespace RipSync.RsiEditor Line 911  namespace RipSync.RsiEditor
911    
912          private void btnSelectMouthAdd1_Click(object sender, EventArgs e)          private void btnSelectMouthAdd1_Click(object sender, EventArgs e)
913          {          {
914              if (btnSelectGraphic("口手動1", btnSelectMouthAdd1, txtMouthAdd1))              if (btnSelectGraphic(String.Concat(__("口手動"),"1"), btnSelectMouthAdd1, txtMouthAdd1))
915              {              {
916                  //現在何も処理なし                  //現在何も処理なし
917              }              }
# Line 802  namespace RipSync.RsiEditor Line 919  namespace RipSync.RsiEditor
919    
920          private void btnSelectMouthAdd2_Click(object sender, EventArgs e)          private void btnSelectMouthAdd2_Click(object sender, EventArgs e)
921          {          {
922              if (btnSelectGraphic("口手動2", btnSelectMouthAdd2, txtMouthAdd2))              if (btnSelectGraphic(String.Concat(__("口手動"),"2"), btnSelectMouthAdd2, txtMouthAdd2))
923              {              {
924                  //現在何も処理なし                  //現在何も処理なし
925              }              }
# Line 810  namespace RipSync.RsiEditor Line 927  namespace RipSync.RsiEditor
927    
928          private void btnSelectMouthAdd3_Click(object sender, EventArgs e)          private void btnSelectMouthAdd3_Click(object sender, EventArgs e)
929          {          {
930              if (btnSelectGraphic("口手動3", btnSelectMouthAdd3, txtMouthAdd3))              if (btnSelectGraphic(String.Concat(__("口手動"),"3"), btnSelectMouthAdd3, txtMouthAdd3))
931              {              {
932                  //現在何も処理なし                  //現在何も処理なし
933              }              }
# Line 818  namespace RipSync.RsiEditor Line 935  namespace RipSync.RsiEditor
935    
936          private void btnSelectMouthAdd4_Click(object sender, EventArgs e)          private void btnSelectMouthAdd4_Click(object sender, EventArgs e)
937          {          {
938              if (btnSelectGraphic("口手動4", btnSelectMouthAdd4, txtMouthAdd4))              if (btnSelectGraphic(String.Concat(__("口手動"),"4"), btnSelectMouthAdd4, txtMouthAdd4))
939              {              {
940                  //現在何も処理なし                  //現在何も処理なし
941              }              }
# Line 826  namespace RipSync.RsiEditor Line 943  namespace RipSync.RsiEditor
943    
944          private void btnSelectMouthAdd5_Click(object sender, EventArgs e)          private void btnSelectMouthAdd5_Click(object sender, EventArgs e)
945          {          {
946              if (btnSelectGraphic("口手動5", btnSelectMouthAdd5, txtMouthAdd5))              if (btnSelectGraphic(String.Concat(__("口手動"),"5"), btnSelectMouthAdd5, txtMouthAdd5))
947              {              {
948                  //現在何も処理なし                  //現在何も処理なし
949              }              }
# Line 834  namespace RipSync.RsiEditor Line 951  namespace RipSync.RsiEditor
951    
952          private void btnSelectMouthAdd6_Click(object sender, EventArgs e)          private void btnSelectMouthAdd6_Click(object sender, EventArgs e)
953          {          {
954              if (btnSelectGraphic("口手動6", btnSelectMouthAdd6, txtMouthAdd6))              if (btnSelectGraphic(String.Concat(__("口手動"),"6"), btnSelectMouthAdd6, txtMouthAdd6))
955              {              {
956                  //現在何も処理なし                  //現在何も処理なし
957              }              }
# Line 924  namespace RipSync.RsiEditor Line 1041  namespace RipSync.RsiEditor
1041          {          {
1042              switch (tabGroup.SelectedIndex)              switch (tabGroup.SelectedIndex)
1043              {              {
1044                    case 0:
1045                        //メッセージ表示領域
1046                        txtMessage.Text = __("絵師-キャラクターの名前を入力し、ベース画像を選択後、画像サイズを入力してください。");
1047                        break;
1048                  case 1:                  case 1:
1049                        //メッセージ表示領域
1050                        txtMessage.Text = __("目の画像を選択してください。");
1051                      break;                      break;
1052                  case 2:                  case 2:
1053                        //メッセージ表示領域
1054                        txtMessage.Text = __("口の画像を選択してください。");
1055                      break;                      break;
1056                  case 3:                  case 3:
                     break;  
1057                  case 4:                  case 4:
1058                        //メッセージ表示領域
1059                        txtMessage.Text = __("形状の名称を入力し画像を選択してください。(最大6個)");
1060                      break;                      break;
1061              }              }
1062          }          }
1063    
1064            private void cboLangage_SelectedIndexChanged(object sender, EventArgs e)
1065            {
1066                //config内容を変更。終了時にconfigファイルに書き込み
1067                Managers.Configuration config = Managers.ApplicationManager.GetInstance().Configuration;
1068                config.Language = cboLangage.SelectedItem.ToString();
1069    
1070                //poファイルを読み込み、画面のラベルを再編集
1071                lang.SelectIndex = cboLangage.SelectedIndex;
1072                lang.Load();
1073                ApplyLanguage();
1074            }
1075            private void loadPofile()
1076            {
1077            }
1078      }      }
1079  }  }

Legend:
Removed from v.1  
changed lines
  Added in v.3

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26