From f954827a142db33df87cba410293c143f8d0ba28 Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Wed, 11 Nov 2015 21:37:37 -0600 Subject: [PATCH] Convert to VC2013 project, begin translating --- Backup/LilithPort.sln | 20 + LilithPort.sln | 8 +- LilithPort/LilithPort.vcproj | 2 +- LilithPort/LilithPort.vcxproj | 158 ++ LilithPort/LilithPort.vcxproj.filters | 72 + LilithPort/MainForm.cpp | 358 +-- LilithPort/MainForm.h | 1742 ++++++------ LilithPort/MainForm.resX | 20 +- LilithPort/OptionForm.cpp | 14 +- LilithPort/OptionForm.h | 3674 +++++++++++++------------ LilithPort/OptionForm.resx | 12 +- LilithPort/StartupForm.h | 10 +- LilithPort/app.ico | Bin 0 -> 894 bytes LilithPort/resource.h | 2 +- LilithPort/stdafx.cpp | 40 +- 15 files changed, 3206 insertions(+), 2926 deletions(-) create mode 100644 Backup/LilithPort.sln create mode 100644 LilithPort/LilithPort.vcxproj create mode 100644 LilithPort/LilithPort.vcxproj.filters create mode 100644 LilithPort/app.ico diff --git a/Backup/LilithPort.sln b/Backup/LilithPort.sln new file mode 100644 index 0000000..3175918 --- /dev/null +++ b/Backup/LilithPort.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual C++ Express 2008 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LilithPort", "LilithPort\LilithPort.vcproj", "{9057AFAF-D9A2-4F09-8D35-C39084BA2A87}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9057AFAF-D9A2-4F09-8D35-C39084BA2A87}.Debug|Win32.ActiveCfg = Debug|Win32 + {9057AFAF-D9A2-4F09-8D35-C39084BA2A87}.Debug|Win32.Build.0 = Debug|Win32 + {9057AFAF-D9A2-4F09-8D35-C39084BA2A87}.Release|Win32.ActiveCfg = Release|Win32 + {9057AFAF-D9A2-4F09-8D35-C39084BA2A87}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/LilithPort.sln b/LilithPort.sln index 3175918..92116a1 100644 --- a/LilithPort.sln +++ b/LilithPort.sln @@ -1,7 +1,9 @@  -Microsoft Visual Studio Solution File, Format Version 10.00 -# Visual C++ Express 2008 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LilithPort", "LilithPort\LilithPort.vcproj", "{9057AFAF-D9A2-4F09-8D35-C39084BA2A87}" +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.40629.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LilithPort", "LilithPort\LilithPort.vcxproj", "{9057AFAF-D9A2-4F09-8D35-C39084BA2A87}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/LilithPort/LilithPort.vcproj b/LilithPort/LilithPort.vcproj index 7140dce..64d0b51 100644 --- a/LilithPort/LilithPort.vcproj +++ b/LilithPort/LilithPort.vcproj @@ -1,4 +1,4 @@ - + + + + + Debug + Win32 + + + Release + Win32 + + + + {9057AFAF-D9A2-4F09-8D35-C39084BA2A87} + LilithPort + ManagedCProj + + + + Application + v120 + Unicode + Pure + true + + + Application + v120 + Unicode + Pure + + + + + + + + + + + + + <_ProjectFileVersion>12.0.30501.0 + + + $(SolutionDir)$(Configuration)\ + $(Configuration)\ + true + + + $(SolutionDir)$(Configuration)\ + $(Configuration)\ + false + + + + Disabled + WIN32;_DEBUG;%(PreprocessorDefinitions) + MultiThreadedDebugDLL + Use + Level3 + ProgramDatabase + + + + false + true + true + Windows + main + MachineX86 + + + + + WIN32;NDEBUG;%(PreprocessorDefinitions) + MultiThreadedDLL + Use + Level3 + ProgramDatabase + + + + false + true + Windows + main + MachineX86 + + + + + true + true + + + true + true + + + true + true + + + true + true + + + true + true + + + + + + + + + Create + Create + + + + + CppForm + + + CppForm + + + + CppForm + + + + + + + + + + + + MainForm.h + Designer + + + OptionForm.h + Designer + + + StartupForm.h + + + + + + \ No newline at end of file diff --git a/LilithPort/LilithPort.vcxproj.filters b/LilithPort/LilithPort.vcxproj.filters new file mode 100644 index 0000000..0c6c145 --- /dev/null +++ b/LilithPort/LilithPort.vcxproj.filters @@ -0,0 +1,72 @@ + + + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Resource Files + + + + + Resource Files + + + + + Resource Files + + + + + Resource Files + + + Resource Files + + + Resource Files + + + \ No newline at end of file diff --git a/LilithPort/MainForm.cpp b/LilithPort/MainForm.cpp index f4973cf..628184d 100644 --- a/LilithPort/MainForm.cpp +++ b/LilithPort/MainForm.cpp @@ -30,12 +30,12 @@ void MainForm::Begin() if(ServerName[0] == '#'){ ServerMode = SM_NORA; ListView = LV_BLIND; - me->NAME = gcnew String("◆"); + me->NAME = gcnew String(L"◆"); me->COMMENT = String::Empty; MemberList->Add(me); MemberListBackUp->Add(bk); - listBoxMember->Items->Add(gcnew String("野試合会場")); + listBoxMember->Items->Add(gcnew String(L"Server host")); } else{ MemberList->Add(me); @@ -68,12 +68,12 @@ void MainForm::Begin() UDP = nullptr; if(e->ErrorCode == WSAEADDRINUSE){ - WriteMessage("開放ポートが他のアプリケーションで使用されています。\n", ErrorMessageColor); + WriteMessage(L"ERROR: This port is already in use by another program.\n", ErrorMessageColor); } else{ - WriteMessage(String::Format("UDPの初期化に失敗しました。({0})\n", e->ErrorCode), ErrorMessageColor); + WriteMessage(String::Format(L"ERROR: UDP initialiation failed. ({0})\n", e->ErrorCode), ErrorMessageColor); if(MTINFO.DEBUG){ - WriteMessage(e->ToString() + "\n", DebugMessageColor); + WriteMessage(e->ToString() + L"\n", DebugMessageColor); } } } @@ -99,9 +99,9 @@ void MainForm::Begin() SonarThread = gcnew Thread(gcnew ThreadStart(this, &MainForm::RunSonar)); SonarThread->Start(); - this->Text += String::Format(" [{0}] [Server Port:{1}]", ServerName, MTOPTION.OPEN_PORT); + this->Text += String::Format(L" [{0}] [Server Port:{1}]", ServerName, MTOPTION.OPEN_PORT); WriteTime(0, SystemMessageColor); - WriteMessage("サーバの準備が完了しました。\n[サーバー告知]-------------------\n", SystemMessageColor); + WriteMessage(L"Server initialization complete.\n[MOTD]-------------------\n", SystemMessageColor); // Welcomeメッセージの表示 int len = _tcslen(MTOPTION.WELCOME); @@ -115,7 +115,7 @@ void MainForm::Begin() richTextBoxLog->SelectionBackColor = NoticeBackColor; richTextBoxLog->AppendText(gcnew String(MTOPTION.WELCOME)+"\n"); - WriteMessage("-------------------------------\n", SystemMessageColor); + WriteMessage(L"-------------------------------\n", SystemMessageColor); // IPアドレスを取得して表示 if(MTOPTION.GET_IP_ENABLE){ @@ -145,14 +145,14 @@ void MainForm::Begin() if(host[0]->Length == 5){ try{ if(MTINFO.DEBUG){ - WriteMessage("アドレスを変換します(MTSP)\n", DebugMessageColor); + WriteMessage(L"Converting MTSP address...\n", DebugMessageColor); } address = MTDecryptionIP(host[0]); } catch(Exception^ e){ if(MTINFO.DEBUG){ - WriteMessage("アドレス変換(MTSP)失敗\n", ErrorMessageColor); - WriteMessage(e->ToString() + "\n", DebugMessageColor); + WriteMessage(L"MTSP address conversion failed!\n", ErrorMessageColor); + WriteMessage(e->ToString() + L"\n", DebugMessageColor); } } } @@ -161,14 +161,14 @@ void MainForm::Begin() if(address == 0){ try{ if(MTINFO.DEBUG){ - WriteMessage("アドレスを変換します(ASCII)\n", DebugMessageColor); + WriteMessage(L"Converting ASCII address...\n", DebugMessageColor); } address = DecryptionIP(host[0], true); } catch(Exception^ e){ if(MTINFO.DEBUG){ - WriteMessage("アドレス変換(ASCII)失敗\n", ErrorMessageColor); - WriteMessage(e->ToString() + "\n", DebugMessageColor); + WriteMessage(L"ASCII address conversion failed!\n", ErrorMessageColor); + WriteMessage(e->ToString() + L"\n", DebugMessageColor); } } } @@ -177,14 +177,14 @@ void MainForm::Begin() if(address == 0){ try{ if(MTINFO.DEBUG){ - WriteMessage("DNSを取得します\n", DebugMessageColor); + WriteMessage(L"Resolving DNS...\n", DebugMessageColor); } address = Dns::GetHostEntry(host[0])->AddressList[0]->Address; } catch(Exception^ e){ if(MTINFO.DEBUG){ - WriteMessage("DNS取得失敗\n", ErrorMessageColor); - WriteMessage(e->ToString() + "\n", DebugMessageColor); + WriteMessage(L"DNS resolution failed!\n", ErrorMessageColor); + WriteMessage(e->ToString() + L"\n", DebugMessageColor); } address = 0; } @@ -194,14 +194,14 @@ void MainForm::Begin() if(address == 0){ try{ if(MTINFO.DEBUG){ - WriteMessage("アドレスを変換します(Unicode)\n", DebugMessageColor); + WriteMessage(L"Converting Unicode address...\n", DebugMessageColor); } address = DecryptionIP(host[0], false); } catch(Exception^ e){ if(MTINFO.DEBUG){ - WriteMessage("アドレス変換(Unicode)失敗\n", ErrorMessageColor); - WriteMessage(e->ToString() + "\n", DebugMessageColor); + WriteMessage(L"Unicode address conversion failed!\n", ErrorMessageColor); + WriteMessage(e->ToString() + L"\n", DebugMessageColor); } } } @@ -216,8 +216,8 @@ void MainForm::Begin() } catch(Exception^ e){ if(MTINFO.DEBUG){ - WriteMessage("ローカル接続失敗\n", ErrorMessageColor); - WriteMessage(e->ToString() + "\n", DebugMessageColor); + WriteMessage(L"ローカル接続失敗\n", ErrorMessageColor); + WriteMessage(e->ToString() + L"\n", DebugMessageColor); } address = 0; } @@ -226,13 +226,13 @@ void MainForm::Begin() if(address == 0){ - WriteMessage("接続先が見つかりませんでした。\n", ErrorMessageColor); + WriteMessage(L"ERROR: Could not find destination address.\n", ErrorMessageColor); throw gcnew SocketException; } IPEndPoint^ ep = gcnew IPEndPoint(address, port); if(MTINFO.DEBUG){ - WriteMessage(String::Format("Connect > {0}\n", ep), DebugMessageColor); + WriteMessage(String::Format(L"Connect > {0}\n", ep), DebugMessageColor); } PacketPacker^ pp = gcnew PacketPacker; @@ -299,16 +299,16 @@ void MainForm::Begin() MTINFO.VERSION_CHECKED = false; } if(MTINFO.VERSION_CHECKED) { - WriteMessage(String::Format("サーバのバージョン : v{0}\n", ServerVersion), SystemMessageColor); + WriteMessage(String::Format(L"Server version: v{0}\n", ServerVersion), SystemMessageColor); if(LP_VERSION > ServerVersion){ - WriteMessage("サーバのバージョンが古いため、一部機能の互換性が取れない場合があります。\n", ErrorMessageColor); + WriteMessage(L"Your client is newer than the server. Some functions may be incompatible.\n", ErrorMessageColor); } else if(LP_VERSION < ServerVersion) { - WriteMessage("LilithPortのバージョンがサーバより低いため、一部機能の互換性が取れない場合があります。\n最新バージョンを確認してください。\n", ErrorMessageColor); + WriteMessage(L"LilithPortのバージョンがサーバより低いため、一部機能の互換性が取れない場合があります。\n最新バージョンを確認してください。\n", ErrorMessageColor); } } else{ - WriteMessage("MTSP, または古いバージョンのLilithPortサーバです。一部機能の互換性が取れない場合があります。\n", ErrorMessageColor); + WriteMessage(L"MTSP, または古いバージョンのLilithPortサーバです。一部機能の互換性が取れない場合があります。\n", ErrorMessageColor); } // 蔵受信開始 @@ -316,28 +316,28 @@ void MainForm::Begin() if(MTOPTION.CONNECTION_TYPE == CT_HOST){ - this->Text += String::Format(" [{0}] [Host Port:{1}]", ServerName, MTOPTION.OPEN_PORT); + this->Text += String::Format(L" [{0}] [Host Port:{1}]", ServerName, MTOPTION.OPEN_PORT); } else{ - this->Text += String::Format(" [{0}] [Client]", ServerName); + this->Text += String::Format(L" [{0}] [Client]", ServerName); } - WriteMessage(String::Format("{0}に接続しました。 (ID = {1})\n", ServerName, me->ID), SystemMessageColor); + WriteMessage(String::Format(L"{0}に接続しました。 (ID = {1})\n", ServerName, me->ID), SystemMessageColor); if(ServerName->Length > 0){ if(ServerName[0] == '+'){ ServerMode = SM_MIX; - WriteMessage("混在サーバです。\n", SystemMessageColor); + WriteMessage(L"混在サーバです。\n", SystemMessageColor); } if(ServerName[0] == '@'){ ServerMode = SM_MATCH; - WriteMessage("チャット禁止サーバです。\n", SystemMessageColor); + WriteMessage(L"チャット禁止サーバです。\n", SystemMessageColor); } else if(ServerName[0] == '#'){ ServerMode = SM_NORA; - WriteMessage("おおっと! 野良サーバ\n", SystemMessageColor); + WriteMessage(L"おおっと! 野良サーバ\n", SystemMessageColor); ListView = LV_BLIND; - listBoxMember->Items[0] = gcnew String("野試合会場"); + listBoxMember->Items[0] = gcnew String(L"野試合会場"); } } @@ -362,30 +362,30 @@ void MainForm::Begin() if(e->ErrorCode == 0){ if(me->ID == 0xFFFF){ - WriteMessage(String::Format("{0}は満室です。\n", ServerName), ErrorMessageColor); + WriteMessage(String::Format(L"{0}は満室です。\n", ServerName), ErrorMessageColor); } else if(me->ID == 0xFFFE){ - WriteMessage("本体のバージョンが違います。\n", ErrorMessageColor); + WriteMessage(L"本体のバージョンが違います。\n", ErrorMessageColor); } else if(me->ID > MAX_ID){ - WriteMessage(String::Format("{0}はこれ以上IDを発行できません。\n", ServerName), ErrorMessageColor); + WriteMessage(String::Format(L"{0}はこれ以上IDを発行できません。\n", ServerName), ErrorMessageColor); } else if(address != 0){ - WriteMessage("サーバに接続できませんでした。\n回線が混雑している可能性があります。\n", ErrorMessageColor); + WriteMessage(L"サーバに接続できませんでした。\n回線が混雑している可能性があります。\n", ErrorMessageColor); } } else{ if(e->ErrorCode == WSAECONNRESET){ - WriteMessage("サーバのポートが開いていません。\n", ErrorMessageColor); + WriteMessage(L"サーバのポートが開いていません。\n", ErrorMessageColor); } else if(e->ErrorCode == WSAETIMEDOUT){ - WriteMessage("サーバからの応答がありませんでした。\nサーバが稼働していないか、アドレスが間違っている可能性があります。\n", ErrorMessageColor); + WriteMessage(L"サーバからの応答がありませんでした。\nサーバが稼働していないか、アドレスが間違っている可能性があります。\n", ErrorMessageColor); } else if(e->ErrorCode != WSAHOST_NOT_FOUND){ - WriteMessage(String::Format("ソケットエラー > {0}\n", e->ErrorCode), ErrorMessageColor); + WriteMessage(String::Format(L"ソケットエラー > {0}\n", e->ErrorCode), ErrorMessageColor); } if(MTINFO.DEBUG){ - WriteMessage(e->ToString() + "\n", DebugMessageColor); + WriteMessage(e->ToString() + L"\n", DebugMessageColor); } } } @@ -440,7 +440,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(rcv->Length > MAX_PACKET){ if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("Large Packet > {0} from {1}\n", rcv[0], ep->ToString()), DebugMessageColor); + form->WriteMessage(String::Format(L"Large Packet > {0} from {1}\n", rcv[0], ep->ToString()), DebugMessageColor); } return; } @@ -453,7 +453,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) case PH_PONG: if(rcv->Length == 1 && Ping > 0){ - form->WriteMessage(String::Format("Ping : {0}ms\n", timeGetTime() - Ping), SystemMessageColor); + form->WriteMessage(String::Format(L"Ping : {0}ms\n", timeGetTime() - Ping), SystemMessageColor); Ping = 0; } break; @@ -497,7 +497,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(IDCounter <= MAX_ID){ if(IDCounter == MAX_ID){ - form->WriteMessage("発行IDが限界に達しました。\n", ErrorMessageColor); + form->WriteMessage(L"発行IDが限界に達しました。\n", ErrorMessageColor); } // メンバー登録 @@ -518,7 +518,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) mi->COMMENT = Encoding::Unicode->GetString(pd->Divide(i)); if(ListView == LV_BLIND){ - mi->NAME = gcnew String("◆"); + mi->NAME = gcnew String(L"◆"); mi->COMMENT = String::Empty; } @@ -535,7 +535,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) form->WriteComment(mi->NAME, mi->TYPE, mi->COMMENT); if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("Connect from {0}:{1}\n", ep->Address, ep->Port), DebugMessageColor); + form->WriteMessage(String::Format(L"Connect from {0}:{1}\n", ep->Address, ep->Port), DebugMessageColor); } } else if(IDCounter > MAX_ID){ @@ -643,9 +643,9 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) case PH_NOTICE: if(UDP != nullptr){ - form->WriteMessage("[サーバー告知]-------------------\n", SystemMessageColor); + form->WriteMessage(L"[サーバー告知]-------------------\n", SystemMessageColor); form->WriteNotice(Encoding::Unicode->GetString(rcv, 2, (rcv->Length)-2)); - form->WriteMessage("-------------------------------\n", SystemMessageColor); + form->WriteMessage(L"-------------------------------\n", SystemMessageColor); } break; @@ -702,14 +702,14 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) } if(MTINFO.DEBUG){ if(id == 0){ - form->WriteMessage("メンバーリストの要求を返信しました。\n", DebugMessageColor); + form->WriteMessage(L"メンバーリストの要求を返信しました。\n", DebugMessageColor); } } if(id > 0 && i >= MemberList->Count){ // サーバでもクラでも見えない状態 if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("Unknown({0})の検索\n", id), ErrorMessageColor); + form->WriteMessage(String::Format(L"Unknown({0})の検索\n", id), ErrorMessageColor); } // バックアップ検索 @@ -718,16 +718,16 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) // Unknown通知 array^ send = gcnew array(3){ PH_LOST, 0xFF, 0xFF }; UDP->BeginSend(send, send->Length, MemberListBackUp[id]->IP_EP, gcnew AsyncCallback(SendPackets), UDP); - form->WriteMessage(String::Format("Unknown({0})に通知をしました。\n", id), SystemMessageColor); + form->WriteMessage(String::Format(L"Unknown({0})に通知をしました。\n", id), SystemMessageColor); } catch(Exception^){ if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("Unknown({0})への通知に失敗しました。\n", id), ErrorMessageColor); + form->WriteMessage(String::Format(L"Unknown({0})への通知に失敗しました。\n", id), ErrorMessageColor); } } }else{ // バックアップリスト以上のID - form->WriteMessage(String::Format("履歴に存在しない接続IDです。\nサーバをシャットダウン後、しばらくしてからサーバを起動してください。\n", id), ErrorMessageColor); + form->WriteMessage(String::Format(L"履歴に存在しない接続IDです。\nサーバをシャットダウン後、しばらくしてからサーバを起動してください。\n", id), ErrorMessageColor); } } } @@ -819,7 +819,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(member > 0){ if(ListView != LV_BLIND){ form->WriteTime(0, SystemMessageColor); - form->WriteMessage(MemberList[member]->NAME + "が退室しました。\n", SystemMessageColor); + form->WriteMessage(MemberList[member]->NAME + L"が退室しました。\n", SystemMessageColor); } // 観戦中止 @@ -835,11 +835,11 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) else{ if(id == 0){ form->WriteTime(0, SystemMessageColor); - form->WriteMessage(ServerName + "がシャットダウンしました。\n", SystemMessageColor); + form->WriteMessage(ServerName + L"がシャットダウンしました。\n", SystemMessageColor); MemberList[0]->STATE = 0xFF; } else if(id == 0xFFFF){ - form->WriteMessage(ServerName + "には登録されていません。\n時間を置いて再接続してみてください。\n", ErrorMessageColor); + form->WriteMessage(ServerName + L"には登録されていません。\n時間を置いて再接続してみてください。\n", ErrorMessageColor); MemberList[0]->STATE = 0xFF; } else{ @@ -847,21 +847,21 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(id == MemberList[i]->ID){ if(i == 0){ form->WriteTime(0, SystemMessageColor); - form->WriteMessage("サーバとの接続が切断されました。\n", ErrorMessageColor); + form->WriteMessage(L"サーバとの接続が切断されました。\n", ErrorMessageColor); MemberList[0]->STATE = 0xFF; } else{ if(ListView != LV_BLIND){ if(rcv[0] == PH_QUIT){ form->WriteTime(0, SystemMessageColor); - form->WriteMessage(MemberList[i]->NAME + "が退室しました。\n", SystemMessageColor); + form->WriteMessage(MemberList[i]->NAME + L"が退室しました。\n", SystemMessageColor); } else{ form->WriteTime(0, SystemMessageColor); - form->WriteMessage(MemberList[i]->NAME + "の回線が途切れました。\n", ErrorMessageColor); + form->WriteMessage(MemberList[i]->NAME + L"の回線が途切れました。\n", ErrorMessageColor); if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("ID = {0}\n", MemberList[i]->ID), DebugMessageColor); - form->WriteMessage(String::Format("IP_EP = {0}\n", MemberList[i]->IP_EP), DebugMessageColor); + form->WriteMessage(String::Format(L"ID = {0}\n", MemberList[i]->ID), DebugMessageColor); + form->WriteMessage(String::Format(L"IP_EP = {0}\n", MemberList[i]->IP_EP), DebugMessageColor); } } } @@ -902,7 +902,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(MemberList[i]->STATE == MS_SEEK && rcv[3] != MS_SEEK){ form->WriteTime(0, SystemMessageColor); - form->WriteMessage(String::Format("{0}が対戦募集を締め切りました。\n", MemberList[i]->NAME), SystemMessageColor); + form->WriteMessage(String::Format(L"{0}が対戦募集を締め切りました。\n", MemberList[i]->NAME), SystemMessageColor); } MemberList[i]->STATE = rcv[3]; @@ -910,7 +910,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(MemberList[i]->STATE == MS_SEEK){ form->WriteTime(0, SystemMessageColor); - form->WriteMessage(String::Format("{0}が対戦募集状態になりました。\n", MemberList[i]->NAME), SystemMessageColor); + form->WriteMessage(String::Format(L"{0}が対戦募集状態になりました。\n", MemberList[i]->NAME), SystemMessageColor); if(MTOPTION.SEEK_SOUND_ENABLE){ try{ Media::SoundPlayer^ wav = gcnew Media::SoundPlayer(gcnew String(MTOPTION.SEEK_SOUND)); @@ -986,7 +986,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(rcv[3] == 0xFF){ // そんな人いなかった form->WriteTime(0, SystemMessageColor); - form->WriteMessage(MemberList[i]->NAME + "は既にいませんでした。\n", SystemMessageColor); + form->WriteMessage(MemberList[i]->NAME + L"は既にいませんでした。\n", SystemMessageColor); if(MTOPTION.CONNECTION_TYPE == CT_SERVER){ // 全員に通達 @@ -1013,12 +1013,12 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) } else if(MemberList[i]->STATE != rcv[3]){ if(MTINFO.DEBUG){ - form->WriteMessage(String::Format(MemberList[i]->NAME + " > state:{0}\n", rcv[3]), DebugMessageColor); + form->WriteMessage(String::Format(MemberList[i]->NAME + L" > state:{0}\n", rcv[3]), DebugMessageColor); } form->WriteTime(0, SystemMessageColor); - form->WriteMessage(MemberList[i]->NAME + "の状態を更新しました。\n", SystemMessageColor); + form->WriteMessage(MemberList[i]->NAME + L"の状態を更新しました。\n", SystemMessageColor); if(MTOPTION.CONNECTION_TYPE != CT_SERVER && MemberList[i]->ID == 0){ - form->WriteMessage("サーバーとの通信が途切れた可能性があります。再接続をしてみてください。\n", ErrorMessageColor); + form->WriteMessage(L"サーバーとの通信が途切れた可能性があります。再接続をしてみてください。\n", ErrorMessageColor); } MemberList[i]->STATE = rcv[3]; form->listBoxMember->Refresh(); @@ -1053,7 +1053,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) form->listBoxMember->Items[i] = MemberList[i]->COMMENT; } else{ - form->listBoxMember->Items[i] = gcnew String("◆"); + form->listBoxMember->Items[i] = gcnew String(L"◆"); } } } @@ -1074,7 +1074,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) form->richTextBoxLog->SelectionColor = TalkMessageColor; form->richTextBoxLog->SelectionBackColor = NoticeBackColor; - form->richTextBoxLog->AppendText(Byte(rcv[1]).ToString() + "\n"); + form->richTextBoxLog->AppendText(Byte(rcv[1]).ToString() + L"\n"); form->richTextBoxLog->SelectionStart = form->richTextBoxLog->Text->Length; if(!MTOPTION.LOG_LOCK) { @@ -1116,7 +1116,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) String^ exe = gcnew String(MTOPTION.GAME_EXE); FileVersionInfo^ info = FileVersionInfo::GetVersionInfo(exe); - if(info->FileDescription != "2D格闘ツクール2nd." && info->FileDescription != "2D格闘ツクール95"){ + if(info->FileDescription != L"2D格闘ツクール2nd." && info->FileDescription != L"2D格闘ツクール95"){ throw gcnew Exception; } /* @@ -1131,7 +1131,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if((INT32)(Path::GetFileNameWithoutExtension(exe)->GetHashCode()) != BitConverter::ToInt32(rcv, 3)){ send[1] = 0xFE; } - if(info->FileDescription == "2D格闘ツクール2nd."){ + if(info->FileDescription == L"2D格闘ツクール2nd."){ MTINFO.KGT2K = true; } else{ @@ -1141,8 +1141,8 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) } catch(Exception^){ send[1] = 0xFF; - form->WriteMessage("格闘ツクールの実行ファイルではありません。\n", ErrorMessageColor); - form->WriteMessage("オプションで実行ファイルのパスを設定してください。\n", ErrorMessageColor); + form->WriteMessage(L"格闘ツクールの実行ファイルではありません。\n", ErrorMessageColor); + form->WriteMessage(L"オプションで実行ファイルのパスを設定してください。\n", ErrorMessageColor); } UDP->BeginSend(send, send->Length, ep, gcnew AsyncCallback(SendPackets), UDP); @@ -1159,7 +1159,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) } if(i >= MemberList->Count){ - form->WriteMessage("リストにいない人物からの対戦要求がありました。\n", ErrorMessageColor); + form->WriteMessage(L"リストにいない人物からの対戦要求がありました。\n", ErrorMessageColor); MemberList[0]->STATE = MS_FREE; if(MTOPTION.CONNECTION_TYPE != CT_SERVER){ @@ -1207,7 +1207,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(ListView != LV_BLIND){ form->WriteTime(0, SystemMessageColor); form->WriteMessage(MemberList[i]->NAME, NameColor[MemberList[i]->TYPE]); - form->WriteMessage("から対戦の申し込みです。\n", SystemMessageColor); + form->WriteMessage(L"から対戦の申し込みです。\n", SystemMessageColor); } } finally{ @@ -1220,25 +1220,25 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if((rcv[1] != MS_FREE)&&(rcv[1] != MS_SEEK)){ switch(rcv[1]){ case MS_REST: - form->WriteMessage("挑戦相手は休憩中です。\n", SystemMessageColor); + form->WriteMessage(L"挑戦相手は休憩中です。\n", SystemMessageColor); break; case MS_VS: - form->WriteMessage("挑戦相手は対戦中です。\n", SystemMessageColor); + form->WriteMessage(L"挑戦相手は対戦中です。\n", SystemMessageColor); break; case MS_WATCH: case MS_COUCH: - form->WriteMessage("挑戦相手は観戦中です。\n", SystemMessageColor); + form->WriteMessage(L"挑戦相手は観戦中です。\n", SystemMessageColor); break; case MS_SEEK: break; case MS_READY: - form->WriteMessage("挑戦相手は他の人と対戦準備中です。\n", SystemMessageColor); + form->WriteMessage(L"挑戦相手は他の人と対戦準備中です。\n", SystemMessageColor); break; case 0xFE: - form->WriteMessage("挑戦相手とプレイするゲームが違います。\n", ErrorMessageColor); + form->WriteMessage(L"挑戦相手とプレイするゲームが違います。\n", ErrorMessageColor); break; default: - form->WriteMessage("挑戦相手が対戦出来る状態ではありません。\n", SystemMessageColor); + form->WriteMessage(L"挑戦相手が対戦出来る状態ではありません。\n", SystemMessageColor); break; } @@ -1331,7 +1331,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) // 対戦開始 form->WriteTime(0, SystemMessageColor); - form->WriteMessage(String::Format("対戦を開始します。(delay:{0})\n", NetVS->DELAY), SystemMessageColor); + form->WriteMessage(String::Format(L"対戦を開始します。(delay:{0})\n", NetVS->DELAY), SystemMessageColor); // 音でお知らせ if(MTOPTION.VS_SOUND_ENABLE){ @@ -1381,7 +1381,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) } catch(Exception^){ MTINFO.TEAM_ROUND_HP = false; - form->WriteMessage("対戦相手が古いバージョンのLilithPortか、MTSPです。\n", ErrorMessageColor); + form->WriteMessage(L"対戦相手が古いバージョンのLilithPortか、MTSPです。\n", ErrorMessageColor); } @@ -1394,7 +1394,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) case PH_VS_END: if(NetVS != nullptr){ - form->WriteMessage("対戦終了のお知らせです。\n", SystemMessageColor); + form->WriteMessage(L"対戦終了のお知らせです。\n", SystemMessageColor); NetVS->SEQUENCE = VS_END; form->QuitGame(); @@ -1411,7 +1411,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) } if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("Frame > {0}\n", NetVS->L_FRAME), DebugMessageColor); + form->WriteMessage(String::Format(L"Frame > {0}\n", NetVS->L_FRAME), DebugMessageColor); } } break; @@ -1424,14 +1424,14 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) try{ if(NetVS->R_FRAME > f + NetVS->DELAY){ if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("無効なパケット(遅延) > {0} / {1}\n", f, NetVS->R_FRAME), DebugMessageColor); + form->WriteMessage(String::Format(L"無効なパケット(遅延) > {0} / {1}\n", f, NetVS->R_FRAME), DebugMessageColor); } break; } else if(f > NetVS->R_FRAME + NetVS->DELAY){ // まずこない if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("無効なパケット(先行) > {0} / {1}\n", f, NetVS->R_FRAME), DebugMessageColor); + form->WriteMessage(String::Format(L"無効なパケット(先行) > {0} / {1}\n", f, NetVS->R_FRAME), DebugMessageColor); } break; } @@ -1469,7 +1469,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) try{ if(f >= NetVS->L_FRAME + NetVS->DELAY){ if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("無効なパケット(先行要求) > {0} / {1}\n", f, NetVS->L_FRAME), DebugMessageColor); + form->WriteMessage(String::Format(L"無効なパケット(先行要求) > {0} / {1}\n", f, NetVS->L_FRAME), DebugMessageColor); } UDP->BeginSend(send, send->Length, ep, gcnew AsyncCallback(SendPackets), UDP); break; @@ -1477,13 +1477,13 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) else if(NetVS->L_FRAME > f + NetVS->DELAY*2){ // 既にデータがないのでこれがくるとゲームにならない if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("無効なパケット(遅延要求) > {0} / {1}\n", f, NetVS->L_FRAME), DebugMessageColor); + form->WriteMessage(String::Format(L"無効なパケット(遅延要求) > {0} / {1}\n", f, NetVS->L_FRAME), DebugMessageColor); } break; } if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("要求パケット > {0} / {1}\n", f, NetVS->L_FRAME), DebugMessageColor); + form->WriteMessage(String::Format(L"要求パケット > {0} / {1}\n", f, NetVS->L_FRAME), DebugMessageColor); } Array::Copy(BitConverter::GetBytes(NetVS->LOCAL[f % NetVS->LOCAL->Length]), 0, send, 5, 2); @@ -1508,7 +1508,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) NetVS->REMOTE[NetVS->R_READ] = w; if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("返信パケット > {0} : {1}\n", f, w), DebugMessageColor); + form->WriteMessage(String::Format(L"返信パケット > {0} : {1}\n", f, w), DebugMessageColor); } if(NetVS->WAITING == 2){ @@ -1594,10 +1594,10 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(i >= MemberList->Count){ // 外来客 - form->WriteMessage("観戦者が来ました。\n", SystemMessageColor); + form->WriteMessage(L"観戦者が来ました。\n", SystemMessageColor); } else{ - form->WriteMessage(MemberList[i]->NAME + "が観戦に来ました。\n", SystemMessageColor); + form->WriteMessage(MemberList[i]->NAME + L"が観戦に来ました。\n", SystemMessageColor); } } finally{ @@ -1611,19 +1611,19 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(rcv[1] > 0){ switch(rcv[1]){ case 1: - form->WriteMessage("観戦が許可されていませんでした。\n", SystemMessageColor); + form->WriteMessage(L"観戦が許可されていませんでした。\n", SystemMessageColor); break; case 2: - form->WriteMessage("観戦席は満席でした。\n", SystemMessageColor); + form->WriteMessage(L"観戦席は満席でした。\n", SystemMessageColor); break; case 3: - form->WriteMessage("観戦に間に合いませんでした。\n", SystemMessageColor); + form->WriteMessage(L"観戦に間に合いませんでした。\n", SystemMessageColor); break; case 4: - form->WriteMessage("既に相手がこちらを観戦対象にしていました。\n", SystemMessageColor); + form->WriteMessage(L"既に相手がこちらを観戦対象にしていました。\n", SystemMessageColor); break; } @@ -1682,7 +1682,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) GameThread = gcnew Thread(gcnew ParameterizedThreadStart(form, &MainForm::RunGame)); GameThread->Start((UINT)RT_WATCH); - form->WriteMessage("観戦を開始します。\n", SystemMessageColor); + form->WriteMessage(L"観戦を開始します。\n", SystemMessageColor); } } break; @@ -1692,7 +1692,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) UINT32 f = BitConverter::ToUInt32(rcv, 1); if(f > WatchFrame + WatchHistory->Length - 20){ - form->WriteMessage("同期が取れなくなったため観戦を中止します。\n", ErrorMessageColor); + form->WriteMessage(L"同期が取れなくなったため観戦を中止します。\n", ErrorMessageColor); form->QuitWatch(true); } @@ -1700,7 +1700,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) try{ if(WatchFrame > f + 20){ if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("観戦パケット(遅延) > {0} / {1}\n", f, WatchFrame), DebugMessageColor); + form->WriteMessage(String::Format(L"観戦パケット(遅延) > {0} / {1}\n", f, WatchFrame), DebugMessageColor); } break; } @@ -1729,7 +1729,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(id == MemberList[0]->ID){ // 閉幕のお知らせ - form->WriteMessage("観戦終了のお知らせです。\n", SystemMessageColor); + form->WriteMessage(L"観戦終了のお知らせです。\n", SystemMessageColor); form->QuitWatch(false); } else{ @@ -1737,7 +1737,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) Monitor::Enter(InputHistory); try{ if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("観戦中止 > {0}\n", id), DebugMessageColor); + form->WriteMessage(String::Format(L"観戦中止 > {0}\n", id), DebugMessageColor); } for(i = 0; i < SpectatorList->Count; i++){ @@ -1778,13 +1778,13 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) form->richTextBoxLog->AppendText(MemberList[i]->NAME); form->richTextBoxLog->SelectionColor = SecretColor; - form->richTextBoxLog->AppendText("に "); + form->richTextBoxLog->AppendText(L"に "); form->richTextBoxLog->SelectionColor = TalkMessageColor; form->richTextBoxLog->AppendText(UInt32(time).ToString()); form->richTextBoxLog->SelectionColor = SecretColor; - form->richTextBoxLog->AppendText("の ダメージ!!\n"); + form->richTextBoxLog->AppendText(L"の ダメージ!!\n"); form->richTextBoxLog->SelectionStart = form->richTextBoxLog->Text->Length; if(!MTOPTION.LOG_LOCK) { @@ -1814,7 +1814,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) default: if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("Unknown Packet > {0} from {1}\n", rcv[0], ep->ToString()), DebugMessageColor); + form->WriteMessage(String::Format(L"Unknown Packet > {0} from {1}\n", rcv[0], ep->ToString()), DebugMessageColor); } break; } @@ -1823,7 +1823,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) // UDP接続終了 if(UDP != nullptr){ UDP = nullptr; - form->WriteMessage("回線を切断しました。\n", SystemMessageColor); + form->WriteMessage(L"回線を切断しました。\n", SystemMessageColor); } } catch(SocketException^ e){ @@ -1832,18 +1832,18 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(e->ErrorCode == WSAECONNRESET){ // パケットが弾かれた if(MTINFO.DEBUG){ - form->WriteMessage("ERROR > WSAECONNRESET\n", DebugMessageColor); + form->WriteMessage(L"ERROR > WSAECONNRESET\n", DebugMessageColor); } } else{ - form->WriteMessage(String::Format("ソケットエラー({0})\n", e->ErrorCode), ErrorMessageColor); + form->WriteMessage(String::Format(L"ソケットエラー({0})\n", e->ErrorCode), ErrorMessageColor); if(MTINFO.DEBUG){ - form->WriteMessage(e->ToString() + "\n", DebugMessageColor); + form->WriteMessage(e->ToString() + L"\n", DebugMessageColor); } } } catch(Exception^ e){ - form->WriteMessage(e->ToString() + "\n", ErrorMessageColor); + form->WriteMessage(e->ToString() + L"\n", ErrorMessageColor); } } // IP取得タイムアウト用タイマー @@ -1864,15 +1864,15 @@ void MainForm::TimerGetIP() } } catch(Exception^ e) { - WriteMessage(e->ToString() + "\n", ErrorMessageColor); + WriteMessage(e->ToString() + L"\n", ErrorMessageColor); } } // HP持ち越しタイマー void MainForm::SetTeamHP(){ if(MTINFO.DEBUG){ - WriteMessage("EVENT:SET_TEAM_HP\n", DebugMessageColor); - WriteMessage(String::Format("PROCESS:{0}, WINNER:P{1}, HP:{2}\n", (UINT)MTINFO.PROCESS, ((UINT)MTINFO.WINNER)+1, MTINFO.P_HP), DebugMessageColor); + WriteMessage(L"EVENT:SET_TEAM_HP\n", DebugMessageColor); + WriteMessage(String::Format(L"PROCESS:{0}, WINNER:P{1}, HP:{2}\n", (UINT)MTINFO.PROCESS, ((UINT)MTINFO.WINNER)+1, MTINFO.P_HP), DebugMessageColor); } Thread::Sleep(1000); try { @@ -1884,7 +1884,7 @@ void MainForm::SetTeamHP(){ } catch(Exception^ e){ if(MTINFO.DEBUG){ - WriteMessage(String::Format("{0}\n", e->ToString()), DebugMessageColor); + WriteMessage(String::Format(L"{0}\n", e->ToString()), DebugMessageColor); } } } @@ -1939,7 +1939,7 @@ void MainForm::RunSonar() if((timeGetTime() - MemberList[i]->RESPONSE) > 100*1000){ WriteTime(0, SystemMessageColor); - WriteMessage(MemberList[i]->NAME + "との通信が途絶えました。\n", ErrorMessageColor); + WriteMessage(MemberList[i]->NAME + L"との通信が途絶えました。\n", ErrorMessageColor); send[0] = PH_LOST; @@ -1963,7 +1963,7 @@ void MainForm::RunSonar() } else{ if((timeGetTime() - MemberList[1]->RESPONSE) > 100*1000){ - WriteMessage("サーバとの通信が途絶えました。\n", ErrorMessageColor); + WriteMessage(L"サーバとの通信が途絶えました。\n", ErrorMessageColor); leave = true; Ranging = false; } @@ -1973,7 +1973,7 @@ void MainForm::RunSonar() } } catch(Exception^){ - WriteMessage("ソナースレッドでエラーが発生しました。\n", ErrorMessageColor); + WriteMessage(L"ソナースレッドでエラーが発生しました。\n", ErrorMessageColor); } finally{ Monitor::Exit(MemberList); @@ -2138,20 +2138,20 @@ void MainForm::RunGame(Object^ obj) if(run_type == RT_VS){ if(ListView == LV_BLIND){ - file = String::Format("vs_{0}.mtr", DateTime::Now.ToString("yyMMdd-HHmmss")); + file = String::Format(L"vs_{0}.mtr", DateTime::Now.ToString("yyMMdd-HHmmss")); } else{ - file = String::Format("{0}_vs_{1}_{2}.mtr", gcnew String(MTINFO.P1_NAME), gcnew String(MTINFO.P2_NAME), DateTime::Now.ToString("yyMMdd-HHmmss")); + file = String::Format(L"{0}_vs_{1}_{2}.mtr", gcnew String(MTINFO.P1_NAME), gcnew String(MTINFO.P2_NAME), DateTime::Now.ToString("yyMMdd-HHmmss")); } } else{ - file = String::Format("{0}_{1}.mtr", gcnew String(MTINFO.P1_NAME), DateTime::Now.ToString("yyMMdd-HHmmss")); + file = String::Format(L"{0}_{1}.mtr", gcnew String(MTINFO.P1_NAME), DateTime::Now.ToString("yyMMdd-HHmmss")); } path += "\\" + file; bw = gcnew BinaryWriter(File::Create(path)); - WriteMessage(String::Format("\"{0}\"にリプレイファイルを作成します。\n", file), SystemMessageColor); + WriteMessage(String::Format(L"\"{0}\"にリプレイファイルを作成します。\n", file), SystemMessageColor); // ヘッダ bw->Write(header); @@ -2194,7 +2194,7 @@ void MainForm::RunGame(Object^ obj) } } catch(IOException^ e){ - WriteMessage(String::Format("ERROR > リプレイファイル\n{0}\n", e->ToString()), ErrorMessageColor); + WriteMessage(String::Format(L"ERROR > リプレイファイル\n{0}\n", e->ToString()), ErrorMessageColor); if(bw != nullptr){ bw->Close(); @@ -2226,7 +2226,7 @@ void MainForm::RunGame(Object^ obj) // 対戦中通知 if(run_type != RT_WATCH){ if(MemberList[0]->STATE == MS_SEEK && run_type == RT_FREE){ - //WriteMessage("aiueo\n", ErrorMessageColor); + //WriteMessage(L"aiueo\n", ErrorMessageColor); }else{ ChangeState((BYTE)MS_VS); } @@ -2242,25 +2242,25 @@ void MainForm::RunGame(Object^ obj) if(CreateProcess(MTOPTION.GAME_EXE, NULL, NULL, NULL, false, DEBUG_PROCESS, NULL, wdir, &si, &pi)){ if(run_type == RT_PLAYBACK){ - WriteMessage(String::Format("\"{0}\"を再生します。\n", Path::GetFileName(ReplayFilePath)), SystemMessageColor); + WriteMessage(String::Format(L"\"{0}\"を再生します。\n", Path::GetFileName(ReplayFilePath)), SystemMessageColor); } else{ - WriteMessage(String::Format("\"{0}\"を起動します。\n", Path::GetFileNameWithoutExtension(gcnew String(MTOPTION.GAME_EXE))), SystemMessageColor); + WriteMessage(String::Format(L"\"{0}\"を起動します。\n", Path::GetFileNameWithoutExtension(gcnew String(MTOPTION.GAME_EXE))), SystemMessageColor); } } else{ - WriteMessage(String::Format("ERROR({0}) > \"{1}\"が開けませんでした。\n", GetLastError(), gcnew String(MTOPTION.GAME_EXE)), ErrorMessageColor); + WriteMessage(String::Format(L"ERROR({0}) > \"{1}\"が開けませんでした。\n", GetLastError(), gcnew String(MTOPTION.GAME_EXE)), ErrorMessageColor); return; } if(MTOPTION.SHOW_GAME_OPTION){ - WriteMessage(String::Format("[対戦設定]----------------------\n" - "最大ステージ数: {0} / " - "ランダムステージ: {1} / " - "ラウンド数: {2} / " - "ゲームタイマー: {3}\n" - "ラウンドHP持ち越し: {4}\n" - "-------------------------------\n" + WriteMessage(String::Format(L"[対戦設定]----------------------\n" + L"最大ステージ数: {0} / " + L"ランダムステージ: {1} / " + L"ラウンド数: {2} / " + L"ゲームタイマー: {3}\n" + L"ラウンドHP持ち越し: {4}\n" + L"-------------------------------\n" , MTINFO.MAX_STAGE, MTINFO.STAGE_SELECT, MTINFO.ROUND, MTINFO.TIMER, MTINFO.TEAM_ROUND_HP == true ? "ON" : "OFF"), SystemMessageColor); } @@ -2280,7 +2280,7 @@ void MainForm::RunGame(Object^ obj) if (e_code == ERROR_NOACCESS) { if(MTINFO.DEBUG){ - WriteMessage(String::Format("ERROR_NOACCESS > {0} : {1}\n", e_code, e_address), DebugMessageColor); + WriteMessage(String::Format(L"ERROR_NOACCESS > {0} : {1}\n", e_code, e_address), DebugMessageColor); } state = DBG_EXCEPTION_NOT_HANDLED; } @@ -2290,7 +2290,7 @@ void MainForm::RunGame(Object^ obj) ULONG_PTR info1 = de.u.Exception.ExceptionRecord.ExceptionInformation[1]; if(MTINFO.DEBUG){ - WriteMessage(String::Format("EXCEPTION_ACCESS_VIOLATION > {0:X8}@{1:X8} : {2}@{3:X8}\n", e_code, e_address, info0 ? "read" : "write", info1), DebugMessageColor); + WriteMessage(String::Format(L"EXCEPTION_ACCESS_VIOLATION > {0:X8}@{1:X8} : {2}@{3:X8}\n", e_code, e_address, info0 ? "read" : "write", info1), DebugMessageColor); } state = DBG_EXCEPTION_NOT_HANDLED; @@ -2309,7 +2309,7 @@ void MainForm::RunGame(Object^ obj) SetThreadContext(thread, &c); if(MTINFO.DEBUG){ - WriteMessage("EVENT:VS_ROUND\n", DebugMessageColor); + WriteMessage(L"EVENT:VS_ROUND\n", DebugMessageColor); } if(vs_end){ @@ -2428,7 +2428,7 @@ void MainForm::RunGame(Object^ obj) GetThreadContext(thread, &c); if(MTINFO.DEBUG){ - WriteMessage("EVENT:STAGE_SELECT\n", DebugMessageColor); + WriteMessage(L"EVENT:STAGE_SELECT\n", DebugMessageColor); } if(MTINFO.RAND_SEARCH){ @@ -2510,7 +2510,7 @@ void MainForm::RunGame(Object^ obj) c.Eax = WatchHistory[WatchFrame % WatchHistory->Length]; if(c.Eax == 0xFFFF && WaitingWatch == 2){ - WriteMessage("タイムアウトしたため観戦を終了します。\n", ErrorMessageColor); + WriteMessage(L"タイムアウトしたため観戦を終了します。\n", ErrorMessageColor); QuitWatch(true); } } @@ -2607,7 +2607,7 @@ void MainForm::RunGame(Object^ obj) c.Eax = WatchHistory[WatchFrame % WatchHistory->Length]; if(c.Eax == 0xFFFF && WaitingWatch == 2){ - WriteMessage("タイムアウトしたため観戦を終了します。\n", ErrorMessageColor); + WriteMessage(L"タイムアウトしたため観戦を終了します。\n", ErrorMessageColor); QuitWatch(true); } } @@ -2729,7 +2729,7 @@ void MainForm::RunGame(Object^ obj) int nValue = e_address; char pszText[32]; _itoa_s(nValue, pszText, 32 * sizeof(char), 16); - WriteMessage(String::Format("EVENT:{0}\n", gcnew String(pszText)), DebugMessageColor); + WriteMessage(String::Format(L"EVENT:{0}\n", gcnew String(pszText)), DebugMessageColor); } */ // 解析用 @@ -2738,7 +2738,7 @@ void MainForm::RunGame(Object^ obj) int nValue = e_address; char pszText[32]; _itoa_s(nValue, pszText, 32 * sizeof(char), 16); - WriteMessage(String::Format("EVENT:{0}\n", gcnew String(pszText)), DebugMessageColor); + WriteMessage(String::Format(L"EVENT:{0}\n", gcnew String(pszText)), DebugMessageColor); } } @@ -2747,14 +2747,14 @@ void MainForm::RunGame(Object^ obj) case CREATE_THREAD_DEBUG_EVENT: if(MTINFO.DEBUG){ - WriteMessage("CREATE_THREAD_DEBUG_EVENT\n", DebugMessageColor); + WriteMessage(L"CREATE_THREAD_DEBUG_EVENT\n", DebugMessageColor); } break; case CREATE_PROCESS_DEBUG_EVENT: if(MTINFO.DEBUG){ - WriteMessage("CREATE_PROCESS_DEBUG_EVENT\n", DebugMessageColor); - WriteMessage(String::Format("{0}\n", MTINFO.SEED), DebugMessageColor); + WriteMessage(L"CREATE_PROCESS_DEBUG_EVENT\n", DebugMessageColor); + WriteMessage(String::Format(L"{0}\n", MTINFO.SEED), DebugMessageColor); } thread = de.u.CreateProcessInfo.hThread; @@ -2860,13 +2860,13 @@ void MainForm::RunGame(Object^ obj) case EXIT_THREAD_DEBUG_EVENT: if(MTINFO.DEBUG){ - WriteMessage("EXIT_THREAD_DEBUG_EVENT\n", DebugMessageColor); + WriteMessage(L"EXIT_THREAD_DEBUG_EVENT\n", DebugMessageColor); } break; case EXIT_PROCESS_DEBUG_EVENT: if(MTINFO.DEBUG){ - WriteMessage("EXIT_PROCESS_DEBUG_EVENT\n", DebugMessageColor); + WriteMessage(L"EXIT_PROCESS_DEBUG_EVENT\n", DebugMessageColor); } break; @@ -2878,13 +2878,13 @@ void MainForm::RunGame(Object^ obj) ReadProcessMemory(pi.hProcess, de.u.LoadDll.lpImageName, &data, sizeof(LONG_PTR), NULL); ReadProcessMemory(pi.hProcess, (LPVOID)data, buf, sizeof(TCHAR)*MAX_PATH, NULL); - WriteMessage(String::Format("LOAD_DLL_DEBUG_EVENT > \"{0}\"\n", gcnew String(buf)), DebugMessageColor); + WriteMessage(String::Format(L"LOAD_DLL_DEBUG_EVENT > \"{0}\"\n", gcnew String(buf)), DebugMessageColor); } break; case UNLOAD_DLL_DEBUG_EVENT: if(MTINFO.DEBUG){ - WriteMessage("UNLOAD_DLL_DEBUG_EVENT\n", DebugMessageColor); + WriteMessage(L"UNLOAD_DLL_DEBUG_EVENT\n", DebugMessageColor); } break; @@ -2898,14 +2898,14 @@ void MainForm::RunGame(Object^ obj) str[size-2] = '\0'; } - WriteMessage(String::Format("OUTPUT_DEBUG_STRING_EVENT > {0}\n", gcnew String(str)), DebugMessageColor); + WriteMessage(String::Format(L"OUTPUT_DEBUG_STRING_EVENT > {0}\n", gcnew String(str)), DebugMessageColor); free(str); } break; case RIP_EVENT: if(MTINFO.DEBUG){ - WriteMessage("RIP_EVENT\n", DebugMessageColor); + WriteMessage(L"RIP_EVENT\n", DebugMessageColor); } break; } @@ -2915,7 +2915,7 @@ void MainForm::RunGame(Object^ obj) } } catch(Exception^ e){ - WriteMessage(e->ToString() + "\n", ErrorMessageColor); + WriteMessage(e->ToString() + L"\n", ErrorMessageColor); } finally{ AllowWatch = false; @@ -2941,10 +2941,10 @@ void MainForm::RunGame(Object^ obj) if(MTINFO.INITIALIZED){ if(WaitingWatch > 0){ WaitingWatch = 0; - WriteMessage("観戦を中止します。\n", SystemMessageColor); + WriteMessage(L"観戦を中止します。\n", SystemMessageColor); } else if(_tcslen(MTINFO.ORIGINAL_TITLE) > 0){ - WriteMessage(String::Format("\"{0}\"を終了しました。\n", gcnew String(MTINFO.ORIGINAL_TITLE)), SystemMessageColor); + WriteMessage(String::Format(L"\"{0}\"を終了しました。\n", gcnew String(MTINFO.ORIGINAL_TITLE)), SystemMessageColor); if(run_type == RT_VS){ if(MTINFO.CONTROL == 1){ @@ -2953,11 +2953,11 @@ void MainForm::RunGame(Object^ obj) p2_win = i; } WriteTime(0, SystemMessageColor); - WriteMessage(String::Format("対戦成績 : {0}戦 {1}勝 {2}敗\n", num_vs, p1_win, p2_win), SecretColor); + WriteMessage(String::Format(L"対戦成績 : {0}戦 {1}勝 {2}敗\n", num_vs, p1_win, p2_win), SecretColor); } } else{ - WriteMessage("ゲームを終了しました。\n", SystemMessageColor); + WriteMessage(L"ゲームを終了しました。\n", SystemMessageColor); } } @@ -3032,7 +3032,7 @@ void MainForm::RunVersus() if(NetVS->SEQUENCE != VS_PING){ if(NetVS->SEQUENCE != VS_ERROR){ - WriteMessage("挑戦相手からの応答がありませんでした。\n", ErrorMessageColor); + WriteMessage(L"挑戦相手からの応答がありませんでした。\n", ErrorMessageColor); } return; } @@ -3060,7 +3060,7 @@ void MainForm::RunVersus() } if(NetVS->SEQUENCE != VS_SETTING){ - WriteMessage("挑戦相手との回線が不安定です。\n", ErrorMessageColor); + WriteMessage(L"挑戦相手との回線が不安定です。\n", ErrorMessageColor); return; } @@ -3081,7 +3081,7 @@ void MainForm::RunVersus() } if(c < 4){ - WriteMessage("ディレイ値の計算が正常に行われませんでした。\n", ErrorMessageColor); + WriteMessage(L"ディレイ値の計算が正常に行われませんでした。\n", ErrorMessageColor); return; } @@ -3107,14 +3107,14 @@ void MainForm::RunVersus() NetVS->SLEEPING = false; if(NetVS->SEQUENCE != VS_STANDBY){ - WriteMessage("対戦準備が完了しませんでした。\n", ErrorMessageColor); + WriteMessage(L"対戦準備が完了しませんでした。\n", ErrorMessageColor); return; } NetVS->SEQUENCE = VS_DATA; // 対戦開始 - WriteMessage(String::Format("対戦を開始します。(delay:{0})\n", NetVS->DELAY), SystemMessageColor); + WriteMessage(String::Format(L"対戦を開始します。(delay:{0})\n", NetVS->DELAY), SystemMessageColor); GameThread = gcnew Thread(gcnew ParameterizedThreadStart(this, &MainForm::RunGame)); GameThread->Start((UINT)RT_VS); @@ -3175,7 +3175,7 @@ void MainForm::RunSpectacle() /* // データは既にバッファからなくなってる if(frame > s_frame && (frame - s_frame) >= (UINT)InputHistory->Length - 20){ - if(MTINFO.DEBUG) WriteMessage(String::Format("観戦者の追い出し > {0} / {1}\n", SpectatorList[i]->ID, SpectatorList->Count), DebugMessageColor); + if(MTINFO.DEBUG) WriteMessage(String::Format(L"観戦者の追い出し > {0} / {1}\n", SpectatorList[i]->ID, SpectatorList->Count), DebugMessageColor); send[0] = PH_WATCH_END; Array::Copy(BitConverter::GetBytes(SpectatorList[i]->ID), 0, send, 1, 2); @@ -3349,9 +3349,9 @@ UINT16 MainForm::RemoteInput() } if(eax == 0xFFFF && NetVS->SEQUENCE == VS_TIMEOUT){ - WriteMessage("タイムアウトしたため対戦を終了します。\n", ErrorMessageColor); + WriteMessage(L"タイムアウトしたため対戦を終了します。\n", ErrorMessageColor); if(MTINFO.DEBUG){ - WriteMessage(String::Format("Frame > L:{0} / R:{1} (delay:{2})\n", NetVS->L_FRAME, NetVS->R_FRAME, NetVS->DELAY), DebugMessageColor); + WriteMessage(String::Format(L"Frame > L:{0} / R:{1} (delay:{2})\n", NetVS->L_FRAME, NetVS->R_FRAME, NetVS->DELAY), DebugMessageColor); } QuitGame(); @@ -3364,9 +3364,9 @@ UINT16 MainForm::RemoteInput() if(NetVS->SEQUENCE != VS_DATA) return 0; if((eax & 0x0003) == 0x0003){ - WriteMessage("不正パケットの受信 > 左右同時押し\n", ErrorMessageColor); + WriteMessage(L"不正パケットの受信 > 左右同時押し\n", ErrorMessageColor); if(MTINFO.DEBUG){ - WriteMessage(String::Format("IP = {0}\n", NetVS->IP_EP->Address), DebugMessageColor); + WriteMessage(String::Format(L"IP = {0}\n", NetVS->IP_EP->Address), DebugMessageColor); } QuitGame(); @@ -3440,7 +3440,7 @@ UINT16 MainForm::ReadReplayData(BinaryReader^ br, REPLAY_INFO& ri) } } catch(EndOfStreamException^){ - WriteMessage("リプレイファイルの再生が終了しました。\n", SystemMessageColor); + WriteMessage(L"リプレイファイルの再生が終了しました。\n", SystemMessageColor); br->Close(); br = nullptr; @@ -3516,7 +3516,7 @@ void MainForm::RunAutoRest() { int to = MTOPTION.AUTO_REST_TIME; // タイムアウト指定時間 AutoRestRanging = true; if(MTINFO.DEBUG){ - WriteMessage(String::Format("自動休憩スレッド開始 {0}分\n", to), DebugMessageColor); + WriteMessage(String::Format(L"自動休憩スレッド開始 {0}分\n", to), DebugMessageColor); } while(AutoRestRanging){ AutoRestSleeping = true; @@ -3532,12 +3532,12 @@ void MainForm::RunAutoRest() { GetLastInputInfo(&li); te = GetTickCount(); to = MTOPTION.AUTO_REST_TIME; - //WriteMessage(String::Format("{0}秒経過\n", ((te-li.dwTime)/1000) ), DebugMessageColor); + //WriteMessage(String::Format(L"{0}秒経過\n", ((te-li.dwTime)/1000) ), DebugMessageColor); if(((te-li.dwTime)/1000) >= UINT(to*60)){ // フリー状態なら休憩状態にする if(UDP != nullptr && MemberList[0]->STATE == MS_FREE){ ChangeState((BYTE)MS_REST); - WriteMessage("休憩状態を変更しました。 > オン\n", SystemMessageColor); + WriteMessage(L"休憩状態を変更しました。 > オン\n", SystemMessageColor); } AutoRestRanging = false; AutoRestThread = nullptr; @@ -3549,9 +3549,9 @@ void MainForm::ChangeSeek() { if(MemberList[0]->STATE == MS_FREE){ ChangeState((BYTE)MS_SEEK); - WriteMessage("対戦募集状態を変更しました。 > オン\n", SystemMessageColor); + WriteMessage(L"対戦募集状態を変更しました。 > オン\n", SystemMessageColor); WriteTime(0, SystemMessageColor); - WriteMessage(String::Format("{0}が対戦募集状態になりました。\n", MemberList[0]->NAME), SystemMessageColor); + WriteMessage(String::Format(L"{0}が対戦募集状態になりました。\n", MemberList[0]->NAME), SystemMessageColor); } else if(MemberList[0]->STATE == MS_SEEK){ if(GameThread != nullptr && GameThread->IsAlive){ @@ -3560,9 +3560,9 @@ void MainForm::ChangeSeek() { ChangeState((BYTE)MS_FREE); } - WriteMessage("対戦募集状態を変更しました。 > オフ\n", SystemMessageColor); + WriteMessage(L"対戦募集状態を変更しました。 > オフ\n", SystemMessageColor); WriteTime(0, SystemMessageColor); - WriteMessage(String::Format("{0}が対戦募集を締め切りました。\n", MemberList[0]->NAME), SystemMessageColor); + WriteMessage(String::Format(L"{0}が対戦募集を締め切りました。\n", MemberList[0]->NAME), SystemMessageColor); } } void MainForm::ChangeLogWordWrap() { @@ -3570,13 +3570,13 @@ void MainForm::ChangeLogWordWrap() { richTextBoxLog->WordWrap = MTOPTION.LOG_WORDWRAP; toolStripMenuItemWordWrap->Checked = MTOPTION.LOG_WORDWRAP; if(MTOPTION.LOG_WORDWRAP){ - WriteMessage("テキスト折り返し > オン\n", SystemMessageColor); + WriteMessage(L"テキスト折り返し > オン\n", SystemMessageColor); }else{ - WriteMessage("テキスト折り返し > オフ\n", SystemMessageColor); + WriteMessage(L"テキスト折り返し > オフ\n", SystemMessageColor); } } void MainForm::ClearLog(){ - if(MessageBox::Show("ログを10行残して削除します。\nよろしいですか?", "ログの削除", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show(L"ログを10行残して削除します。\nよろしいですか?", L"ログの削除", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ }else{ return; } @@ -3587,7 +3587,7 @@ void MainForm::ClearLog(){ int index = richTextBoxLog->GetFirstCharIndexFromLine(len-11); richTextBoxLog->SelectionStart=0; richTextBoxLog->Select(0, index); - richTextBoxLog->SelectedText="[削除されました]\n"; + richTextBoxLog->SelectedText= L"[削除されました]\n"; } } catch(Exception ^e){ diff --git a/LilithPort/MainForm.h b/LilithPort/MainForm.h index ddea22f..34d56f8 100644 --- a/LilithPort/MainForm.h +++ b/LilithPort/MainForm.h @@ -193,755 +193,779 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; /// void InitializeComponent(void) { - this->components = (gcnew System::ComponentModel::Container()); - System::Windows::Forms::ToolStripMenuItem^ ReloadListToolStripMenuItem; - System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(MainForm::typeid)); - this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip()); - this->toolStripMenuItemFile = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemReplay = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemSaveLog = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator()); - this->toolStripMenuItemExit = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemBookMarkMenu = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemAddBookMark = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripSeparator8 = (gcnew System::Windows::Forms::ToolStripSeparator()); - this->CommandToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->GameStartToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->GameStartNoReplayToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripSeparator9 = (gcnew System::Windows::Forms::ToolStripSeparator()); - this->RestartToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->LeaveToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->RestToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->SeekToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripSeparator10 = (gcnew System::Windows::Forms::ToolStripSeparator()); - this->ClearToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->ToggleHitJudgeToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripSeparator11 = (gcnew System::Windows::Forms::ToolStripSeparator()); - this->GetIPToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemOption = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemSetting = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator()); - this->toolStripMenuItemDelay = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemDelayAuto = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripSeparator4 = (gcnew System::Windows::Forms::ToolStripSeparator()); - this->toolStripMenuItemDelay2 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemDelay3 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemDelay4 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemDelay5 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemDelay6 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemDelay7 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemDelay8 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemDelay9 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemDelay10 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemDelay11 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemDelay12 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripSeparator3 = (gcnew System::Windows::Forms::ToolStripSeparator()); - this->toolStripMenuItemRecordReplay = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemAllowSpectator = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemWordWrap = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->LogLockToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripSeparator7 = (gcnew System::Windows::Forms::ToolStripSeparator()); - this->toolStripMenuItemAfterRest = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemAutoRest = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemAutoRestEnable = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripSeparator13 = (gcnew System::Windows::Forms::ToolStripSeparator()); - this->toolStripMenuItemAutoRestTime5 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemAutoRestTime10 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemAutoRestTime15 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemAutoRestTime20 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemAutoRestTime30 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemAutoRestTime60 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemAutoRestTime120 = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemHelp = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemViewCommand = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemChangeList = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripSeparator5 = (gcnew System::Windows::Forms::ToolStripSeparator()); - this->toolStripMenuItemVersion = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->splitContainer1 = (gcnew System::Windows::Forms::SplitContainer()); - this->listBoxMember = (gcnew System::Windows::Forms::ListBox()); - this->contextMenuStripMember = (gcnew System::Windows::Forms::ContextMenuStrip(this->components)); - this->toolStripMenuItemVS = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemWatch = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemSeek = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripMenuItemPing = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripSeparator12 = (gcnew System::Windows::Forms::ToolStripSeparator()); - this->toolStripMenuItemKick = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->richTextBoxLog = (gcnew System::Windows::Forms::RichTextBox()); - this->contextMenuStripLog = (gcnew System::Windows::Forms::ContextMenuStrip(this->components)); - this->contextMenuItemCopy = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->toolStripSeparator6 = (gcnew System::Windows::Forms::ToolStripSeparator()); - this->contxtMenuItemSaveLog = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->textBoxInput = (gcnew System::Windows::Forms::TextBox()); - this->openFileDialog1 = (gcnew System::Windows::Forms::OpenFileDialog()); - this->toolTipMember = (gcnew System::Windows::Forms::ToolTip(this->components)); - this->statusStrip1 = (gcnew System::Windows::Forms::StatusStrip()); - this->toolStripDropDownButtonProfile = (gcnew System::Windows::Forms::ToolStripDropDownButton()); - this->toolStripStatusLabel = (gcnew System::Windows::Forms::ToolStripStatusLabel()); - ReloadListToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); - this->menuStrip1->SuspendLayout(); - this->splitContainer1->Panel1->SuspendLayout(); - this->splitContainer1->Panel2->SuspendLayout(); - this->splitContainer1->SuspendLayout(); - this->contextMenuStripMember->SuspendLayout(); - this->contextMenuStripLog->SuspendLayout(); - this->statusStrip1->SuspendLayout(); - this->SuspendLayout(); - // - // ReloadListToolStripMenuItem - // - ReloadListToolStripMenuItem->Name = L"ReloadListToolStripMenuItem"; - ReloadListToolStripMenuItem->ShortcutKeys = System::Windows::Forms::Keys::F5; - ReloadListToolStripMenuItem->Size = System::Drawing::Size(310, 22); - ReloadListToolStripMenuItem->Text = L"メンバーリストの更新(&R)"; - ReloadListToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::ReloadListToolStripMenuItem_Click); - // - // menuStrip1 - // - this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(5) {this->toolStripMenuItemFile, - this->toolStripMenuItemBookMarkMenu, this->CommandToolStripMenuItem, this->toolStripMenuItemOption, this->toolStripMenuItemHelp}); - this->menuStrip1->Location = System::Drawing::Point(0, 0); - this->menuStrip1->Name = L"menuStrip1"; - this->menuStrip1->Size = System::Drawing::Size(528, 26); - this->menuStrip1->TabIndex = 0; - this->menuStrip1->Text = L"menuStrip1"; - // - // toolStripMenuItemFile - // - this->toolStripMenuItemFile->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(4) {this->toolStripMenuItemReplay, - this->toolStripMenuItemSaveLog, this->toolStripSeparator1, this->toolStripMenuItemExit}); - this->toolStripMenuItemFile->Name = L"toolStripMenuItemFile"; - this->toolStripMenuItemFile->Size = System::Drawing::Size(85, 22); - this->toolStripMenuItemFile->Text = L"ファイル(&F)"; - // - // toolStripMenuItemReplay - // - this->toolStripMenuItemReplay->Name = L"toolStripMenuItemReplay"; - this->toolStripMenuItemReplay->Size = System::Drawing::Size(226, 22); - this->toolStripMenuItemReplay->Text = L"リプレイファイルの再生(&R)"; - this->toolStripMenuItemReplay->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemReplay_Click); - // - // toolStripMenuItemSaveLog - // - this->toolStripMenuItemSaveLog->Name = L"toolStripMenuItemSaveLog"; - this->toolStripMenuItemSaveLog->ShortcutKeys = static_cast((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::S)); - this->toolStripMenuItemSaveLog->Size = System::Drawing::Size(226, 22); - this->toolStripMenuItemSaveLog->Text = L"ログの保存(&S)"; - this->toolStripMenuItemSaveLog->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemSaveLog_Click); - // - // toolStripSeparator1 - // - this->toolStripSeparator1->Name = L"toolStripSeparator1"; - this->toolStripSeparator1->Size = System::Drawing::Size(223, 6); - // - // toolStripMenuItemExit - // - this->toolStripMenuItemExit->Name = L"toolStripMenuItemExit"; - this->toolStripMenuItemExit->Size = System::Drawing::Size(226, 22); - this->toolStripMenuItemExit->Text = L"終了(&X)"; - this->toolStripMenuItemExit->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemExit_Click); - // - // toolStripMenuItemBookMarkMenu - // - this->toolStripMenuItemBookMarkMenu->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) {this->toolStripMenuItemAddBookMark, - this->toolStripSeparator8}); - this->toolStripMenuItemBookMarkMenu->Name = L"toolStripMenuItemBookMarkMenu"; - this->toolStripMenuItemBookMarkMenu->Size = System::Drawing::Size(110, 22); - this->toolStripMenuItemBookMarkMenu->Text = L"ブックマーク(&B)"; - // - // toolStripMenuItemAddBookMark - // - this->toolStripMenuItemAddBookMark->Name = L"toolStripMenuItemAddBookMark"; - this->toolStripMenuItemAddBookMark->Size = System::Drawing::Size(166, 22); - this->toolStripMenuItemAddBookMark->Text = L"サーバの追加(&A)"; - this->toolStripMenuItemAddBookMark->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAddBookMark_Click); - // - // toolStripSeparator8 - // - this->toolStripSeparator8->Name = L"toolStripSeparator8"; - this->toolStripSeparator8->Size = System::Drawing::Size(163, 6); - // - // CommandToolStripMenuItem - // - this->CommandToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(13) {this->GameStartToolStripMenuItem, - this->GameStartNoReplayToolStripMenuItem, this->toolStripSeparator9, this->RestartToolStripMenuItem, this->LeaveToolStripMenuItem, - this->RestToolStripMenuItem, this->SeekToolStripMenuItem, ReloadListToolStripMenuItem, this->toolStripSeparator10, this->ClearToolStripMenuItem, - this->ToggleHitJudgeToolStripMenuItem, this->toolStripSeparator11, this->GetIPToolStripMenuItem}); - this->CommandToolStripMenuItem->Name = L"CommandToolStripMenuItem"; - this->CommandToolStripMenuItem->Size = System::Drawing::Size(86, 22); - this->CommandToolStripMenuItem->Text = L"コマンド(&C)"; - // - // GameStartToolStripMenuItem - // - this->GameStartToolStripMenuItem->BackColor = System::Drawing::SystemColors::Control; - this->GameStartToolStripMenuItem->Name = L"GameStartToolStripMenuItem"; - this->GameStartToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->GameStartToolStripMenuItem->Text = L"ゲームの起動(&G)"; - this->GameStartToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::GameStartToolStripMenuItem_Click); - // - // GameStartNoReplayToolStripMenuItem - // - this->GameStartNoReplayToolStripMenuItem->Name = L"GameStartNoReplayToolStripMenuItem"; - this->GameStartNoReplayToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->GameStartNoReplayToolStripMenuItem->Text = L"ゲームの起動(リプレイを保存しない)(&T)"; - this->GameStartNoReplayToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::GameStartNoReplayToolStripMenuItem_Click); - // - // toolStripSeparator9 - // - this->toolStripSeparator9->Name = L"toolStripSeparator9"; - this->toolStripSeparator9->Size = System::Drawing::Size(307, 6); - // - // RestartToolStripMenuItem - // - this->RestartToolStripMenuItem->Name = L"RestartToolStripMenuItem"; - this->RestartToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->RestartToolStripMenuItem->Text = L"再起動(&R)"; - this->RestartToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::RestartToolStripMenuItem_Click); - // - // LeaveToolStripMenuItem - // - this->LeaveToolStripMenuItem->Name = L"LeaveToolStripMenuItem"; - this->LeaveToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->LeaveToolStripMenuItem->Text = L"退室(&L)"; - this->LeaveToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::LeaveToolStripMenuItem_Click); - // - // RestToolStripMenuItem - // - this->RestToolStripMenuItem->Name = L"RestToolStripMenuItem"; - this->RestToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->RestToolStripMenuItem->Text = L"休憩状態の切り替え(&M)"; - this->RestToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::RestToolStripMenuItem_Click); - // - // SeekToolStripMenuItem - // - this->SeekToolStripMenuItem->Name = L"SeekToolStripMenuItem"; - this->SeekToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->SeekToolStripMenuItem->Text = L"対戦募集状態の切り替え(&S)"; - this->SeekToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::SeekToolStripMenuItem_Click); - // - // toolStripSeparator10 - // - this->toolStripSeparator10->Name = L"toolStripSeparator10"; - this->toolStripSeparator10->Size = System::Drawing::Size(307, 6); - // - // ClearToolStripMenuItem - // - this->ClearToolStripMenuItem->Name = L"ClearToolStripMenuItem"; - this->ClearToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->ClearToolStripMenuItem->Text = L"ログの削除(&C)"; - this->ClearToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::ClearToolStripMenuItem_Click); - // - // ToggleHitJudgeToolStripMenuItem - // - this->ToggleHitJudgeToolStripMenuItem->Name = L"ToggleHitJudgeToolStripMenuItem"; - this->ToggleHitJudgeToolStripMenuItem->ShortcutKeys = System::Windows::Forms::Keys::F1; - this->ToggleHitJudgeToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->ToggleHitJudgeToolStripMenuItem->Text = L"当たり判定の表示切替(&H)"; - this->ToggleHitJudgeToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::ToggleHitJudgeToolStripMenuItem_Click); - // - // toolStripSeparator11 - // - this->toolStripSeparator11->Name = L"toolStripSeparator11"; - this->toolStripSeparator11->Size = System::Drawing::Size(307, 6); - // - // GetIPToolStripMenuItem - // - this->GetIPToolStripMenuItem->Name = L"GetIPToolStripMenuItem"; - this->GetIPToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->GetIPToolStripMenuItem->Text = L"IPアドレスの取得(&I)"; - this->GetIPToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::GetIPToolStripMenuItem_Click); - // - // toolStripMenuItemOption - // - this->toolStripMenuItemOption->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(11) {this->toolStripMenuItemSetting, - this->toolStripSeparator2, this->toolStripMenuItemDelay, this->toolStripSeparator3, this->toolStripMenuItemRecordReplay, this->toolStripMenuItemAllowSpectator, - this->toolStripMenuItemWordWrap, this->LogLockToolStripMenuItem, this->toolStripSeparator7, this->toolStripMenuItemAfterRest, - this->toolStripMenuItemAutoRest}); - this->toolStripMenuItemOption->Name = L"toolStripMenuItemOption"; - this->toolStripMenuItemOption->Size = System::Drawing::Size(99, 22); - this->toolStripMenuItemOption->Text = L"オプション(&O)"; - // - // toolStripMenuItemSetting - // - this->toolStripMenuItemSetting->Name = L"toolStripMenuItemSetting"; - this->toolStripMenuItemSetting->Size = System::Drawing::Size(247, 22); - this->toolStripMenuItemSetting->Text = L"設定(&S)"; - this->toolStripMenuItemSetting->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemSetting_Click); - // - // toolStripSeparator2 - // - this->toolStripSeparator2->Name = L"toolStripSeparator2"; - this->toolStripSeparator2->Size = System::Drawing::Size(244, 6); - // - // toolStripMenuItemDelay - // - this->toolStripMenuItemDelay->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(13) {this->toolStripMenuItemDelayAuto, - this->toolStripSeparator4, this->toolStripMenuItemDelay2, this->toolStripMenuItemDelay3, this->toolStripMenuItemDelay4, this->toolStripMenuItemDelay5, - this->toolStripMenuItemDelay6, this->toolStripMenuItemDelay7, this->toolStripMenuItemDelay8, this->toolStripMenuItemDelay9, this->toolStripMenuItemDelay10, - this->toolStripMenuItemDelay11, this->toolStripMenuItemDelay12}); - this->toolStripMenuItemDelay->Name = L"toolStripMenuItemDelay"; - this->toolStripMenuItemDelay->Size = System::Drawing::Size(247, 22); - this->toolStripMenuItemDelay->Text = L"ディレイ(&D)"; - // - // toolStripMenuItemDelayAuto - // - this->toolStripMenuItemDelayAuto->Checked = true; - this->toolStripMenuItemDelayAuto->CheckState = System::Windows::Forms::CheckState::Checked; - this->toolStripMenuItemDelayAuto->Name = L"toolStripMenuItemDelayAuto"; - this->toolStripMenuItemDelayAuto->Size = System::Drawing::Size(103, 22); - this->toolStripMenuItemDelayAuto->Text = L"Auto"; - this->toolStripMenuItemDelayAuto->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelayAuto_Click); - // - // toolStripSeparator4 - // - this->toolStripSeparator4->Name = L"toolStripSeparator4"; - this->toolStripSeparator4->Size = System::Drawing::Size(100, 6); - // - // toolStripMenuItemDelay2 - // - this->toolStripMenuItemDelay2->Name = L"toolStripMenuItemDelay2"; - this->toolStripMenuItemDelay2->Size = System::Drawing::Size(103, 22); - this->toolStripMenuItemDelay2->Text = L"2"; - this->toolStripMenuItemDelay2->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay2_Click); - // - // toolStripMenuItemDelay3 - // - this->toolStripMenuItemDelay3->Name = L"toolStripMenuItemDelay3"; - this->toolStripMenuItemDelay3->Size = System::Drawing::Size(103, 22); - this->toolStripMenuItemDelay3->Text = L"3"; - this->toolStripMenuItemDelay3->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay3_Click); - // - // toolStripMenuItemDelay4 - // - this->toolStripMenuItemDelay4->Name = L"toolStripMenuItemDelay4"; - this->toolStripMenuItemDelay4->Size = System::Drawing::Size(103, 22); - this->toolStripMenuItemDelay4->Text = L"4"; - this->toolStripMenuItemDelay4->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay4_Click); - // - // toolStripMenuItemDelay5 - // - this->toolStripMenuItemDelay5->Name = L"toolStripMenuItemDelay5"; - this->toolStripMenuItemDelay5->Size = System::Drawing::Size(103, 22); - this->toolStripMenuItemDelay5->Text = L"5"; - this->toolStripMenuItemDelay5->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay5_Click); - // - // toolStripMenuItemDelay6 - // - this->toolStripMenuItemDelay6->Name = L"toolStripMenuItemDelay6"; - this->toolStripMenuItemDelay6->Size = System::Drawing::Size(103, 22); - this->toolStripMenuItemDelay6->Text = L"6"; - this->toolStripMenuItemDelay6->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay6_Click); - // - // toolStripMenuItemDelay7 - // - this->toolStripMenuItemDelay7->Name = L"toolStripMenuItemDelay7"; - this->toolStripMenuItemDelay7->Size = System::Drawing::Size(103, 22); - this->toolStripMenuItemDelay7->Text = L"7"; - this->toolStripMenuItemDelay7->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay7_Click); - // - // toolStripMenuItemDelay8 - // - this->toolStripMenuItemDelay8->Name = L"toolStripMenuItemDelay8"; - this->toolStripMenuItemDelay8->Size = System::Drawing::Size(103, 22); - this->toolStripMenuItemDelay8->Text = L"8"; - this->toolStripMenuItemDelay8->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay8_Click); - // - // toolStripMenuItemDelay9 - // - this->toolStripMenuItemDelay9->Name = L"toolStripMenuItemDelay9"; - this->toolStripMenuItemDelay9->Size = System::Drawing::Size(103, 22); - this->toolStripMenuItemDelay9->Text = L"9"; - this->toolStripMenuItemDelay9->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay9_Click); - // - // toolStripMenuItemDelay10 - // - this->toolStripMenuItemDelay10->Name = L"toolStripMenuItemDelay10"; - this->toolStripMenuItemDelay10->Size = System::Drawing::Size(103, 22); - this->toolStripMenuItemDelay10->Text = L"10"; - this->toolStripMenuItemDelay10->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay10_Click); - // - // toolStripMenuItemDelay11 - // - this->toolStripMenuItemDelay11->Name = L"toolStripMenuItemDelay11"; - this->toolStripMenuItemDelay11->Size = System::Drawing::Size(103, 22); - this->toolStripMenuItemDelay11->Text = L"11"; - this->toolStripMenuItemDelay11->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay11_Click); - // - // toolStripMenuItemDelay12 - // - this->toolStripMenuItemDelay12->Name = L"toolStripMenuItemDelay12"; - this->toolStripMenuItemDelay12->Size = System::Drawing::Size(103, 22); - this->toolStripMenuItemDelay12->Text = L"12"; - this->toolStripMenuItemDelay12->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay12_Click); - // - // toolStripSeparator3 - // - this->toolStripSeparator3->Name = L"toolStripSeparator3"; - this->toolStripSeparator3->Size = System::Drawing::Size(244, 6); - // - // toolStripMenuItemRecordReplay - // - this->toolStripMenuItemRecordReplay->Checked = true; - this->toolStripMenuItemRecordReplay->CheckState = System::Windows::Forms::CheckState::Checked; - this->toolStripMenuItemRecordReplay->Name = L"toolStripMenuItemRecordReplay"; - this->toolStripMenuItemRecordReplay->Size = System::Drawing::Size(247, 22); - this->toolStripMenuItemRecordReplay->Text = L"リプレイファイルの保存(&R)"; - this->toolStripMenuItemRecordReplay->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemRecordReplay_Click); - // - // toolStripMenuItemAllowSpectator - // - this->toolStripMenuItemAllowSpectator->Checked = true; - this->toolStripMenuItemAllowSpectator->CheckState = System::Windows::Forms::CheckState::Checked; - this->toolStripMenuItemAllowSpectator->Name = L"toolStripMenuItemAllowSpectator"; - this->toolStripMenuItemAllowSpectator->Size = System::Drawing::Size(247, 22); - this->toolStripMenuItemAllowSpectator->Text = L"観戦の許可(&A)"; - this->toolStripMenuItemAllowSpectator->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAllowSpectator_Click); - // - // toolStripMenuItemWordWrap - // - this->toolStripMenuItemWordWrap->Name = L"toolStripMenuItemWordWrap"; - this->toolStripMenuItemWordWrap->Size = System::Drawing::Size(247, 22); - this->toolStripMenuItemWordWrap->Text = L"ログのテキストを折り返す(&W)"; - this->toolStripMenuItemWordWrap->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemWordWrap_Click); - // - // LogLockToolStripMenuItem - // - this->LogLockToolStripMenuItem->Checked = true; - this->LogLockToolStripMenuItem->CheckState = System::Windows::Forms::CheckState::Checked; - this->LogLockToolStripMenuItem->Name = L"LogLockToolStripMenuItem"; - this->LogLockToolStripMenuItem->ShortcutKeys = System::Windows::Forms::Keys::F3; - this->LogLockToolStripMenuItem->Size = System::Drawing::Size(247, 22); - this->LogLockToolStripMenuItem->Text = L"ログのスクロールを固定(&L)"; - this->LogLockToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::LogLockToolStripMenuItem_Click); - // - // toolStripSeparator7 - // - this->toolStripSeparator7->Name = L"toolStripSeparator7"; - this->toolStripSeparator7->Size = System::Drawing::Size(244, 6); - // - // toolStripMenuItemAfterRest - // - this->toolStripMenuItemAfterRest->Name = L"toolStripMenuItemAfterRest"; - this->toolStripMenuItemAfterRest->Size = System::Drawing::Size(247, 22); - this->toolStripMenuItemAfterRest->Text = L"ネット対戦後に一息入れる(&N)"; - this->toolStripMenuItemAfterRest->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAfterRest_Click); - // - // toolStripMenuItemAutoRest - // - this->toolStripMenuItemAutoRest->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(9) {this->toolStripMenuItemAutoRestEnable, - this->toolStripSeparator13, this->toolStripMenuItemAutoRestTime5, this->toolStripMenuItemAutoRestTime10, this->toolStripMenuItemAutoRestTime15, - this->toolStripMenuItemAutoRestTime20, this->toolStripMenuItemAutoRestTime30, this->toolStripMenuItemAutoRestTime60, this->toolStripMenuItemAutoRestTime120}); - this->toolStripMenuItemAutoRest->Name = L"toolStripMenuItemAutoRest"; - this->toolStripMenuItemAutoRest->Size = System::Drawing::Size(247, 22); - this->toolStripMenuItemAutoRest->Text = L"自動で休憩状態にする(&I)"; - // - // toolStripMenuItemAutoRestEnable - // - this->toolStripMenuItemAutoRestEnable->Name = L"toolStripMenuItemAutoRestEnable"; - this->toolStripMenuItemAutoRestEnable->Size = System::Drawing::Size(109, 22); - this->toolStripMenuItemAutoRestEnable->Text = L"有効"; - this->toolStripMenuItemAutoRestEnable->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestEnable_Click); - // - // toolStripSeparator13 - // - this->toolStripSeparator13->Name = L"toolStripSeparator13"; - this->toolStripSeparator13->Size = System::Drawing::Size(106, 6); - // - // toolStripMenuItemAutoRestTime5 - // - this->toolStripMenuItemAutoRestTime5->Name = L"toolStripMenuItemAutoRestTime5"; - this->toolStripMenuItemAutoRestTime5->Size = System::Drawing::Size(109, 22); - this->toolStripMenuItemAutoRestTime5->Text = L"5分"; - this->toolStripMenuItemAutoRestTime5->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime5_Click); - // - // toolStripMenuItemAutoRestTime10 - // - this->toolStripMenuItemAutoRestTime10->Name = L"toolStripMenuItemAutoRestTime10"; - this->toolStripMenuItemAutoRestTime10->Size = System::Drawing::Size(109, 22); - this->toolStripMenuItemAutoRestTime10->Text = L"10分"; - this->toolStripMenuItemAutoRestTime10->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime10_Click); - // - // toolStripMenuItemAutoRestTime15 - // - this->toolStripMenuItemAutoRestTime15->Name = L"toolStripMenuItemAutoRestTime15"; - this->toolStripMenuItemAutoRestTime15->Size = System::Drawing::Size(109, 22); - this->toolStripMenuItemAutoRestTime15->Text = L"15分"; - this->toolStripMenuItemAutoRestTime15->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime15_Click); - // - // toolStripMenuItemAutoRestTime20 - // - this->toolStripMenuItemAutoRestTime20->Name = L"toolStripMenuItemAutoRestTime20"; - this->toolStripMenuItemAutoRestTime20->Size = System::Drawing::Size(109, 22); - this->toolStripMenuItemAutoRestTime20->Text = L"20分"; - this->toolStripMenuItemAutoRestTime20->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime20_Click); - // - // toolStripMenuItemAutoRestTime30 - // - this->toolStripMenuItemAutoRestTime30->Name = L"toolStripMenuItemAutoRestTime30"; - this->toolStripMenuItemAutoRestTime30->Size = System::Drawing::Size(109, 22); - this->toolStripMenuItemAutoRestTime30->Text = L"30分"; - this->toolStripMenuItemAutoRestTime30->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime30_Click); - // - // toolStripMenuItemAutoRestTime60 - // - this->toolStripMenuItemAutoRestTime60->Name = L"toolStripMenuItemAutoRestTime60"; - this->toolStripMenuItemAutoRestTime60->Size = System::Drawing::Size(109, 22); - this->toolStripMenuItemAutoRestTime60->Text = L"60分"; - this->toolStripMenuItemAutoRestTime60->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime60_Click); - // - // toolStripMenuItemAutoRestTime120 - // - this->toolStripMenuItemAutoRestTime120->Name = L"toolStripMenuItemAutoRestTime120"; - this->toolStripMenuItemAutoRestTime120->Size = System::Drawing::Size(109, 22); - this->toolStripMenuItemAutoRestTime120->Text = L"120分"; - this->toolStripMenuItemAutoRestTime120->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime120_Click); - // - // toolStripMenuItemHelp - // - this->toolStripMenuItemHelp->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(4) {this->toolStripMenuItemViewCommand, - this->toolStripMenuItemChangeList, this->toolStripSeparator5, this->toolStripMenuItemVersion}); - this->toolStripMenuItemHelp->Name = L"toolStripMenuItemHelp"; - this->toolStripMenuItemHelp->ShortcutKeyDisplayString = L"Ctrl+L"; - this->toolStripMenuItemHelp->Size = System::Drawing::Size(75, 22); - this->toolStripMenuItemHelp->Text = L"ヘルプ(&H)"; - // - // toolStripMenuItemViewCommand - // - this->toolStripMenuItemViewCommand->Name = L"toolStripMenuItemViewCommand"; - this->toolStripMenuItemViewCommand->Size = System::Drawing::Size(211, 22); - this->toolStripMenuItemViewCommand->Text = L"コマンドの一覧(&C)"; - this->toolStripMenuItemViewCommand->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemViewCommand_Click); - // - // toolStripMenuItemChangeList - // - this->toolStripMenuItemChangeList->Name = L"toolStripMenuItemChangeList"; - this->toolStripMenuItemChangeList->ShortcutKeys = System::Windows::Forms::Keys::F2; - this->toolStripMenuItemChangeList->Size = System::Drawing::Size(211, 22); - this->toolStripMenuItemChangeList->Text = L"リストの切り替え(&L)"; - this->toolStripMenuItemChangeList->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemChangeList_Click); - // - // toolStripSeparator5 - // - this->toolStripSeparator5->Name = L"toolStripSeparator5"; - this->toolStripSeparator5->Size = System::Drawing::Size(208, 6); - // - // toolStripMenuItemVersion - // - this->toolStripMenuItemVersion->Name = L"toolStripMenuItemVersion"; - this->toolStripMenuItemVersion->Size = System::Drawing::Size(211, 22); - this->toolStripMenuItemVersion->Text = L"バージョン情報(&A)"; - this->toolStripMenuItemVersion->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemVersion_Click); - // - // splitContainer1 - // - this->splitContainer1->Anchor = static_cast((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) - | System::Windows::Forms::AnchorStyles::Left) - | System::Windows::Forms::AnchorStyles::Right)); - this->splitContainer1->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle; - this->splitContainer1->Location = System::Drawing::Point(0, 26); - this->splitContainer1->Name = L"splitContainer1"; - // - // splitContainer1.Panel1 - // - this->splitContainer1->Panel1->Controls->Add(this->listBoxMember); - // - // splitContainer1.Panel2 - // - this->splitContainer1->Panel2->Controls->Add(this->richTextBoxLog); - this->splitContainer1->Panel2->Controls->Add(this->textBoxInput); - this->splitContainer1->Size = System::Drawing::Size(528, 297); - this->splitContainer1->SplitterDistance = 90; - this->splitContainer1->TabIndex = 2; - this->splitContainer1->TabStop = false; - // - // listBoxMember - // - this->listBoxMember->BorderStyle = System::Windows::Forms::BorderStyle::None; - this->listBoxMember->ContextMenuStrip = this->contextMenuStripMember; - this->listBoxMember->Dock = System::Windows::Forms::DockStyle::Fill; - this->listBoxMember->DrawMode = System::Windows::Forms::DrawMode::OwnerDrawFixed; - this->listBoxMember->FormattingEnabled = true; - this->listBoxMember->ItemHeight = 12; - this->listBoxMember->Location = System::Drawing::Point(0, 0); - this->listBoxMember->Name = L"listBoxMember"; - this->listBoxMember->Size = System::Drawing::Size(88, 288); - this->listBoxMember->TabIndex = 2; - this->listBoxMember->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &MainForm::listBoxMember_MouseDoubleClick); - this->listBoxMember->DrawItem += gcnew System::Windows::Forms::DrawItemEventHandler(this, &MainForm::listBoxMember_DrawItem); - this->listBoxMember->MouseClick += gcnew System::Windows::Forms::MouseEventHandler(this, &MainForm::listBoxMember_MouseClick); - // - // contextMenuStripMember - // - this->contextMenuStripMember->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(6) {this->toolStripMenuItemVS, - this->toolStripMenuItemWatch, this->toolStripMenuItemSeek, this->toolStripMenuItemPing, this->toolStripSeparator12, this->toolStripMenuItemKick}); - this->contextMenuStripMember->Name = L"contextMenuStrip1"; - this->contextMenuStripMember->ShowImageMargin = false; - this->contextMenuStripMember->Size = System::Drawing::Size(124, 120); - this->contextMenuStripMember->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &MainForm::contextMenuStripMember_Opening); - // - // toolStripMenuItemVS - // - this->toolStripMenuItemVS->Name = L"toolStripMenuItemVS"; - this->toolStripMenuItemVS->Size = System::Drawing::Size(123, 22); - this->toolStripMenuItemVS->Text = L"対戦する"; - this->toolStripMenuItemVS->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemVS_Click); - // - // toolStripMenuItemWatch - // - this->toolStripMenuItemWatch->Name = L"toolStripMenuItemWatch"; - this->toolStripMenuItemWatch->Size = System::Drawing::Size(123, 22); - this->toolStripMenuItemWatch->Text = L"観戦する"; - this->toolStripMenuItemWatch->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemWatch_Click); - // - // toolStripMenuItemSeek - // - this->toolStripMenuItemSeek->Name = L"toolStripMenuItemSeek"; - this->toolStripMenuItemSeek->Size = System::Drawing::Size(123, 22); - this->toolStripMenuItemSeek->Text = L"対戦募集する"; - this->toolStripMenuItemSeek->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemSeek_Click); - // - // toolStripMenuItemPing - // - this->toolStripMenuItemPing->Name = L"toolStripMenuItemPing"; - this->toolStripMenuItemPing->Size = System::Drawing::Size(123, 22); - this->toolStripMenuItemPing->Text = L"PING"; - this->toolStripMenuItemPing->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemPing_Click); - // - // toolStripSeparator12 - // - this->toolStripSeparator12->Name = L"toolStripSeparator12"; - this->toolStripSeparator12->Size = System::Drawing::Size(120, 6); - // - // toolStripMenuItemKick - // - this->toolStripMenuItemKick->Name = L"toolStripMenuItemKick"; - this->toolStripMenuItemKick->Size = System::Drawing::Size(123, 22); - this->toolStripMenuItemKick->Text = L"KICK"; - this->toolStripMenuItemKick->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemKick_Click); - // - // richTextBoxLog - // - this->richTextBoxLog->BackColor = System::Drawing::SystemColors::Window; - this->richTextBoxLog->BorderStyle = System::Windows::Forms::BorderStyle::None; - this->richTextBoxLog->ContextMenuStrip = this->contextMenuStripLog; - this->richTextBoxLog->Dock = System::Windows::Forms::DockStyle::Fill; - this->richTextBoxLog->Location = System::Drawing::Point(0, 0); - this->richTextBoxLog->Name = L"richTextBoxLog"; - this->richTextBoxLog->ReadOnly = true; - this->richTextBoxLog->Size = System::Drawing::Size(432, 276); - this->richTextBoxLog->TabIndex = 0; - this->richTextBoxLog->TabStop = false; - this->richTextBoxLog->Text = L""; - this->richTextBoxLog->WordWrap = false; - this->richTextBoxLog->LinkClicked += gcnew System::Windows::Forms::LinkClickedEventHandler(this, &MainForm::richTextBoxLog_LinkClicked); - // - // contextMenuStripLog - // - this->contextMenuStripLog->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(3) {this->contextMenuItemCopy, - this->toolStripSeparator6, this->contxtMenuItemSaveLog}); - this->contextMenuStripLog->Name = L"contextMenuStrip2"; - this->contextMenuStripLog->ShowImageMargin = false; - this->contextMenuStripLog->Size = System::Drawing::Size(177, 54); - // - // contextMenuItemCopy - // - this->contextMenuItemCopy->Name = L"contextMenuItemCopy"; - this->contextMenuItemCopy->ShortcutKeys = static_cast((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::C)); - this->contextMenuItemCopy->Size = System::Drawing::Size(176, 22); - this->contextMenuItemCopy->Text = L"コピー(&C)"; - this->contextMenuItemCopy->Click += gcnew System::EventHandler(this, &MainForm::contextMenuItemCopy_Click); - // - // toolStripSeparator6 - // - this->toolStripSeparator6->Name = L"toolStripSeparator6"; - this->toolStripSeparator6->Size = System::Drawing::Size(173, 6); - // - // contxtMenuItemSaveLog - // - this->contxtMenuItemSaveLog->Name = L"contxtMenuItemSaveLog"; - this->contxtMenuItemSaveLog->ShortcutKeys = static_cast((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::S)); - this->contxtMenuItemSaveLog->Size = System::Drawing::Size(176, 22); - this->contxtMenuItemSaveLog->Text = L"ログの保存(&S)"; - this->contxtMenuItemSaveLog->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemSaveLog_Click); - // - // textBoxInput - // - this->textBoxInput->BackColor = System::Drawing::SystemColors::Window; - this->textBoxInput->Dock = System::Windows::Forms::DockStyle::Bottom; - this->textBoxInput->Location = System::Drawing::Point(0, 276); - this->textBoxInput->MaxLength = 127; - this->textBoxInput->Name = L"textBoxInput"; - this->textBoxInput->Size = System::Drawing::Size(432, 19); - this->textBoxInput->TabIndex = 0; - this->textBoxInput->KeyDown += gcnew System::Windows::Forms::KeyEventHandler(this, &MainForm::textBoxInput_KeyDown); - // - // openFileDialog1 - // - this->openFileDialog1->Filter = L"MT Replay file (*.mtr)|*.mtr"; - this->openFileDialog1->Title = L"LilithPort用のリプレイファイル"; - // - // statusStrip1 - // - this->statusStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) {this->toolStripDropDownButtonProfile, - this->toolStripStatusLabel}); - this->statusStrip1->Location = System::Drawing::Point(0, 328); - this->statusStrip1->Name = L"statusStrip1"; - this->statusStrip1->RightToLeft = System::Windows::Forms::RightToLeft::No; - this->statusStrip1->Size = System::Drawing::Size(528, 22); - this->statusStrip1->TabIndex = 3; - this->statusStrip1->Text = L"statusStrip1"; - // - // toolStripDropDownButtonProfile - // - this->toolStripDropDownButtonProfile->Alignment = System::Windows::Forms::ToolStripItemAlignment::Right; - this->toolStripDropDownButtonProfile->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Text; - this->toolStripDropDownButtonProfile->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None; - this->toolStripDropDownButtonProfile->Name = L"toolStripDropDownButtonProfile"; - this->toolStripDropDownButtonProfile->RightToLeft = System::Windows::Forms::RightToLeft::No; - this->toolStripDropDownButtonProfile->Size = System::Drawing::Size(13, 20); - // - // toolStripStatusLabel - // - this->toolStripStatusLabel->BorderSides = System::Windows::Forms::ToolStripStatusLabelBorderSides::Left; - this->toolStripStatusLabel->BorderStyle = System::Windows::Forms::Border3DStyle::Raised; - this->toolStripStatusLabel->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Text; - this->toolStripStatusLabel->Margin = System::Windows::Forms::Padding(5, 3, 0, 2); - this->toolStripStatusLabel->Name = L"toolStripStatusLabel"; - this->toolStripStatusLabel->Padding = System::Windows::Forms::Padding(5, 0, 0, 0); - this->toolStripStatusLabel->Size = System::Drawing::Size(9, 17); - // - // MainForm - // - this->AllowDrop = true; - this->AutoScaleDimensions = System::Drawing::SizeF(6, 12); - this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font; - this->ClientSize = System::Drawing::Size(528, 350); - this->Controls->Add(this->statusStrip1); - this->Controls->Add(this->splitContainer1); - this->Controls->Add(this->menuStrip1); - this->Icon = (cli::safe_cast(resources->GetObject(L"$this.Icon"))); - this->MainMenuStrip = this->menuStrip1; - this->Name = L"MainForm"; - this->Text = L"LilithPort"; - this->Load += gcnew System::EventHandler(this, &MainForm::MainForm_Load); - this->Shown += gcnew System::EventHandler(this, &MainForm::MainForm_Shown); - this->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &MainForm::MainForm_DragDrop); - this->FormClosed += gcnew System::Windows::Forms::FormClosedEventHandler(this, &MainForm::MainForm_FormClosed); - this->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &MainForm::MainForm_DragEnter); - this->FormClosing += gcnew System::Windows::Forms::FormClosingEventHandler(this, &MainForm::MainForm_FormClosing); - this->menuStrip1->ResumeLayout(false); - this->menuStrip1->PerformLayout(); - this->splitContainer1->Panel1->ResumeLayout(false); - this->splitContainer1->Panel2->ResumeLayout(false); - this->splitContainer1->Panel2->PerformLayout(); - this->splitContainer1->ResumeLayout(false); - this->contextMenuStripMember->ResumeLayout(false); - this->contextMenuStripLog->ResumeLayout(false); - this->statusStrip1->ResumeLayout(false); - this->statusStrip1->PerformLayout(); - this->ResumeLayout(false); - this->PerformLayout(); + this->components = (gcnew System::ComponentModel::Container()); + System::Windows::Forms::ToolStripMenuItem^ ReloadListToolStripMenuItem; + System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(MainForm::typeid)); + this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip()); + this->toolStripMenuItemFile = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemReplay = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemSaveLog = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator()); + this->toolStripMenuItemExit = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemBookMarkMenu = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemAddBookMark = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripSeparator8 = (gcnew System::Windows::Forms::ToolStripSeparator()); + this->CommandToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->GameStartToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->GameStartNoReplayToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripSeparator9 = (gcnew System::Windows::Forms::ToolStripSeparator()); + this->RestartToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->LeaveToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->RestToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->SeekToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripSeparator10 = (gcnew System::Windows::Forms::ToolStripSeparator()); + this->ClearToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->ToggleHitJudgeToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripSeparator11 = (gcnew System::Windows::Forms::ToolStripSeparator()); + this->GetIPToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemOption = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemSetting = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator()); + this->toolStripMenuItemDelay = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemDelayAuto = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripSeparator4 = (gcnew System::Windows::Forms::ToolStripSeparator()); + this->toolStripMenuItemDelay2 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemDelay3 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemDelay4 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemDelay5 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemDelay6 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemDelay7 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemDelay8 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemDelay9 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemDelay10 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemDelay11 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemDelay12 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripSeparator3 = (gcnew System::Windows::Forms::ToolStripSeparator()); + this->toolStripMenuItemRecordReplay = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemAllowSpectator = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemWordWrap = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->LogLockToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripSeparator7 = (gcnew System::Windows::Forms::ToolStripSeparator()); + this->toolStripMenuItemAfterRest = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemAutoRest = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemAutoRestEnable = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripSeparator13 = (gcnew System::Windows::Forms::ToolStripSeparator()); + this->toolStripMenuItemAutoRestTime5 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemAutoRestTime10 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemAutoRestTime15 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemAutoRestTime20 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemAutoRestTime30 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemAutoRestTime60 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemAutoRestTime120 = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemHelp = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemViewCommand = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemChangeList = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripSeparator5 = (gcnew System::Windows::Forms::ToolStripSeparator()); + this->toolStripMenuItemVersion = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->splitContainer1 = (gcnew System::Windows::Forms::SplitContainer()); + this->listBoxMember = (gcnew System::Windows::Forms::ListBox()); + this->contextMenuStripMember = (gcnew System::Windows::Forms::ContextMenuStrip(this->components)); + this->toolStripMenuItemVS = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemWatch = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemSeek = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripMenuItemPing = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripSeparator12 = (gcnew System::Windows::Forms::ToolStripSeparator()); + this->toolStripMenuItemKick = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->richTextBoxLog = (gcnew System::Windows::Forms::RichTextBox()); + this->contextMenuStripLog = (gcnew System::Windows::Forms::ContextMenuStrip(this->components)); + this->contextMenuItemCopy = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->toolStripSeparator6 = (gcnew System::Windows::Forms::ToolStripSeparator()); + this->contxtMenuItemSaveLog = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->textBoxInput = (gcnew System::Windows::Forms::TextBox()); + this->openFileDialog1 = (gcnew System::Windows::Forms::OpenFileDialog()); + this->toolTipMember = (gcnew System::Windows::Forms::ToolTip(this->components)); + this->statusStrip1 = (gcnew System::Windows::Forms::StatusStrip()); + this->toolStripDropDownButtonProfile = (gcnew System::Windows::Forms::ToolStripDropDownButton()); + this->toolStripStatusLabel = (gcnew System::Windows::Forms::ToolStripStatusLabel()); + ReloadListToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem()); + this->menuStrip1->SuspendLayout(); + (cli::safe_cast(this->splitContainer1))->BeginInit(); + this->splitContainer1->Panel1->SuspendLayout(); + this->splitContainer1->Panel2->SuspendLayout(); + this->splitContainer1->SuspendLayout(); + this->contextMenuStripMember->SuspendLayout(); + this->contextMenuStripLog->SuspendLayout(); + this->statusStrip1->SuspendLayout(); + this->SuspendLayout(); + // + // ReloadListToolStripMenuItem + // + ReloadListToolStripMenuItem->Name = L"ReloadListToolStripMenuItem"; + ReloadListToolStripMenuItem->ShortcutKeys = System::Windows::Forms::Keys::F5; + ReloadListToolStripMenuItem->Size = System::Drawing::Size(228, 22); + ReloadListToolStripMenuItem->Text = L"&Refresh member list"; + ReloadListToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::ReloadListToolStripMenuItem_Click); + // + // menuStrip1 + // + this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(5) { + this->toolStripMenuItemFile, + this->toolStripMenuItemBookMarkMenu, this->CommandToolStripMenuItem, this->toolStripMenuItemOption, this->toolStripMenuItemHelp + }); + this->menuStrip1->Location = System::Drawing::Point(0, 0); + this->menuStrip1->Name = L"menuStrip1"; + this->menuStrip1->Size = System::Drawing::Size(528, 24); + this->menuStrip1->TabIndex = 0; + this->menuStrip1->Text = L"menuStrip1"; + // + // toolStripMenuItemFile + // + this->toolStripMenuItemFile->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(4) { + this->toolStripMenuItemReplay, + this->toolStripMenuItemSaveLog, this->toolStripSeparator1, this->toolStripMenuItemExit + }); + this->toolStripMenuItemFile->Name = L"toolStripMenuItemFile"; + this->toolStripMenuItemFile->Size = System::Drawing::Size(37, 20); + this->toolStripMenuItemFile->Text = L"&File"; + // + // toolStripMenuItemReplay + // + this->toolStripMenuItemReplay->Name = L"toolStripMenuItemReplay"; + this->toolStripMenuItemReplay->Size = System::Drawing::Size(171, 22); + this->toolStripMenuItemReplay->Text = L"Open &Replay File..."; + this->toolStripMenuItemReplay->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemReplay_Click); + // + // toolStripMenuItemSaveLog + // + this->toolStripMenuItemSaveLog->Name = L"toolStripMenuItemSaveLog"; + this->toolStripMenuItemSaveLog->ShortcutKeys = static_cast((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::S)); + this->toolStripMenuItemSaveLog->Size = System::Drawing::Size(171, 22); + this->toolStripMenuItemSaveLog->Text = L"&Save Log"; + this->toolStripMenuItemSaveLog->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemSaveLog_Click); + // + // toolStripSeparator1 + // + this->toolStripSeparator1->Name = L"toolStripSeparator1"; + this->toolStripSeparator1->Size = System::Drawing::Size(168, 6); + // + // toolStripMenuItemExit + // + this->toolStripMenuItemExit->Name = L"toolStripMenuItemExit"; + this->toolStripMenuItemExit->Size = System::Drawing::Size(171, 22); + this->toolStripMenuItemExit->Text = L"&Exit"; + this->toolStripMenuItemExit->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemExit_Click); + // + // toolStripMenuItemBookMarkMenu + // + this->toolStripMenuItemBookMarkMenu->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) { + this->toolStripMenuItemAddBookMark, + this->toolStripSeparator8 + }); + this->toolStripMenuItemBookMarkMenu->Name = L"toolStripMenuItemBookMarkMenu"; + this->toolStripMenuItemBookMarkMenu->Size = System::Drawing::Size(78, 20); + this->toolStripMenuItemBookMarkMenu->Text = L"&Bookmarks"; + // + // toolStripMenuItemAddBookMark + // + this->toolStripMenuItemAddBookMark->Name = L"toolStripMenuItemAddBookMark"; + this->toolStripMenuItemAddBookMark->Size = System::Drawing::Size(152, 22); + this->toolStripMenuItemAddBookMark->Text = L"&Add server"; + this->toolStripMenuItemAddBookMark->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAddBookMark_Click); + // + // toolStripSeparator8 + // + this->toolStripSeparator8->Name = L"toolStripSeparator8"; + this->toolStripSeparator8->Size = System::Drawing::Size(149, 6); + // + // CommandToolStripMenuItem + // + this->CommandToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(13) { + this->GameStartToolStripMenuItem, + this->GameStartNoReplayToolStripMenuItem, this->toolStripSeparator9, this->RestartToolStripMenuItem, this->LeaveToolStripMenuItem, + this->RestToolStripMenuItem, this->SeekToolStripMenuItem, ReloadListToolStripMenuItem, this->toolStripSeparator10, this->ClearToolStripMenuItem, + this->ToggleHitJudgeToolStripMenuItem, this->toolStripSeparator11, this->GetIPToolStripMenuItem + }); + this->CommandToolStripMenuItem->Name = L"CommandToolStripMenuItem"; + this->CommandToolStripMenuItem->Size = System::Drawing::Size(81, 20); + this->CommandToolStripMenuItem->Text = L"&Commands"; + // + // GameStartToolStripMenuItem + // + this->GameStartToolStripMenuItem->BackColor = System::Drawing::SystemColors::Control; + this->GameStartToolStripMenuItem->Name = L"GameStartToolStripMenuItem"; + this->GameStartToolStripMenuItem->Size = System::Drawing::Size(228, 22); + this->GameStartToolStripMenuItem->Text = L"Start &game"; + this->GameStartToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::GameStartToolStripMenuItem_Click); + // + // GameStartNoReplayToolStripMenuItem + // + this->GameStartNoReplayToolStripMenuItem->Name = L"GameStartNoReplayToolStripMenuItem"; + this->GameStartNoReplayToolStripMenuItem->Size = System::Drawing::Size(228, 22); + this->GameStartNoReplayToolStripMenuItem->Text = L"S&tart game (no replay)"; + this->GameStartNoReplayToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::GameStartNoReplayToolStripMenuItem_Click); + // + // toolStripSeparator9 + // + this->toolStripSeparator9->Name = L"toolStripSeparator9"; + this->toolStripSeparator9->Size = System::Drawing::Size(225, 6); + // + // RestartToolStripMenuItem + // + this->RestartToolStripMenuItem->Name = L"RestartToolStripMenuItem"; + this->RestartToolStripMenuItem->Size = System::Drawing::Size(228, 22); + this->RestartToolStripMenuItem->Text = L"&Restart"; + this->RestartToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::RestartToolStripMenuItem_Click); + // + // LeaveToolStripMenuItem + // + this->LeaveToolStripMenuItem->Name = L"LeaveToolStripMenuItem"; + this->LeaveToolStripMenuItem->Size = System::Drawing::Size(228, 22); + this->LeaveToolStripMenuItem->Text = L"&Leave"; + this->LeaveToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::LeaveToolStripMenuItem_Click); + // + // RestToolStripMenuItem + // + this->RestToolStripMenuItem->Name = L"RestToolStripMenuItem"; + this->RestToolStripMenuItem->Size = System::Drawing::Size(228, 22); + this->RestToolStripMenuItem->Text = L"Toggle rest &mode"; + this->RestToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::RestToolStripMenuItem_Click); + // + // SeekToolStripMenuItem + // + this->SeekToolStripMenuItem->Name = L"SeekToolStripMenuItem"; + this->SeekToolStripMenuItem->Size = System::Drawing::Size(228, 22); + this->SeekToolStripMenuItem->Text = L"Toggle &seek mode"; + this->SeekToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::SeekToolStripMenuItem_Click); + // + // toolStripSeparator10 + // + this->toolStripSeparator10->Name = L"toolStripSeparator10"; + this->toolStripSeparator10->Size = System::Drawing::Size(225, 6); + // + // ClearToolStripMenuItem + // + this->ClearToolStripMenuItem->Name = L"ClearToolStripMenuItem"; + this->ClearToolStripMenuItem->Size = System::Drawing::Size(228, 22); + this->ClearToolStripMenuItem->Text = L"&Clear chat"; + this->ClearToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::ClearToolStripMenuItem_Click); + // + // ToggleHitJudgeToolStripMenuItem + // + this->ToggleHitJudgeToolStripMenuItem->Name = L"ToggleHitJudgeToolStripMenuItem"; + this->ToggleHitJudgeToolStripMenuItem->ShortcutKeys = System::Windows::Forms::Keys::F1; + this->ToggleHitJudgeToolStripMenuItem->Size = System::Drawing::Size(228, 22); + this->ToggleHitJudgeToolStripMenuItem->Text = L"Switch player list view (&H)"; + this->ToggleHitJudgeToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::ToggleHitJudgeToolStripMenuItem_Click); + // + // toolStripSeparator11 + // + this->toolStripSeparator11->Name = L"toolStripSeparator11"; + this->toolStripSeparator11->Size = System::Drawing::Size(225, 6); + // + // GetIPToolStripMenuItem + // + this->GetIPToolStripMenuItem->Name = L"GetIPToolStripMenuItem"; + this->GetIPToolStripMenuItem->Size = System::Drawing::Size(228, 22); + this->GetIPToolStripMenuItem->Text = L"Get &IP address"; + this->GetIPToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::GetIPToolStripMenuItem_Click); + // + // toolStripMenuItemOption + // + this->toolStripMenuItemOption->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(11) { + this->toolStripMenuItemSetting, + this->toolStripSeparator2, this->toolStripMenuItemDelay, this->toolStripSeparator3, this->toolStripMenuItemRecordReplay, this->toolStripMenuItemAllowSpectator, + this->toolStripMenuItemWordWrap, this->LogLockToolStripMenuItem, this->toolStripSeparator7, this->toolStripMenuItemAfterRest, + this->toolStripMenuItemAutoRest + }); + this->toolStripMenuItemOption->Name = L"toolStripMenuItemOption"; + this->toolStripMenuItemOption->Size = System::Drawing::Size(61, 20); + this->toolStripMenuItemOption->Text = L"&Options"; + // + // toolStripMenuItemSetting + // + this->toolStripMenuItemSetting->Name = L"toolStripMenuItemSetting"; + this->toolStripMenuItemSetting->Size = System::Drawing::Size(178, 22); + this->toolStripMenuItemSetting->Text = L"&Settings..."; + this->toolStripMenuItemSetting->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemSetting_Click); + // + // toolStripSeparator2 + // + this->toolStripSeparator2->Name = L"toolStripSeparator2"; + this->toolStripSeparator2->Size = System::Drawing::Size(175, 6); + // + // toolStripMenuItemDelay + // + this->toolStripMenuItemDelay->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(13) { + this->toolStripMenuItemDelayAuto, + this->toolStripSeparator4, this->toolStripMenuItemDelay2, this->toolStripMenuItemDelay3, this->toolStripMenuItemDelay4, this->toolStripMenuItemDelay5, + this->toolStripMenuItemDelay6, this->toolStripMenuItemDelay7, this->toolStripMenuItemDelay8, this->toolStripMenuItemDelay9, this->toolStripMenuItemDelay10, + this->toolStripMenuItemDelay11, this->toolStripMenuItemDelay12 + }); + this->toolStripMenuItemDelay->Name = L"toolStripMenuItemDelay"; + this->toolStripMenuItemDelay->Size = System::Drawing::Size(178, 22); + this->toolStripMenuItemDelay->Text = L"&Delay"; + // + // toolStripMenuItemDelayAuto + // + this->toolStripMenuItemDelayAuto->Checked = true; + this->toolStripMenuItemDelayAuto->CheckState = System::Windows::Forms::CheckState::Checked; + this->toolStripMenuItemDelayAuto->Name = L"toolStripMenuItemDelayAuto"; + this->toolStripMenuItemDelayAuto->Size = System::Drawing::Size(100, 22); + this->toolStripMenuItemDelayAuto->Text = L"Auto"; + this->toolStripMenuItemDelayAuto->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelayAuto_Click); + // + // toolStripSeparator4 + // + this->toolStripSeparator4->Name = L"toolStripSeparator4"; + this->toolStripSeparator4->Size = System::Drawing::Size(97, 6); + // + // toolStripMenuItemDelay2 + // + this->toolStripMenuItemDelay2->Name = L"toolStripMenuItemDelay2"; + this->toolStripMenuItemDelay2->Size = System::Drawing::Size(100, 22); + this->toolStripMenuItemDelay2->Text = L"2"; + this->toolStripMenuItemDelay2->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay2_Click); + // + // toolStripMenuItemDelay3 + // + this->toolStripMenuItemDelay3->Name = L"toolStripMenuItemDelay3"; + this->toolStripMenuItemDelay3->Size = System::Drawing::Size(100, 22); + this->toolStripMenuItemDelay3->Text = L"3"; + this->toolStripMenuItemDelay3->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay3_Click); + // + // toolStripMenuItemDelay4 + // + this->toolStripMenuItemDelay4->Name = L"toolStripMenuItemDelay4"; + this->toolStripMenuItemDelay4->Size = System::Drawing::Size(100, 22); + this->toolStripMenuItemDelay4->Text = L"4"; + this->toolStripMenuItemDelay4->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay4_Click); + // + // toolStripMenuItemDelay5 + // + this->toolStripMenuItemDelay5->Name = L"toolStripMenuItemDelay5"; + this->toolStripMenuItemDelay5->Size = System::Drawing::Size(100, 22); + this->toolStripMenuItemDelay5->Text = L"5"; + this->toolStripMenuItemDelay5->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay5_Click); + // + // toolStripMenuItemDelay6 + // + this->toolStripMenuItemDelay6->Name = L"toolStripMenuItemDelay6"; + this->toolStripMenuItemDelay6->Size = System::Drawing::Size(100, 22); + this->toolStripMenuItemDelay6->Text = L"6"; + this->toolStripMenuItemDelay6->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay6_Click); + // + // toolStripMenuItemDelay7 + // + this->toolStripMenuItemDelay7->Name = L"toolStripMenuItemDelay7"; + this->toolStripMenuItemDelay7->Size = System::Drawing::Size(100, 22); + this->toolStripMenuItemDelay7->Text = L"7"; + this->toolStripMenuItemDelay7->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay7_Click); + // + // toolStripMenuItemDelay8 + // + this->toolStripMenuItemDelay8->Name = L"toolStripMenuItemDelay8"; + this->toolStripMenuItemDelay8->Size = System::Drawing::Size(100, 22); + this->toolStripMenuItemDelay8->Text = L"8"; + this->toolStripMenuItemDelay8->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay8_Click); + // + // toolStripMenuItemDelay9 + // + this->toolStripMenuItemDelay9->Name = L"toolStripMenuItemDelay9"; + this->toolStripMenuItemDelay9->Size = System::Drawing::Size(100, 22); + this->toolStripMenuItemDelay9->Text = L"9"; + this->toolStripMenuItemDelay9->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay9_Click); + // + // toolStripMenuItemDelay10 + // + this->toolStripMenuItemDelay10->Name = L"toolStripMenuItemDelay10"; + this->toolStripMenuItemDelay10->Size = System::Drawing::Size(100, 22); + this->toolStripMenuItemDelay10->Text = L"10"; + this->toolStripMenuItemDelay10->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay10_Click); + // + // toolStripMenuItemDelay11 + // + this->toolStripMenuItemDelay11->Name = L"toolStripMenuItemDelay11"; + this->toolStripMenuItemDelay11->Size = System::Drawing::Size(100, 22); + this->toolStripMenuItemDelay11->Text = L"11"; + this->toolStripMenuItemDelay11->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay11_Click); + // + // toolStripMenuItemDelay12 + // + this->toolStripMenuItemDelay12->Name = L"toolStripMenuItemDelay12"; + this->toolStripMenuItemDelay12->Size = System::Drawing::Size(100, 22); + this->toolStripMenuItemDelay12->Text = L"12"; + this->toolStripMenuItemDelay12->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelay12_Click); + // + // toolStripSeparator3 + // + this->toolStripSeparator3->Name = L"toolStripSeparator3"; + this->toolStripSeparator3->Size = System::Drawing::Size(175, 6); + // + // toolStripMenuItemRecordReplay + // + this->toolStripMenuItemRecordReplay->Checked = true; + this->toolStripMenuItemRecordReplay->CheckState = System::Windows::Forms::CheckState::Checked; + this->toolStripMenuItemRecordReplay->Name = L"toolStripMenuItemRecordReplay"; + this->toolStripMenuItemRecordReplay->Size = System::Drawing::Size(178, 22); + this->toolStripMenuItemRecordReplay->Text = L"Save &replays"; + this->toolStripMenuItemRecordReplay->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemRecordReplay_Click); + // + // toolStripMenuItemAllowSpectator + // + this->toolStripMenuItemAllowSpectator->Checked = true; + this->toolStripMenuItemAllowSpectator->CheckState = System::Windows::Forms::CheckState::Checked; + this->toolStripMenuItemAllowSpectator->Name = L"toolStripMenuItemAllowSpectator"; + this->toolStripMenuItemAllowSpectator->Size = System::Drawing::Size(178, 22); + this->toolStripMenuItemAllowSpectator->Text = L"&Allow spectators"; + this->toolStripMenuItemAllowSpectator->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAllowSpectator_Click); + // + // toolStripMenuItemWordWrap + // + this->toolStripMenuItemWordWrap->Name = L"toolStripMenuItemWordWrap"; + this->toolStripMenuItemWordWrap->Size = System::Drawing::Size(178, 22); + this->toolStripMenuItemWordWrap->Text = L"&Word wrap chat"; + this->toolStripMenuItemWordWrap->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemWordWrap_Click); + // + // LogLockToolStripMenuItem + // + this->LogLockToolStripMenuItem->Checked = true; + this->LogLockToolStripMenuItem->CheckState = System::Windows::Forms::CheckState::Checked; + this->LogLockToolStripMenuItem->Name = L"LogLockToolStripMenuItem"; + this->LogLockToolStripMenuItem->ShortcutKeys = System::Windows::Forms::Keys::F3; + this->LogLockToolStripMenuItem->Size = System::Drawing::Size(178, 22); + this->LogLockToolStripMenuItem->Text = L"Auto-scro&ll chat"; + this->LogLockToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::LogLockToolStripMenuItem_Click); + // + // toolStripSeparator7 + // + this->toolStripSeparator7->Name = L"toolStripSeparator7"; + this->toolStripSeparator7->Size = System::Drawing::Size(175, 6); + // + // toolStripMenuItemAfterRest + // + this->toolStripMenuItemAfterRest->Name = L"toolStripMenuItemAfterRest"; + this->toolStripMenuItemAfterRest->Size = System::Drawing::Size(178, 22); + this->toolStripMenuItemAfterRest->Text = L"Rest after &net battle"; + this->toolStripMenuItemAfterRest->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAfterRest_Click); + // + // toolStripMenuItemAutoRest + // + this->toolStripMenuItemAutoRest->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(9) { + this->toolStripMenuItemAutoRestEnable, + this->toolStripSeparator13, this->toolStripMenuItemAutoRestTime5, this->toolStripMenuItemAutoRestTime10, this->toolStripMenuItemAutoRestTime15, + this->toolStripMenuItemAutoRestTime20, this->toolStripMenuItemAutoRestTime30, this->toolStripMenuItemAutoRestTime60, this->toolStripMenuItemAutoRestTime120 + }); + this->toolStripMenuItemAutoRest->Name = L"toolStripMenuItemAutoRest"; + this->toolStripMenuItemAutoRest->Size = System::Drawing::Size(178, 22); + this->toolStripMenuItemAutoRest->Text = L"Auto-rest after"; + // + // toolStripMenuItemAutoRestEnable + // + this->toolStripMenuItemAutoRestEnable->Name = L"toolStripMenuItemAutoRestEnable"; + this->toolStripMenuItemAutoRestEnable->Size = System::Drawing::Size(138, 22); + this->toolStripMenuItemAutoRestEnable->Text = L"Enabled"; + this->toolStripMenuItemAutoRestEnable->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestEnable_Click); + // + // toolStripSeparator13 + // + this->toolStripSeparator13->Name = L"toolStripSeparator13"; + this->toolStripSeparator13->Size = System::Drawing::Size(135, 6); + // + // toolStripMenuItemAutoRestTime5 + // + this->toolStripMenuItemAutoRestTime5->Name = L"toolStripMenuItemAutoRestTime5"; + this->toolStripMenuItemAutoRestTime5->Size = System::Drawing::Size(138, 22); + this->toolStripMenuItemAutoRestTime5->Text = L"5 minutes"; + this->toolStripMenuItemAutoRestTime5->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime5_Click); + // + // toolStripMenuItemAutoRestTime10 + // + this->toolStripMenuItemAutoRestTime10->Name = L"toolStripMenuItemAutoRestTime10"; + this->toolStripMenuItemAutoRestTime10->Size = System::Drawing::Size(138, 22); + this->toolStripMenuItemAutoRestTime10->Text = L"10 minutes"; + this->toolStripMenuItemAutoRestTime10->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime10_Click); + // + // toolStripMenuItemAutoRestTime15 + // + this->toolStripMenuItemAutoRestTime15->Name = L"toolStripMenuItemAutoRestTime15"; + this->toolStripMenuItemAutoRestTime15->Size = System::Drawing::Size(138, 22); + this->toolStripMenuItemAutoRestTime15->Text = L"15 minutes"; + this->toolStripMenuItemAutoRestTime15->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime15_Click); + // + // toolStripMenuItemAutoRestTime20 + // + this->toolStripMenuItemAutoRestTime20->Name = L"toolStripMenuItemAutoRestTime20"; + this->toolStripMenuItemAutoRestTime20->Size = System::Drawing::Size(138, 22); + this->toolStripMenuItemAutoRestTime20->Text = L"20 minutes"; + this->toolStripMenuItemAutoRestTime20->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime20_Click); + // + // toolStripMenuItemAutoRestTime30 + // + this->toolStripMenuItemAutoRestTime30->Name = L"toolStripMenuItemAutoRestTime30"; + this->toolStripMenuItemAutoRestTime30->Size = System::Drawing::Size(138, 22); + this->toolStripMenuItemAutoRestTime30->Text = L"30 minutes"; + this->toolStripMenuItemAutoRestTime30->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime30_Click); + // + // toolStripMenuItemAutoRestTime60 + // + this->toolStripMenuItemAutoRestTime60->Name = L"toolStripMenuItemAutoRestTime60"; + this->toolStripMenuItemAutoRestTime60->Size = System::Drawing::Size(138, 22); + this->toolStripMenuItemAutoRestTime60->Text = L"60 minutes"; + this->toolStripMenuItemAutoRestTime60->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime60_Click); + // + // toolStripMenuItemAutoRestTime120 + // + this->toolStripMenuItemAutoRestTime120->Name = L"toolStripMenuItemAutoRestTime120"; + this->toolStripMenuItemAutoRestTime120->Size = System::Drawing::Size(138, 22); + this->toolStripMenuItemAutoRestTime120->Text = L"120 minutes"; + this->toolStripMenuItemAutoRestTime120->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime120_Click); + // + // toolStripMenuItemHelp + // + this->toolStripMenuItemHelp->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(4) { + this->toolStripMenuItemViewCommand, + this->toolStripMenuItemChangeList, this->toolStripSeparator5, this->toolStripMenuItemVersion + }); + this->toolStripMenuItemHelp->Name = L"toolStripMenuItemHelp"; + this->toolStripMenuItemHelp->ShortcutKeyDisplayString = L"Ctrl+L"; + this->toolStripMenuItemHelp->Size = System::Drawing::Size(44, 20); + this->toolStripMenuItemHelp->Text = L"&Help"; + // + // toolStripMenuItemViewCommand + // + this->toolStripMenuItemViewCommand->Name = L"toolStripMenuItemViewCommand"; + this->toolStripMenuItemViewCommand->Size = System::Drawing::Size(175, 22); + this->toolStripMenuItemViewCommand->Text = L"&Command List"; + this->toolStripMenuItemViewCommand->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemViewCommand_Click); + // + // toolStripMenuItemChangeList + // + this->toolStripMenuItemChangeList->Name = L"toolStripMenuItemChangeList"; + this->toolStripMenuItemChangeList->ShortcutKeys = System::Windows::Forms::Keys::F2; + this->toolStripMenuItemChangeList->Size = System::Drawing::Size(175, 22); + this->toolStripMenuItemChangeList->Text = L"Toggle &list view"; + this->toolStripMenuItemChangeList->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemChangeList_Click); + // + // toolStripSeparator5 + // + this->toolStripSeparator5->Name = L"toolStripSeparator5"; + this->toolStripSeparator5->Size = System::Drawing::Size(172, 6); + // + // toolStripMenuItemVersion + // + this->toolStripMenuItemVersion->Name = L"toolStripMenuItemVersion"; + this->toolStripMenuItemVersion->Size = System::Drawing::Size(175, 22); + this->toolStripMenuItemVersion->Text = L"&About..."; + this->toolStripMenuItemVersion->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemVersion_Click); + // + // splitContainer1 + // + this->splitContainer1->Anchor = static_cast((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) + | System::Windows::Forms::AnchorStyles::Left) + | System::Windows::Forms::AnchorStyles::Right)); + this->splitContainer1->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle; + this->splitContainer1->Location = System::Drawing::Point(0, 28); + this->splitContainer1->Name = L"splitContainer1"; + // + // splitContainer1.Panel1 + // + this->splitContainer1->Panel1->Controls->Add(this->listBoxMember); + // + // splitContainer1.Panel2 + // + this->splitContainer1->Panel2->Controls->Add(this->richTextBoxLog); + this->splitContainer1->Panel2->Controls->Add(this->textBoxInput); + this->splitContainer1->Size = System::Drawing::Size(528, 322); + this->splitContainer1->SplitterDistance = 90; + this->splitContainer1->TabIndex = 2; + this->splitContainer1->TabStop = false; + // + // listBoxMember + // + this->listBoxMember->BorderStyle = System::Windows::Forms::BorderStyle::None; + this->listBoxMember->ContextMenuStrip = this->contextMenuStripMember; + this->listBoxMember->Dock = System::Windows::Forms::DockStyle::Fill; + this->listBoxMember->DrawMode = System::Windows::Forms::DrawMode::OwnerDrawFixed; + this->listBoxMember->FormattingEnabled = true; + this->listBoxMember->ItemHeight = 12; + this->listBoxMember->Location = System::Drawing::Point(0, 0); + this->listBoxMember->Name = L"listBoxMember"; + this->listBoxMember->Size = System::Drawing::Size(88, 320); + this->listBoxMember->TabIndex = 2; + this->listBoxMember->MouseClick += gcnew System::Windows::Forms::MouseEventHandler(this, &MainForm::listBoxMember_MouseClick); + this->listBoxMember->DrawItem += gcnew System::Windows::Forms::DrawItemEventHandler(this, &MainForm::listBoxMember_DrawItem); + this->listBoxMember->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &MainForm::listBoxMember_MouseDoubleClick); + // + // contextMenuStripMember + // + this->contextMenuStripMember->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(6) { + this->toolStripMenuItemVS, + this->toolStripMenuItemWatch, this->toolStripMenuItemSeek, this->toolStripMenuItemPing, this->toolStripSeparator12, this->toolStripMenuItemKick + }); + this->contextMenuStripMember->Name = L"contextMenuStrip1"; + this->contextMenuStripMember->ShowImageMargin = false; + this->contextMenuStripMember->Size = System::Drawing::Size(122, 120); + this->contextMenuStripMember->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &MainForm::contextMenuStripMember_Opening); + // + // toolStripMenuItemVS + // + this->toolStripMenuItemVS->Name = L"toolStripMenuItemVS"; + this->toolStripMenuItemVS->Size = System::Drawing::Size(121, 22); + this->toolStripMenuItemVS->Text = L"対戦する"; + this->toolStripMenuItemVS->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemVS_Click); + // + // toolStripMenuItemWatch + // + this->toolStripMenuItemWatch->Name = L"toolStripMenuItemWatch"; + this->toolStripMenuItemWatch->Size = System::Drawing::Size(121, 22); + this->toolStripMenuItemWatch->Text = L"観戦する"; + this->toolStripMenuItemWatch->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemWatch_Click); + // + // toolStripMenuItemSeek + // + this->toolStripMenuItemSeek->Name = L"toolStripMenuItemSeek"; + this->toolStripMenuItemSeek->Size = System::Drawing::Size(121, 22); + this->toolStripMenuItemSeek->Text = L"対戦募集する"; + this->toolStripMenuItemSeek->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemSeek_Click); + // + // toolStripMenuItemPing + // + this->toolStripMenuItemPing->Name = L"toolStripMenuItemPing"; + this->toolStripMenuItemPing->Size = System::Drawing::Size(121, 22); + this->toolStripMenuItemPing->Text = L"PING"; + this->toolStripMenuItemPing->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemPing_Click); + // + // toolStripSeparator12 + // + this->toolStripSeparator12->Name = L"toolStripSeparator12"; + this->toolStripSeparator12->Size = System::Drawing::Size(118, 6); + // + // toolStripMenuItemKick + // + this->toolStripMenuItemKick->Name = L"toolStripMenuItemKick"; + this->toolStripMenuItemKick->Size = System::Drawing::Size(121, 22); + this->toolStripMenuItemKick->Text = L"KICK"; + this->toolStripMenuItemKick->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemKick_Click); + // + // richTextBoxLog + // + this->richTextBoxLog->BackColor = System::Drawing::SystemColors::Window; + this->richTextBoxLog->BorderStyle = System::Windows::Forms::BorderStyle::None; + this->richTextBoxLog->ContextMenuStrip = this->contextMenuStripLog; + this->richTextBoxLog->Dock = System::Windows::Forms::DockStyle::Fill; + this->richTextBoxLog->Location = System::Drawing::Point(0, 0); + this->richTextBoxLog->Name = L"richTextBoxLog"; + this->richTextBoxLog->ReadOnly = true; + this->richTextBoxLog->Size = System::Drawing::Size(432, 300); + this->richTextBoxLog->TabIndex = 0; + this->richTextBoxLog->TabStop = false; + this->richTextBoxLog->Text = L""; + this->richTextBoxLog->WordWrap = false; + this->richTextBoxLog->LinkClicked += gcnew System::Windows::Forms::LinkClickedEventHandler(this, &MainForm::richTextBoxLog_LinkClicked); + // + // contextMenuStripLog + // + this->contextMenuStripLog->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(3) { + this->contextMenuItemCopy, + this->toolStripSeparator6, this->contxtMenuItemSaveLog + }); + this->contextMenuStripLog->Name = L"contextMenuStrip2"; + this->contextMenuStripLog->ShowImageMargin = false; + this->contextMenuStripLog->Size = System::Drawing::Size(164, 54); + // + // contextMenuItemCopy + // + this->contextMenuItemCopy->Name = L"contextMenuItemCopy"; + this->contextMenuItemCopy->ShortcutKeys = static_cast((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::C)); + this->contextMenuItemCopy->Size = System::Drawing::Size(163, 22); + this->contextMenuItemCopy->Text = L"コピー(&C)"; + this->contextMenuItemCopy->Click += gcnew System::EventHandler(this, &MainForm::contextMenuItemCopy_Click); + // + // toolStripSeparator6 + // + this->toolStripSeparator6->Name = L"toolStripSeparator6"; + this->toolStripSeparator6->Size = System::Drawing::Size(160, 6); + // + // contxtMenuItemSaveLog + // + this->contxtMenuItemSaveLog->Name = L"contxtMenuItemSaveLog"; + this->contxtMenuItemSaveLog->ShortcutKeys = static_cast((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::S)); + this->contxtMenuItemSaveLog->Size = System::Drawing::Size(163, 22); + this->contxtMenuItemSaveLog->Text = L"ログの保存(&S)"; + this->contxtMenuItemSaveLog->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemSaveLog_Click); + // + // textBoxInput + // + this->textBoxInput->BackColor = System::Drawing::SystemColors::Window; + this->textBoxInput->Dock = System::Windows::Forms::DockStyle::Bottom; + this->textBoxInput->Location = System::Drawing::Point(0, 300); + this->textBoxInput->MaxLength = 127; + this->textBoxInput->Name = L"textBoxInput"; + this->textBoxInput->Size = System::Drawing::Size(432, 20); + this->textBoxInput->TabIndex = 0; + this->textBoxInput->KeyDown += gcnew System::Windows::Forms::KeyEventHandler(this, &MainForm::textBoxInput_KeyDown); + // + // openFileDialog1 + // + this->openFileDialog1->Filter = L"MT Replay file (*.mtr)|*.mtr"; + this->openFileDialog1->Title = L"LilithPort用のリプレイファイル"; + // + // statusStrip1 + // + this->statusStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) { + this->toolStripDropDownButtonProfile, + this->toolStripStatusLabel + }); + this->statusStrip1->Location = System::Drawing::Point(0, 357); + this->statusStrip1->Name = L"statusStrip1"; + this->statusStrip1->RightToLeft = System::Windows::Forms::RightToLeft::No; + this->statusStrip1->Size = System::Drawing::Size(528, 22); + this->statusStrip1->TabIndex = 3; + this->statusStrip1->Text = L"statusStrip1"; + // + // toolStripDropDownButtonProfile + // + this->toolStripDropDownButtonProfile->Alignment = System::Windows::Forms::ToolStripItemAlignment::Right; + this->toolStripDropDownButtonProfile->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Text; + this->toolStripDropDownButtonProfile->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None; + this->toolStripDropDownButtonProfile->Name = L"toolStripDropDownButtonProfile"; + this->toolStripDropDownButtonProfile->RightToLeft = System::Windows::Forms::RightToLeft::No; + this->toolStripDropDownButtonProfile->Size = System::Drawing::Size(13, 20); + // + // toolStripStatusLabel + // + this->toolStripStatusLabel->BorderSides = System::Windows::Forms::ToolStripStatusLabelBorderSides::Left; + this->toolStripStatusLabel->BorderStyle = System::Windows::Forms::Border3DStyle::Raised; + this->toolStripStatusLabel->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Text; + this->toolStripStatusLabel->Margin = System::Windows::Forms::Padding(5, 3, 0, 2); + this->toolStripStatusLabel->Name = L"toolStripStatusLabel"; + this->toolStripStatusLabel->Padding = System::Windows::Forms::Padding(5, 0, 0, 0); + this->toolStripStatusLabel->Size = System::Drawing::Size(9, 17); + // + // MainForm + // + this->AllowDrop = true; + this->AutoScaleDimensions = System::Drawing::SizeF(6, 13); + this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font; + this->ClientSize = System::Drawing::Size(528, 379); + this->Controls->Add(this->statusStrip1); + this->Controls->Add(this->splitContainer1); + this->Controls->Add(this->menuStrip1); + this->Icon = (cli::safe_cast(resources->GetObject(L"$this.Icon"))); + this->MainMenuStrip = this->menuStrip1; + this->Name = L"MainForm"; + this->Text = L"LilithPort"; + this->FormClosing += gcnew System::Windows::Forms::FormClosingEventHandler(this, &MainForm::MainForm_FormClosing); + this->FormClosed += gcnew System::Windows::Forms::FormClosedEventHandler(this, &MainForm::MainForm_FormClosed); + this->Load += gcnew System::EventHandler(this, &MainForm::MainForm_Load); + this->Shown += gcnew System::EventHandler(this, &MainForm::MainForm_Shown); + this->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &MainForm::MainForm_DragDrop); + this->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &MainForm::MainForm_DragEnter); + this->menuStrip1->ResumeLayout(false); + this->menuStrip1->PerformLayout(); + this->splitContainer1->Panel1->ResumeLayout(false); + this->splitContainer1->Panel2->ResumeLayout(false); + this->splitContainer1->Panel2->PerformLayout(); + (cli::safe_cast(this->splitContainer1))->EndInit(); + this->splitContainer1->ResumeLayout(false); + this->contextMenuStripMember->ResumeLayout(false); + this->contextMenuStripLog->ResumeLayout(false); + this->statusStrip1->ResumeLayout(false); + this->statusStrip1->PerformLayout(); + this->ResumeLayout(false); + this->PerformLayout(); - } + } #pragma endregion private: static OptionForm^ Option; @@ -1079,11 +1103,11 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; try{ FileVersionInfo^ info = FileVersionInfo::GetVersionInfo(gcnew String(MTOPTION.GAME_EXE)); - if(info->FileDescription != "2D格闘ツクール2nd." && info->FileDescription != "2D格闘ツクール95"){ + if(info->FileDescription != L"2D格闘ツクール2nd." && info->FileDescription != L"2D格闘ツクール95"){ throw gcnew Exception; } else{ - if(info->FileDescription == "2D格闘ツクール2nd."){ + if(info->FileDescription == L"2D格闘ツクール2nd."){ MTINFO.KGT2K = true; } else{ @@ -1092,8 +1116,8 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } } catch(Exception^){ - WriteMessage("格闘ツクールの実行ファイルではありません。\n", ErrorMessageColor); - WriteMessage("オプションで実行ファイルのパスを設定してください。\n", ErrorMessageColor); + WriteMessage(L"格闘ツクールの実行ファイルではありません。\n", ErrorMessageColor); + WriteMessage(L"オプションで実行ファイルのパスを設定してください。\n", ErrorMessageColor); return; } @@ -1207,7 +1231,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; array^ h = br->ReadChars(header->Length); for(int i = 0; i < h->Length; i++){ if(h[i] != header[i]){ - WriteMessage("有効なリプレイファイルではありません。\n", ErrorMessageColor); + WriteMessage(L"有効なリプレイファイルではありません。\n", ErrorMessageColor); return; } } @@ -1215,7 +1239,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; ver = br->ReadChar(); if(ver < _T('1') || ver > _T('4')){ - WriteMessage("有効なリプレイのバージョンではありません。\n", ErrorMessageColor); + WriteMessage(L"有効なリプレイのバージョンではありません。\n", ErrorMessageColor); return; } } @@ -1229,10 +1253,10 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } else{ if(_tcslen(MTINFO.ORIGINAL_TITLE) > 0){ - WriteMessage(String::Format("{0}が起動中です。\n", gcnew String(MTINFO.ORIGINAL_TITLE)), SystemMessageColor); + WriteMessage(String::Format(L"{0}が起動中です。\n", gcnew String(MTINFO.ORIGINAL_TITLE)), SystemMessageColor); } else{ - WriteMessage("他のゲームが起動中です。\n", SystemMessageColor); + WriteMessage(L"他のゲームが起動中です。\n", SystemMessageColor); } } } @@ -1240,14 +1264,14 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; void QuitGame(){ if(GameThread != nullptr && GameThread->IsAlive){ if(MTINFO.DEBUG){ - WriteMessage("ゲームプロセスを停止します。\n", DebugMessageColor); + WriteMessage(L"ゲームプロセスを停止します。\n", DebugMessageColor); } try{ Process::GetProcessById(MTINFO.PROCESS_ID)->CloseMainWindow(); } catch(ArgumentException^){ if(MTINFO.DEBUG){ - WriteMessage("例外 > ArgumentException\n", DebugMessageColor); + WriteMessage(L"例外 > ArgumentException\n", DebugMessageColor); } GameThread->Abort(); GameThread = nullptr; @@ -1261,19 +1285,19 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; if(ps->Length > 0){ for(int i=0; i < ps->Length; i++){ if(ps[0]->MainWindowTitle == game){ - WriteMessage(String::Format("{0}を終了します。\n", ps[0]->MainWindowTitle), SystemMessageColor); + WriteMessage(String::Format(L"{0}を終了します。\n", ps[0]->MainWindowTitle), SystemMessageColor); ps[0]->CloseMainWindow(); } } }else{ - WriteMessage(String::Format("終了するゲーム\"{0}\"が見つかりませんでした。\nオプションの実行ファイルのパス、またはプロファイルが合っているか確認してください。\n", game), ErrorMessageColor); + WriteMessage(String::Format(L"終了するゲーム\"{0}\"が見つかりませんでした。\nオプションの実行ファイルのパス、またはプロファイルが合っているか確認してください。\n", game), ErrorMessageColor); return; } } catch(Exception^ e){ - WriteMessage("ゲームを終了できませんでした。\n", ErrorMessageColor); + WriteMessage(L"ゲームを終了できませんでした。\n", ErrorMessageColor); if(MTINFO.DEBUG){ - WriteMessage(String::Format("{0}\n", e->ToString()), DebugMessageColor); + WriteMessage(String::Format(L"{0}\n", e->ToString()), DebugMessageColor); } } } @@ -1314,7 +1338,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; if(state == MS_WATCH) ChangeState((BYTE)MS_FREE); if(state == MS_COUCH) ChangeState((BYTE)MS_REST); - toolStripMenuItemWatch->Text = gcnew String("観戦する"); + toolStripMenuItemWatch->Text = gcnew String(L"観戦する"); } void Restart(){ @@ -1337,7 +1361,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; TimerGetIPThread->Join(); } - this->Text = gcnew String("LilithPort"); + this->Text = gcnew String(L"LilithPort"); StartupForm^ s = gcnew StartupForm; s->ShowDialog(this); @@ -1368,7 +1392,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; MTOPTION.CONNECTION_TYPE = CT_FREE; MemberList[0]->TYPE = CT_FREE; MemberList[0]->STATE = MS_FREE; - this->Text = gcnew String("LilithPort [Free Play]"); + this->Text = gcnew String(L"LilithPort [Free Play]"); listBoxMember->Refresh(); } @@ -1483,7 +1507,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } if(i >= MemberList->Count && MTOPTION.CONNECTION_TYPE != CT_SERVER){ - name = gcnew String(String::Format("Unknown(ID:{0})", id)); + name = gcnew String(String::Format(L"Unknown(ID:{0})", id)); col = ErrorMessageColor; // メンバーリスト外のIDがいたので問い合わせ @@ -1560,8 +1584,8 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; WriteTime(1, SystemMessageColor); } // 表示 - WriteMessage(String::Format("[ {0} ] ", name), col); - WriteMessage(String::Format("{0}\n", tmpMsg), TalkMessageColor); + WriteMessage(String::Format(L"[ {0} ] ", name), col); + WriteMessage(String::Format(L"{0}\n", tmpMsg), TalkMessageColor); } void WriteMessage(String^ msg, Color color){ @@ -1590,9 +1614,9 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } void WriteTime(bool f, Color color){ if(f){ - WriteMessage(String::Format("[{0}]", DateTime::Now.ToString("HH:mm")), color); + WriteMessage(String::Format(L"[{0}]", DateTime::Now.ToString("HH:mm")), color); }else{ - WriteMessage(String::Format("[{0}] ", DateTime::Now.ToString("HH:mm")), color); + WriteMessage(String::Format(L"[{0}] ", DateTime::Now.ToString("HH:mm")), color); } } void WriteNotice(String^ msg){ @@ -1618,7 +1642,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; richTextBoxLog->SelectionFont = gcnew Drawing::Font(richTextBoxLog->Font->FontFamily, richTextBoxLog->Font->Size + 2); richTextBoxLog->SelectionColor = TalkMessageColor; richTextBoxLog->SelectionBackColor = NoticeBackColor; - richTextBoxLog->AppendText(msg + "\n"); + richTextBoxLog->AppendText(msg + L"\n"); richTextBoxLog->SelectionStart = richTextBoxLog->Text->Length; @@ -1658,11 +1682,11 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; richTextBoxLog->SelectionStart = richTextBoxLog->Text->Length; richTextBoxLog->SelectionColor = NameColor[type]; richTextBoxLog->SelectionBackColor = CommentBackColor; - richTextBoxLog->AppendText(String::Format("[ {0} ] ", name)); + richTextBoxLog->AppendText(String::Format(L"[ {0} ] ", name)); richTextBoxLog->SelectionColor = TalkMessageColor; richTextBoxLog->SelectionBackColor = CommentBackColor; - richTextBoxLog->AppendText(String::Format("{0}\n", comment)); + richTextBoxLog->AppendText(String::Format(L"{0}\n", comment)); richTextBoxLog->SelectionStart = richTextBoxLog->Text->Length; if(!MTOPTION.LOG_LOCK) { @@ -1678,27 +1702,27 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } else{ WriteTime(0, SystemMessageColor); - WriteMessage(String::Format("{0}が入室しました。\n", name), SystemMessageColor); + WriteMessage(String::Format(L"{0}が入室しました。\n", name), SystemMessageColor); } } void WriteCommandList(){ WriteMessage( - "/help : コマンド一覧の表示\n" - "/clear : ログの削除\n" - "/log : RTF形式でログの保存\n" - "/debug : デバッグモードの切り替え\n" - "/vs : ランダムに対戦を挑む\n" - "/game : ゲームの起動\n" - "/replay : リプレイファイルの再生\n" - "/quit : 起動中のゲームを終了\n" - "/reload : メンバーリストの更新\n" - "/restart : フリープレイから新規に回線接続\n" - "/rest : 休憩状態の切り替え\n" - "/seek : 対戦募集状態の切り替え\n" - "/list : リストの表示を切り替え\n" - "/leave : 退室&フリープレイに移行\n" - "/exit : プログラムの終了\n", SystemMessageColor); + L"/help : コマンド一覧の表示\n" + L"/clear : ログの削除\n" + L"/log : RTF形式でログの保存\n" + L"/debug : デバッグモードの切り替え\n" + L"/vs : ランダムに対戦を挑む\n" + L"/game : ゲームの起動\n" + L"/replay : リプレイファイルの再生\n" + L"/quit : 起動中のゲームを終了\n" + L"/reload : メンバーリストの更新\n" + L"/restart : フリープレイから新規に回線接続\n" + L"/rest : 休憩状態の切り替え\n" + L"/seek : 対戦募集状態の切り替え\n" + L"/list : リストの表示を切り替え\n" + L"/leave : 退室&フリープレイに移行\n" + L"/exit : プログラムの終了\n", SystemMessageColor); } void RandomVersus(){ @@ -1731,7 +1755,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; StartGame(RT_VS); } else{ - WriteMessage("対戦できる相手がいませんでした。\n", SystemMessageColor); + WriteMessage(L"対戦できる相手がいませんでした。\n", SystemMessageColor); } } } @@ -1745,7 +1769,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } else if(textBoxInput->Text->StartsWith("/log", StringComparison::OrdinalIgnoreCase)){ String^ path = gcnew String(MTOPTION.PATH); - String^ file = String::Format("MT_{0}.rtf", DateTime::Now.ToString("yyMMdd-HHmmss")); + String^ file = String::Format(L"MT_{0}.rtf", DateTime::Now.ToString("yyMMdd-HHmmss")); path += file; Monitor::Enter(richTextBoxLog); @@ -1759,15 +1783,15 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; Monitor::Exit(richTextBoxLog); } - WriteMessage(String::Format("\"{0}\"にログを保存しました。\n", file), SystemMessageColor); + WriteMessage(String::Format(L"\"{0}\"にログを保存しました。\n", file), SystemMessageColor); } else if(textBoxInput->Text->StartsWith("/debug", StringComparison::OrdinalIgnoreCase)){ MTINFO.DEBUG ^= 1; if(MTINFO.DEBUG){ - WriteMessage("デバッグモード > オン\n", SystemMessageColor); + WriteMessage(L"デバッグモード > オン\n", SystemMessageColor); } else{ - WriteMessage("デバッグモード > オフ\n", SystemMessageColor); + WriteMessage(L"デバッグモード > オフ\n", SystemMessageColor); } } else if(textBoxInput->Text->StartsWith("/vs", StringComparison::OrdinalIgnoreCase)){ @@ -1791,11 +1815,11 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; if(MemberList[0]->STATE == MS_FREE){ ChangeState((BYTE)MS_REST); - WriteMessage("休憩状態を変更しました。 > オン\n", SystemMessageColor); + WriteMessage(L"休憩状態を変更しました。 > オン\n", SystemMessageColor); } else if(MemberList[0]->STATE == MS_REST){ ChangeState((BYTE)MS_FREE); - WriteMessage("休憩状態を変更しました。 > オフ\n", SystemMessageColor); + WriteMessage(L"休憩状態を変更しました。 > オフ\n", SystemMessageColor); } } else if(textBoxInput->Text->StartsWith("/seek", StringComparison::OrdinalIgnoreCase)){ @@ -1805,7 +1829,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; ChangeListView(true); } else if(textBoxInput->Text->StartsWith("/time", StringComparison::OrdinalIgnoreCase)){ - WriteMessage(String::Format("{0} {1}\n", DateTime::Now.ToLongDateString(), DateTime::Now.ToLongTimeString()), SecretColor); + WriteMessage(String::Format(L"{0} {1}\n", DateTime::Now.ToLongDateString(), DateTime::Now.ToLongTimeString()), SecretColor); } else if(textBoxInput->Text->StartsWith("/dice", StringComparison::OrdinalIgnoreCase)){ if(MTOPTION.CONNECTION_TYPE == CT_SERVER){ @@ -1820,7 +1844,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; richTextBoxLog->SelectionColor = TalkMessageColor; richTextBoxLog->SelectionBackColor = NoticeBackColor; - richTextBoxLog->AppendText(Byte(dice).ToString() + "\n"); + richTextBoxLog->AppendText(Byte(dice).ToString() + L"\n"); richTextBoxLog->SelectionStart = richTextBoxLog->Text->Length; if(!MTOPTION.LOG_LOCK) { @@ -1847,10 +1871,10 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; return; } if(MTINFO.DEBUG){ - WriteMessage("NAME / ID / IP_EP / TYPE\n", DebugMessageColor); + WriteMessage(L"NAME / ID / IP_EP / TYPE\n", DebugMessageColor); for(int i = 0; i < MemberList->Count; i++){ // TYPE 0:Server 1:Host 2:Client - WriteMessage(String::Format("{0} / {1} / {2} / {3}\n", MemberList[i]->NAME, MemberList[i]->ID, MemberList[i]->IP_EP, MemberList[i]->TYPE), DebugMessageColor); + WriteMessage(String::Format(L"{0} / {1} / {2} / {3}\n", MemberList[i]->NAME, MemberList[i]->ID, MemberList[i]->IP_EP, MemberList[i]->TYPE), DebugMessageColor); } } } @@ -1860,9 +1884,9 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; return; } if(MTINFO.DEBUG){ - WriteMessage("ID / IP_EP\n", DebugMessageColor); + WriteMessage(L"ID / IP_EP\n", DebugMessageColor); for(int i = 0; i < MemberListBackUp->Count; i++){ - WriteMessage(String::Format("{0} / {1}\n", MemberListBackUp[i]->ID, MemberListBackUp[i]->IP_EP), DebugMessageColor); + WriteMessage(String::Format(L"{0} / {1}\n", MemberListBackUp[i]->ID, MemberListBackUp[i]->IP_EP), DebugMessageColor); } } } @@ -1914,12 +1938,12 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; /*// MTSPアドレスデコード IPEndPoint^ ep = gcnew IPEndPoint(MTDecryptionIP(""), 7500); - WriteMessage(String::Format("{0}", ep), DebugMessageColor); + WriteMessage(String::Format(L"{0}", ep), DebugMessageColor); //*/ /*// LilithPortアドレスデコード IPEndPoint^ ep = gcnew IPEndPoint(DecryptionIP("", true), 7500); - WriteMessage(String::Format("{0}", ep), DebugMessageColor); + WriteMessage(String::Format(L"{0}", ep), DebugMessageColor); //*/ /*// メンバーリスト手動削除 @@ -1940,12 +1964,12 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; listBoxMember->Items->Add(info->COMMENT); } else{ - listBoxMember->Items->Add(gcnew String("◆")); + listBoxMember->Items->Add(gcnew String(L"◆")); } break; case LV_BLIND: - listBoxMember->Items->Add(gcnew String("◆")); + listBoxMember->Items->Add(gcnew String(L"◆")); break; } } @@ -1986,12 +2010,12 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; listBoxMember->Items[i] = MemberList[i]->COMMENT; } else{ - listBoxMember->Items[i] = gcnew String("◆"); + listBoxMember->Items[i] = gcnew String(L"◆"); } break; case LV_BLIND: - listBoxMember->Items[i] = gcnew String("◆"); + listBoxMember->Items[i] = gcnew String(L"◆"); break; } } @@ -2085,7 +2109,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; Array::Copy(BitConverter::GetBytes(0), 0, send, 1, 2); UDP->Send(send, 3, MemberList[1]->IP_EP); - WriteMessage("メンバーリストを更新しました。(連続しての更新はサーバーに負荷がかかるため、注意してください。)\n", SystemMessageColor); + WriteMessage(L"メンバーリストを更新しました。(連続しての更新はサーバーに負荷がかかるため、注意してください。)\n", SystemMessageColor); } void WriteStatus(String^ msg){ toolStripStatusLabel->Text = msg; @@ -2103,9 +2127,9 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } // TimerGetIPタイムアウト if(e->Cancelled) { - WriteMessage("IPアドレス取得の要求がタイムアウトによりキャンセルされました。\n", ErrorMessageColor); + WriteMessage(L"IPアドレス取得の要求がタイムアウトによりキャンセルされました。\n", ErrorMessageColor); if(MTINFO.DEBUG){ - WriteMessage(e->ToString() + "\n", DebugMessageColor); + WriteMessage(e->ToString() + L"\n", DebugMessageColor); } GetIPClient = nullptr; return; @@ -2127,10 +2151,10 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } catch(Exception^ e) { Global_address = 0; - WriteMessage("IPアドレス情報の抽出に失敗しました。\nLilithPortのバージョンが古い可能性があります。\n", ErrorMessageColor); + WriteMessage(L"IPアドレス情報の抽出に失敗しました。\nLilithPortのバージョンが古い可能性があります。\n", ErrorMessageColor); if(MTINFO.DEBUG){ - WriteMessage(e->ToString() + "\n", DebugMessageColor); + WriteMessage(e->ToString() + L"\n", DebugMessageColor); } } finally{ @@ -2139,20 +2163,20 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; if(reply != nullptr) reply->Close(); } if(Global_address > 0) { - WriteMessage(String::Format("IPアドレスを取得しました。 > {0}\n", s3[1]), SystemMessageColor); - WriteMessage("[変換アドレス:ポート]\nLilithPort用 > ", SystemMessageColor); + WriteMessage(String::Format(L"IPアドレスを取得しました。 > {0}\n", s3[1]), SystemMessageColor); + WriteMessage(L"[変換アドレス:ポート]\nLilithPort用 > ", SystemMessageColor); richTextBoxLog->SelectionColor = TalkMessageColor; richTextBoxLog->SelectionBackColor = NoticeBackColor; - richTextBoxLog->AppendText(String::Format("{0}:{1}\n", EncryptionIP(s3[1]), MTOPTION.OPEN_PORT)); + richTextBoxLog->AppendText(String::Format(L"{0}:{1}\n", EncryptionIP(s3[1]), MTOPTION.OPEN_PORT)); - WriteMessage("MTSP用 > ", SystemMessageColor); + WriteMessage(L"MTSP用 > ", SystemMessageColor); richTextBoxLog->SelectionColor = TalkMessageColor; richTextBoxLog->SelectionBackColor = NoticeBackColor; - richTextBoxLog->AppendText(String::Format("{0}:{1}\n", MTEncryptionIP(s3[1]), MTOPTION.OPEN_PORT)); + richTextBoxLog->AppendText(String::Format(L"{0}:{1}\n", MTEncryptionIP(s3[1]), MTOPTION.OPEN_PORT)); - WriteMessage("-------------------------------\n", SystemMessageColor); + WriteMessage(L"-------------------------------\n", SystemMessageColor); } GetIPClient = nullptr; } @@ -2169,7 +2193,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; listBoxMember->Items[0] = comment; } else{ - listBoxMember->Items[0] = gcnew String("◆"); + listBoxMember->Items[0] = gcnew String(L"◆"); } } @@ -2220,17 +2244,17 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; GetIPClient->OpenReadCompleted += gcnew OpenReadCompletedEventHandler(this, &MainForm::GetIPOpenReadCompleted); // タイムアウトタイマー - WriteMessage("IPアドレスを取得中です...\n", SystemMessageColor); + WriteMessage(L"IPアドレスを取得中です...\n", SystemMessageColor); TimerGetIPThread = gcnew Thread(gcnew ThreadStart(this, &MainForm::TimerGetIP)); TimerGetIPThread->Start(); try{ GetIPClient->OpenReadAsync(GetIPUri); } catch(WebException^ e) { - WriteMessage("IPアドレスの取得に失敗しました。\n", ErrorMessageColor); + WriteMessage(L"IPアドレスの取得に失敗しました。\n", ErrorMessageColor); if(MTINFO.DEBUG){ - WriteMessage(e->ToString() + "\n", DebugMessageColor); + WriteMessage(e->ToString() + L"\n", DebugMessageColor); } } } @@ -2349,7 +2373,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; s->ShowDialog(this); if(!File::Exists(gcnew String(MTOPTION.GAME_EXE))){ - MessageBox::Show("実行ファイルのパスを設定してください。", "ゲームがありません"); + MessageBox::Show(L"実行ファイルのパスを設定してください。", L"ゲームがありません"); OptionForm^ o = gcnew OptionForm; o->GameExePathError = true; @@ -2371,7 +2395,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } if(MTOPTION.CONNECTION_TYPE == CT_SERVER && MTINFO.ERRORED == false){ - if(MessageBox::Show("サーバを落としますか?", "終了の確認", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::No){ + if(MessageBox::Show(L"サーバを落としますか?", L"終了の確認", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::No){ IsFormClosing = false; e->Cancel = true; return; @@ -2479,15 +2503,15 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; PacketSendAllMember(msg, 0); - WriteMessage("[サーバー告知]-------------------\n", SystemMessageColor); + WriteMessage(L"[サーバー告知]-------------------\n", SystemMessageColor); WriteNotice(textBoxInput->Text); - WriteMessage("-------------------------------\n", SystemMessageColor); + WriteMessage(L"-------------------------------\n", SystemMessageColor); } else if(textBoxInput->Text[0] == '/'){ AnalyzeCommand(); } else if(UDP != nullptr && ServerMode >= SM_MATCH){ - WriteMessage("チャットは禁止されています。\n", SystemMessageColor); + WriteMessage(L"チャットは禁止されています。\n", SystemMessageColor); } else if(UDP != nullptr){ // チャット発言 @@ -2502,12 +2526,12 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; TalkMessage(MemberList[0]->ID, msg); } else{ - WriteMessage(textBoxInput->Text + "\n", TalkMessageColor); + WriteMessage(textBoxInput->Text + L"\n", TalkMessageColor); } } catch(Exception^ e){ if(MTINFO.DEBUG){ - WriteMessage(String::Format("{0}\n", e->ToString()), DebugMessageColor); + WriteMessage(String::Format(L"{0}\n", e->ToString()), DebugMessageColor); } } @@ -2566,18 +2590,18 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; // 休憩状態の変更 if(state == MS_FREE){ ChangeState((BYTE)MS_REST); - WriteMessage("休憩状態を変更しました。 > オン\n", SystemMessageColor); + WriteMessage(L"休憩状態を変更しました。 > オン\n", SystemMessageColor); } else if(state == MS_REST){ ChangeState((BYTE)MS_FREE); - WriteMessage("休憩状態を変更しました。 > オフ\n", SystemMessageColor); + WriteMessage(L"休憩状態を変更しました。 > オフ\n", SystemMessageColor); } else if(state == MS_VS){ - WriteMessage("対戦を中止します。\n", SystemMessageColor); + WriteMessage(L"対戦を中止します。\n", SystemMessageColor); QuitGame(); } else if(state == MS_WATCH || state == MS_COUCH){ - WriteMessage("観戦を中止します。\n", SystemMessageColor); + WriteMessage(L"観戦を中止します。\n", SystemMessageColor); QuitWatch(true); } } @@ -2608,9 +2632,9 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; else{ toolTipMember->Active = true; } - String^ cap = String::Format("ID = {0}", MemberList[index]->ID); + String^ cap = String::Format(L"ID = {0}", MemberList[index]->ID); if(index > 0){ - cap += String::Format(", VS = {0}", MemberList[index]->NUM_VS); + cap += String::Format(L", VS = {0}", MemberList[index]->NUM_VS); } if(ListView == LV_NAME){ if(MemberList[index]->COMMENT->Length > 0){ @@ -2642,7 +2666,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } System::Void toolStripMenuItemVersion_Click(System::Object^ sender, System::EventArgs^ e) { - WriteMessage("LilithPort v1.07\n", SystemMessageColor); + WriteMessage(L"LilithPort v1.07\n", SystemMessageColor); } System::Void toolStripMenuItemExit_Click(System::Object^ sender, System::EventArgs^ e) { @@ -2652,11 +2676,11 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; // ブックマーク追加 System::Void toolStripMenuItemAddBookMark_Click(System::Object^ sender, System::EventArgs^ e) { if((MTOPTION.BOOKMARK_COUNT - MTOPTION.BOOKMARK_DELETED_COUNT) > 9) { - MessageBox::Show("これ以上ブックマークを追加できません。\nブックマークは最大10個まで登録できます。\n\n追加するには、ブックマークの削除を行ってください。", "ブックマークの追加", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); + MessageBox::Show(L"これ以上ブックマークを追加できません。\nブックマークは最大10個まで登録できます。\n\n追加するには、ブックマークの削除を行ってください。", L"ブックマークの追加", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); return; } if(MTOPTION.CONNECTION_TYPE == CT_SERVER || MTOPTION.CONNECTION_TYPE == CT_FREE ){ - MessageBox::Show("SERVERモード、\nFREEモードはブックマークに追加できません。", "ブックマークの追加", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); + MessageBox::Show(L"SERVERモード、\nFREEモードはブックマークに追加できません。", L"ブックマークの追加", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); return; } @@ -2697,7 +2721,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; System::Void toolStripMenuItemBookMark_Click(System::Object^ sender, System::EventArgs^ e) { UINT tmpInt = (UINT)((ToolStripMenuItem^)sender)->Tag; - if(MessageBox::Show(((ToolStripMenuItem^)sender)->Text+" に接続します。\nよろしいですか?", "ブックマーク接続", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show(((ToolStripMenuItem^)sender)->Text+ L" に接続します。\nよろしいですか?", L"ブックマーク接続", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ }else{ return; } @@ -2713,7 +2737,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; Object^ tmpTag; tmpTag = ((ToolStripMenuItem^)sender)->Tag; UINT tmpInt = (UINT)toolStripMenuItemBookMarkMenu->DropDownItems[(String^)tmpTag]->Tag; - if(MessageBox::Show((String^)toolStripMenuItemBookMarkMenu->DropDownItems[(String^)tmpTag]->Text+" をブックマークから削除します。\nよろしいですか?", "ブックマークの削除", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show((String^)toolStripMenuItemBookMarkMenu->DropDownItems[(String^)tmpTag]->Text+ L" をブックマークから削除します。\nよろしいですか?", L"ブックマークの削除", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ toolStripMenuItemBookMarkMenu->DropDownItems->Remove(toolStripMenuItemBookMarkMenu->DropDownItems[(String^)tmpTag]); MTOPTION.BOOKMARK_DELETED_COUNT++; @@ -2750,14 +2774,14 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; // 再起動 System::Void RestartToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { if(MTOPTION.CONNECTION_TYPE == CT_SERVER) { - if(MessageBox::Show("サーバを落とします。\nよろしいですか?", "再起動", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show(L"サーバを落とします。\nよろしいですか?", L"再起動", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ }else{ return; } } if(MTOPTION.CONNECTION_TYPE == CT_HOST || MTOPTION.CONNECTION_TYPE == CT_CLIENT){ - if(MessageBox::Show("回線を切断します。\nよろしいですか?", "再起動", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show(L"回線を切断します。\nよろしいですか?", L"再起動", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ }else{ return; } @@ -2769,14 +2793,14 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; // 退室 System::Void LeaveToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { if(MTOPTION.CONNECTION_TYPE == CT_SERVER) { - if(MessageBox::Show("サーバを落とします。\nよろしいですか?", "退室", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show(L"サーバを落とします。\nよろしいですか?", L"退室", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ }else{ return; } } if(MTOPTION.CONNECTION_TYPE == CT_HOST || MTOPTION.CONNECTION_TYPE == CT_CLIENT){ - if(MessageBox::Show("回線を切断します。\nよろしいですか?", "退室", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show(L"回線を切断します。\nよろしいですか?", L"退室", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ }else{ return; } @@ -2791,11 +2815,11 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; if(MemberList[0]->STATE == MS_FREE){ ChangeState((BYTE)MS_REST); - WriteMessage("休憩状態を変更しました。 > オン\n", SystemMessageColor); + WriteMessage(L"休憩状態を変更しました。 > オン\n", SystemMessageColor); } else if(MemberList[0]->STATE == MS_REST){ ChangeState((BYTE)MS_FREE); - WriteMessage("休憩状態を変更しました。 > オフ\n", SystemMessageColor); + WriteMessage(L"休憩状態を変更しました。 > オフ\n", SystemMessageColor); } } @@ -2827,7 +2851,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; System::Void toolStripMenuItemSaveLog_Click(System::Object^ sender, System::EventArgs^ e) { String^ path = gcnew String(MTOPTION.PATH); - String^ file = String::Format("LilithPort_{0}.log", DateTime::Now.ToString("yyMMdd-HHmmss")); + String^ file = String::Format(L"LilithPort_{0}.log", DateTime::Now.ToString("yyMMdd-HHmmss")); path += file; Monitor::Enter(richTextBoxLog); @@ -2841,7 +2865,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; Monitor::Exit(richTextBoxLog); } - WriteMessage(String::Format("\"{0}\"にログを保存しました。\n", file), SystemMessageColor); + WriteMessage(String::Format(L"\"{0}\"にログを保存しました。\n", file), SystemMessageColor); } System::Void toolStripMenuItemReplay_Click(System::Object^ sender, System::EventArgs^ e) { @@ -2955,7 +2979,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; Process::Start(e->LinkText); } catch(Exception^){ - WriteMessage("不正な文字列リンクです。\n", ErrorMessageColor); + WriteMessage(L"不正な文字列リンクです。\n", ErrorMessageColor); } } @@ -3010,7 +3034,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; Array::Copy(BitConverter::GetBytes(MemberList[0]->ID), 0, send, 1, 2); UDP->BeginSend(send, send->Length, WatchTarget, gcnew AsyncCallback(SendPackets), UDP); - toolStripMenuItemWatch->Text = gcnew String("観戦をやめる"); + toolStripMenuItemWatch->Text = gcnew String(L"観戦をやめる"); } else{ QuitWatch(true); @@ -3038,7 +3062,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; int index = listBoxMember->SelectedIndex; int id = MemberList[index]->ID; - if(MessageBox::Show(String::Format("[ {0} ](ID:{1})をキックします。\nよろしいですか?", MemberList[index]->NAME, MemberList[index]->ID), "KICK", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show(String::Format(L"[ {0} ](ID:{1})をキックします。\nよろしいですか?", MemberList[index]->NAME, MemberList[index]->ID), "KICK", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ }else{ return; } @@ -3050,7 +3074,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; if(ListView != LV_BLIND){ WriteTime(0, SystemMessageColor); - WriteMessage(String::Format("{0}(ID:{1})をキックしました。\n", MemberList[index]->NAME, MemberList[index]->ID), SystemMessageColor); + WriteMessage(String::Format(L"{0}(ID:{1})をキックしました。\n", MemberList[index]->NAME, MemberList[index]->ID), SystemMessageColor); } if(MemberList[0]->STATE == MS_WATCH || MemberList[0]->STATE == MS_COUCH){ if(TargetID == MemberList[index]->ID){ @@ -3069,13 +3093,13 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; for(int i = 1; i < MemberList->Count; i++){ UDP->BeginSend(quit, quit->Length, MemberList[i]->IP_EP, gcnew AsyncCallback(SendPackets), UDP); if(MTINFO.DEBUG){ - WriteMessage(String::Format("{0}に通知\n", MemberList[i]->ID), DebugMessageColor); + WriteMessage(String::Format(L"{0}に通知\n", MemberList[i]->ID), DebugMessageColor); } } } catch(Exception^ e){ if(MTINFO.DEBUG){ - WriteMessage(String::Format("{0}\n", e->ToString()), DebugMessageColor); + WriteMessage(String::Format(L"{0}\n", e->ToString()), DebugMessageColor); } } @@ -3123,7 +3147,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; String^ extension = Path::GetExtension(file[0])->ToLower(); FileVersionInfo^ info = FileVersionInfo::GetVersionInfo(file[0]); - if(extension == ".mtr" || (extension == ".exe" && (info->FileDescription == "2D格闘ツクール2nd." || info->FileDescription == "2D格闘ツクール95"))){ + if(extension == ".mtr" || (extension == ".exe" && (info->FileDescription == L"2D格闘ツクール2nd." || info->FileDescription == L"2D格闘ツクール95"))){ e->Effect = DragDropEffects::All; } } @@ -3152,7 +3176,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; _tsplitpath_s(MTOPTION.GAME_EXE, drive, _MAX_DRIVE, dir, _MAX_DIR, NULL, 0, NULL, 0); - if(info->FileDescription == "2D格闘ツクール2nd."){ + if(info->FileDescription == L"2D格闘ツクール2nd."){ b2nd = true; _stprintf_s(ini, _T("%s%sgame.ini"), drive, dir); } @@ -3176,7 +3200,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; MTOPTION.STAGE_SELECT = MTOPTION.MAX_STAGE == 1 ? 1 : 0; } - WriteMessage(String::Format("プレイするゲームを\"{0}\"に変更しました。\n", Path::GetFileNameWithoutExtension(file[0])), SystemMessageColor); + WriteMessage(String::Format(L"プレイするゲームを\"{0}\"に変更しました。\n", Path::GetFileNameWithoutExtension(file[0])), SystemMessageColor); } else{ Option->SetGameExePath(file[0]); @@ -3252,5 +3276,5 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; System::Void toolStripMenuItemWordWrap_Click(System::Object^ sender, System::EventArgs^ e) { ChangeLogWordWrap(); } - }; +}; } diff --git a/LilithPort/MainForm.resX b/LilithPort/MainForm.resX index a062f14..4951484 100644 --- a/LilithPort/MainForm.resX +++ b/LilithPort/MainForm.resX @@ -112,33 +112,33 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + False - + 17, 17 - + 127, 17 - + 277, 17 - + 439, 17 - + 571, 17 - + 713, 17 - + AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAQAMAAAAAAAAAAAAAAAAAAAAA diff --git a/LilithPort/OptionForm.cpp b/LilithPort/OptionForm.cpp index ac3637d..826c358 100644 --- a/LilithPort/OptionForm.cpp +++ b/LilithPort/OptionForm.cpp @@ -10,12 +10,12 @@ void OptionForm::SaveOption(bool apply){ try{ FileVersionInfo^ info = FileVersionInfo::GetVersionInfo(textBoxGameExe->Text); - if(info->FileDescription != "2D格闘ツクール2nd." && info->FileDescription != "2D格闘ツクール95"){ + if(info->FileDescription != L"2D格闘ツクール2nd." && info->FileDescription != L"2D格闘ツクール95"){ throw gcnew Exception; } } catch(Exception^){ - textBoxGameExe->Text = gcnew String("格闘ツクールの実行ファイルではありません"); + textBoxGameExe->Text = gcnew String(L"Invalid or non-Fighter Maker 95/2002 executable file."); } IntPtr mp; @@ -179,23 +179,23 @@ bool OptionForm::CheckTextProfileName(String^ buf){ return true; } if(buf->Length == 0){ - mes = "プロファイル名が空欄です。"; + mes = L"Please enter a name for your profile."; } if(buf->Contains(",") || buf->Contains("[") || buf->Contains("]")){ - mes = "プロファイル名に使用できない文字(, [ ])が含まれています。"; + mes = L"Profile names cannot contain the following characters: \n, [ ]"; } for(int i=0; i < Profile::SystemSection->Length; i++){ if(buf == Profile::SystemSection[i]){ - mes = "そのプロファイル名は使用できません。"; + mes = L"This profile name cannot be used."; } } for(int i=0; i < Profile::ProfileList->Count; i++){ if(buf == Profile::ProfileList[i]){ - mes = "そのプロファイル名は既に存在します。"; + mes = L"This profile name is already in use."; } } if(mes != nullptr){ - MessageBox::Show(mes, "プロファイル保存", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); + MessageBox::Show(mes, L"Profile saved!", MessageBoxButtons::OK, MessageBoxIcon::Information); return true; } return false; diff --git a/LilithPort/OptionForm.h b/LilithPort/OptionForm.h index c3dba3d..da62160 100644 --- a/LilithPort/OptionForm.h +++ b/LilithPort/OptionForm.h @@ -224,1800 +224,1804 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; /// void InitializeComponent(void) { - System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(OptionForm::typeid)); - this->buttonOK = (gcnew System::Windows::Forms::Button()); - this->buttonApply = (gcnew System::Windows::Forms::Button()); - this->buttonCancel = (gcnew System::Windows::Forms::Button()); - this->openFileDialog1 = (gcnew System::Windows::Forms::OpenFileDialog()); - this->folderBrowserDialog1 = (gcnew System::Windows::Forms::FolderBrowserDialog()); - this->colorDialog1 = (gcnew System::Windows::Forms::ColorDialog()); - this->tabPageSound = (gcnew System::Windows::Forms::TabPage()); - this->groupBoxKeywordSound = (gcnew System::Windows::Forms::GroupBox()); - this->buttonKeywordSoundPlay = (gcnew System::Windows::Forms::Button()); - this->checkBoxKeywordSound = (gcnew System::Windows::Forms::CheckBox()); - this->buttonKeywordSound = (gcnew System::Windows::Forms::Button()); - this->textBoxKeywordSoundPath = (gcnew System::Windows::Forms::TextBox()); - this->labelKeywordSound = (gcnew System::Windows::Forms::Label()); - this->textBoxKeyword = (gcnew System::Windows::Forms::TextBox()); - this->groupBoxSeekSound = (gcnew System::Windows::Forms::GroupBox()); - this->buttonSeekSoundPlay = (gcnew System::Windows::Forms::Button()); - this->checkBoxSeekSound = (gcnew System::Windows::Forms::CheckBox()); - this->buttonSeekSound = (gcnew System::Windows::Forms::Button()); - this->textBoxSeekSound = (gcnew System::Windows::Forms::TextBox()); - this->groupBoxTalkSound = (gcnew System::Windows::Forms::GroupBox()); - this->buttonTalkSoundPlay = (gcnew System::Windows::Forms::Button()); - this->checkBoxTalkSound = (gcnew System::Windows::Forms::CheckBox()); - this->buttonTalkSound = (gcnew System::Windows::Forms::Button()); - this->textBoxTalkSound = (gcnew System::Windows::Forms::TextBox()); - this->groupBoxName = (gcnew System::Windows::Forms::GroupBox()); - this->buttonNameSoundPlay = (gcnew System::Windows::Forms::Button()); - this->checkBoxNameSound = (gcnew System::Windows::Forms::CheckBox()); - this->buttonNameSound = (gcnew System::Windows::Forms::Button()); - this->textBoxNameSound = (gcnew System::Windows::Forms::TextBox()); - this->groupBoxEnterSound = (gcnew System::Windows::Forms::GroupBox()); - this->buttonEnterSoundPlay = (gcnew System::Windows::Forms::Button()); - this->checkBoxEnterSound = (gcnew System::Windows::Forms::CheckBox()); - this->textBoxEnterSound = (gcnew System::Windows::Forms::TextBox()); - this->buttonEnterSound = (gcnew System::Windows::Forms::Button()); - this->groupBoxNoticeSound = (gcnew System::Windows::Forms::GroupBox()); - this->buttonNoticeSoundPlay = (gcnew System::Windows::Forms::Button()); - this->checkBoxNoticeSound = (gcnew System::Windows::Forms::CheckBox()); - this->textBoxNoticeSound = (gcnew System::Windows::Forms::TextBox()); - this->buttonNoticeSound = (gcnew System::Windows::Forms::Button()); - this->groupBoxVSSound = (gcnew System::Windows::Forms::GroupBox()); - this->buttonVSSoundPlay = (gcnew System::Windows::Forms::Button()); - this->checkBoxVSSound = (gcnew System::Windows::Forms::CheckBox()); - this->textBoxVSSound = (gcnew System::Windows::Forms::TextBox()); - this->buttonVSSound = (gcnew System::Windows::Forms::Button()); - this->tabPagePath = (gcnew System::Windows::Forms::TabPage()); - this->groupBoxProfile = (gcnew System::Windows::Forms::GroupBox()); - this->buttonSaveProfile = (gcnew System::Windows::Forms::Button()); - this->buttonAddProfile = (gcnew System::Windows::Forms::Button()); - this->labelProfileName = (gcnew System::Windows::Forms::Label()); - this->buttonDeleteProfile = (gcnew System::Windows::Forms::Button()); - this->textBoxProfileName = (gcnew System::Windows::Forms::TextBox()); - this->buttonCopyProfile = (gcnew System::Windows::Forms::Button()); - this->comboBoxProfile = (gcnew System::Windows::Forms::ComboBox()); - this->groupBoxReplayFolder = (gcnew System::Windows::Forms::GroupBox()); - this->textBoxReplayFolder = (gcnew System::Windows::Forms::TextBox()); - this->buttonReplayFolder = (gcnew System::Windows::Forms::Button()); - this->checkBoxDivide = (gcnew System::Windows::Forms::CheckBox()); - this->groupBoxNet = (gcnew System::Windows::Forms::GroupBox()); - this->labelComment = (gcnew System::Windows::Forms::Label()); - this->numericUpDownMaxConnection = (gcnew System::Windows::Forms::NumericUpDown()); - this->textBoxComment = (gcnew System::Windows::Forms::TextBox()); - this->label5 = (gcnew System::Windows::Forms::Label()); - this->groupBoxGameExe = (gcnew System::Windows::Forms::GroupBox()); - this->textBoxGameExe = (gcnew System::Windows::Forms::TextBox()); - this->buttonGameExe = (gcnew System::Windows::Forms::Button()); - this->groupBoxSave = (gcnew System::Windows::Forms::GroupBox()); - this->radioButtonReplayVersion1 = (gcnew System::Windows::Forms::RadioButton()); - this->radioButtonReplayVersion2 = (gcnew System::Windows::Forms::RadioButton()); - this->tabControlOption = (gcnew System::Windows::Forms::TabControl()); - this->tabPageGame = (gcnew System::Windows::Forms::TabPage()); - this->groupBoxTeamOption = (gcnew System::Windows::Forms::GroupBox()); - this->labelTeamRoundHP = (gcnew System::Windows::Forms::Label()); - this->checkBoxTeamRoundHP = (gcnew System::Windows::Forms::CheckBox()); - this->groupBoxSimulate = (gcnew System::Windows::Forms::GroupBox()); - this->numericUpDownSimDelay = (gcnew System::Windows::Forms::NumericUpDown()); - this->labelSimDelay = (gcnew System::Windows::Forms::Label()); - this->groupBoxRun = (gcnew System::Windows::Forms::GroupBox()); - this->checkBoxWindowSize = (gcnew System::Windows::Forms::CheckBox()); - this->checkBoxHitJudge = (gcnew System::Windows::Forms::CheckBox()); - this->groupBoxView = (gcnew System::Windows::Forms::GroupBox()); - this->checkBoxVersus = (gcnew System::Windows::Forms::CheckBox()); - this->checkBoxName = (gcnew System::Windows::Forms::CheckBox()); - this->checkBoxFramerate = (gcnew System::Windows::Forms::CheckBox()); - this->checkBoxRand = (gcnew System::Windows::Forms::CheckBox()); - this->groupBoxSetting = (gcnew System::Windows::Forms::GroupBox()); - this->numericUpDownRound = (gcnew System::Windows::Forms::NumericUpDown()); - this->labelRound = (gcnew System::Windows::Forms::Label()); - this->labelTimer = (gcnew System::Windows::Forms::Label()); - this->numericUpDownTimer = (gcnew System::Windows::Forms::NumericUpDown()); - this->numericUpDownMaxStage = (gcnew System::Windows::Forms::NumericUpDown()); - this->labelMaxStage = (gcnew System::Windows::Forms::Label()); - this->labelStageSelect = (gcnew System::Windows::Forms::Label()); - this->numericUpDownStageSelect = (gcnew System::Windows::Forms::NumericUpDown()); - this->tabPageColor = (gcnew System::Windows::Forms::TabPage()); - this->groupBoxMessageColor = (gcnew System::Windows::Forms::GroupBox()); - this->buttonDebugMessage = (gcnew System::Windows::Forms::Button()); - this->buttonErrorMessage = (gcnew System::Windows::Forms::Button()); - this->buttonSystemMessage = (gcnew System::Windows::Forms::Button()); - this->groupBoxOthersColor = (gcnew System::Windows::Forms::GroupBox()); - this->buttonSecret = (gcnew System::Windows::Forms::Button()); - this->buttonCommentBack = (gcnew System::Windows::Forms::Button()); - this->buttonNoticeBack = (gcnew System::Windows::Forms::Button()); - this->groupBoxStateColor = (gcnew System::Windows::Forms::GroupBox()); - this->buttonSeekState = (gcnew System::Windows::Forms::Button()); - this->buttonWatchState = (gcnew System::Windows::Forms::Button()); - this->buttonVSState = (gcnew System::Windows::Forms::Button()); - this->buttonRestState = (gcnew System::Windows::Forms::Button()); - this->groupBoxNameColor = (gcnew System::Windows::Forms::GroupBox()); - this->buttonClientName = (gcnew System::Windows::Forms::Button()); - this->buttonHostName = (gcnew System::Windows::Forms::Button()); - this->buttonServerName = (gcnew System::Windows::Forms::Button()); - this->tabPageVolume = (gcnew System::Windows::Forms::TabPage()); - this->groupBoxMidi = (gcnew System::Windows::Forms::GroupBox()); - this->labelMidi = (gcnew System::Windows::Forms::Label()); - this->trackBarMidi = (gcnew System::Windows::Forms::TrackBar()); - this->groupBoxSE = (gcnew System::Windows::Forms::GroupBox()); - this->labelSE = (gcnew System::Windows::Forms::Label()); - this->trackBarSE = (gcnew System::Windows::Forms::TrackBar()); - this->groupBoxBGM = (gcnew System::Windows::Forms::GroupBox()); - this->labelBGM = (gcnew System::Windows::Forms::Label()); - this->trackBarBGM = (gcnew System::Windows::Forms::TrackBar()); - this->tabPageIP = (gcnew System::Windows::Forms::TabPage()); - this->AddPortbutton = (gcnew System::Windows::Forms::Button()); - this->discriptionlabel = (gcnew System::Windows::Forms::Label()); - this->Convertbutton = (gcnew System::Windows::Forms::Button()); - this->Base64groupBox = (gcnew System::Windows::Forms::GroupBox()); - this->labelAddrMT = (gcnew System::Windows::Forms::Label()); - this->textBoxMTAddr = (gcnew System::Windows::Forms::TextBox()); - this->labelAddrBase64 = (gcnew System::Windows::Forms::Label()); - this->Base64textBox = (gcnew System::Windows::Forms::TextBox()); - this->IPgroupBox = (gcnew System::Windows::Forms::GroupBox()); - this->IPtextBox = (gcnew System::Windows::Forms::TextBox()); - this->tabPageDetails = (gcnew System::Windows::Forms::TabPage()); - this->groupBoxDetails = (gcnew System::Windows::Forms::GroupBox()); - this->checkBoxShowGameOption = (gcnew System::Windows::Forms::CheckBox()); - this->checkBoxNameFlash = (gcnew System::Windows::Forms::CheckBox()); - this->checkBoxGetIP = (gcnew System::Windows::Forms::CheckBox()); - this->checkBoxTalkFlash = (gcnew System::Windows::Forms::CheckBox()); - this->checkBoxShowResult = (gcnew System::Windows::Forms::CheckBox()); - this->tabPageSound->SuspendLayout(); - this->groupBoxKeywordSound->SuspendLayout(); - this->groupBoxSeekSound->SuspendLayout(); - this->groupBoxTalkSound->SuspendLayout(); - this->groupBoxName->SuspendLayout(); - this->groupBoxEnterSound->SuspendLayout(); - this->groupBoxNoticeSound->SuspendLayout(); - this->groupBoxVSSound->SuspendLayout(); - this->tabPagePath->SuspendLayout(); - this->groupBoxProfile->SuspendLayout(); - this->groupBoxReplayFolder->SuspendLayout(); - this->groupBoxNet->SuspendLayout(); - (cli::safe_cast(this->numericUpDownMaxConnection))->BeginInit(); - this->groupBoxGameExe->SuspendLayout(); - this->groupBoxSave->SuspendLayout(); - this->tabControlOption->SuspendLayout(); - this->tabPageGame->SuspendLayout(); - this->groupBoxTeamOption->SuspendLayout(); - this->groupBoxSimulate->SuspendLayout(); - (cli::safe_cast(this->numericUpDownSimDelay))->BeginInit(); - this->groupBoxRun->SuspendLayout(); - this->groupBoxView->SuspendLayout(); - this->groupBoxSetting->SuspendLayout(); - (cli::safe_cast(this->numericUpDownRound))->BeginInit(); - (cli::safe_cast(this->numericUpDownTimer))->BeginInit(); - (cli::safe_cast(this->numericUpDownMaxStage))->BeginInit(); - (cli::safe_cast(this->numericUpDownStageSelect))->BeginInit(); - this->tabPageColor->SuspendLayout(); - this->groupBoxMessageColor->SuspendLayout(); - this->groupBoxOthersColor->SuspendLayout(); - this->groupBoxStateColor->SuspendLayout(); - this->groupBoxNameColor->SuspendLayout(); - this->tabPageVolume->SuspendLayout(); - this->groupBoxMidi->SuspendLayout(); - (cli::safe_cast(this->trackBarMidi))->BeginInit(); - this->groupBoxSE->SuspendLayout(); - (cli::safe_cast(this->trackBarSE))->BeginInit(); - this->groupBoxBGM->SuspendLayout(); - (cli::safe_cast(this->trackBarBGM))->BeginInit(); - this->tabPageIP->SuspendLayout(); - this->Base64groupBox->SuspendLayout(); - this->IPgroupBox->SuspendLayout(); - this->tabPageDetails->SuspendLayout(); - this->groupBoxDetails->SuspendLayout(); - this->SuspendLayout(); - // - // buttonOK - // - this->buttonOK->Location = System::Drawing::Point(160, 327); - this->buttonOK->Name = L"buttonOK"; - this->buttonOK->Size = System::Drawing::Size(64, 24); - this->buttonOK->TabIndex = 7; - this->buttonOK->Text = L"OK"; - this->buttonOK->UseVisualStyleBackColor = true; - this->buttonOK->Click += gcnew System::EventHandler(this, &OptionForm::buttonOK_Click); - // - // buttonApply - // - this->buttonApply->Location = System::Drawing::Point(230, 327); - this->buttonApply->Name = L"buttonApply"; - this->buttonApply->Size = System::Drawing::Size(64, 24); - this->buttonApply->TabIndex = 8; - this->buttonApply->Text = L"適用"; - this->buttonApply->UseVisualStyleBackColor = true; - this->buttonApply->Click += gcnew System::EventHandler(this, &OptionForm::buttonApply_Click); - // - // buttonCancel - // - this->buttonCancel->Location = System::Drawing::Point(300, 327); - this->buttonCancel->Name = L"buttonCancel"; - this->buttonCancel->Size = System::Drawing::Size(64, 24); - this->buttonCancel->TabIndex = 9; - this->buttonCancel->Text = L"キャンセル"; - this->buttonCancel->UseVisualStyleBackColor = true; - this->buttonCancel->Click += gcnew System::EventHandler(this, &OptionForm::buttonCancel_Click); - // - // folderBrowserDialog1 - // - this->folderBrowserDialog1->Description = L"リプレイ保存フォルダ"; - // - // colorDialog1 - // - this->colorDialog1->FullOpen = true; - // - // tabPageSound - // - this->tabPageSound->AutoScroll = true; - this->tabPageSound->AutoScrollMinSize = System::Drawing::Size(0, 460); - this->tabPageSound->Controls->Add(this->groupBoxKeywordSound); - this->tabPageSound->Controls->Add(this->groupBoxSeekSound); - this->tabPageSound->Controls->Add(this->groupBoxTalkSound); - this->tabPageSound->Controls->Add(this->groupBoxName); - this->tabPageSound->Controls->Add(this->groupBoxEnterSound); - this->tabPageSound->Controls->Add(this->groupBoxNoticeSound); - this->tabPageSound->Controls->Add(this->groupBoxVSSound); - this->tabPageSound->Location = System::Drawing::Point(4, 22); - this->tabPageSound->Name = L"tabPageSound"; - this->tabPageSound->Padding = System::Windows::Forms::Padding(3); - this->tabPageSound->Size = System::Drawing::Size(369, 295); - this->tabPageSound->TabIndex = 3; - this->tabPageSound->Text = L"音声"; - this->tabPageSound->UseVisualStyleBackColor = true; - // - // groupBoxKeywordSound - // - this->groupBoxKeywordSound->Controls->Add(this->buttonKeywordSoundPlay); - this->groupBoxKeywordSound->Controls->Add(this->checkBoxKeywordSound); - this->groupBoxKeywordSound->Controls->Add(this->buttonKeywordSound); - this->groupBoxKeywordSound->Controls->Add(this->textBoxKeywordSoundPath); - this->groupBoxKeywordSound->Controls->Add(this->labelKeywordSound); - this->groupBoxKeywordSound->Controls->Add(this->textBoxKeyword); - this->groupBoxKeywordSound->Location = System::Drawing::Point(9, 346); - this->groupBoxKeywordSound->Name = L"groupBoxKeywordSound"; - this->groupBoxKeywordSound->Size = System::Drawing::Size(335, 96); - this->groupBoxKeywordSound->TabIndex = 7; - this->groupBoxKeywordSound->TabStop = false; - this->groupBoxKeywordSound->Text = L"キーワードで再生"; - // - // buttonKeywordSoundPlay - // - this->buttonKeywordSoundPlay->Location = System::Drawing::Point(260, 62); - this->buttonKeywordSoundPlay->Name = L"buttonKeywordSoundPlay"; - this->buttonKeywordSoundPlay->Size = System::Drawing::Size(65, 20); - this->buttonKeywordSoundPlay->TabIndex = 5; - this->buttonKeywordSoundPlay->Text = L"再生"; - this->buttonKeywordSoundPlay->UseVisualStyleBackColor = true; - this->buttonKeywordSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonKeywordSoundPlay_Click); - // - // checkBoxKeywordSound - // - this->checkBoxKeywordSound->AutoSize = true; - this->checkBoxKeywordSound->Location = System::Drawing::Point(197, 65); - this->checkBoxKeywordSound->Name = L"checkBoxKeywordSound"; - this->checkBoxKeywordSound->Size = System::Drawing::Size(48, 16); - this->checkBoxKeywordSound->TabIndex = 4; - this->checkBoxKeywordSound->Text = L"有効"; - this->checkBoxKeywordSound->UseVisualStyleBackColor = true; - this->checkBoxKeywordSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // buttonKeywordSound - // - this->buttonKeywordSound->Location = System::Drawing::Point(166, 62); - this->buttonKeywordSound->Name = L"buttonKeywordSound"; - this->buttonKeywordSound->Size = System::Drawing::Size(24, 20); - this->buttonKeywordSound->TabIndex = 3; - this->buttonKeywordSound->Text = L"..."; - this->buttonKeywordSound->UseVisualStyleBackColor = true; - this->buttonKeywordSound->Click += gcnew System::EventHandler(this, &OptionForm::buttonKeywordSound_Click); - // - // textBoxKeywordSoundPath - // - this->textBoxKeywordSoundPath->AllowDrop = true; - this->textBoxKeywordSoundPath->Location = System::Drawing::Point(10, 63); - this->textBoxKeywordSoundPath->Name = L"textBoxKeywordSoundPath"; - this->textBoxKeywordSoundPath->Size = System::Drawing::Size(150, 19); - this->textBoxKeywordSoundPath->TabIndex = 2; - this->textBoxKeywordSoundPath->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - this->textBoxKeywordSoundPath->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxKeywordSound_DragDrop); - this->textBoxKeywordSoundPath->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxSound_DragEnter); - // - // labelKeywordSound - // - this->labelKeywordSound->AutoSize = true; - this->labelKeywordSound->Location = System::Drawing::Point(10, 16); - this->labelKeywordSound->Name = L"labelKeywordSound"; - this->labelKeywordSound->Size = System::Drawing::Size(141, 12); - this->labelKeywordSound->TabIndex = 1; - this->labelKeywordSound->Text = L"コンマ( , )で複数登録が可能"; - // - // textBoxKeyword - // - this->textBoxKeyword->Location = System::Drawing::Point(10, 35); - this->textBoxKeyword->Name = L"textBoxKeyword"; - this->textBoxKeyword->Size = System::Drawing::Size(315, 19); - this->textBoxKeyword->TabIndex = 0; - this->textBoxKeyword->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // groupBoxSeekSound - // - this->groupBoxSeekSound->Controls->Add(this->buttonSeekSoundPlay); - this->groupBoxSeekSound->Controls->Add(this->checkBoxSeekSound); - this->groupBoxSeekSound->Controls->Add(this->buttonSeekSound); - this->groupBoxSeekSound->Controls->Add(this->textBoxSeekSound); - this->groupBoxSeekSound->Location = System::Drawing::Point(8, 287); - this->groupBoxSeekSound->Name = L"groupBoxSeekSound"; - this->groupBoxSeekSound->Size = System::Drawing::Size(336, 52); - this->groupBoxSeekSound->TabIndex = 6; - this->groupBoxSeekSound->TabStop = false; - this->groupBoxSeekSound->Text = L"対戦募集で再生"; - // - // buttonSeekSoundPlay - // - this->buttonSeekSoundPlay->Location = System::Drawing::Point(261, 19); - this->buttonSeekSoundPlay->Name = L"buttonSeekSoundPlay"; - this->buttonSeekSoundPlay->Size = System::Drawing::Size(65, 20); - this->buttonSeekSoundPlay->TabIndex = 3; - this->buttonSeekSoundPlay->Text = L"再生"; - this->buttonSeekSoundPlay->UseVisualStyleBackColor = true; - this->buttonSeekSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonSeekSoundPlay_Click); - // - // checkBoxSeekSound - // - this->checkBoxSeekSound->AutoSize = true; - this->checkBoxSeekSound->Location = System::Drawing::Point(197, 21); - this->checkBoxSeekSound->Name = L"checkBoxSeekSound"; - this->checkBoxSeekSound->Size = System::Drawing::Size(48, 16); - this->checkBoxSeekSound->TabIndex = 2; - this->checkBoxSeekSound->Text = L"有効"; - this->checkBoxSeekSound->UseVisualStyleBackColor = true; - this->checkBoxSeekSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // buttonSeekSound - // - this->buttonSeekSound->Location = System::Drawing::Point(167, 18); - this->buttonSeekSound->Name = L"buttonSeekSound"; - this->buttonSeekSound->Size = System::Drawing::Size(24, 20); - this->buttonSeekSound->TabIndex = 1; - this->buttonSeekSound->Text = L"..."; - this->buttonSeekSound->UseVisualStyleBackColor = true; - this->buttonSeekSound->Click += gcnew System::EventHandler(this, &OptionForm::buttonSeekSound_Click); - // - // textBoxSeekSound - // - this->textBoxSeekSound->AllowDrop = true; - this->textBoxSeekSound->Location = System::Drawing::Point(10, 19); - this->textBoxSeekSound->Name = L"textBoxSeekSound"; - this->textBoxSeekSound->Size = System::Drawing::Size(151, 19); - this->textBoxSeekSound->TabIndex = 0; - this->textBoxSeekSound->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - this->textBoxSeekSound->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxSeekSound_DragDrop); - this->textBoxSeekSound->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxSound_DragEnter); - // - // groupBoxTalkSound - // - this->groupBoxTalkSound->Controls->Add(this->buttonTalkSoundPlay); - this->groupBoxTalkSound->Controls->Add(this->checkBoxTalkSound); - this->groupBoxTalkSound->Controls->Add(this->buttonTalkSound); - this->groupBoxTalkSound->Controls->Add(this->textBoxTalkSound); - this->groupBoxTalkSound->Location = System::Drawing::Point(8, 228); - this->groupBoxTalkSound->Name = L"groupBoxTalkSound"; - this->groupBoxTalkSound->Size = System::Drawing::Size(336, 52); - this->groupBoxTalkSound->TabIndex = 5; - this->groupBoxTalkSound->TabStop = false; - this->groupBoxTalkSound->Text = L"発言で再生"; - // - // buttonTalkSoundPlay - // - this->buttonTalkSoundPlay->Location = System::Drawing::Point(261, 19); - this->buttonTalkSoundPlay->Name = L"buttonTalkSoundPlay"; - this->buttonTalkSoundPlay->Size = System::Drawing::Size(65, 20); - this->buttonTalkSoundPlay->TabIndex = 3; - this->buttonTalkSoundPlay->Text = L"再生"; - this->buttonTalkSoundPlay->UseVisualStyleBackColor = true; - this->buttonTalkSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonTalkSoundPlay_Click); - // - // checkBoxTalkSound - // - this->checkBoxTalkSound->AutoSize = true; - this->checkBoxTalkSound->Location = System::Drawing::Point(197, 21); - this->checkBoxTalkSound->Name = L"checkBoxTalkSound"; - this->checkBoxTalkSound->Size = System::Drawing::Size(48, 16); - this->checkBoxTalkSound->TabIndex = 2; - this->checkBoxTalkSound->Text = L"有効"; - this->checkBoxTalkSound->UseVisualStyleBackColor = true; - this->checkBoxTalkSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // buttonTalkSound - // - this->buttonTalkSound->Location = System::Drawing::Point(167, 18); - this->buttonTalkSound->Name = L"buttonTalkSound"; - this->buttonTalkSound->Size = System::Drawing::Size(24, 20); - this->buttonTalkSound->TabIndex = 1; - this->buttonTalkSound->Text = L"..."; - this->buttonTalkSound->UseVisualStyleBackColor = true; - this->buttonTalkSound->Click += gcnew System::EventHandler(this, &OptionForm::buttonTalkSound_Click); - // - // textBoxTalkSound - // - this->textBoxTalkSound->AllowDrop = true; - this->textBoxTalkSound->Location = System::Drawing::Point(10, 19); - this->textBoxTalkSound->Name = L"textBoxTalkSound"; - this->textBoxTalkSound->Size = System::Drawing::Size(151, 19); - this->textBoxTalkSound->TabIndex = 0; - this->textBoxTalkSound->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - this->textBoxTalkSound->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxTalkSound_DragDrop); - this->textBoxTalkSound->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxSound_DragEnter); - // - // groupBoxName - // - this->groupBoxName->Controls->Add(this->buttonNameSoundPlay); - this->groupBoxName->Controls->Add(this->checkBoxNameSound); - this->groupBoxName->Controls->Add(this->buttonNameSound); - this->groupBoxName->Controls->Add(this->textBoxNameSound); - this->groupBoxName->Location = System::Drawing::Point(8, 173); - this->groupBoxName->Name = L"groupBoxName"; - this->groupBoxName->Size = System::Drawing::Size(336, 52); - this->groupBoxName->TabIndex = 4; - this->groupBoxName->TabStop = false; - this->groupBoxName->Text = L"ニックネームが呼ばれたら再生"; - // - // buttonNameSoundPlay - // - this->buttonNameSoundPlay->Location = System::Drawing::Point(261, 19); - this->buttonNameSoundPlay->Name = L"buttonNameSoundPlay"; - this->buttonNameSoundPlay->Size = System::Drawing::Size(65, 20); - this->buttonNameSoundPlay->TabIndex = 5; - this->buttonNameSoundPlay->Text = L"再生"; - this->buttonNameSoundPlay->UseVisualStyleBackColor = true; - this->buttonNameSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonNameSoundPlay_Click); - // - // checkBoxNameSound - // - this->checkBoxNameSound->AutoSize = true; - this->checkBoxNameSound->Location = System::Drawing::Point(197, 21); - this->checkBoxNameSound->Name = L"checkBoxNameSound"; - this->checkBoxNameSound->Size = System::Drawing::Size(48, 16); - this->checkBoxNameSound->TabIndex = 4; - this->checkBoxNameSound->Text = L"有効"; - this->checkBoxNameSound->UseVisualStyleBackColor = true; - this->checkBoxNameSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // buttonNameSound - // - this->buttonNameSound->Location = System::Drawing::Point(167, 18); - this->buttonNameSound->Name = L"buttonNameSound"; - this->buttonNameSound->Size = System::Drawing::Size(24, 20); - this->buttonNameSound->TabIndex = 3; - this->buttonNameSound->Text = L"..."; - this->buttonNameSound->UseVisualStyleBackColor = true; - this->buttonNameSound->Click += gcnew System::EventHandler(this, &OptionForm::buttonNameSound_Click); - // - // textBoxNameSound - // - this->textBoxNameSound->AllowDrop = true; - this->textBoxNameSound->Location = System::Drawing::Point(11, 19); - this->textBoxNameSound->Name = L"textBoxNameSound"; - this->textBoxNameSound->Size = System::Drawing::Size(150, 19); - this->textBoxNameSound->TabIndex = 2; - this->textBoxNameSound->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - this->textBoxNameSound->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxNameSound_DragDrop); - this->textBoxNameSound->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxSound_DragEnter); - // - // groupBoxEnterSound - // - this->groupBoxEnterSound->Controls->Add(this->buttonEnterSoundPlay); - this->groupBoxEnterSound->Controls->Add(this->checkBoxEnterSound); - this->groupBoxEnterSound->Controls->Add(this->textBoxEnterSound); - this->groupBoxEnterSound->Controls->Add(this->buttonEnterSound); - this->groupBoxEnterSound->Location = System::Drawing::Point(8, 118); - this->groupBoxEnterSound->Name = L"groupBoxEnterSound"; - this->groupBoxEnterSound->Size = System::Drawing::Size(336, 52); - this->groupBoxEnterSound->TabIndex = 3; - this->groupBoxEnterSound->TabStop = false; - this->groupBoxEnterSound->Text = L"入室のお知らせ"; - // - // buttonEnterSoundPlay - // - this->buttonEnterSoundPlay->Location = System::Drawing::Point(261, 20); - this->buttonEnterSoundPlay->Name = L"buttonEnterSoundPlay"; - this->buttonEnterSoundPlay->Size = System::Drawing::Size(65, 20); - this->buttonEnterSoundPlay->TabIndex = 4; - this->buttonEnterSoundPlay->Text = L"再生"; - this->buttonEnterSoundPlay->UseVisualStyleBackColor = true; - this->buttonEnterSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonEnterSoundPlay_Click); - // - // checkBoxEnterSound - // - this->checkBoxEnterSound->AutoSize = true; - this->checkBoxEnterSound->Location = System::Drawing::Point(197, 22); - this->checkBoxEnterSound->Name = L"checkBoxEnterSound"; - this->checkBoxEnterSound->Size = System::Drawing::Size(48, 16); - this->checkBoxEnterSound->TabIndex = 3; - this->checkBoxEnterSound->Text = L"有効"; - this->checkBoxEnterSound->UseVisualStyleBackColor = true; - this->checkBoxEnterSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // textBoxEnterSound - // - this->textBoxEnterSound->AllowDrop = true; - this->textBoxEnterSound->Location = System::Drawing::Point(11, 20); - this->textBoxEnterSound->Name = L"textBoxEnterSound"; - this->textBoxEnterSound->Size = System::Drawing::Size(150, 19); - this->textBoxEnterSound->TabIndex = 1; - this->textBoxEnterSound->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - this->textBoxEnterSound->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxEnterSound_DragDrop); - this->textBoxEnterSound->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxSound_DragEnter); - // - // buttonEnterSound - // - this->buttonEnterSound->Location = System::Drawing::Point(167, 19); - this->buttonEnterSound->Name = L"buttonEnterSound"; - this->buttonEnterSound->Size = System::Drawing::Size(24, 20); - this->buttonEnterSound->TabIndex = 2; - this->buttonEnterSound->Text = L"..."; - this->buttonEnterSound->UseVisualStyleBackColor = true; - this->buttonEnterSound->Click += gcnew System::EventHandler(this, &OptionForm::buttonEnterSound_Click); - // - // groupBoxNoticeSound - // - this->groupBoxNoticeSound->Controls->Add(this->buttonNoticeSoundPlay); - this->groupBoxNoticeSound->Controls->Add(this->checkBoxNoticeSound); - this->groupBoxNoticeSound->Controls->Add(this->textBoxNoticeSound); - this->groupBoxNoticeSound->Controls->Add(this->buttonNoticeSound); - this->groupBoxNoticeSound->Location = System::Drawing::Point(8, 63); - this->groupBoxNoticeSound->Name = L"groupBoxNoticeSound"; - this->groupBoxNoticeSound->Size = System::Drawing::Size(336, 52); - this->groupBoxNoticeSound->TabIndex = 2; - this->groupBoxNoticeSound->TabStop = false; - this->groupBoxNoticeSound->Text = L"告知のお知らせ"; - // - // buttonNoticeSoundPlay - // - this->buttonNoticeSoundPlay->Location = System::Drawing::Point(261, 20); - this->buttonNoticeSoundPlay->Name = L"buttonNoticeSoundPlay"; - this->buttonNoticeSoundPlay->Size = System::Drawing::Size(65, 20); - this->buttonNoticeSoundPlay->TabIndex = 4; - this->buttonNoticeSoundPlay->Text = L"再生"; - this->buttonNoticeSoundPlay->UseVisualStyleBackColor = true; - this->buttonNoticeSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonNoticeSoundPlay_Click); - // - // checkBoxNoticeSound - // - this->checkBoxNoticeSound->AutoSize = true; - this->checkBoxNoticeSound->Location = System::Drawing::Point(197, 22); - this->checkBoxNoticeSound->Name = L"checkBoxNoticeSound"; - this->checkBoxNoticeSound->Size = System::Drawing::Size(48, 16); - this->checkBoxNoticeSound->TabIndex = 3; - this->checkBoxNoticeSound->Text = L"有効"; - this->checkBoxNoticeSound->UseVisualStyleBackColor = true; - this->checkBoxNoticeSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // textBoxNoticeSound - // - this->textBoxNoticeSound->AllowDrop = true; - this->textBoxNoticeSound->Location = System::Drawing::Point(11, 20); - this->textBoxNoticeSound->Name = L"textBoxNoticeSound"; - this->textBoxNoticeSound->Size = System::Drawing::Size(150, 19); - this->textBoxNoticeSound->TabIndex = 1; - this->textBoxNoticeSound->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - this->textBoxNoticeSound->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxNoticeSound_DragDrop); - this->textBoxNoticeSound->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxSound_DragEnter); - // - // buttonNoticeSound - // - this->buttonNoticeSound->Location = System::Drawing::Point(167, 19); - this->buttonNoticeSound->Name = L"buttonNoticeSound"; - this->buttonNoticeSound->Size = System::Drawing::Size(24, 20); - this->buttonNoticeSound->TabIndex = 2; - this->buttonNoticeSound->Text = L"..."; - this->buttonNoticeSound->UseVisualStyleBackColor = true; - this->buttonNoticeSound->Click += gcnew System::EventHandler(this, &OptionForm::buttonNoticeSound_Click); - // - // groupBoxVSSound - // - this->groupBoxVSSound->Controls->Add(this->buttonVSSoundPlay); - this->groupBoxVSSound->Controls->Add(this->checkBoxVSSound); - this->groupBoxVSSound->Controls->Add(this->textBoxVSSound); - this->groupBoxVSSound->Controls->Add(this->buttonVSSound); - this->groupBoxVSSound->Location = System::Drawing::Point(8, 8); - this->groupBoxVSSound->Name = L"groupBoxVSSound"; - this->groupBoxVSSound->Size = System::Drawing::Size(336, 52); - this->groupBoxVSSound->TabIndex = 1; - this->groupBoxVSSound->TabStop = false; - this->groupBoxVSSound->Text = L"対戦のお知らせ"; - // - // buttonVSSoundPlay - // - this->buttonVSSoundPlay->Location = System::Drawing::Point(261, 19); - this->buttonVSSoundPlay->Name = L"buttonVSSoundPlay"; - this->buttonVSSoundPlay->Size = System::Drawing::Size(65, 20); - this->buttonVSSoundPlay->TabIndex = 4; - this->buttonVSSoundPlay->Text = L"再生"; - this->buttonVSSoundPlay->UseVisualStyleBackColor = true; - this->buttonVSSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonVSSoundPlay_Click); - // - // checkBoxVSSound - // - this->checkBoxVSSound->AutoSize = true; - this->checkBoxVSSound->Location = System::Drawing::Point(197, 22); - this->checkBoxVSSound->Name = L"checkBoxVSSound"; - this->checkBoxVSSound->Size = System::Drawing::Size(48, 16); - this->checkBoxVSSound->TabIndex = 3; - this->checkBoxVSSound->Text = L"有効"; - this->checkBoxVSSound->UseVisualStyleBackColor = true; - this->checkBoxVSSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // textBoxVSSound - // - this->textBoxVSSound->AllowDrop = true; - this->textBoxVSSound->Location = System::Drawing::Point(11, 20); - this->textBoxVSSound->Name = L"textBoxVSSound"; - this->textBoxVSSound->Size = System::Drawing::Size(150, 19); - this->textBoxVSSound->TabIndex = 1; - this->textBoxVSSound->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - this->textBoxVSSound->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxVSSound_DragDrop); - this->textBoxVSSound->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxSound_DragEnter); - // - // buttonVSSound - // - this->buttonVSSound->Location = System::Drawing::Point(167, 19); - this->buttonVSSound->Name = L"buttonVSSound"; - this->buttonVSSound->Size = System::Drawing::Size(24, 20); - this->buttonVSSound->TabIndex = 2; - this->buttonVSSound->Text = L"..."; - this->buttonVSSound->UseVisualStyleBackColor = true; - this->buttonVSSound->Click += gcnew System::EventHandler(this, &OptionForm::buttonVSSound_Click); - // - // tabPagePath - // - this->tabPagePath->AutoScroll = true; - this->tabPagePath->AutoScrollMinSize = System::Drawing::Size(0, 330); - this->tabPagePath->Controls->Add(this->groupBoxProfile); - this->tabPagePath->Controls->Add(this->groupBoxReplayFolder); - this->tabPagePath->Controls->Add(this->groupBoxNet); - this->tabPagePath->Controls->Add(this->groupBoxGameExe); - this->tabPagePath->Location = System::Drawing::Point(4, 22); - this->tabPagePath->Name = L"tabPagePath"; - this->tabPagePath->Padding = System::Windows::Forms::Padding(3); - this->tabPagePath->Size = System::Drawing::Size(369, 295); - this->tabPagePath->TabIndex = 0; - this->tabPagePath->Text = L"基本"; - this->tabPagePath->UseVisualStyleBackColor = true; - // - // groupBoxProfile - // - this->groupBoxProfile->Controls->Add(this->buttonSaveProfile); - this->groupBoxProfile->Controls->Add(this->buttonAddProfile); - this->groupBoxProfile->Controls->Add(this->labelProfileName); - this->groupBoxProfile->Controls->Add(this->buttonDeleteProfile); - this->groupBoxProfile->Controls->Add(this->textBoxProfileName); - this->groupBoxProfile->Controls->Add(this->buttonCopyProfile); - this->groupBoxProfile->Controls->Add(this->comboBoxProfile); - this->groupBoxProfile->Location = System::Drawing::Point(8, 8); - this->groupBoxProfile->Name = L"groupBoxProfile"; - this->groupBoxProfile->Size = System::Drawing::Size(330, 85); - this->groupBoxProfile->TabIndex = 4; - this->groupBoxProfile->TabStop = false; - this->groupBoxProfile->Text = L"プロファイル"; - // - // buttonSaveProfile - // - this->buttonSaveProfile->Location = System::Drawing::Point(275, 50); - this->buttonSaveProfile->Name = L"buttonSaveProfile"; - this->buttonSaveProfile->Size = System::Drawing::Size(45, 22); - this->buttonSaveProfile->TabIndex = 7; - this->buttonSaveProfile->Text = L"保存"; - this->buttonSaveProfile->UseVisualStyleBackColor = true; - this->buttonSaveProfile->Click += gcnew System::EventHandler(this, &OptionForm::buttonSaveProfile_Click); - // - // buttonAddProfile - // - this->buttonAddProfile->Location = System::Drawing::Point(223, 50); - this->buttonAddProfile->Name = L"buttonAddProfile"; - this->buttonAddProfile->Size = System::Drawing::Size(45, 22); - this->buttonAddProfile->TabIndex = 6; - this->buttonAddProfile->Text = L"追加"; - this->buttonAddProfile->UseVisualStyleBackColor = true; - this->buttonAddProfile->Click += gcnew System::EventHandler(this, &OptionForm::buttonAddProfile_Click); - // - // labelProfileName - // - this->labelProfileName->AutoSize = true; - this->labelProfileName->Location = System::Drawing::Point(10, 55); - this->labelProfileName->Name = L"labelProfileName"; - this->labelProfileName->Size = System::Drawing::Size(69, 12); - this->labelProfileName->TabIndex = 5; - this->labelProfileName->Text = L"プロファイル名"; - // - // buttonDeleteProfile - // - this->buttonDeleteProfile->Location = System::Drawing::Point(275, 18); - this->buttonDeleteProfile->Name = L"buttonDeleteProfile"; - this->buttonDeleteProfile->Size = System::Drawing::Size(45, 22); - this->buttonDeleteProfile->TabIndex = 4; - this->buttonDeleteProfile->Text = L"削除"; - this->buttonDeleteProfile->UseVisualStyleBackColor = true; - this->buttonDeleteProfile->Click += gcnew System::EventHandler(this, &OptionForm::buttonDeleteProfile_Click); - // - // textBoxProfileName - // - this->textBoxProfileName->Location = System::Drawing::Point(85, 52); - this->textBoxProfileName->MaxLength = 63; - this->textBoxProfileName->Name = L"textBoxProfileName"; - this->textBoxProfileName->Size = System::Drawing::Size(127, 19); - this->textBoxProfileName->TabIndex = 3; - this->textBoxProfileName->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // buttonCopyProfile - // - this->buttonCopyProfile->Location = System::Drawing::Point(223, 18); - this->buttonCopyProfile->Name = L"buttonCopyProfile"; - this->buttonCopyProfile->Size = System::Drawing::Size(45, 22); - this->buttonCopyProfile->TabIndex = 2; - this->buttonCopyProfile->Text = L"複製"; - this->buttonCopyProfile->UseVisualStyleBackColor = true; - this->buttonCopyProfile->Click += gcnew System::EventHandler(this, &OptionForm::buttonCopyProfile_Click); - // - // comboBoxProfile - // - this->comboBoxProfile->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList; - this->comboBoxProfile->FormattingEnabled = true; - this->comboBoxProfile->ItemHeight = 12; - this->comboBoxProfile->Location = System::Drawing::Point(12, 19); - this->comboBoxProfile->MaxDropDownItems = 64; - this->comboBoxProfile->Name = L"comboBoxProfile"; - this->comboBoxProfile->Size = System::Drawing::Size(200, 20); - this->comboBoxProfile->TabIndex = 0; - this->comboBoxProfile->SelectedIndexChanged += gcnew System::EventHandler(this, &OptionForm::comboBoxProfile_SelectedIndexChanged); - // - // groupBoxReplayFolder - // - this->groupBoxReplayFolder->Controls->Add(this->textBoxReplayFolder); - this->groupBoxReplayFolder->Controls->Add(this->buttonReplayFolder); - this->groupBoxReplayFolder->Controls->Add(this->checkBoxDivide); - this->groupBoxReplayFolder->Location = System::Drawing::Point(8, 157); - this->groupBoxReplayFolder->Name = L"groupBoxReplayFolder"; - this->groupBoxReplayFolder->Size = System::Drawing::Size(330, 80); - this->groupBoxReplayFolder->TabIndex = 2; - this->groupBoxReplayFolder->TabStop = false; - this->groupBoxReplayFolder->Text = L"リプレイ保存フォルダ"; - // - // textBoxReplayFolder - // - this->textBoxReplayFolder->AllowDrop = true; - this->textBoxReplayFolder->Location = System::Drawing::Point(12, 20); - this->textBoxReplayFolder->Name = L"textBoxReplayFolder"; - this->textBoxReplayFolder->Size = System::Drawing::Size(278, 19); - this->textBoxReplayFolder->TabIndex = 1; - this->textBoxReplayFolder->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - this->textBoxReplayFolder->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxReplayFolder_DragDrop); - this->textBoxReplayFolder->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxReplayFolder_DragEnter); - // - // buttonReplayFolder - // - this->buttonReplayFolder->Location = System::Drawing::Point(296, 20); - this->buttonReplayFolder->Name = L"buttonReplayFolder"; - this->buttonReplayFolder->Size = System::Drawing::Size(24, 20); - this->buttonReplayFolder->TabIndex = 2; - this->buttonReplayFolder->Text = L"..."; - this->buttonReplayFolder->UseVisualStyleBackColor = true; - this->buttonReplayFolder->Click += gcnew System::EventHandler(this, &OptionForm::buttonReplayFolder_Click); - // - // checkBoxDivide - // - this->checkBoxDivide->AutoSize = true; - this->checkBoxDivide->Location = System::Drawing::Point(12, 51); - this->checkBoxDivide->Name = L"checkBoxDivide"; - this->checkBoxDivide->Size = System::Drawing::Size(168, 16); - this->checkBoxDivide->TabIndex = 3; - this->checkBoxDivide->Text = L"リプレイファイルの自動振り分け"; - this->checkBoxDivide->UseVisualStyleBackColor = true; - this->checkBoxDivide->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // groupBoxNet - // - this->groupBoxNet->Controls->Add(this->labelComment); - this->groupBoxNet->Controls->Add(this->numericUpDownMaxConnection); - this->groupBoxNet->Controls->Add(this->textBoxComment); - this->groupBoxNet->Controls->Add(this->label5); - this->groupBoxNet->Location = System::Drawing::Point(8, 243); - this->groupBoxNet->Name = L"groupBoxNet"; - this->groupBoxNet->Size = System::Drawing::Size(330, 80); - this->groupBoxNet->TabIndex = 3; - this->groupBoxNet->TabStop = false; - this->groupBoxNet->Text = L"回線設定"; - // - // labelComment - // - this->labelComment->AutoSize = true; - this->labelComment->Location = System::Drawing::Point(10, 51); - this->labelComment->Name = L"labelComment"; - this->labelComment->Size = System::Drawing::Size(38, 12); - this->labelComment->TabIndex = 0; - this->labelComment->Text = L"コメント"; - // - // numericUpDownMaxConnection - // - this->numericUpDownMaxConnection->Location = System::Drawing::Point(81, 20); - this->numericUpDownMaxConnection->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0}); - this->numericUpDownMaxConnection->Name = L"numericUpDownMaxConnection"; - this->numericUpDownMaxConnection->Size = System::Drawing::Size(40, 19); - this->numericUpDownMaxConnection->TabIndex = 1; - this->numericUpDownMaxConnection->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0}); - this->numericUpDownMaxConnection->ValueChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // textBoxComment - // - this->textBoxComment->Location = System::Drawing::Point(81, 48); - this->textBoxComment->Name = L"textBoxComment"; - this->textBoxComment->Size = System::Drawing::Size(206, 19); - this->textBoxComment->TabIndex = 2; - this->textBoxComment->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // label5 - // - this->label5->AutoSize = true; - this->label5->Location = System::Drawing::Point(10, 22); - this->label5->Name = L"label5"; - this->label5->Size = System::Drawing::Size(65, 12); - this->label5->TabIndex = 0; - this->label5->Text = L"最大接続数"; - // - // groupBoxGameExe - // - this->groupBoxGameExe->Controls->Add(this->textBoxGameExe); - this->groupBoxGameExe->Controls->Add(this->buttonGameExe); - this->groupBoxGameExe->Location = System::Drawing::Point(8, 99); - this->groupBoxGameExe->Name = L"groupBoxGameExe"; - this->groupBoxGameExe->Size = System::Drawing::Size(330, 52); - this->groupBoxGameExe->TabIndex = 1; - this->groupBoxGameExe->TabStop = false; - this->groupBoxGameExe->Text = L"実行ファイルのパス"; - // - // textBoxGameExe - // - this->textBoxGameExe->AllowDrop = true; - this->textBoxGameExe->Location = System::Drawing::Point(12, 20); - this->textBoxGameExe->Name = L"textBoxGameExe"; - this->textBoxGameExe->Size = System::Drawing::Size(278, 19); - this->textBoxGameExe->TabIndex = 1; - this->textBoxGameExe->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - this->textBoxGameExe->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxGameExe_DragDrop); - this->textBoxGameExe->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxGameExe_DragEnter); - // - // buttonGameExe - // - this->buttonGameExe->Location = System::Drawing::Point(296, 20); - this->buttonGameExe->Name = L"buttonGameExe"; - this->buttonGameExe->Size = System::Drawing::Size(24, 20); - this->buttonGameExe->TabIndex = 2; - this->buttonGameExe->Text = L"..."; - this->buttonGameExe->UseVisualStyleBackColor = true; - this->buttonGameExe->Click += gcnew System::EventHandler(this, &OptionForm::buttonGameExe_Click); - // - // groupBoxSave - // - this->groupBoxSave->Controls->Add(this->radioButtonReplayVersion1); - this->groupBoxSave->Controls->Add(this->radioButtonReplayVersion2); - this->groupBoxSave->Location = System::Drawing::Point(195, 199); - this->groupBoxSave->Name = L"groupBoxSave"; - this->groupBoxSave->Size = System::Drawing::Size(154, 42); - this->groupBoxSave->TabIndex = 4; - this->groupBoxSave->TabStop = false; - this->groupBoxSave->Text = L"リプレイファイル"; - // - // radioButtonReplayVersion1 - // - this->radioButtonReplayVersion1->AutoSize = true; - this->radioButtonReplayVersion1->Location = System::Drawing::Point(88, 17); - this->radioButtonReplayVersion1->Name = L"radioButtonReplayVersion1"; - this->radioButtonReplayVersion1->Size = System::Drawing::Size(59, 16); - this->radioButtonReplayVersion1->TabIndex = 2; - this->radioButtonReplayVersion1->TabStop = true; - this->radioButtonReplayVersion1->Text = L"無圧縮"; - this->radioButtonReplayVersion1->UseVisualStyleBackColor = true; - this->radioButtonReplayVersion1->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // radioButtonReplayVersion2 - // - this->radioButtonReplayVersion2->AutoSize = true; - this->radioButtonReplayVersion2->Location = System::Drawing::Point(16, 17); - this->radioButtonReplayVersion2->Name = L"radioButtonReplayVersion2"; - this->radioButtonReplayVersion2->Size = System::Drawing::Size(66, 16); - this->radioButtonReplayVersion2->TabIndex = 2; - this->radioButtonReplayVersion2->TabStop = true; - this->radioButtonReplayVersion2->Text = L"圧縮する"; - this->radioButtonReplayVersion2->UseVisualStyleBackColor = true; - this->radioButtonReplayVersion2->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // tabControlOption - // - this->tabControlOption->Controls->Add(this->tabPagePath); - this->tabControlOption->Controls->Add(this->tabPageSound); - this->tabControlOption->Controls->Add(this->tabPageGame); - this->tabControlOption->Controls->Add(this->tabPageColor); - this->tabControlOption->Controls->Add(this->tabPageVolume); - this->tabControlOption->Controls->Add(this->tabPageIP); - this->tabControlOption->Controls->Add(this->tabPageDetails); - this->tabControlOption->Dock = System::Windows::Forms::DockStyle::Top; - this->tabControlOption->Location = System::Drawing::Point(0, 0); - this->tabControlOption->Name = L"tabControlOption"; - this->tabControlOption->SelectedIndex = 0; - this->tabControlOption->Size = System::Drawing::Size(377, 321); - this->tabControlOption->TabIndex = 0; - // - // tabPageGame - // - this->tabPageGame->AutoScroll = true; - this->tabPageGame->Controls->Add(this->groupBoxTeamOption); - this->tabPageGame->Controls->Add(this->groupBoxSave); - this->tabPageGame->Controls->Add(this->groupBoxSimulate); - this->tabPageGame->Controls->Add(this->groupBoxRun); - this->tabPageGame->Controls->Add(this->groupBoxView); - this->tabPageGame->Controls->Add(this->groupBoxSetting); - this->tabPageGame->Location = System::Drawing::Point(4, 22); - this->tabPageGame->Name = L"tabPageGame"; - this->tabPageGame->Padding = System::Windows::Forms::Padding(3); - this->tabPageGame->Size = System::Drawing::Size(369, 295); - this->tabPageGame->TabIndex = 4; - this->tabPageGame->Text = L"ゲーム"; - this->tabPageGame->UseVisualStyleBackColor = true; - // - // groupBoxTeamOption - // - this->groupBoxTeamOption->Controls->Add(this->labelTeamRoundHP); - this->groupBoxTeamOption->Controls->Add(this->checkBoxTeamRoundHP); - this->groupBoxTeamOption->Location = System::Drawing::Point(9, 224); - this->groupBoxTeamOption->Name = L"groupBoxTeamOption"; - this->groupBoxTeamOption->Size = System::Drawing::Size(167, 68); - this->groupBoxTeamOption->TabIndex = 6; - this->groupBoxTeamOption->TabStop = false; - this->groupBoxTeamOption->Text = L"チームプレイ設定"; - // - // labelTeamRoundHP - // - this->labelTeamRoundHP->AutoSize = true; - this->labelTeamRoundHP->Location = System::Drawing::Point(13, 42); - this->labelTeamRoundHP->Name = L"labelTeamRoundHP"; - this->labelTeamRoundHP->Size = System::Drawing::Size(138, 12); - this->labelTeamRoundHP->TabIndex = 1; - this->labelTeamRoundHP->Text = L"※1vs1ではオフにしてください"; - // - // checkBoxTeamRoundHP - // - this->checkBoxTeamRoundHP->AutoSize = true; - this->checkBoxTeamRoundHP->Location = System::Drawing::Point(15, 21); - this->checkBoxTeamRoundHP->Name = L"checkBoxTeamRoundHP"; - this->checkBoxTeamRoundHP->Size = System::Drawing::Size(148, 16); - this->checkBoxTeamRoundHP->TabIndex = 0; - this->checkBoxTeamRoundHP->Text = L"ラウンド間でHPを持ち越す"; - this->checkBoxTeamRoundHP->UseVisualStyleBackColor = true; - this->checkBoxTeamRoundHP->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // groupBoxSimulate - // - this->groupBoxSimulate->Controls->Add(this->numericUpDownSimDelay); - this->groupBoxSimulate->Controls->Add(this->labelSimDelay); - this->groupBoxSimulate->Location = System::Drawing::Point(195, 149); - this->groupBoxSimulate->Name = L"groupBoxSimulate"; - this->groupBoxSimulate->Size = System::Drawing::Size(154, 44); - this->groupBoxSimulate->TabIndex = 5; - this->groupBoxSimulate->TabStop = false; - this->groupBoxSimulate->Text = L"シミュレート"; - // - // numericUpDownSimDelay - // - this->numericUpDownSimDelay->Location = System::Drawing::Point(88, 18); - this->numericUpDownSimDelay->Name = L"numericUpDownSimDelay"; - this->numericUpDownSimDelay->Size = System::Drawing::Size(40, 19); - this->numericUpDownSimDelay->TabIndex = 1; - this->numericUpDownSimDelay->ValueChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // labelSimDelay - // - this->labelSimDelay->AutoSize = true; - this->labelSimDelay->Location = System::Drawing::Point(16, 20); - this->labelSimDelay->Name = L"labelSimDelay"; - this->labelSimDelay->Size = System::Drawing::Size(40, 12); - this->labelSimDelay->TabIndex = 0; - this->labelSimDelay->Text = L"ディレイ"; - // - // groupBoxRun - // - this->groupBoxRun->Controls->Add(this->checkBoxWindowSize); - this->groupBoxRun->Controls->Add(this->checkBoxHitJudge); - this->groupBoxRun->Location = System::Drawing::Point(8, 149); - this->groupBoxRun->Name = L"groupBoxRun"; - this->groupBoxRun->Size = System::Drawing::Size(168, 68); - this->groupBoxRun->TabIndex = 3; - this->groupBoxRun->TabStop = false; - this->groupBoxRun->Text = L"格ツク"; - // - // checkBoxWindowSize - // - this->checkBoxWindowSize->AutoSize = true; - this->checkBoxWindowSize->Location = System::Drawing::Point(16, 44); - this->checkBoxWindowSize->Name = L"checkBoxWindowSize"; - this->checkBoxWindowSize->Size = System::Drawing::Size(112, 16); - this->checkBoxWindowSize->TabIndex = 2; - this->checkBoxWindowSize->Text = L"640 x 480 で起動"; - this->checkBoxWindowSize->UseVisualStyleBackColor = true; - this->checkBoxWindowSize->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // checkBoxHitJudge - // - this->checkBoxHitJudge->AutoSize = true; - this->checkBoxHitJudge->Location = System::Drawing::Point(16, 20); - this->checkBoxHitJudge->Name = L"checkBoxHitJudge"; - this->checkBoxHitJudge->Size = System::Drawing::Size(111, 16); - this->checkBoxHitJudge->TabIndex = 1; - this->checkBoxHitJudge->Text = L"当たり判定の表示"; - this->checkBoxHitJudge->UseVisualStyleBackColor = true; - this->checkBoxHitJudge->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // groupBoxView - // - this->groupBoxView->Controls->Add(this->checkBoxShowResult); - this->groupBoxView->Controls->Add(this->checkBoxVersus); - this->groupBoxView->Controls->Add(this->checkBoxName); - this->groupBoxView->Controls->Add(this->checkBoxFramerate); - this->groupBoxView->Controls->Add(this->checkBoxRand); - this->groupBoxView->Location = System::Drawing::Point(195, 8); - this->groupBoxView->Name = L"groupBoxView"; - this->groupBoxView->Size = System::Drawing::Size(154, 134); - this->groupBoxView->TabIndex = 4; - this->groupBoxView->TabStop = false; - this->groupBoxView->Text = L"タイトルバー"; - // - // checkBoxVersus - // - this->checkBoxVersus->AutoSize = true; - this->checkBoxVersus->Location = System::Drawing::Point(16, 42); - this->checkBoxVersus->Name = L"checkBoxVersus"; - this->checkBoxVersus->Size = System::Drawing::Size(60, 16); - this->checkBoxVersus->TabIndex = 2; - this->checkBoxVersus->Text = L"対戦数"; - this->checkBoxVersus->UseVisualStyleBackColor = true; - this->checkBoxVersus->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // checkBoxName - // - this->checkBoxName->AutoSize = true; - this->checkBoxName->Location = System::Drawing::Point(16, 20); - this->checkBoxName->Name = L"checkBoxName"; - this->checkBoxName->Size = System::Drawing::Size(78, 16); - this->checkBoxName->TabIndex = 1; - this->checkBoxName->Text = L"ニックネーム"; - this->checkBoxName->UseVisualStyleBackColor = true; - this->checkBoxName->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // checkBoxFramerate - // - this->checkBoxFramerate->AutoSize = true; - this->checkBoxFramerate->Location = System::Drawing::Point(16, 86); - this->checkBoxFramerate->Name = L"checkBoxFramerate"; - this->checkBoxFramerate->Size = System::Drawing::Size(88, 16); - this->checkBoxFramerate->TabIndex = 3; - this->checkBoxFramerate->Text = L"フレームレート"; - this->checkBoxFramerate->UseVisualStyleBackColor = true; - this->checkBoxFramerate->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // checkBoxRand - // - this->checkBoxRand->AutoSize = true; - this->checkBoxRand->Location = System::Drawing::Point(16, 108); - this->checkBoxRand->Name = L"checkBoxRand"; - this->checkBoxRand->Size = System::Drawing::Size(106, 16); - this->checkBoxRand->TabIndex = 4; - this->checkBoxRand->Text = L"乱数の使用回数"; - this->checkBoxRand->UseVisualStyleBackColor = true; - this->checkBoxRand->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // groupBoxSetting - // - this->groupBoxSetting->Controls->Add(this->numericUpDownRound); - this->groupBoxSetting->Controls->Add(this->labelRound); - this->groupBoxSetting->Controls->Add(this->labelTimer); - this->groupBoxSetting->Controls->Add(this->numericUpDownTimer); - this->groupBoxSetting->Controls->Add(this->numericUpDownMaxStage); - this->groupBoxSetting->Controls->Add(this->labelMaxStage); - this->groupBoxSetting->Controls->Add(this->labelStageSelect); - this->groupBoxSetting->Controls->Add(this->numericUpDownStageSelect); - this->groupBoxSetting->Location = System::Drawing::Point(8, 8); - this->groupBoxSetting->Name = L"groupBoxSetting"; - this->groupBoxSetting->Size = System::Drawing::Size(168, 134); - this->groupBoxSetting->TabIndex = 1; - this->groupBoxSetting->TabStop = false; - this->groupBoxSetting->Text = L"対戦設定"; - // - // numericUpDownRound - // - this->numericUpDownRound->Location = System::Drawing::Point(112, 72); - this->numericUpDownRound->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {9, 0, 0, 0}); - this->numericUpDownRound->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0}); - this->numericUpDownRound->Name = L"numericUpDownRound"; - this->numericUpDownRound->Size = System::Drawing::Size(40, 19); - this->numericUpDownRound->TabIndex = 3; - this->numericUpDownRound->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0}); - this->numericUpDownRound->ValueChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // labelRound - // - this->labelRound->AutoSize = true; - this->labelRound->Location = System::Drawing::Point(16, 76); - this->labelRound->Name = L"labelRound"; - this->labelRound->Size = System::Drawing::Size(52, 12); - this->labelRound->TabIndex = 0; - this->labelRound->Text = L"ラウンド数"; - // - // labelTimer - // - this->labelTimer->AutoSize = true; - this->labelTimer->Location = System::Drawing::Point(16, 104); - this->labelTimer->Name = L"labelTimer"; - this->labelTimer->Size = System::Drawing::Size(71, 12); - this->labelTimer->TabIndex = 0; - this->labelTimer->Text = L"ゲームタイマー"; - // - // numericUpDownTimer - // - this->numericUpDownTimer->Location = System::Drawing::Point(112, 100); - this->numericUpDownTimer->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {99, 0, 0, 0}); - this->numericUpDownTimer->Name = L"numericUpDownTimer"; - this->numericUpDownTimer->Size = System::Drawing::Size(40, 19); - this->numericUpDownTimer->TabIndex = 4; - this->numericUpDownTimer->ValueChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // numericUpDownMaxStage - // - this->numericUpDownMaxStage->Location = System::Drawing::Point(112, 16); - this->numericUpDownMaxStage->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0}); - this->numericUpDownMaxStage->Name = L"numericUpDownMaxStage"; - this->numericUpDownMaxStage->Size = System::Drawing::Size(40, 19); - this->numericUpDownMaxStage->TabIndex = 1; - this->numericUpDownMaxStage->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0}); - this->numericUpDownMaxStage->ValueChanged += gcnew System::EventHandler(this, &OptionForm::numericUpDownStage_ValueChanged); - // - // labelMaxStage - // - this->labelMaxStage->AutoSize = true; - this->labelMaxStage->Location = System::Drawing::Point(16, 20); - this->labelMaxStage->Name = L"labelMaxStage"; - this->labelMaxStage->Size = System::Drawing::Size(79, 12); - this->labelMaxStage->TabIndex = 0; - this->labelMaxStage->Text = L"最大ステージ数"; - // - // labelStageSelect - // - this->labelStageSelect->AutoSize = true; - this->labelStageSelect->Location = System::Drawing::Point(16, 48); - this->labelStageSelect->Name = L"labelStageSelect"; - this->labelStageSelect->Size = System::Drawing::Size(67, 12); - this->labelStageSelect->TabIndex = 0; - this->labelStageSelect->Text = L"対戦ステージ"; - // - // numericUpDownStageSelect - // - this->numericUpDownStageSelect->Location = System::Drawing::Point(112, 44); - this->numericUpDownStageSelect->Name = L"numericUpDownStageSelect"; - this->numericUpDownStageSelect->Size = System::Drawing::Size(40, 19); - this->numericUpDownStageSelect->TabIndex = 2; - this->numericUpDownStageSelect->ValueChanged += gcnew System::EventHandler(this, &OptionForm::numericUpDownStage_ValueChanged); - // - // tabPageColor - // - this->tabPageColor->Controls->Add(this->groupBoxMessageColor); - this->tabPageColor->Controls->Add(this->groupBoxOthersColor); - this->tabPageColor->Controls->Add(this->groupBoxStateColor); - this->tabPageColor->Controls->Add(this->groupBoxNameColor); - this->tabPageColor->Location = System::Drawing::Point(4, 22); - this->tabPageColor->Name = L"tabPageColor"; - this->tabPageColor->Padding = System::Windows::Forms::Padding(3); - this->tabPageColor->Size = System::Drawing::Size(369, 295); - this->tabPageColor->TabIndex = 5; - this->tabPageColor->Text = L"カラー"; - this->tabPageColor->UseVisualStyleBackColor = true; - // - // groupBoxMessageColor - // - this->groupBoxMessageColor->Controls->Add(this->buttonDebugMessage); - this->groupBoxMessageColor->Controls->Add(this->buttonErrorMessage); - this->groupBoxMessageColor->Controls->Add(this->buttonSystemMessage); - this->groupBoxMessageColor->Location = System::Drawing::Point(192, 8); - this->groupBoxMessageColor->Name = L"groupBoxMessageColor"; - this->groupBoxMessageColor->Size = System::Drawing::Size(168, 108); - this->groupBoxMessageColor->TabIndex = 3; - this->groupBoxMessageColor->TabStop = false; - this->groupBoxMessageColor->Text = L"メッセージ"; - // - // buttonDebugMessage - // - this->buttonDebugMessage->BackColor = System::Drawing::SystemColors::Window; - this->buttonDebugMessage->Location = System::Drawing::Point(16, 76); - this->buttonDebugMessage->Name = L"buttonDebugMessage"; - this->buttonDebugMessage->Size = System::Drawing::Size(136, 20); - this->buttonDebugMessage->TabIndex = 3; - this->buttonDebugMessage->Text = L"デバッグ"; - this->buttonDebugMessage->UseVisualStyleBackColor = false; - this->buttonDebugMessage->Click += gcnew System::EventHandler(this, &OptionForm::buttonDebugMessage_Click); - this->buttonDebugMessage->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // buttonErrorMessage - // - this->buttonErrorMessage->BackColor = System::Drawing::SystemColors::Window; - this->buttonErrorMessage->Location = System::Drawing::Point(16, 48); - this->buttonErrorMessage->Name = L"buttonErrorMessage"; - this->buttonErrorMessage->Size = System::Drawing::Size(136, 20); - this->buttonErrorMessage->TabIndex = 2; - this->buttonErrorMessage->Text = L"エラー"; - this->buttonErrorMessage->UseVisualStyleBackColor = false; - this->buttonErrorMessage->Click += gcnew System::EventHandler(this, &OptionForm::buttonErrorMessage_Click); - this->buttonErrorMessage->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // buttonSystemMessage - // - this->buttonSystemMessage->BackColor = System::Drawing::SystemColors::Window; - this->buttonSystemMessage->Location = System::Drawing::Point(16, 20); - this->buttonSystemMessage->Name = L"buttonSystemMessage"; - this->buttonSystemMessage->Size = System::Drawing::Size(136, 20); - this->buttonSystemMessage->TabIndex = 1; - this->buttonSystemMessage->Text = L"システム"; - this->buttonSystemMessage->UseVisualStyleBackColor = false; - this->buttonSystemMessage->Click += gcnew System::EventHandler(this, &OptionForm::buttonSystemMessage_Click); - this->buttonSystemMessage->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // groupBoxOthersColor - // - this->groupBoxOthersColor->Controls->Add(this->buttonSecret); - this->groupBoxOthersColor->Controls->Add(this->buttonCommentBack); - this->groupBoxOthersColor->Controls->Add(this->buttonNoticeBack); - this->groupBoxOthersColor->Location = System::Drawing::Point(192, 128); - this->groupBoxOthersColor->Name = L"groupBoxOthersColor"; - this->groupBoxOthersColor->Size = System::Drawing::Size(168, 108); - this->groupBoxOthersColor->TabIndex = 4; - this->groupBoxOthersColor->TabStop = false; - this->groupBoxOthersColor->Text = L"その他"; - // - // buttonSecret - // - this->buttonSecret->BackColor = System::Drawing::SystemColors::Window; - this->buttonSecret->Location = System::Drawing::Point(16, 76); - this->buttonSecret->Name = L"buttonSecret"; - this->buttonSecret->Size = System::Drawing::Size(136, 20); - this->buttonSecret->TabIndex = 3; - this->buttonSecret->Text = L"???"; - this->buttonSecret->UseVisualStyleBackColor = false; - this->buttonSecret->Click += gcnew System::EventHandler(this, &OptionForm::buttonSecret_Click); - this->buttonSecret->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // buttonCommentBack - // - this->buttonCommentBack->ForeColor = System::Drawing::SystemColors::WindowText; - this->buttonCommentBack->Location = System::Drawing::Point(16, 48); - this->buttonCommentBack->Name = L"buttonCommentBack"; - this->buttonCommentBack->Size = System::Drawing::Size(136, 20); - this->buttonCommentBack->TabIndex = 2; - this->buttonCommentBack->Text = L"コメントの背景"; - this->buttonCommentBack->UseVisualStyleBackColor = false; - this->buttonCommentBack->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - this->buttonCommentBack->Click += gcnew System::EventHandler(this, &OptionForm::buttonCommentBack_Click); - // - // buttonNoticeBack - // - this->buttonNoticeBack->ForeColor = System::Drawing::SystemColors::WindowText; - this->buttonNoticeBack->Location = System::Drawing::Point(16, 20); - this->buttonNoticeBack->Name = L"buttonNoticeBack"; - this->buttonNoticeBack->Size = System::Drawing::Size(136, 20); - this->buttonNoticeBack->TabIndex = 1; - this->buttonNoticeBack->Text = L"告知メッセージの背景"; - this->buttonNoticeBack->UseVisualStyleBackColor = false; - this->buttonNoticeBack->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - this->buttonNoticeBack->Click += gcnew System::EventHandler(this, &OptionForm::buttonNoticeBack_Click); - // - // groupBoxStateColor - // - this->groupBoxStateColor->Controls->Add(this->buttonSeekState); - this->groupBoxStateColor->Controls->Add(this->buttonWatchState); - this->groupBoxStateColor->Controls->Add(this->buttonVSState); - this->groupBoxStateColor->Controls->Add(this->buttonRestState); - this->groupBoxStateColor->Location = System::Drawing::Point(8, 128); - this->groupBoxStateColor->Name = L"groupBoxStateColor"; - this->groupBoxStateColor->Size = System::Drawing::Size(168, 137); - this->groupBoxStateColor->TabIndex = 2; - this->groupBoxStateColor->TabStop = false; - this->groupBoxStateColor->Text = L"状態"; - // - // buttonSeekState - // - this->buttonSeekState->Location = System::Drawing::Point(16, 103); - this->buttonSeekState->Name = L"buttonSeekState"; - this->buttonSeekState->Size = System::Drawing::Size(136, 21); - this->buttonSeekState->TabIndex = 4; - this->buttonSeekState->Text = L"対戦募集中"; - this->buttonSeekState->UseVisualStyleBackColor = true; - this->buttonSeekState->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - this->buttonSeekState->Click += gcnew System::EventHandler(this, &OptionForm::buttonSeekState_Click); - // - // buttonWatchState - // - this->buttonWatchState->ForeColor = System::Drawing::SystemColors::WindowText; - this->buttonWatchState->Location = System::Drawing::Point(16, 76); - this->buttonWatchState->Name = L"buttonWatchState"; - this->buttonWatchState->Size = System::Drawing::Size(136, 20); - this->buttonWatchState->TabIndex = 3; - this->buttonWatchState->Text = L"観戦中"; - this->buttonWatchState->UseVisualStyleBackColor = false; - this->buttonWatchState->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - this->buttonWatchState->Click += gcnew System::EventHandler(this, &OptionForm::buttonWatchState_Click); - // - // buttonVSState - // - this->buttonVSState->ForeColor = System::Drawing::SystemColors::WindowText; - this->buttonVSState->Location = System::Drawing::Point(16, 48); - this->buttonVSState->Name = L"buttonVSState"; - this->buttonVSState->Size = System::Drawing::Size(136, 20); - this->buttonVSState->TabIndex = 2; - this->buttonVSState->Text = L"対戦中"; - this->buttonVSState->UseVisualStyleBackColor = false; - this->buttonVSState->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - this->buttonVSState->Click += gcnew System::EventHandler(this, &OptionForm::buttonVSState_Click); - // - // buttonRestState - // - this->buttonRestState->ForeColor = System::Drawing::SystemColors::WindowText; - this->buttonRestState->Location = System::Drawing::Point(16, 20); - this->buttonRestState->Name = L"buttonRestState"; - this->buttonRestState->Size = System::Drawing::Size(136, 20); - this->buttonRestState->TabIndex = 1; - this->buttonRestState->Text = L"休憩中"; - this->buttonRestState->UseVisualStyleBackColor = false; - this->buttonRestState->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - this->buttonRestState->Click += gcnew System::EventHandler(this, &OptionForm::buttonRestState_Click); - // - // groupBoxNameColor - // - this->groupBoxNameColor->Controls->Add(this->buttonClientName); - this->groupBoxNameColor->Controls->Add(this->buttonHostName); - this->groupBoxNameColor->Controls->Add(this->buttonServerName); - this->groupBoxNameColor->Location = System::Drawing::Point(8, 8); - this->groupBoxNameColor->Name = L"groupBoxNameColor"; - this->groupBoxNameColor->Size = System::Drawing::Size(168, 108); - this->groupBoxNameColor->TabIndex = 1; - this->groupBoxNameColor->TabStop = false; - this->groupBoxNameColor->Text = L"名前"; - // - // buttonClientName - // - this->buttonClientName->BackColor = System::Drawing::SystemColors::Window; - this->buttonClientName->Location = System::Drawing::Point(16, 76); - this->buttonClientName->Name = L"buttonClientName"; - this->buttonClientName->Size = System::Drawing::Size(136, 20); - this->buttonClientName->TabIndex = 3; - this->buttonClientName->Text = L"クライアント"; - this->buttonClientName->UseVisualStyleBackColor = false; - this->buttonClientName->Click += gcnew System::EventHandler(this, &OptionForm::buttonClientName_Click); - this->buttonClientName->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // buttonHostName - // - this->buttonHostName->BackColor = System::Drawing::SystemColors::Window; - this->buttonHostName->Location = System::Drawing::Point(16, 48); - this->buttonHostName->Name = L"buttonHostName"; - this->buttonHostName->Size = System::Drawing::Size(136, 20); - this->buttonHostName->TabIndex = 2; - this->buttonHostName->Text = L"ホスト"; - this->buttonHostName->UseVisualStyleBackColor = false; - this->buttonHostName->Click += gcnew System::EventHandler(this, &OptionForm::buttonHostName_Click); - this->buttonHostName->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // buttonServerName - // - this->buttonServerName->BackColor = System::Drawing::SystemColors::Window; - this->buttonServerName->Location = System::Drawing::Point(16, 20); - this->buttonServerName->Name = L"buttonServerName"; - this->buttonServerName->Size = System::Drawing::Size(136, 20); - this->buttonServerName->TabIndex = 1; - this->buttonServerName->Text = L"サーバ"; - this->buttonServerName->UseVisualStyleBackColor = false; - this->buttonServerName->Click += gcnew System::EventHandler(this, &OptionForm::buttonServerName_Click); - this->buttonServerName->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // tabPageVolume - // - this->tabPageVolume->Controls->Add(this->groupBoxMidi); - this->tabPageVolume->Controls->Add(this->groupBoxSE); - this->tabPageVolume->Controls->Add(this->groupBoxBGM); - this->tabPageVolume->Location = System::Drawing::Point(4, 22); - this->tabPageVolume->Name = L"tabPageVolume"; - this->tabPageVolume->Padding = System::Windows::Forms::Padding(3); - this->tabPageVolume->Size = System::Drawing::Size(369, 295); - this->tabPageVolume->TabIndex = 6; - this->tabPageVolume->Text = L"音量"; - this->tabPageVolume->UseVisualStyleBackColor = true; - // - // groupBoxMidi - // - this->groupBoxMidi->Controls->Add(this->labelMidi); - this->groupBoxMidi->Controls->Add(this->trackBarMidi); - this->groupBoxMidi->Location = System::Drawing::Point(8, 184); - this->groupBoxMidi->Name = L"groupBoxMidi"; - this->groupBoxMidi->Size = System::Drawing::Size(352, 52); - this->groupBoxMidi->TabIndex = 3; - this->groupBoxMidi->TabStop = false; - this->groupBoxMidi->Text = L"SW シンセサイザ"; - // - // labelMidi - // - this->labelMidi->AutoSize = true; - this->labelMidi->Location = System::Drawing::Point(8, 24); - this->labelMidi->Name = L"labelMidi"; - this->labelMidi->Size = System::Drawing::Size(29, 12); - this->labelMidi->TabIndex = 0; - this->labelMidi->Text = L"100%"; - // - // trackBarMidi - // - this->trackBarMidi->AutoSize = false; - this->trackBarMidi->LargeChange = 10; - this->trackBarMidi->Location = System::Drawing::Point(48, 12); - this->trackBarMidi->Maximum = 100; - this->trackBarMidi->Name = L"trackBarMidi"; - this->trackBarMidi->Size = System::Drawing::Size(296, 32); - this->trackBarMidi->TabIndex = 1; - this->trackBarMidi->TickFrequency = 10; - this->trackBarMidi->TickStyle = System::Windows::Forms::TickStyle::TopLeft; - this->trackBarMidi->Scroll += gcnew System::EventHandler(this, &OptionForm::trackBarMidi_Scroll); - // - // groupBoxSE - // - this->groupBoxSE->Controls->Add(this->labelSE); - this->groupBoxSE->Controls->Add(this->trackBarSE); - this->groupBoxSE->Location = System::Drawing::Point(8, 68); - this->groupBoxSE->Name = L"groupBoxSE"; - this->groupBoxSE->Size = System::Drawing::Size(352, 52); - this->groupBoxSE->TabIndex = 2; - this->groupBoxSE->TabStop = false; - this->groupBoxSE->Text = L"SE"; - // - // labelSE - // - this->labelSE->AutoSize = true; - this->labelSE->Location = System::Drawing::Point(8, 24); - this->labelSE->Name = L"labelSE"; - this->labelSE->Size = System::Drawing::Size(29, 12); - this->labelSE->TabIndex = 0; - this->labelSE->Text = L"100%"; - // - // trackBarSE - // - this->trackBarSE->AutoSize = false; - this->trackBarSE->LargeChange = 2; - this->trackBarSE->Location = System::Drawing::Point(48, 12); - this->trackBarSE->Maximum = 20; - this->trackBarSE->Name = L"trackBarSE"; - this->trackBarSE->Size = System::Drawing::Size(296, 32); - this->trackBarSE->TabIndex = 1; - this->trackBarSE->TickFrequency = 2; - this->trackBarSE->TickStyle = System::Windows::Forms::TickStyle::TopLeft; - this->trackBarSE->Scroll += gcnew System::EventHandler(this, &OptionForm::trackBarSE_Scroll); - // - // groupBoxBGM - // - this->groupBoxBGM->Controls->Add(this->labelBGM); - this->groupBoxBGM->Controls->Add(this->trackBarBGM); - this->groupBoxBGM->Location = System::Drawing::Point(8, 8); - this->groupBoxBGM->Name = L"groupBoxBGM"; - this->groupBoxBGM->Size = System::Drawing::Size(352, 52); - this->groupBoxBGM->TabIndex = 1; - this->groupBoxBGM->TabStop = false; - this->groupBoxBGM->Text = L"BGM"; - // - // labelBGM - // - this->labelBGM->AutoSize = true; - this->labelBGM->Location = System::Drawing::Point(8, 24); - this->labelBGM->Name = L"labelBGM"; - this->labelBGM->Size = System::Drawing::Size(29, 12); - this->labelBGM->TabIndex = 0; - this->labelBGM->Text = L"100%"; - // - // trackBarBGM - // - this->trackBarBGM->AutoSize = false; - this->trackBarBGM->LargeChange = 2; - this->trackBarBGM->Location = System::Drawing::Point(48, 12); - this->trackBarBGM->Maximum = 20; - this->trackBarBGM->Name = L"trackBarBGM"; - this->trackBarBGM->Size = System::Drawing::Size(296, 32); - this->trackBarBGM->TabIndex = 1; - this->trackBarBGM->TickFrequency = 2; - this->trackBarBGM->TickStyle = System::Windows::Forms::TickStyle::TopLeft; - this->trackBarBGM->Scroll += gcnew System::EventHandler(this, &OptionForm::trackBarBGM_Scroll); - // - // tabPageIP - // - this->tabPageIP->Controls->Add(this->AddPortbutton); - this->tabPageIP->Controls->Add(this->discriptionlabel); - this->tabPageIP->Controls->Add(this->Convertbutton); - this->tabPageIP->Controls->Add(this->Base64groupBox); - this->tabPageIP->Controls->Add(this->IPgroupBox); - this->tabPageIP->Location = System::Drawing::Point(4, 22); - this->tabPageIP->Name = L"tabPageIP"; - this->tabPageIP->Padding = System::Windows::Forms::Padding(3); - this->tabPageIP->Size = System::Drawing::Size(369, 295); - this->tabPageIP->TabIndex = 7; - this->tabPageIP->Text = L"IPの変換"; - this->tabPageIP->UseVisualStyleBackColor = true; - // - // AddPortbutton - // - this->AddPortbutton->Location = System::Drawing::Point(169, 233); - this->AddPortbutton->Name = L"AddPortbutton"; - this->AddPortbutton->Size = System::Drawing::Size(103, 24); - this->AddPortbutton->TabIndex = 4; - this->AddPortbutton->Text = L"ポート付き変換"; - this->AddPortbutton->UseVisualStyleBackColor = true; - this->AddPortbutton->Click += gcnew System::EventHandler(this, &OptionForm::AddPortbutton_Click); - // - // discriptionlabel - // - this->discriptionlabel->AutoSize = true; - this->discriptionlabel->Location = System::Drawing::Point(8, 8); - this->discriptionlabel->Name = L"discriptionlabel"; - this->discriptionlabel->Size = System::Drawing::Size(297, 48); - this->discriptionlabel->TabIndex = 3; - this->discriptionlabel->Text = L"IPアドレスを変換することで、\r\nサーバを公開する際のリスクを多少軽減できます。\r\n\r\nサーバを公開する際は、変換されたアドレスを公開してください。"; - // - // Convertbutton - // - this->Convertbutton->Location = System::Drawing::Point(99, 233); - this->Convertbutton->Name = L"Convertbutton"; - this->Convertbutton->Size = System::Drawing::Size(64, 24); - this->Convertbutton->TabIndex = 2; - this->Convertbutton->Text = L"変換"; - this->Convertbutton->UseVisualStyleBackColor = true; - this->Convertbutton->Click += gcnew System::EventHandler(this, &OptionForm::Convertbutton_Click); - // - // Base64groupBox - // - this->Base64groupBox->Controls->Add(this->labelAddrMT); - this->Base64groupBox->Controls->Add(this->textBoxMTAddr); - this->Base64groupBox->Controls->Add(this->labelAddrBase64); - this->Base64groupBox->Controls->Add(this->Base64textBox); - this->Base64groupBox->Location = System::Drawing::Point(7, 130); - this->Base64groupBox->Name = L"Base64groupBox"; - this->Base64groupBox->Size = System::Drawing::Size(352, 84); - this->Base64groupBox->TabIndex = 1; - this->Base64groupBox->TabStop = false; - this->Base64groupBox->Text = L"変換後のアドレス"; - // - // labelAddrMT - // - this->labelAddrMT->AutoSize = true; - this->labelAddrMT->Location = System::Drawing::Point(22, 53); - this->labelAddrMT->Name = L"labelAddrMT"; - this->labelAddrMT->Size = System::Drawing::Size(47, 12); - this->labelAddrMT->TabIndex = 3; - this->labelAddrMT->Text = L"MTSP用"; - // - // textBoxMTAddr - // - this->textBoxMTAddr->Location = System::Drawing::Point(75, 50); - this->textBoxMTAddr->Name = L"textBoxMTAddr"; - this->textBoxMTAddr->ReadOnly = true; - this->textBoxMTAddr->Size = System::Drawing::Size(271, 19); - this->textBoxMTAddr->TabIndex = 2; - // - // labelAddrBase64 - // - this->labelAddrBase64->AutoSize = true; - this->labelAddrBase64->Location = System::Drawing::Point(6, 21); - this->labelAddrBase64->Name = L"labelAddrBase64"; - this->labelAddrBase64->Size = System::Drawing::Size(63, 12); - this->labelAddrBase64->TabIndex = 1; - this->labelAddrBase64->Text = L"LilithPort用"; - // - // Base64textBox - // - this->Base64textBox->Location = System::Drawing::Point(75, 18); - this->Base64textBox->MaxLength = 100; - this->Base64textBox->Name = L"Base64textBox"; - this->Base64textBox->ReadOnly = true; - this->Base64textBox->Size = System::Drawing::Size(271, 19); - this->Base64textBox->TabIndex = 0; - // - // IPgroupBox - // - this->IPgroupBox->Controls->Add(this->IPtextBox); - this->IPgroupBox->Location = System::Drawing::Point(7, 70); - this->IPgroupBox->Name = L"IPgroupBox"; - this->IPgroupBox->Size = System::Drawing::Size(352, 52); - this->IPgroupBox->TabIndex = 0; - this->IPgroupBox->TabStop = false; - this->IPgroupBox->Text = L"IPアドレス"; - // - // IPtextBox - // - this->IPtextBox->AccessibleDescription = L""; - this->IPtextBox->Location = System::Drawing::Point(7, 19); - this->IPtextBox->MaxLength = 20; - this->IPtextBox->Name = L"IPtextBox"; - this->IPtextBox->Size = System::Drawing::Size(339, 19); - this->IPtextBox->TabIndex = 0; - this->IPtextBox->TextChanged += gcnew System::EventHandler(this, &OptionForm::IPtextBox_TextChanged); - // - // tabPageDetails - // - this->tabPageDetails->Controls->Add(this->groupBoxDetails); - this->tabPageDetails->Location = System::Drawing::Point(4, 22); - this->tabPageDetails->Name = L"tabPageDetails"; - this->tabPageDetails->Padding = System::Windows::Forms::Padding(3); - this->tabPageDetails->Size = System::Drawing::Size(369, 295); - this->tabPageDetails->TabIndex = 8; - this->tabPageDetails->Text = L"詳細"; - this->tabPageDetails->UseVisualStyleBackColor = true; - // - // groupBoxDetails - // - this->groupBoxDetails->Controls->Add(this->checkBoxShowGameOption); - this->groupBoxDetails->Controls->Add(this->checkBoxNameFlash); - this->groupBoxDetails->Controls->Add(this->checkBoxGetIP); - this->groupBoxDetails->Controls->Add(this->checkBoxTalkFlash); - this->groupBoxDetails->Location = System::Drawing::Point(9, 7); - this->groupBoxDetails->Name = L"groupBoxDetails"; - this->groupBoxDetails->Size = System::Drawing::Size(351, 282); - this->groupBoxDetails->TabIndex = 0; - this->groupBoxDetails->TabStop = false; - this->groupBoxDetails->Text = L"詳細設定"; - // - // checkBoxShowGameOption - // - this->checkBoxShowGameOption->AutoSize = true; - this->checkBoxShowGameOption->Location = System::Drawing::Point(8, 85); - this->checkBoxShowGameOption->Name = L"checkBoxShowGameOption"; - this->checkBoxShowGameOption->Size = System::Drawing::Size(199, 16); - this->checkBoxShowGameOption->TabIndex = 3; - this->checkBoxShowGameOption->Text = L"ゲーム起動時に対戦設定を表示する"; - this->checkBoxShowGameOption->UseVisualStyleBackColor = true; - this->checkBoxShowGameOption->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // checkBoxNameFlash - // - this->checkBoxNameFlash->AutoSize = true; - this->checkBoxNameFlash->Location = System::Drawing::Point(8, 40); - this->checkBoxNameFlash->Name = L"checkBoxNameFlash"; - this->checkBoxNameFlash->Size = System::Drawing::Size(203, 16); - this->checkBoxNameFlash->TabIndex = 1; - this->checkBoxNameFlash->Text = L"名前が呼ばれたらウィンドウを点滅する"; - this->checkBoxNameFlash->UseVisualStyleBackColor = true; - this->checkBoxNameFlash->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // checkBoxGetIP - // - this->checkBoxGetIP->AutoSize = true; - this->checkBoxGetIP->Location = System::Drawing::Point(8, 62); - this->checkBoxGetIP->Name = L"checkBoxGetIP"; - this->checkBoxGetIP->Size = System::Drawing::Size(200, 16); - this->checkBoxGetIP->TabIndex = 2; - this->checkBoxGetIP->Text = L"Server起動時にIPアドレスを取得する"; - this->checkBoxGetIP->UseVisualStyleBackColor = true; - this->checkBoxGetIP->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // checkBoxTalkFlash - // - this->checkBoxTalkFlash->AutoSize = true; - this->checkBoxTalkFlash->Location = System::Drawing::Point(8, 18); - this->checkBoxTalkFlash->Name = L"checkBoxTalkFlash"; - this->checkBoxTalkFlash->Size = System::Drawing::Size(153, 16); - this->checkBoxTalkFlash->TabIndex = 0; - this->checkBoxTalkFlash->Text = L"発言でウィンドウを点滅する"; - this->checkBoxTalkFlash->UseVisualStyleBackColor = true; - this->checkBoxTalkFlash->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // checkBoxShowResult - // - this->checkBoxShowResult->AutoSize = true; - this->checkBoxShowResult->Location = System::Drawing::Point(16, 64); - this->checkBoxShowResult->Name = L"checkBoxShowResult"; - this->checkBoxShowResult->Size = System::Drawing::Size(72, 16); - this->checkBoxShowResult->TabIndex = 5; - this->checkBoxShowResult->Text = L"対戦勝敗"; - this->checkBoxShowResult->UseVisualStyleBackColor = true; - this->checkBoxShowResult->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); - // - // OptionForm - // - this->AutoScaleDimensions = System::Drawing::SizeF(6, 12); - this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font; - this->AutoScroll = true; - this->ClientSize = System::Drawing::Size(377, 362); - this->Controls->Add(this->tabControlOption); - this->Controls->Add(this->buttonApply); - this->Controls->Add(this->buttonCancel); - this->Controls->Add(this->buttonOK); - this->Icon = (cli::safe_cast(resources->GetObject(L"$this.Icon"))); - this->MaximizeBox = false; - this->MinimizeBox = false; - this->Name = L"OptionForm"; - this->ShowInTaskbar = false; - this->Text = L"オプション"; - this->Load += gcnew System::EventHandler(this, &OptionForm::OptionForm_Load); - this->Shown += gcnew System::EventHandler(this, &OptionForm::OptionForm_Shown); - this->FormClosed += gcnew System::Windows::Forms::FormClosedEventHandler(this, &OptionForm::OptionForm_FormClosed); - this->tabPageSound->ResumeLayout(false); - this->groupBoxKeywordSound->ResumeLayout(false); - this->groupBoxKeywordSound->PerformLayout(); - this->groupBoxSeekSound->ResumeLayout(false); - this->groupBoxSeekSound->PerformLayout(); - this->groupBoxTalkSound->ResumeLayout(false); - this->groupBoxTalkSound->PerformLayout(); - this->groupBoxName->ResumeLayout(false); - this->groupBoxName->PerformLayout(); - this->groupBoxEnterSound->ResumeLayout(false); - this->groupBoxEnterSound->PerformLayout(); - this->groupBoxNoticeSound->ResumeLayout(false); - this->groupBoxNoticeSound->PerformLayout(); - this->groupBoxVSSound->ResumeLayout(false); - this->groupBoxVSSound->PerformLayout(); - this->tabPagePath->ResumeLayout(false); - this->groupBoxProfile->ResumeLayout(false); - this->groupBoxProfile->PerformLayout(); - this->groupBoxReplayFolder->ResumeLayout(false); - this->groupBoxReplayFolder->PerformLayout(); - this->groupBoxNet->ResumeLayout(false); - this->groupBoxNet->PerformLayout(); - (cli::safe_cast(this->numericUpDownMaxConnection))->EndInit(); - this->groupBoxGameExe->ResumeLayout(false); - this->groupBoxGameExe->PerformLayout(); - this->groupBoxSave->ResumeLayout(false); - this->groupBoxSave->PerformLayout(); - this->tabControlOption->ResumeLayout(false); - this->tabPageGame->ResumeLayout(false); - this->groupBoxTeamOption->ResumeLayout(false); - this->groupBoxTeamOption->PerformLayout(); - this->groupBoxSimulate->ResumeLayout(false); - this->groupBoxSimulate->PerformLayout(); - (cli::safe_cast(this->numericUpDownSimDelay))->EndInit(); - this->groupBoxRun->ResumeLayout(false); - this->groupBoxRun->PerformLayout(); - this->groupBoxView->ResumeLayout(false); - this->groupBoxView->PerformLayout(); - this->groupBoxSetting->ResumeLayout(false); - this->groupBoxSetting->PerformLayout(); - (cli::safe_cast(this->numericUpDownRound))->EndInit(); - (cli::safe_cast(this->numericUpDownTimer))->EndInit(); - (cli::safe_cast(this->numericUpDownMaxStage))->EndInit(); - (cli::safe_cast(this->numericUpDownStageSelect))->EndInit(); - this->tabPageColor->ResumeLayout(false); - this->groupBoxMessageColor->ResumeLayout(false); - this->groupBoxOthersColor->ResumeLayout(false); - this->groupBoxStateColor->ResumeLayout(false); - this->groupBoxNameColor->ResumeLayout(false); - this->tabPageVolume->ResumeLayout(false); - this->groupBoxMidi->ResumeLayout(false); - this->groupBoxMidi->PerformLayout(); - (cli::safe_cast(this->trackBarMidi))->EndInit(); - this->groupBoxSE->ResumeLayout(false); - this->groupBoxSE->PerformLayout(); - (cli::safe_cast(this->trackBarSE))->EndInit(); - this->groupBoxBGM->ResumeLayout(false); - this->groupBoxBGM->PerformLayout(); - (cli::safe_cast(this->trackBarBGM))->EndInit(); - this->tabPageIP->ResumeLayout(false); - this->tabPageIP->PerformLayout(); - this->Base64groupBox->ResumeLayout(false); - this->Base64groupBox->PerformLayout(); - this->IPgroupBox->ResumeLayout(false); - this->IPgroupBox->PerformLayout(); - this->tabPageDetails->ResumeLayout(false); - this->groupBoxDetails->ResumeLayout(false); - this->groupBoxDetails->PerformLayout(); - this->ResumeLayout(false); + System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(OptionForm::typeid)); + this->buttonOK = (gcnew System::Windows::Forms::Button()); + this->buttonApply = (gcnew System::Windows::Forms::Button()); + this->buttonCancel = (gcnew System::Windows::Forms::Button()); + this->openFileDialog1 = (gcnew System::Windows::Forms::OpenFileDialog()); + this->folderBrowserDialog1 = (gcnew System::Windows::Forms::FolderBrowserDialog()); + this->colorDialog1 = (gcnew System::Windows::Forms::ColorDialog()); + this->tabPageSound = (gcnew System::Windows::Forms::TabPage()); + this->groupBoxKeywordSound = (gcnew System::Windows::Forms::GroupBox()); + this->buttonKeywordSoundPlay = (gcnew System::Windows::Forms::Button()); + this->checkBoxKeywordSound = (gcnew System::Windows::Forms::CheckBox()); + this->buttonKeywordSound = (gcnew System::Windows::Forms::Button()); + this->textBoxKeywordSoundPath = (gcnew System::Windows::Forms::TextBox()); + this->labelKeywordSound = (gcnew System::Windows::Forms::Label()); + this->textBoxKeyword = (gcnew System::Windows::Forms::TextBox()); + this->groupBoxSeekSound = (gcnew System::Windows::Forms::GroupBox()); + this->buttonSeekSoundPlay = (gcnew System::Windows::Forms::Button()); + this->checkBoxSeekSound = (gcnew System::Windows::Forms::CheckBox()); + this->buttonSeekSound = (gcnew System::Windows::Forms::Button()); + this->textBoxSeekSound = (gcnew System::Windows::Forms::TextBox()); + this->groupBoxTalkSound = (gcnew System::Windows::Forms::GroupBox()); + this->buttonTalkSoundPlay = (gcnew System::Windows::Forms::Button()); + this->checkBoxTalkSound = (gcnew System::Windows::Forms::CheckBox()); + this->buttonTalkSound = (gcnew System::Windows::Forms::Button()); + this->textBoxTalkSound = (gcnew System::Windows::Forms::TextBox()); + this->groupBoxName = (gcnew System::Windows::Forms::GroupBox()); + this->buttonNameSoundPlay = (gcnew System::Windows::Forms::Button()); + this->checkBoxNameSound = (gcnew System::Windows::Forms::CheckBox()); + this->buttonNameSound = (gcnew System::Windows::Forms::Button()); + this->textBoxNameSound = (gcnew System::Windows::Forms::TextBox()); + this->groupBoxEnterSound = (gcnew System::Windows::Forms::GroupBox()); + this->buttonEnterSoundPlay = (gcnew System::Windows::Forms::Button()); + this->checkBoxEnterSound = (gcnew System::Windows::Forms::CheckBox()); + this->textBoxEnterSound = (gcnew System::Windows::Forms::TextBox()); + this->buttonEnterSound = (gcnew System::Windows::Forms::Button()); + this->groupBoxNoticeSound = (gcnew System::Windows::Forms::GroupBox()); + this->buttonNoticeSoundPlay = (gcnew System::Windows::Forms::Button()); + this->checkBoxNoticeSound = (gcnew System::Windows::Forms::CheckBox()); + this->textBoxNoticeSound = (gcnew System::Windows::Forms::TextBox()); + this->buttonNoticeSound = (gcnew System::Windows::Forms::Button()); + this->groupBoxVSSound = (gcnew System::Windows::Forms::GroupBox()); + this->buttonVSSoundPlay = (gcnew System::Windows::Forms::Button()); + this->checkBoxVSSound = (gcnew System::Windows::Forms::CheckBox()); + this->textBoxVSSound = (gcnew System::Windows::Forms::TextBox()); + this->buttonVSSound = (gcnew System::Windows::Forms::Button()); + this->tabPagePath = (gcnew System::Windows::Forms::TabPage()); + this->groupBoxProfile = (gcnew System::Windows::Forms::GroupBox()); + this->buttonSaveProfile = (gcnew System::Windows::Forms::Button()); + this->buttonAddProfile = (gcnew System::Windows::Forms::Button()); + this->labelProfileName = (gcnew System::Windows::Forms::Label()); + this->buttonDeleteProfile = (gcnew System::Windows::Forms::Button()); + this->textBoxProfileName = (gcnew System::Windows::Forms::TextBox()); + this->buttonCopyProfile = (gcnew System::Windows::Forms::Button()); + this->comboBoxProfile = (gcnew System::Windows::Forms::ComboBox()); + this->groupBoxReplayFolder = (gcnew System::Windows::Forms::GroupBox()); + this->textBoxReplayFolder = (gcnew System::Windows::Forms::TextBox()); + this->buttonReplayFolder = (gcnew System::Windows::Forms::Button()); + this->checkBoxDivide = (gcnew System::Windows::Forms::CheckBox()); + this->groupBoxNet = (gcnew System::Windows::Forms::GroupBox()); + this->labelComment = (gcnew System::Windows::Forms::Label()); + this->numericUpDownMaxConnection = (gcnew System::Windows::Forms::NumericUpDown()); + this->textBoxComment = (gcnew System::Windows::Forms::TextBox()); + this->label5 = (gcnew System::Windows::Forms::Label()); + this->groupBoxGameExe = (gcnew System::Windows::Forms::GroupBox()); + this->textBoxGameExe = (gcnew System::Windows::Forms::TextBox()); + this->buttonGameExe = (gcnew System::Windows::Forms::Button()); + this->groupBoxSave = (gcnew System::Windows::Forms::GroupBox()); + this->radioButtonReplayVersion1 = (gcnew System::Windows::Forms::RadioButton()); + this->radioButtonReplayVersion2 = (gcnew System::Windows::Forms::RadioButton()); + this->tabControlOption = (gcnew System::Windows::Forms::TabControl()); + this->tabPageGame = (gcnew System::Windows::Forms::TabPage()); + this->groupBoxTeamOption = (gcnew System::Windows::Forms::GroupBox()); + this->labelTeamRoundHP = (gcnew System::Windows::Forms::Label()); + this->checkBoxTeamRoundHP = (gcnew System::Windows::Forms::CheckBox()); + this->groupBoxSimulate = (gcnew System::Windows::Forms::GroupBox()); + this->numericUpDownSimDelay = (gcnew System::Windows::Forms::NumericUpDown()); + this->labelSimDelay = (gcnew System::Windows::Forms::Label()); + this->groupBoxRun = (gcnew System::Windows::Forms::GroupBox()); + this->checkBoxWindowSize = (gcnew System::Windows::Forms::CheckBox()); + this->checkBoxHitJudge = (gcnew System::Windows::Forms::CheckBox()); + this->groupBoxView = (gcnew System::Windows::Forms::GroupBox()); + this->checkBoxShowResult = (gcnew System::Windows::Forms::CheckBox()); + this->checkBoxVersus = (gcnew System::Windows::Forms::CheckBox()); + this->checkBoxName = (gcnew System::Windows::Forms::CheckBox()); + this->checkBoxFramerate = (gcnew System::Windows::Forms::CheckBox()); + this->checkBoxRand = (gcnew System::Windows::Forms::CheckBox()); + this->groupBoxSetting = (gcnew System::Windows::Forms::GroupBox()); + this->numericUpDownRound = (gcnew System::Windows::Forms::NumericUpDown()); + this->labelRound = (gcnew System::Windows::Forms::Label()); + this->labelTimer = (gcnew System::Windows::Forms::Label()); + this->numericUpDownTimer = (gcnew System::Windows::Forms::NumericUpDown()); + this->numericUpDownMaxStage = (gcnew System::Windows::Forms::NumericUpDown()); + this->labelMaxStage = (gcnew System::Windows::Forms::Label()); + this->labelStageSelect = (gcnew System::Windows::Forms::Label()); + this->numericUpDownStageSelect = (gcnew System::Windows::Forms::NumericUpDown()); + this->tabPageColor = (gcnew System::Windows::Forms::TabPage()); + this->groupBoxMessageColor = (gcnew System::Windows::Forms::GroupBox()); + this->buttonDebugMessage = (gcnew System::Windows::Forms::Button()); + this->buttonErrorMessage = (gcnew System::Windows::Forms::Button()); + this->buttonSystemMessage = (gcnew System::Windows::Forms::Button()); + this->groupBoxOthersColor = (gcnew System::Windows::Forms::GroupBox()); + this->buttonSecret = (gcnew System::Windows::Forms::Button()); + this->buttonCommentBack = (gcnew System::Windows::Forms::Button()); + this->buttonNoticeBack = (gcnew System::Windows::Forms::Button()); + this->groupBoxStateColor = (gcnew System::Windows::Forms::GroupBox()); + this->buttonSeekState = (gcnew System::Windows::Forms::Button()); + this->buttonWatchState = (gcnew System::Windows::Forms::Button()); + this->buttonVSState = (gcnew System::Windows::Forms::Button()); + this->buttonRestState = (gcnew System::Windows::Forms::Button()); + this->groupBoxNameColor = (gcnew System::Windows::Forms::GroupBox()); + this->buttonClientName = (gcnew System::Windows::Forms::Button()); + this->buttonHostName = (gcnew System::Windows::Forms::Button()); + this->buttonServerName = (gcnew System::Windows::Forms::Button()); + this->tabPageVolume = (gcnew System::Windows::Forms::TabPage()); + this->groupBoxMidi = (gcnew System::Windows::Forms::GroupBox()); + this->labelMidi = (gcnew System::Windows::Forms::Label()); + this->trackBarMidi = (gcnew System::Windows::Forms::TrackBar()); + this->groupBoxSE = (gcnew System::Windows::Forms::GroupBox()); + this->labelSE = (gcnew System::Windows::Forms::Label()); + this->trackBarSE = (gcnew System::Windows::Forms::TrackBar()); + this->groupBoxBGM = (gcnew System::Windows::Forms::GroupBox()); + this->labelBGM = (gcnew System::Windows::Forms::Label()); + this->trackBarBGM = (gcnew System::Windows::Forms::TrackBar()); + this->tabPageIP = (gcnew System::Windows::Forms::TabPage()); + this->AddPortbutton = (gcnew System::Windows::Forms::Button()); + this->discriptionlabel = (gcnew System::Windows::Forms::Label()); + this->Convertbutton = (gcnew System::Windows::Forms::Button()); + this->Base64groupBox = (gcnew System::Windows::Forms::GroupBox()); + this->labelAddrMT = (gcnew System::Windows::Forms::Label()); + this->textBoxMTAddr = (gcnew System::Windows::Forms::TextBox()); + this->labelAddrBase64 = (gcnew System::Windows::Forms::Label()); + this->Base64textBox = (gcnew System::Windows::Forms::TextBox()); + this->IPgroupBox = (gcnew System::Windows::Forms::GroupBox()); + this->IPtextBox = (gcnew System::Windows::Forms::TextBox()); + this->tabPageDetails = (gcnew System::Windows::Forms::TabPage()); + this->groupBoxDetails = (gcnew System::Windows::Forms::GroupBox()); + this->checkBoxShowGameOption = (gcnew System::Windows::Forms::CheckBox()); + this->checkBoxNameFlash = (gcnew System::Windows::Forms::CheckBox()); + this->checkBoxGetIP = (gcnew System::Windows::Forms::CheckBox()); + this->checkBoxTalkFlash = (gcnew System::Windows::Forms::CheckBox()); + this->tabPageSound->SuspendLayout(); + this->groupBoxKeywordSound->SuspendLayout(); + this->groupBoxSeekSound->SuspendLayout(); + this->groupBoxTalkSound->SuspendLayout(); + this->groupBoxName->SuspendLayout(); + this->groupBoxEnterSound->SuspendLayout(); + this->groupBoxNoticeSound->SuspendLayout(); + this->groupBoxVSSound->SuspendLayout(); + this->tabPagePath->SuspendLayout(); + this->groupBoxProfile->SuspendLayout(); + this->groupBoxReplayFolder->SuspendLayout(); + this->groupBoxNet->SuspendLayout(); + (cli::safe_cast(this->numericUpDownMaxConnection))->BeginInit(); + this->groupBoxGameExe->SuspendLayout(); + this->groupBoxSave->SuspendLayout(); + this->tabControlOption->SuspendLayout(); + this->tabPageGame->SuspendLayout(); + this->groupBoxTeamOption->SuspendLayout(); + this->groupBoxSimulate->SuspendLayout(); + (cli::safe_cast(this->numericUpDownSimDelay))->BeginInit(); + this->groupBoxRun->SuspendLayout(); + this->groupBoxView->SuspendLayout(); + this->groupBoxSetting->SuspendLayout(); + (cli::safe_cast(this->numericUpDownRound))->BeginInit(); + (cli::safe_cast(this->numericUpDownTimer))->BeginInit(); + (cli::safe_cast(this->numericUpDownMaxStage))->BeginInit(); + (cli::safe_cast(this->numericUpDownStageSelect))->BeginInit(); + this->tabPageColor->SuspendLayout(); + this->groupBoxMessageColor->SuspendLayout(); + this->groupBoxOthersColor->SuspendLayout(); + this->groupBoxStateColor->SuspendLayout(); + this->groupBoxNameColor->SuspendLayout(); + this->tabPageVolume->SuspendLayout(); + this->groupBoxMidi->SuspendLayout(); + (cli::safe_cast(this->trackBarMidi))->BeginInit(); + this->groupBoxSE->SuspendLayout(); + (cli::safe_cast(this->trackBarSE))->BeginInit(); + this->groupBoxBGM->SuspendLayout(); + (cli::safe_cast(this->trackBarBGM))->BeginInit(); + this->tabPageIP->SuspendLayout(); + this->Base64groupBox->SuspendLayout(); + this->IPgroupBox->SuspendLayout(); + this->tabPageDetails->SuspendLayout(); + this->groupBoxDetails->SuspendLayout(); + this->SuspendLayout(); + // + // buttonOK + // + this->buttonOK->DialogResult = System::Windows::Forms::DialogResult::OK; + this->buttonOK->Location = System::Drawing::Point(165, 371); + this->buttonOK->Name = L"buttonOK"; + this->buttonOK->Size = System::Drawing::Size(64, 26); + this->buttonOK->TabIndex = 7; + this->buttonOK->Text = L"OK"; + this->buttonOK->UseVisualStyleBackColor = true; + this->buttonOK->Click += gcnew System::EventHandler(this, &OptionForm::buttonOK_Click); + // + // buttonApply + // + this->buttonApply->Location = System::Drawing::Point(305, 371); + this->buttonApply->Name = L"buttonApply"; + this->buttonApply->Size = System::Drawing::Size(64, 26); + this->buttonApply->TabIndex = 8; + this->buttonApply->Text = L"&Apply"; + this->buttonApply->UseVisualStyleBackColor = true; + this->buttonApply->Click += gcnew System::EventHandler(this, &OptionForm::buttonApply_Click); + // + // buttonCancel + // + this->buttonCancel->DialogResult = System::Windows::Forms::DialogResult::Cancel; + this->buttonCancel->Location = System::Drawing::Point(235, 371); + this->buttonCancel->Name = L"buttonCancel"; + this->buttonCancel->Size = System::Drawing::Size(64, 26); + this->buttonCancel->TabIndex = 9; + this->buttonCancel->Text = L"Cancel"; + this->buttonCancel->UseVisualStyleBackColor = true; + this->buttonCancel->Click += gcnew System::EventHandler(this, &OptionForm::buttonCancel_Click); + // + // folderBrowserDialog1 + // + this->folderBrowserDialog1->Description = L"リプレイ保存フォルダ"; + // + // colorDialog1 + // + this->colorDialog1->FullOpen = true; + // + // tabPageSound + // + this->tabPageSound->AutoScroll = true; + this->tabPageSound->AutoScrollMinSize = System::Drawing::Size(0, 460); + this->tabPageSound->Controls->Add(this->groupBoxKeywordSound); + this->tabPageSound->Controls->Add(this->groupBoxSeekSound); + this->tabPageSound->Controls->Add(this->groupBoxTalkSound); + this->tabPageSound->Controls->Add(this->groupBoxName); + this->tabPageSound->Controls->Add(this->groupBoxEnterSound); + this->tabPageSound->Controls->Add(this->groupBoxNoticeSound); + this->tabPageSound->Controls->Add(this->groupBoxVSSound); + this->tabPageSound->Location = System::Drawing::Point(4, 22); + this->tabPageSound->Name = L"tabPageSound"; + this->tabPageSound->Padding = System::Windows::Forms::Padding(3); + this->tabPageSound->Size = System::Drawing::Size(369, 339); + this->tabPageSound->TabIndex = 3; + this->tabPageSound->Text = L"Sounds"; + this->tabPageSound->UseVisualStyleBackColor = true; + // + // groupBoxKeywordSound + // + this->groupBoxKeywordSound->Controls->Add(this->buttonKeywordSoundPlay); + this->groupBoxKeywordSound->Controls->Add(this->checkBoxKeywordSound); + this->groupBoxKeywordSound->Controls->Add(this->buttonKeywordSound); + this->groupBoxKeywordSound->Controls->Add(this->textBoxKeywordSoundPath); + this->groupBoxKeywordSound->Controls->Add(this->labelKeywordSound); + this->groupBoxKeywordSound->Controls->Add(this->textBoxKeyword); + this->groupBoxKeywordSound->Location = System::Drawing::Point(9, 375); + this->groupBoxKeywordSound->Name = L"groupBoxKeywordSound"; + this->groupBoxKeywordSound->Size = System::Drawing::Size(335, 104); + this->groupBoxKeywordSound->TabIndex = 7; + this->groupBoxKeywordSound->TabStop = false; + this->groupBoxKeywordSound->Text = L"Play on keyword(s)"; + // + // buttonKeywordSoundPlay + // + this->buttonKeywordSoundPlay->Location = System::Drawing::Point(260, 67); + this->buttonKeywordSoundPlay->Name = L"buttonKeywordSoundPlay"; + this->buttonKeywordSoundPlay->Size = System::Drawing::Size(65, 22); + this->buttonKeywordSoundPlay->TabIndex = 5; + this->buttonKeywordSoundPlay->Text = L"Play"; + this->buttonKeywordSoundPlay->UseVisualStyleBackColor = true; + this->buttonKeywordSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonKeywordSoundPlay_Click); + // + // checkBoxKeywordSound + // + this->checkBoxKeywordSound->AutoSize = true; + this->checkBoxKeywordSound->Location = System::Drawing::Point(197, 70); + this->checkBoxKeywordSound->Name = L"checkBoxKeywordSound"; + this->checkBoxKeywordSound->Size = System::Drawing::Size(65, 17); + this->checkBoxKeywordSound->TabIndex = 4; + this->checkBoxKeywordSound->Text = L"Enabled"; + this->checkBoxKeywordSound->UseVisualStyleBackColor = true; + this->checkBoxKeywordSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // buttonKeywordSound + // + this->buttonKeywordSound->Location = System::Drawing::Point(166, 67); + this->buttonKeywordSound->Name = L"buttonKeywordSound"; + this->buttonKeywordSound->Size = System::Drawing::Size(24, 22); + this->buttonKeywordSound->TabIndex = 3; + this->buttonKeywordSound->Text = L"..."; + this->buttonKeywordSound->UseVisualStyleBackColor = true; + this->buttonKeywordSound->Click += gcnew System::EventHandler(this, &OptionForm::buttonKeywordSound_Click); + // + // textBoxKeywordSoundPath + // + this->textBoxKeywordSoundPath->AllowDrop = true; + this->textBoxKeywordSoundPath->Location = System::Drawing::Point(10, 68); + this->textBoxKeywordSoundPath->Name = L"textBoxKeywordSoundPath"; + this->textBoxKeywordSoundPath->Size = System::Drawing::Size(150, 20); + this->textBoxKeywordSoundPath->TabIndex = 2; + this->textBoxKeywordSoundPath->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->textBoxKeywordSoundPath->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxKeywordSound_DragDrop); + this->textBoxKeywordSoundPath->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxSound_DragEnter); + // + // labelKeywordSound + // + this->labelKeywordSound->AutoSize = true; + this->labelKeywordSound->Location = System::Drawing::Point(10, 17); + this->labelKeywordSound->Name = L"labelKeywordSound"; + this->labelKeywordSound->Size = System::Drawing::Size(174, 13); + this->labelKeywordSound->TabIndex = 1; + this->labelKeywordSound->Text = L"Separate keywords with commas (,)"; + // + // textBoxKeyword + // + this->textBoxKeyword->Location = System::Drawing::Point(10, 38); + this->textBoxKeyword->Name = L"textBoxKeyword"; + this->textBoxKeyword->Size = System::Drawing::Size(315, 20); + this->textBoxKeyword->TabIndex = 0; + this->textBoxKeyword->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // groupBoxSeekSound + // + this->groupBoxSeekSound->Controls->Add(this->buttonSeekSoundPlay); + this->groupBoxSeekSound->Controls->Add(this->checkBoxSeekSound); + this->groupBoxSeekSound->Controls->Add(this->buttonSeekSound); + this->groupBoxSeekSound->Controls->Add(this->textBoxSeekSound); + this->groupBoxSeekSound->Location = System::Drawing::Point(8, 311); + this->groupBoxSeekSound->Name = L"groupBoxSeekSound"; + this->groupBoxSeekSound->Size = System::Drawing::Size(336, 56); + this->groupBoxSeekSound->TabIndex = 6; + this->groupBoxSeekSound->TabStop = false; + this->groupBoxSeekSound->Text = L"Challenge request"; + // + // buttonSeekSoundPlay + // + this->buttonSeekSoundPlay->Location = System::Drawing::Point(261, 21); + this->buttonSeekSoundPlay->Name = L"buttonSeekSoundPlay"; + this->buttonSeekSoundPlay->Size = System::Drawing::Size(65, 22); + this->buttonSeekSoundPlay->TabIndex = 3; + this->buttonSeekSoundPlay->Text = L"Play"; + this->buttonSeekSoundPlay->UseVisualStyleBackColor = true; + this->buttonSeekSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonSeekSoundPlay_Click); + // + // checkBoxSeekSound + // + this->checkBoxSeekSound->AutoSize = true; + this->checkBoxSeekSound->Location = System::Drawing::Point(197, 23); + this->checkBoxSeekSound->Name = L"checkBoxSeekSound"; + this->checkBoxSeekSound->Size = System::Drawing::Size(65, 17); + this->checkBoxSeekSound->TabIndex = 2; + this->checkBoxSeekSound->Text = L"Enabled"; + this->checkBoxSeekSound->UseVisualStyleBackColor = true; + this->checkBoxSeekSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // buttonSeekSound + // + this->buttonSeekSound->Location = System::Drawing::Point(167, 20); + this->buttonSeekSound->Name = L"buttonSeekSound"; + this->buttonSeekSound->Size = System::Drawing::Size(24, 22); + this->buttonSeekSound->TabIndex = 1; + this->buttonSeekSound->Text = L"..."; + this->buttonSeekSound->UseVisualStyleBackColor = true; + this->buttonSeekSound->Click += gcnew System::EventHandler(this, &OptionForm::buttonSeekSound_Click); + // + // textBoxSeekSound + // + this->textBoxSeekSound->AllowDrop = true; + this->textBoxSeekSound->Location = System::Drawing::Point(10, 21); + this->textBoxSeekSound->Name = L"textBoxSeekSound"; + this->textBoxSeekSound->Size = System::Drawing::Size(151, 20); + this->textBoxSeekSound->TabIndex = 0; + this->textBoxSeekSound->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->textBoxSeekSound->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxSeekSound_DragDrop); + this->textBoxSeekSound->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxSound_DragEnter); + // + // groupBoxTalkSound + // + this->groupBoxTalkSound->Controls->Add(this->buttonTalkSoundPlay); + this->groupBoxTalkSound->Controls->Add(this->checkBoxTalkSound); + this->groupBoxTalkSound->Controls->Add(this->buttonTalkSound); + this->groupBoxTalkSound->Controls->Add(this->textBoxTalkSound); + this->groupBoxTalkSound->Location = System::Drawing::Point(8, 247); + this->groupBoxTalkSound->Name = L"groupBoxTalkSound"; + this->groupBoxTalkSound->Size = System::Drawing::Size(336, 56); + this->groupBoxTalkSound->TabIndex = 5; + this->groupBoxTalkSound->TabStop = false; + this->groupBoxTalkSound->Text = L"Remarks"; + // + // buttonTalkSoundPlay + // + this->buttonTalkSoundPlay->Location = System::Drawing::Point(261, 21); + this->buttonTalkSoundPlay->Name = L"buttonTalkSoundPlay"; + this->buttonTalkSoundPlay->Size = System::Drawing::Size(65, 22); + this->buttonTalkSoundPlay->TabIndex = 3; + this->buttonTalkSoundPlay->Text = L"Play"; + this->buttonTalkSoundPlay->UseVisualStyleBackColor = true; + this->buttonTalkSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonTalkSoundPlay_Click); + // + // checkBoxTalkSound + // + this->checkBoxTalkSound->AutoSize = true; + this->checkBoxTalkSound->Location = System::Drawing::Point(197, 23); + this->checkBoxTalkSound->Name = L"checkBoxTalkSound"; + this->checkBoxTalkSound->Size = System::Drawing::Size(65, 17); + this->checkBoxTalkSound->TabIndex = 2; + this->checkBoxTalkSound->Text = L"Enabled"; + this->checkBoxTalkSound->UseVisualStyleBackColor = true; + this->checkBoxTalkSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // buttonTalkSound + // + this->buttonTalkSound->Location = System::Drawing::Point(167, 20); + this->buttonTalkSound->Name = L"buttonTalkSound"; + this->buttonTalkSound->Size = System::Drawing::Size(24, 22); + this->buttonTalkSound->TabIndex = 1; + this->buttonTalkSound->Text = L"..."; + this->buttonTalkSound->UseVisualStyleBackColor = true; + this->buttonTalkSound->Click += gcnew System::EventHandler(this, &OptionForm::buttonTalkSound_Click); + // + // textBoxTalkSound + // + this->textBoxTalkSound->AllowDrop = true; + this->textBoxTalkSound->Location = System::Drawing::Point(10, 21); + this->textBoxTalkSound->Name = L"textBoxTalkSound"; + this->textBoxTalkSound->Size = System::Drawing::Size(151, 20); + this->textBoxTalkSound->TabIndex = 0; + this->textBoxTalkSound->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->textBoxTalkSound->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxTalkSound_DragDrop); + this->textBoxTalkSound->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxSound_DragEnter); + // + // groupBoxName + // + this->groupBoxName->Controls->Add(this->buttonNameSoundPlay); + this->groupBoxName->Controls->Add(this->checkBoxNameSound); + this->groupBoxName->Controls->Add(this->buttonNameSound); + this->groupBoxName->Controls->Add(this->textBoxNameSound); + this->groupBoxName->Location = System::Drawing::Point(8, 187); + this->groupBoxName->Name = L"groupBoxName"; + this->groupBoxName->Size = System::Drawing::Size(336, 56); + this->groupBoxName->TabIndex = 4; + this->groupBoxName->TabStop = false; + this->groupBoxName->Text = L"When nickname is mentioned"; + // + // buttonNameSoundPlay + // + this->buttonNameSoundPlay->Location = System::Drawing::Point(261, 21); + this->buttonNameSoundPlay->Name = L"buttonNameSoundPlay"; + this->buttonNameSoundPlay->Size = System::Drawing::Size(65, 22); + this->buttonNameSoundPlay->TabIndex = 5; + this->buttonNameSoundPlay->Text = L"Play"; + this->buttonNameSoundPlay->UseVisualStyleBackColor = true; + this->buttonNameSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonNameSoundPlay_Click); + // + // checkBoxNameSound + // + this->checkBoxNameSound->AutoSize = true; + this->checkBoxNameSound->Location = System::Drawing::Point(197, 23); + this->checkBoxNameSound->Name = L"checkBoxNameSound"; + this->checkBoxNameSound->Size = System::Drawing::Size(65, 17); + this->checkBoxNameSound->TabIndex = 4; + this->checkBoxNameSound->Text = L"Enabled"; + this->checkBoxNameSound->UseVisualStyleBackColor = true; + this->checkBoxNameSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // buttonNameSound + // + this->buttonNameSound->Location = System::Drawing::Point(167, 20); + this->buttonNameSound->Name = L"buttonNameSound"; + this->buttonNameSound->Size = System::Drawing::Size(24, 22); + this->buttonNameSound->TabIndex = 3; + this->buttonNameSound->Text = L"..."; + this->buttonNameSound->UseVisualStyleBackColor = true; + this->buttonNameSound->Click += gcnew System::EventHandler(this, &OptionForm::buttonNameSound_Click); + // + // textBoxNameSound + // + this->textBoxNameSound->AllowDrop = true; + this->textBoxNameSound->Location = System::Drawing::Point(11, 21); + this->textBoxNameSound->Name = L"textBoxNameSound"; + this->textBoxNameSound->Size = System::Drawing::Size(150, 20); + this->textBoxNameSound->TabIndex = 2; + this->textBoxNameSound->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->textBoxNameSound->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxNameSound_DragDrop); + this->textBoxNameSound->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxSound_DragEnter); + // + // groupBoxEnterSound + // + this->groupBoxEnterSound->Controls->Add(this->buttonEnterSoundPlay); + this->groupBoxEnterSound->Controls->Add(this->checkBoxEnterSound); + this->groupBoxEnterSound->Controls->Add(this->textBoxEnterSound); + this->groupBoxEnterSound->Controls->Add(this->buttonEnterSound); + this->groupBoxEnterSound->Location = System::Drawing::Point(8, 128); + this->groupBoxEnterSound->Name = L"groupBoxEnterSound"; + this->groupBoxEnterSound->Size = System::Drawing::Size(336, 56); + this->groupBoxEnterSound->TabIndex = 3; + this->groupBoxEnterSound->TabStop = false; + this->groupBoxEnterSound->Text = L"Player join"; + // + // buttonEnterSoundPlay + // + this->buttonEnterSoundPlay->Location = System::Drawing::Point(261, 22); + this->buttonEnterSoundPlay->Name = L"buttonEnterSoundPlay"; + this->buttonEnterSoundPlay->Size = System::Drawing::Size(65, 22); + this->buttonEnterSoundPlay->TabIndex = 4; + this->buttonEnterSoundPlay->Text = L"Play"; + this->buttonEnterSoundPlay->UseVisualStyleBackColor = true; + this->buttonEnterSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonEnterSoundPlay_Click); + // + // checkBoxEnterSound + // + this->checkBoxEnterSound->AutoSize = true; + this->checkBoxEnterSound->Location = System::Drawing::Point(197, 24); + this->checkBoxEnterSound->Name = L"checkBoxEnterSound"; + this->checkBoxEnterSound->Size = System::Drawing::Size(65, 17); + this->checkBoxEnterSound->TabIndex = 3; + this->checkBoxEnterSound->Text = L"Enabled"; + this->checkBoxEnterSound->UseVisualStyleBackColor = true; + this->checkBoxEnterSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // textBoxEnterSound + // + this->textBoxEnterSound->AllowDrop = true; + this->textBoxEnterSound->Location = System::Drawing::Point(11, 22); + this->textBoxEnterSound->Name = L"textBoxEnterSound"; + this->textBoxEnterSound->Size = System::Drawing::Size(150, 20); + this->textBoxEnterSound->TabIndex = 1; + this->textBoxEnterSound->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->textBoxEnterSound->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxEnterSound_DragDrop); + this->textBoxEnterSound->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxSound_DragEnter); + // + // buttonEnterSound + // + this->buttonEnterSound->Location = System::Drawing::Point(167, 21); + this->buttonEnterSound->Name = L"buttonEnterSound"; + this->buttonEnterSound->Size = System::Drawing::Size(24, 22); + this->buttonEnterSound->TabIndex = 2; + this->buttonEnterSound->Text = L"..."; + this->buttonEnterSound->UseVisualStyleBackColor = true; + this->buttonEnterSound->Click += gcnew System::EventHandler(this, &OptionForm::buttonEnterSound_Click); + // + // groupBoxNoticeSound + // + this->groupBoxNoticeSound->Controls->Add(this->buttonNoticeSoundPlay); + this->groupBoxNoticeSound->Controls->Add(this->checkBoxNoticeSound); + this->groupBoxNoticeSound->Controls->Add(this->textBoxNoticeSound); + this->groupBoxNoticeSound->Controls->Add(this->buttonNoticeSound); + this->groupBoxNoticeSound->Location = System::Drawing::Point(8, 68); + this->groupBoxNoticeSound->Name = L"groupBoxNoticeSound"; + this->groupBoxNoticeSound->Size = System::Drawing::Size(336, 56); + this->groupBoxNoticeSound->TabIndex = 2; + this->groupBoxNoticeSound->TabStop = false; + this->groupBoxNoticeSound->Text = L"Announcement"; + // + // buttonNoticeSoundPlay + // + this->buttonNoticeSoundPlay->Location = System::Drawing::Point(261, 22); + this->buttonNoticeSoundPlay->Name = L"buttonNoticeSoundPlay"; + this->buttonNoticeSoundPlay->Size = System::Drawing::Size(65, 22); + this->buttonNoticeSoundPlay->TabIndex = 4; + this->buttonNoticeSoundPlay->Text = L"Play"; + this->buttonNoticeSoundPlay->UseVisualStyleBackColor = true; + this->buttonNoticeSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonNoticeSoundPlay_Click); + // + // checkBoxNoticeSound + // + this->checkBoxNoticeSound->AutoSize = true; + this->checkBoxNoticeSound->Location = System::Drawing::Point(197, 24); + this->checkBoxNoticeSound->Name = L"checkBoxNoticeSound"; + this->checkBoxNoticeSound->Size = System::Drawing::Size(65, 17); + this->checkBoxNoticeSound->TabIndex = 3; + this->checkBoxNoticeSound->Text = L"Enabled"; + this->checkBoxNoticeSound->UseVisualStyleBackColor = true; + this->checkBoxNoticeSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // textBoxNoticeSound + // + this->textBoxNoticeSound->AllowDrop = true; + this->textBoxNoticeSound->Location = System::Drawing::Point(11, 22); + this->textBoxNoticeSound->Name = L"textBoxNoticeSound"; + this->textBoxNoticeSound->Size = System::Drawing::Size(150, 20); + this->textBoxNoticeSound->TabIndex = 1; + this->textBoxNoticeSound->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->textBoxNoticeSound->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxNoticeSound_DragDrop); + this->textBoxNoticeSound->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxSound_DragEnter); + // + // buttonNoticeSound + // + this->buttonNoticeSound->Location = System::Drawing::Point(167, 21); + this->buttonNoticeSound->Name = L"buttonNoticeSound"; + this->buttonNoticeSound->Size = System::Drawing::Size(24, 22); + this->buttonNoticeSound->TabIndex = 2; + this->buttonNoticeSound->Text = L"..."; + this->buttonNoticeSound->UseVisualStyleBackColor = true; + this->buttonNoticeSound->Click += gcnew System::EventHandler(this, &OptionForm::buttonNoticeSound_Click); + // + // groupBoxVSSound + // + this->groupBoxVSSound->Controls->Add(this->buttonVSSoundPlay); + this->groupBoxVSSound->Controls->Add(this->checkBoxVSSound); + this->groupBoxVSSound->Controls->Add(this->textBoxVSSound); + this->groupBoxVSSound->Controls->Add(this->buttonVSSound); + this->groupBoxVSSound->Location = System::Drawing::Point(8, 9); + this->groupBoxVSSound->Name = L"groupBoxVSSound"; + this->groupBoxVSSound->Size = System::Drawing::Size(336, 56); + this->groupBoxVSSound->TabIndex = 1; + this->groupBoxVSSound->TabStop = false; + this->groupBoxVSSound->Text = L"Challenge notification"; + // + // buttonVSSoundPlay + // + this->buttonVSSoundPlay->Location = System::Drawing::Point(261, 21); + this->buttonVSSoundPlay->Name = L"buttonVSSoundPlay"; + this->buttonVSSoundPlay->Size = System::Drawing::Size(65, 22); + this->buttonVSSoundPlay->TabIndex = 4; + this->buttonVSSoundPlay->Text = L"Play"; + this->buttonVSSoundPlay->UseVisualStyleBackColor = true; + this->buttonVSSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonVSSoundPlay_Click); + // + // checkBoxVSSound + // + this->checkBoxVSSound->AutoSize = true; + this->checkBoxVSSound->Location = System::Drawing::Point(197, 24); + this->checkBoxVSSound->Name = L"checkBoxVSSound"; + this->checkBoxVSSound->Size = System::Drawing::Size(65, 17); + this->checkBoxVSSound->TabIndex = 3; + this->checkBoxVSSound->Text = L"Enabled"; + this->checkBoxVSSound->UseVisualStyleBackColor = true; + this->checkBoxVSSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // textBoxVSSound + // + this->textBoxVSSound->AllowDrop = true; + this->textBoxVSSound->Location = System::Drawing::Point(11, 22); + this->textBoxVSSound->Name = L"textBoxVSSound"; + this->textBoxVSSound->Size = System::Drawing::Size(150, 20); + this->textBoxVSSound->TabIndex = 1; + this->textBoxVSSound->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->textBoxVSSound->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxVSSound_DragDrop); + this->textBoxVSSound->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxSound_DragEnter); + // + // buttonVSSound + // + this->buttonVSSound->Location = System::Drawing::Point(167, 21); + this->buttonVSSound->Name = L"buttonVSSound"; + this->buttonVSSound->Size = System::Drawing::Size(24, 22); + this->buttonVSSound->TabIndex = 2; + this->buttonVSSound->Text = L"..."; + this->buttonVSSound->UseVisualStyleBackColor = true; + this->buttonVSSound->Click += gcnew System::EventHandler(this, &OptionForm::buttonVSSound_Click); + // + // tabPagePath + // + this->tabPagePath->AutoScroll = true; + this->tabPagePath->AutoScrollMinSize = System::Drawing::Size(0, 330); + this->tabPagePath->Controls->Add(this->groupBoxProfile); + this->tabPagePath->Controls->Add(this->groupBoxReplayFolder); + this->tabPagePath->Controls->Add(this->groupBoxNet); + this->tabPagePath->Controls->Add(this->groupBoxGameExe); + this->tabPagePath->Location = System::Drawing::Point(4, 22); + this->tabPagePath->Name = L"tabPagePath"; + this->tabPagePath->Padding = System::Windows::Forms::Padding(3); + this->tabPagePath->Size = System::Drawing::Size(369, 339); + this->tabPagePath->TabIndex = 0; + this->tabPagePath->Text = L"General"; + this->tabPagePath->UseVisualStyleBackColor = true; + // + // groupBoxProfile + // + this->groupBoxProfile->Controls->Add(this->buttonSaveProfile); + this->groupBoxProfile->Controls->Add(this->buttonAddProfile); + this->groupBoxProfile->Controls->Add(this->labelProfileName); + this->groupBoxProfile->Controls->Add(this->buttonDeleteProfile); + this->groupBoxProfile->Controls->Add(this->textBoxProfileName); + this->groupBoxProfile->Controls->Add(this->buttonCopyProfile); + this->groupBoxProfile->Controls->Add(this->comboBoxProfile); + this->groupBoxProfile->Location = System::Drawing::Point(8, 9); + this->groupBoxProfile->Name = L"groupBoxProfile"; + this->groupBoxProfile->Size = System::Drawing::Size(330, 92); + this->groupBoxProfile->TabIndex = 4; + this->groupBoxProfile->TabStop = false; + this->groupBoxProfile->Text = L"Profile"; + // + // buttonSaveProfile + // + this->buttonSaveProfile->Location = System::Drawing::Point(275, 54); + this->buttonSaveProfile->Name = L"buttonSaveProfile"; + this->buttonSaveProfile->Size = System::Drawing::Size(45, 24); + this->buttonSaveProfile->TabIndex = 7; + this->buttonSaveProfile->Text = L"Save"; + this->buttonSaveProfile->UseVisualStyleBackColor = true; + this->buttonSaveProfile->Click += gcnew System::EventHandler(this, &OptionForm::buttonSaveProfile_Click); + // + // buttonAddProfile + // + this->buttonAddProfile->Location = System::Drawing::Point(223, 54); + this->buttonAddProfile->Name = L"buttonAddProfile"; + this->buttonAddProfile->Size = System::Drawing::Size(45, 24); + this->buttonAddProfile->TabIndex = 6; + this->buttonAddProfile->Text = L"Add"; + this->buttonAddProfile->UseVisualStyleBackColor = true; + this->buttonAddProfile->Click += gcnew System::EventHandler(this, &OptionForm::buttonAddProfile_Click); + // + // labelProfileName + // + this->labelProfileName->AutoSize = true; + this->labelProfileName->Location = System::Drawing::Point(10, 60); + this->labelProfileName->Name = L"labelProfileName"; + this->labelProfileName->Size = System::Drawing::Size(38, 13); + this->labelProfileName->TabIndex = 5; + this->labelProfileName->Text = L"Name:"; + // + // buttonDeleteProfile + // + this->buttonDeleteProfile->Location = System::Drawing::Point(275, 20); + this->buttonDeleteProfile->Name = L"buttonDeleteProfile"; + this->buttonDeleteProfile->Size = System::Drawing::Size(45, 24); + this->buttonDeleteProfile->TabIndex = 4; + this->buttonDeleteProfile->Text = L"Del."; + this->buttonDeleteProfile->UseVisualStyleBackColor = true; + this->buttonDeleteProfile->Click += gcnew System::EventHandler(this, &OptionForm::buttonDeleteProfile_Click); + // + // textBoxProfileName + // + this->textBoxProfileName->Location = System::Drawing::Point(51, 56); + this->textBoxProfileName->MaxLength = 63; + this->textBoxProfileName->Name = L"textBoxProfileName"; + this->textBoxProfileName->Size = System::Drawing::Size(161, 20); + this->textBoxProfileName->TabIndex = 3; + this->textBoxProfileName->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // buttonCopyProfile + // + this->buttonCopyProfile->Location = System::Drawing::Point(223, 20); + this->buttonCopyProfile->Name = L"buttonCopyProfile"; + this->buttonCopyProfile->Size = System::Drawing::Size(45, 24); + this->buttonCopyProfile->TabIndex = 2; + this->buttonCopyProfile->Text = L"Copy"; + this->buttonCopyProfile->UseVisualStyleBackColor = true; + this->buttonCopyProfile->Click += gcnew System::EventHandler(this, &OptionForm::buttonCopyProfile_Click); + // + // comboBoxProfile + // + this->comboBoxProfile->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList; + this->comboBoxProfile->FormattingEnabled = true; + this->comboBoxProfile->ItemHeight = 13; + this->comboBoxProfile->Location = System::Drawing::Point(12, 21); + this->comboBoxProfile->MaxDropDownItems = 64; + this->comboBoxProfile->Name = L"comboBoxProfile"; + this->comboBoxProfile->Size = System::Drawing::Size(200, 21); + this->comboBoxProfile->TabIndex = 0; + this->comboBoxProfile->SelectedIndexChanged += gcnew System::EventHandler(this, &OptionForm::comboBoxProfile_SelectedIndexChanged); + // + // groupBoxReplayFolder + // + this->groupBoxReplayFolder->Controls->Add(this->textBoxReplayFolder); + this->groupBoxReplayFolder->Controls->Add(this->buttonReplayFolder); + this->groupBoxReplayFolder->Controls->Add(this->checkBoxDivide); + this->groupBoxReplayFolder->Location = System::Drawing::Point(8, 170); + this->groupBoxReplayFolder->Name = L"groupBoxReplayFolder"; + this->groupBoxReplayFolder->Size = System::Drawing::Size(330, 87); + this->groupBoxReplayFolder->TabIndex = 2; + this->groupBoxReplayFolder->TabStop = false; + this->groupBoxReplayFolder->Text = L"Replay folder"; + // + // textBoxReplayFolder + // + this->textBoxReplayFolder->AllowDrop = true; + this->textBoxReplayFolder->Location = System::Drawing::Point(12, 22); + this->textBoxReplayFolder->Name = L"textBoxReplayFolder"; + this->textBoxReplayFolder->Size = System::Drawing::Size(278, 20); + this->textBoxReplayFolder->TabIndex = 1; + this->textBoxReplayFolder->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->textBoxReplayFolder->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxReplayFolder_DragDrop); + this->textBoxReplayFolder->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxReplayFolder_DragEnter); + // + // buttonReplayFolder + // + this->buttonReplayFolder->Location = System::Drawing::Point(296, 22); + this->buttonReplayFolder->Name = L"buttonReplayFolder"; + this->buttonReplayFolder->Size = System::Drawing::Size(24, 22); + this->buttonReplayFolder->TabIndex = 2; + this->buttonReplayFolder->Text = L"..."; + this->buttonReplayFolder->UseVisualStyleBackColor = true; + this->buttonReplayFolder->Click += gcnew System::EventHandler(this, &OptionForm::buttonReplayFolder_Click); + // + // checkBoxDivide + // + this->checkBoxDivide->AutoSize = true; + this->checkBoxDivide->Location = System::Drawing::Point(12, 55); + this->checkBoxDivide->Name = L"checkBoxDivide"; + this->checkBoxDivide->Size = System::Drawing::Size(170, 17); + this->checkBoxDivide->TabIndex = 3; + this->checkBoxDivide->Text = L"Name replay files automatically"; + this->checkBoxDivide->UseVisualStyleBackColor = true; + this->checkBoxDivide->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // groupBoxNet + // + this->groupBoxNet->Controls->Add(this->labelComment); + this->groupBoxNet->Controls->Add(this->numericUpDownMaxConnection); + this->groupBoxNet->Controls->Add(this->textBoxComment); + this->groupBoxNet->Controls->Add(this->label5); + this->groupBoxNet->Location = System::Drawing::Point(8, 263); + this->groupBoxNet->Name = L"groupBoxNet"; + this->groupBoxNet->Size = System::Drawing::Size(330, 87); + this->groupBoxNet->TabIndex = 3; + this->groupBoxNet->TabStop = false; + this->groupBoxNet->Text = L"Connection"; + // + // labelComment + // + this->labelComment->AutoSize = true; + this->labelComment->Location = System::Drawing::Point(10, 55); + this->labelComment->Name = L"labelComment"; + this->labelComment->Size = System::Drawing::Size(60, 13); + this->labelComment->TabIndex = 0; + this->labelComment->Text = L"Description"; + // + // numericUpDownMaxConnection + // + this->numericUpDownMaxConnection->Location = System::Drawing::Point(104, 22); + this->numericUpDownMaxConnection->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1, 0, 0, 0 }); + this->numericUpDownMaxConnection->Name = L"numericUpDownMaxConnection"; + this->numericUpDownMaxConnection->Size = System::Drawing::Size(40, 20); + this->numericUpDownMaxConnection->TabIndex = 1; + this->numericUpDownMaxConnection->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1, 0, 0, 0 }); + this->numericUpDownMaxConnection->ValueChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // textBoxComment + // + this->textBoxComment->Location = System::Drawing::Point(104, 52); + this->textBoxComment->Name = L"textBoxComment"; + this->textBoxComment->Size = System::Drawing::Size(183, 20); + this->textBoxComment->TabIndex = 2; + this->textBoxComment->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // label5 + // + this->label5->AutoSize = true; + this->label5->Location = System::Drawing::Point(10, 24); + this->label5->Name = L"label5"; + this->label5->Size = System::Drawing::Size(88, 13); + this->label5->TabIndex = 0; + this->label5->Text = L"Max connections"; + // + // groupBoxGameExe + // + this->groupBoxGameExe->Controls->Add(this->textBoxGameExe); + this->groupBoxGameExe->Controls->Add(this->buttonGameExe); + this->groupBoxGameExe->Location = System::Drawing::Point(8, 107); + this->groupBoxGameExe->Name = L"groupBoxGameExe"; + this->groupBoxGameExe->Size = System::Drawing::Size(330, 56); + this->groupBoxGameExe->TabIndex = 1; + this->groupBoxGameExe->TabStop = false; + this->groupBoxGameExe->Text = L"Game executable path"; + // + // textBoxGameExe + // + this->textBoxGameExe->AllowDrop = true; + this->textBoxGameExe->Location = System::Drawing::Point(12, 22); + this->textBoxGameExe->Name = L"textBoxGameExe"; + this->textBoxGameExe->Size = System::Drawing::Size(278, 20); + this->textBoxGameExe->TabIndex = 1; + this->textBoxGameExe->TextChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->textBoxGameExe->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxGameExe_DragDrop); + this->textBoxGameExe->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &OptionForm::textBoxGameExe_DragEnter); + // + // buttonGameExe + // + this->buttonGameExe->Location = System::Drawing::Point(296, 22); + this->buttonGameExe->Name = L"buttonGameExe"; + this->buttonGameExe->Size = System::Drawing::Size(24, 22); + this->buttonGameExe->TabIndex = 2; + this->buttonGameExe->Text = L"..."; + this->buttonGameExe->UseVisualStyleBackColor = true; + this->buttonGameExe->Click += gcnew System::EventHandler(this, &OptionForm::buttonGameExe_Click); + // + // groupBoxSave + // + this->groupBoxSave->Controls->Add(this->radioButtonReplayVersion1); + this->groupBoxSave->Controls->Add(this->radioButtonReplayVersion2); + this->groupBoxSave->Location = System::Drawing::Point(195, 216); + this->groupBoxSave->Name = L"groupBoxSave"; + this->groupBoxSave->Size = System::Drawing::Size(154, 46); + this->groupBoxSave->TabIndex = 4; + this->groupBoxSave->TabStop = false; + this->groupBoxSave->Text = L"Replay file compression"; + // + // radioButtonReplayVersion1 + // + this->radioButtonReplayVersion1->AutoSize = true; + this->radioButtonReplayVersion1->Location = System::Drawing::Point(88, 18); + this->radioButtonReplayVersion1->Name = L"radioButtonReplayVersion1"; + this->radioButtonReplayVersion1->Size = System::Drawing::Size(39, 17); + this->radioButtonReplayVersion1->TabIndex = 2; + this->radioButtonReplayVersion1->TabStop = true; + this->radioButtonReplayVersion1->Text = L"Off"; + this->radioButtonReplayVersion1->UseVisualStyleBackColor = true; + this->radioButtonReplayVersion1->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // radioButtonReplayVersion2 + // + this->radioButtonReplayVersion2->AutoSize = true; + this->radioButtonReplayVersion2->Location = System::Drawing::Point(16, 18); + this->radioButtonReplayVersion2->Name = L"radioButtonReplayVersion2"; + this->radioButtonReplayVersion2->Size = System::Drawing::Size(39, 17); + this->radioButtonReplayVersion2->TabIndex = 2; + this->radioButtonReplayVersion2->TabStop = true; + this->radioButtonReplayVersion2->Text = L"On"; + this->radioButtonReplayVersion2->UseVisualStyleBackColor = true; + this->radioButtonReplayVersion2->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // tabControlOption + // + this->tabControlOption->Controls->Add(this->tabPagePath); + this->tabControlOption->Controls->Add(this->tabPageSound); + this->tabControlOption->Controls->Add(this->tabPageGame); + this->tabControlOption->Controls->Add(this->tabPageColor); + this->tabControlOption->Controls->Add(this->tabPageVolume); + this->tabControlOption->Controls->Add(this->tabPageIP); + this->tabControlOption->Controls->Add(this->tabPageDetails); + this->tabControlOption->Dock = System::Windows::Forms::DockStyle::Top; + this->tabControlOption->Location = System::Drawing::Point(0, 0); + this->tabControlOption->Name = L"tabControlOption"; + this->tabControlOption->SelectedIndex = 0; + this->tabControlOption->Size = System::Drawing::Size(377, 365); + this->tabControlOption->TabIndex = 0; + // + // tabPageGame + // + this->tabPageGame->AutoScroll = true; + this->tabPageGame->Controls->Add(this->groupBoxTeamOption); + this->tabPageGame->Controls->Add(this->groupBoxSave); + this->tabPageGame->Controls->Add(this->groupBoxSimulate); + this->tabPageGame->Controls->Add(this->groupBoxRun); + this->tabPageGame->Controls->Add(this->groupBoxView); + this->tabPageGame->Controls->Add(this->groupBoxSetting); + this->tabPageGame->Location = System::Drawing::Point(4, 22); + this->tabPageGame->Name = L"tabPageGame"; + this->tabPageGame->Padding = System::Windows::Forms::Padding(3); + this->tabPageGame->Size = System::Drawing::Size(369, 339); + this->tabPageGame->TabIndex = 4; + this->tabPageGame->Text = L"Game"; + this->tabPageGame->UseVisualStyleBackColor = true; + // + // groupBoxTeamOption + // + this->groupBoxTeamOption->Controls->Add(this->labelTeamRoundHP); + this->groupBoxTeamOption->Controls->Add(this->checkBoxTeamRoundHP); + this->groupBoxTeamOption->Location = System::Drawing::Point(9, 268); + this->groupBoxTeamOption->Name = L"groupBoxTeamOption"; + this->groupBoxTeamOption->Size = System::Drawing::Size(341, 65); + this->groupBoxTeamOption->TabIndex = 6; + this->groupBoxTeamOption->TabStop = false; + this->groupBoxTeamOption->Text = L"Team play"; + // + // labelTeamRoundHP + // + this->labelTeamRoundHP->AutoSize = true; + this->labelTeamRoundHP->Location = System::Drawing::Point(13, 46); + this->labelTeamRoundHP->Name = L"labelTeamRoundHP"; + this->labelTeamRoundHP->Size = System::Drawing::Size(129, 13); + this->labelTeamRoundHP->TabIndex = 1; + this->labelTeamRoundHP->Text = L"*You need to turn off 1v1!"; + // + // checkBoxTeamRoundHP + // + this->checkBoxTeamRoundHP->AutoSize = true; + this->checkBoxTeamRoundHP->Location = System::Drawing::Point(15, 23); + this->checkBoxTeamRoundHP->Name = L"checkBoxTeamRoundHP"; + this->checkBoxTeamRoundHP->Size = System::Drawing::Size(185, 17); + this->checkBoxTeamRoundHP->TabIndex = 0; + this->checkBoxTeamRoundHP->Text = L"Carry over health between rounds"; + this->checkBoxTeamRoundHP->UseVisualStyleBackColor = true; + this->checkBoxTeamRoundHP->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // groupBoxSimulate + // + this->groupBoxSimulate->Controls->Add(this->numericUpDownSimDelay); + this->groupBoxSimulate->Controls->Add(this->labelSimDelay); + this->groupBoxSimulate->Location = System::Drawing::Point(195, 161); + this->groupBoxSimulate->Name = L"groupBoxSimulate"; + this->groupBoxSimulate->Size = System::Drawing::Size(154, 48); + this->groupBoxSimulate->TabIndex = 5; + this->groupBoxSimulate->TabStop = false; + this->groupBoxSimulate->Text = L"Simulation"; + // + // numericUpDownSimDelay + // + this->numericUpDownSimDelay->Location = System::Drawing::Point(88, 20); + this->numericUpDownSimDelay->Name = L"numericUpDownSimDelay"; + this->numericUpDownSimDelay->Size = System::Drawing::Size(40, 20); + this->numericUpDownSimDelay->TabIndex = 1; + this->numericUpDownSimDelay->ValueChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // labelSimDelay + // + this->labelSimDelay->AutoSize = true; + this->labelSimDelay->Location = System::Drawing::Point(16, 22); + this->labelSimDelay->Name = L"labelSimDelay"; + this->labelSimDelay->Size = System::Drawing::Size(34, 13); + this->labelSimDelay->TabIndex = 0; + this->labelSimDelay->Text = L"Delay"; + // + // groupBoxRun + // + this->groupBoxRun->Controls->Add(this->checkBoxWindowSize); + this->groupBoxRun->Controls->Add(this->checkBoxHitJudge); + this->groupBoxRun->Location = System::Drawing::Point(8, 161); + this->groupBoxRun->Name = L"groupBoxRun"; + this->groupBoxRun->Size = System::Drawing::Size(168, 74); + this->groupBoxRun->TabIndex = 3; + this->groupBoxRun->TabStop = false; + this->groupBoxRun->Text = L"Others"; + // + // checkBoxWindowSize + // + this->checkBoxWindowSize->AutoSize = true; + this->checkBoxWindowSize->Location = System::Drawing::Point(16, 48); + this->checkBoxWindowSize->Name = L"checkBoxWindowSize"; + this->checkBoxWindowSize->Size = System::Drawing::Size(103, 17); + this->checkBoxWindowSize->TabIndex = 2; + this->checkBoxWindowSize->Text = L"Start in 640x480"; + this->checkBoxWindowSize->UseVisualStyleBackColor = true; + this->checkBoxWindowSize->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // checkBoxHitJudge + // + this->checkBoxHitJudge->AutoSize = true; + this->checkBoxHitJudge->Location = System::Drawing::Point(16, 22); + this->checkBoxHitJudge->Name = L"checkBoxHitJudge"; + this->checkBoxHitJudge->Size = System::Drawing::Size(95, 17); + this->checkBoxHitJudge->TabIndex = 1; + this->checkBoxHitJudge->Text = L"Show hitboxes"; + this->checkBoxHitJudge->UseVisualStyleBackColor = true; + this->checkBoxHitJudge->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // groupBoxView + // + this->groupBoxView->Controls->Add(this->checkBoxShowResult); + this->groupBoxView->Controls->Add(this->checkBoxVersus); + this->groupBoxView->Controls->Add(this->checkBoxName); + this->groupBoxView->Controls->Add(this->checkBoxFramerate); + this->groupBoxView->Controls->Add(this->checkBoxRand); + this->groupBoxView->Location = System::Drawing::Point(195, 9); + this->groupBoxView->Name = L"groupBoxView"; + this->groupBoxView->Size = System::Drawing::Size(154, 145); + this->groupBoxView->TabIndex = 4; + this->groupBoxView->TabStop = false; + this->groupBoxView->Text = L"Title bar"; + // + // checkBoxShowResult + // + this->checkBoxShowResult->AutoSize = true; + this->checkBoxShowResult->Location = System::Drawing::Point(16, 69); + this->checkBoxShowResult->Name = L"checkBoxShowResult"; + this->checkBoxShowResult->Size = System::Drawing::Size(100, 17); + this->checkBoxShowResult->TabIndex = 5; + this->checkBoxShowResult->Text = L"Match outcome"; + this->checkBoxShowResult->UseVisualStyleBackColor = true; + this->checkBoxShowResult->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // checkBoxVersus + // + this->checkBoxVersus->AutoSize = true; + this->checkBoxVersus->Location = System::Drawing::Point(16, 46); + this->checkBoxVersus->Name = L"checkBoxVersus"; + this->checkBoxVersus->Size = System::Drawing::Size(86, 17); + this->checkBoxVersus->TabIndex = 2; + this->checkBoxVersus->Text = L"Match count"; + this->checkBoxVersus->UseVisualStyleBackColor = true; + this->checkBoxVersus->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // checkBoxName + // + this->checkBoxName->AutoSize = true; + this->checkBoxName->Location = System::Drawing::Point(16, 22); + this->checkBoxName->Name = L"checkBoxName"; + this->checkBoxName->Size = System::Drawing::Size(89, 17); + this->checkBoxName->TabIndex = 1; + this->checkBoxName->Text = L"Player names"; + this->checkBoxName->UseVisualStyleBackColor = true; + this->checkBoxName->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // checkBoxFramerate + // + this->checkBoxFramerate->AutoSize = true; + this->checkBoxFramerate->Location = System::Drawing::Point(16, 93); + this->checkBoxFramerate->Name = L"checkBoxFramerate"; + this->checkBoxFramerate->Size = System::Drawing::Size(73, 17); + this->checkBoxFramerate->TabIndex = 3; + this->checkBoxFramerate->Text = L"Framerate"; + this->checkBoxFramerate->UseVisualStyleBackColor = true; + this->checkBoxFramerate->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // checkBoxRand + // + this->checkBoxRand->AutoSize = true; + this->checkBoxRand->Location = System::Drawing::Point(16, 117); + this->checkBoxRand->Name = L"checkBoxRand"; + this->checkBoxRand->Size = System::Drawing::Size(139, 17); + this->checkBoxRand->TabIndex = 4; + this->checkBoxRand->Text = L"Random number display"; + this->checkBoxRand->UseVisualStyleBackColor = true; + this->checkBoxRand->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // groupBoxSetting + // + this->groupBoxSetting->Controls->Add(this->numericUpDownRound); + this->groupBoxSetting->Controls->Add(this->labelRound); + this->groupBoxSetting->Controls->Add(this->labelTimer); + this->groupBoxSetting->Controls->Add(this->numericUpDownTimer); + this->groupBoxSetting->Controls->Add(this->numericUpDownMaxStage); + this->groupBoxSetting->Controls->Add(this->labelMaxStage); + this->groupBoxSetting->Controls->Add(this->labelStageSelect); + this->groupBoxSetting->Controls->Add(this->numericUpDownStageSelect); + this->groupBoxSetting->Location = System::Drawing::Point(8, 9); + this->groupBoxSetting->Name = L"groupBoxSetting"; + this->groupBoxSetting->Size = System::Drawing::Size(168, 145); + this->groupBoxSetting->TabIndex = 1; + this->groupBoxSetting->TabStop = false; + this->groupBoxSetting->Text = L"Battle"; + // + // numericUpDownRound + // + this->numericUpDownRound->Location = System::Drawing::Point(112, 78); + this->numericUpDownRound->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 9, 0, 0, 0 }); + this->numericUpDownRound->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1, 0, 0, 0 }); + this->numericUpDownRound->Name = L"numericUpDownRound"; + this->numericUpDownRound->Size = System::Drawing::Size(40, 20); + this->numericUpDownRound->TabIndex = 3; + this->numericUpDownRound->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1, 0, 0, 0 }); + this->numericUpDownRound->ValueChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // labelRound + // + this->labelRound->AutoSize = true; + this->labelRound->Location = System::Drawing::Point(16, 82); + this->labelRound->Name = L"labelRound"; + this->labelRound->Size = System::Drawing::Size(61, 13); + this->labelRound->TabIndex = 0; + this->labelRound->Text = L"# of rounds"; + // + // labelTimer + // + this->labelTimer->AutoSize = true; + this->labelTimer->Location = System::Drawing::Point(16, 113); + this->labelTimer->Name = L"labelTimer"; + this->labelTimer->Size = System::Drawing::Size(62, 13); + this->labelTimer->TabIndex = 0; + this->labelTimer->Text = L"Match timer"; + // + // numericUpDownTimer + // + this->numericUpDownTimer->Location = System::Drawing::Point(112, 108); + this->numericUpDownTimer->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 99, 0, 0, 0 }); + this->numericUpDownTimer->Name = L"numericUpDownTimer"; + this->numericUpDownTimer->Size = System::Drawing::Size(40, 20); + this->numericUpDownTimer->TabIndex = 4; + this->numericUpDownTimer->ValueChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // numericUpDownMaxStage + // + this->numericUpDownMaxStage->Location = System::Drawing::Point(112, 17); + this->numericUpDownMaxStage->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1, 0, 0, 0 }); + this->numericUpDownMaxStage->Name = L"numericUpDownMaxStage"; + this->numericUpDownMaxStage->Size = System::Drawing::Size(40, 20); + this->numericUpDownMaxStage->TabIndex = 1; + this->numericUpDownMaxStage->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1, 0, 0, 0 }); + this->numericUpDownMaxStage->ValueChanged += gcnew System::EventHandler(this, &OptionForm::numericUpDownStage_ValueChanged); + // + // labelMaxStage + // + this->labelMaxStage->AutoSize = true; + this->labelMaxStage->Location = System::Drawing::Point(16, 22); + this->labelMaxStage->Name = L"labelMaxStage"; + this->labelMaxStage->Size = System::Drawing::Size(66, 13); + this->labelMaxStage->TabIndex = 0; + this->labelMaxStage->Text = L"Max stage #"; + // + // labelStageSelect + // + this->labelStageSelect->AutoSize = true; + this->labelStageSelect->Location = System::Drawing::Point(16, 52); + this->labelStageSelect->Name = L"labelStageSelect"; + this->labelStageSelect->Size = System::Drawing::Size(63, 13); + this->labelStageSelect->TabIndex = 0; + this->labelStageSelect->Text = L"Battle stage"; + // + // numericUpDownStageSelect + // + this->numericUpDownStageSelect->Location = System::Drawing::Point(112, 48); + this->numericUpDownStageSelect->Name = L"numericUpDownStageSelect"; + this->numericUpDownStageSelect->Size = System::Drawing::Size(40, 20); + this->numericUpDownStageSelect->TabIndex = 2; + this->numericUpDownStageSelect->ValueChanged += gcnew System::EventHandler(this, &OptionForm::numericUpDownStage_ValueChanged); + // + // tabPageColor + // + this->tabPageColor->Controls->Add(this->groupBoxMessageColor); + this->tabPageColor->Controls->Add(this->groupBoxOthersColor); + this->tabPageColor->Controls->Add(this->groupBoxStateColor); + this->tabPageColor->Controls->Add(this->groupBoxNameColor); + this->tabPageColor->Location = System::Drawing::Point(4, 22); + this->tabPageColor->Name = L"tabPageColor"; + this->tabPageColor->Padding = System::Windows::Forms::Padding(3); + this->tabPageColor->Size = System::Drawing::Size(369, 339); + this->tabPageColor->TabIndex = 5; + this->tabPageColor->Text = L"Colors"; + this->tabPageColor->UseVisualStyleBackColor = true; + // + // groupBoxMessageColor + // + this->groupBoxMessageColor->Controls->Add(this->buttonDebugMessage); + this->groupBoxMessageColor->Controls->Add(this->buttonErrorMessage); + this->groupBoxMessageColor->Controls->Add(this->buttonSystemMessage); + this->groupBoxMessageColor->Location = System::Drawing::Point(192, 9); + this->groupBoxMessageColor->Name = L"groupBoxMessageColor"; + this->groupBoxMessageColor->Size = System::Drawing::Size(168, 117); + this->groupBoxMessageColor->TabIndex = 3; + this->groupBoxMessageColor->TabStop = false; + this->groupBoxMessageColor->Text = L"Message"; + // + // buttonDebugMessage + // + this->buttonDebugMessage->BackColor = System::Drawing::SystemColors::Window; + this->buttonDebugMessage->Location = System::Drawing::Point(16, 82); + this->buttonDebugMessage->Name = L"buttonDebugMessage"; + this->buttonDebugMessage->Size = System::Drawing::Size(136, 22); + this->buttonDebugMessage->TabIndex = 3; + this->buttonDebugMessage->Text = L"Debug"; + this->buttonDebugMessage->UseVisualStyleBackColor = false; + this->buttonDebugMessage->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->buttonDebugMessage->Click += gcnew System::EventHandler(this, &OptionForm::buttonDebugMessage_Click); + // + // buttonErrorMessage + // + this->buttonErrorMessage->BackColor = System::Drawing::SystemColors::Window; + this->buttonErrorMessage->Location = System::Drawing::Point(16, 52); + this->buttonErrorMessage->Name = L"buttonErrorMessage"; + this->buttonErrorMessage->Size = System::Drawing::Size(136, 22); + this->buttonErrorMessage->TabIndex = 2; + this->buttonErrorMessage->Text = L"Error"; + this->buttonErrorMessage->UseVisualStyleBackColor = false; + this->buttonErrorMessage->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->buttonErrorMessage->Click += gcnew System::EventHandler(this, &OptionForm::buttonErrorMessage_Click); + // + // buttonSystemMessage + // + this->buttonSystemMessage->BackColor = System::Drawing::SystemColors::Window; + this->buttonSystemMessage->Location = System::Drawing::Point(16, 22); + this->buttonSystemMessage->Name = L"buttonSystemMessage"; + this->buttonSystemMessage->Size = System::Drawing::Size(136, 22); + this->buttonSystemMessage->TabIndex = 1; + this->buttonSystemMessage->Text = L"System"; + this->buttonSystemMessage->UseVisualStyleBackColor = false; + this->buttonSystemMessage->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->buttonSystemMessage->Click += gcnew System::EventHandler(this, &OptionForm::buttonSystemMessage_Click); + // + // groupBoxOthersColor + // + this->groupBoxOthersColor->Controls->Add(this->buttonSecret); + this->groupBoxOthersColor->Controls->Add(this->buttonCommentBack); + this->groupBoxOthersColor->Controls->Add(this->buttonNoticeBack); + this->groupBoxOthersColor->Location = System::Drawing::Point(192, 139); + this->groupBoxOthersColor->Name = L"groupBoxOthersColor"; + this->groupBoxOthersColor->Size = System::Drawing::Size(168, 117); + this->groupBoxOthersColor->TabIndex = 4; + this->groupBoxOthersColor->TabStop = false; + this->groupBoxOthersColor->Text = L"Other"; + // + // buttonSecret + // + this->buttonSecret->BackColor = System::Drawing::SystemColors::Window; + this->buttonSecret->Location = System::Drawing::Point(16, 82); + this->buttonSecret->Name = L"buttonSecret"; + this->buttonSecret->Size = System::Drawing::Size(136, 22); + this->buttonSecret->TabIndex = 3; + this->buttonSecret->Text = L"\?\?\?"; + this->buttonSecret->UseVisualStyleBackColor = false; + this->buttonSecret->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->buttonSecret->Click += gcnew System::EventHandler(this, &OptionForm::buttonSecret_Click); + // + // buttonCommentBack + // + this->buttonCommentBack->ForeColor = System::Drawing::SystemColors::WindowText; + this->buttonCommentBack->Location = System::Drawing::Point(16, 52); + this->buttonCommentBack->Name = L"buttonCommentBack"; + this->buttonCommentBack->Size = System::Drawing::Size(136, 22); + this->buttonCommentBack->TabIndex = 2; + this->buttonCommentBack->Text = L"Comment background"; + this->buttonCommentBack->UseVisualStyleBackColor = false; + this->buttonCommentBack->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->buttonCommentBack->Click += gcnew System::EventHandler(this, &OptionForm::buttonCommentBack_Click); + // + // buttonNoticeBack + // + this->buttonNoticeBack->ForeColor = System::Drawing::SystemColors::WindowText; + this->buttonNoticeBack->Location = System::Drawing::Point(16, 22); + this->buttonNoticeBack->Name = L"buttonNoticeBack"; + this->buttonNoticeBack->Size = System::Drawing::Size(136, 22); + this->buttonNoticeBack->TabIndex = 1; + this->buttonNoticeBack->Text = L"Notification background"; + this->buttonNoticeBack->UseVisualStyleBackColor = false; + this->buttonNoticeBack->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->buttonNoticeBack->Click += gcnew System::EventHandler(this, &OptionForm::buttonNoticeBack_Click); + // + // groupBoxStateColor + // + this->groupBoxStateColor->Controls->Add(this->buttonSeekState); + this->groupBoxStateColor->Controls->Add(this->buttonWatchState); + this->groupBoxStateColor->Controls->Add(this->buttonVSState); + this->groupBoxStateColor->Controls->Add(this->buttonRestState); + this->groupBoxStateColor->Location = System::Drawing::Point(8, 139); + this->groupBoxStateColor->Name = L"groupBoxStateColor"; + this->groupBoxStateColor->Size = System::Drawing::Size(168, 148); + this->groupBoxStateColor->TabIndex = 2; + this->groupBoxStateColor->TabStop = false; + this->groupBoxStateColor->Text = L"State"; + // + // buttonSeekState + // + this->buttonSeekState->Location = System::Drawing::Point(16, 112); + this->buttonSeekState->Name = L"buttonSeekState"; + this->buttonSeekState->Size = System::Drawing::Size(136, 23); + this->buttonSeekState->TabIndex = 4; + this->buttonSeekState->Text = L"Joining"; + this->buttonSeekState->UseVisualStyleBackColor = true; + this->buttonSeekState->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->buttonSeekState->Click += gcnew System::EventHandler(this, &OptionForm::buttonSeekState_Click); + // + // buttonWatchState + // + this->buttonWatchState->ForeColor = System::Drawing::SystemColors::WindowText; + this->buttonWatchState->Location = System::Drawing::Point(16, 82); + this->buttonWatchState->Name = L"buttonWatchState"; + this->buttonWatchState->Size = System::Drawing::Size(136, 22); + this->buttonWatchState->TabIndex = 3; + this->buttonWatchState->Text = L"Spectating"; + this->buttonWatchState->UseVisualStyleBackColor = false; + this->buttonWatchState->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->buttonWatchState->Click += gcnew System::EventHandler(this, &OptionForm::buttonWatchState_Click); + // + // buttonVSState + // + this->buttonVSState->ForeColor = System::Drawing::SystemColors::WindowText; + this->buttonVSState->Location = System::Drawing::Point(16, 52); + this->buttonVSState->Name = L"buttonVSState"; + this->buttonVSState->Size = System::Drawing::Size(136, 22); + this->buttonVSState->TabIndex = 2; + this->buttonVSState->Text = L"Fighting"; + this->buttonVSState->UseVisualStyleBackColor = false; + this->buttonVSState->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->buttonVSState->Click += gcnew System::EventHandler(this, &OptionForm::buttonVSState_Click); + // + // buttonRestState + // + this->buttonRestState->ForeColor = System::Drawing::SystemColors::WindowText; + this->buttonRestState->Location = System::Drawing::Point(16, 22); + this->buttonRestState->Name = L"buttonRestState"; + this->buttonRestState->Size = System::Drawing::Size(136, 22); + this->buttonRestState->TabIndex = 1; + this->buttonRestState->Text = L"Resting"; + this->buttonRestState->UseVisualStyleBackColor = false; + this->buttonRestState->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->buttonRestState->Click += gcnew System::EventHandler(this, &OptionForm::buttonRestState_Click); + // + // groupBoxNameColor + // + this->groupBoxNameColor->Controls->Add(this->buttonClientName); + this->groupBoxNameColor->Controls->Add(this->buttonHostName); + this->groupBoxNameColor->Controls->Add(this->buttonServerName); + this->groupBoxNameColor->Location = System::Drawing::Point(8, 9); + this->groupBoxNameColor->Name = L"groupBoxNameColor"; + this->groupBoxNameColor->Size = System::Drawing::Size(168, 117); + this->groupBoxNameColor->TabIndex = 1; + this->groupBoxNameColor->TabStop = false; + this->groupBoxNameColor->Text = L"Name"; + // + // buttonClientName + // + this->buttonClientName->BackColor = System::Drawing::SystemColors::Window; + this->buttonClientName->Location = System::Drawing::Point(16, 82); + this->buttonClientName->Name = L"buttonClientName"; + this->buttonClientName->Size = System::Drawing::Size(136, 22); + this->buttonClientName->TabIndex = 3; + this->buttonClientName->Text = L"Client"; + this->buttonClientName->UseVisualStyleBackColor = false; + this->buttonClientName->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->buttonClientName->Click += gcnew System::EventHandler(this, &OptionForm::buttonClientName_Click); + // + // buttonHostName + // + this->buttonHostName->BackColor = System::Drawing::SystemColors::Window; + this->buttonHostName->Location = System::Drawing::Point(16, 52); + this->buttonHostName->Name = L"buttonHostName"; + this->buttonHostName->Size = System::Drawing::Size(136, 22); + this->buttonHostName->TabIndex = 2; + this->buttonHostName->Text = L"Host"; + this->buttonHostName->UseVisualStyleBackColor = false; + this->buttonHostName->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->buttonHostName->Click += gcnew System::EventHandler(this, &OptionForm::buttonHostName_Click); + // + // buttonServerName + // + this->buttonServerName->BackColor = System::Drawing::SystemColors::Window; + this->buttonServerName->Location = System::Drawing::Point(16, 22); + this->buttonServerName->Name = L"buttonServerName"; + this->buttonServerName->Size = System::Drawing::Size(136, 22); + this->buttonServerName->TabIndex = 1; + this->buttonServerName->Text = L"Server"; + this->buttonServerName->UseVisualStyleBackColor = false; + this->buttonServerName->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + this->buttonServerName->Click += gcnew System::EventHandler(this, &OptionForm::buttonServerName_Click); + // + // tabPageVolume + // + this->tabPageVolume->Controls->Add(this->groupBoxMidi); + this->tabPageVolume->Controls->Add(this->groupBoxSE); + this->tabPageVolume->Controls->Add(this->groupBoxBGM); + this->tabPageVolume->Location = System::Drawing::Point(4, 22); + this->tabPageVolume->Name = L"tabPageVolume"; + this->tabPageVolume->Padding = System::Windows::Forms::Padding(3); + this->tabPageVolume->Size = System::Drawing::Size(369, 339); + this->tabPageVolume->TabIndex = 6; + this->tabPageVolume->Text = L"Volume"; + this->tabPageVolume->UseVisualStyleBackColor = true; + // + // groupBoxMidi + // + this->groupBoxMidi->Controls->Add(this->labelMidi); + this->groupBoxMidi->Controls->Add(this->trackBarMidi); + this->groupBoxMidi->Location = System::Drawing::Point(8, 199); + this->groupBoxMidi->Name = L"groupBoxMidi"; + this->groupBoxMidi->Size = System::Drawing::Size(352, 56); + this->groupBoxMidi->TabIndex = 3; + this->groupBoxMidi->TabStop = false; + this->groupBoxMidi->Text = L"Software synthesizer (MIDI)"; + // + // labelMidi + // + this->labelMidi->AutoSize = true; + this->labelMidi->Location = System::Drawing::Point(8, 26); + this->labelMidi->Name = L"labelMidi"; + this->labelMidi->Size = System::Drawing::Size(21, 13); + this->labelMidi->TabIndex = 0; + this->labelMidi->Text = L"--%"; + // + // trackBarMidi + // + this->trackBarMidi->AutoSize = false; + this->trackBarMidi->LargeChange = 10; + this->trackBarMidi->Location = System::Drawing::Point(48, 13); + this->trackBarMidi->Maximum = 100; + this->trackBarMidi->Name = L"trackBarMidi"; + this->trackBarMidi->Size = System::Drawing::Size(296, 35); + this->trackBarMidi->TabIndex = 1; + this->trackBarMidi->TickFrequency = 10; + this->trackBarMidi->TickStyle = System::Windows::Forms::TickStyle::TopLeft; + this->trackBarMidi->Scroll += gcnew System::EventHandler(this, &OptionForm::trackBarMidi_Scroll); + // + // groupBoxSE + // + this->groupBoxSE->Controls->Add(this->labelSE); + this->groupBoxSE->Controls->Add(this->trackBarSE); + this->groupBoxSE->Location = System::Drawing::Point(8, 74); + this->groupBoxSE->Name = L"groupBoxSE"; + this->groupBoxSE->Size = System::Drawing::Size(352, 56); + this->groupBoxSE->TabIndex = 2; + this->groupBoxSE->TabStop = false; + this->groupBoxSE->Text = L"SE"; + // + // labelSE + // + this->labelSE->AutoSize = true; + this->labelSE->Location = System::Drawing::Point(8, 26); + this->labelSE->Name = L"labelSE"; + this->labelSE->Size = System::Drawing::Size(33, 13); + this->labelSE->TabIndex = 0; + this->labelSE->Text = L"100%"; + // + // trackBarSE + // + this->trackBarSE->AutoSize = false; + this->trackBarSE->LargeChange = 2; + this->trackBarSE->Location = System::Drawing::Point(48, 13); + this->trackBarSE->Maximum = 20; + this->trackBarSE->Name = L"trackBarSE"; + this->trackBarSE->Size = System::Drawing::Size(296, 35); + this->trackBarSE->TabIndex = 1; + this->trackBarSE->TickFrequency = 2; + this->trackBarSE->TickStyle = System::Windows::Forms::TickStyle::TopLeft; + this->trackBarSE->Scroll += gcnew System::EventHandler(this, &OptionForm::trackBarSE_Scroll); + // + // groupBoxBGM + // + this->groupBoxBGM->Controls->Add(this->labelBGM); + this->groupBoxBGM->Controls->Add(this->trackBarBGM); + this->groupBoxBGM->Location = System::Drawing::Point(8, 9); + this->groupBoxBGM->Name = L"groupBoxBGM"; + this->groupBoxBGM->Size = System::Drawing::Size(352, 56); + this->groupBoxBGM->TabIndex = 1; + this->groupBoxBGM->TabStop = false; + this->groupBoxBGM->Text = L"BGM"; + // + // labelBGM + // + this->labelBGM->AutoSize = true; + this->labelBGM->Location = System::Drawing::Point(8, 26); + this->labelBGM->Name = L"labelBGM"; + this->labelBGM->Size = System::Drawing::Size(33, 13); + this->labelBGM->TabIndex = 0; + this->labelBGM->Text = L"100%"; + // + // trackBarBGM + // + this->trackBarBGM->AutoSize = false; + this->trackBarBGM->LargeChange = 2; + this->trackBarBGM->Location = System::Drawing::Point(48, 13); + this->trackBarBGM->Maximum = 20; + this->trackBarBGM->Name = L"trackBarBGM"; + this->trackBarBGM->Size = System::Drawing::Size(296, 35); + this->trackBarBGM->TabIndex = 1; + this->trackBarBGM->TickFrequency = 2; + this->trackBarBGM->TickStyle = System::Windows::Forms::TickStyle::TopLeft; + this->trackBarBGM->Scroll += gcnew System::EventHandler(this, &OptionForm::trackBarBGM_Scroll); + // + // tabPageIP + // + this->tabPageIP->Controls->Add(this->AddPortbutton); + this->tabPageIP->Controls->Add(this->discriptionlabel); + this->tabPageIP->Controls->Add(this->Convertbutton); + this->tabPageIP->Controls->Add(this->Base64groupBox); + this->tabPageIP->Controls->Add(this->IPgroupBox); + this->tabPageIP->Location = System::Drawing::Point(4, 22); + this->tabPageIP->Name = L"tabPageIP"; + this->tabPageIP->Padding = System::Windows::Forms::Padding(3); + this->tabPageIP->Size = System::Drawing::Size(369, 339); + this->tabPageIP->TabIndex = 7; + this->tabPageIP->Text = L"IP conversion"; + this->tabPageIP->UseVisualStyleBackColor = true; + // + // AddPortbutton + // + this->AddPortbutton->Location = System::Drawing::Point(169, 252); + this->AddPortbutton->Name = L"AddPortbutton"; + this->AddPortbutton->Size = System::Drawing::Size(126, 26); + this->AddPortbutton->TabIndex = 4; + this->AddPortbutton->Text = L"Convert with port"; + this->AddPortbutton->UseVisualStyleBackColor = true; + this->AddPortbutton->Click += gcnew System::EventHandler(this, &OptionForm::AddPortbutton_Click); + // + // discriptionlabel + // + this->discriptionlabel->AutoSize = true; + this->discriptionlabel->Location = System::Drawing::Point(8, 9); + this->discriptionlabel->Name = L"discriptionlabel"; + this->discriptionlabel->Size = System::Drawing::Size(281, 52); + this->discriptionlabel->TabIndex = 3; + this->discriptionlabel->Text = L"By obfuscating your IP address, you can\r\nreduce security risks associated with pu" + L"blishing a server.\r\nWhen you create a server, you should use your converted\r\nIP " + L"address rather than your real one."; + // + // Convertbutton + // + this->Convertbutton->Location = System::Drawing::Point(99, 252); + this->Convertbutton->Name = L"Convertbutton"; + this->Convertbutton->Size = System::Drawing::Size(64, 26); + this->Convertbutton->TabIndex = 2; + this->Convertbutton->Text = L"Convert"; + this->Convertbutton->UseVisualStyleBackColor = true; + this->Convertbutton->Click += gcnew System::EventHandler(this, &OptionForm::Convertbutton_Click); + // + // Base64groupBox + // + this->Base64groupBox->Controls->Add(this->labelAddrMT); + this->Base64groupBox->Controls->Add(this->textBoxMTAddr); + this->Base64groupBox->Controls->Add(this->labelAddrBase64); + this->Base64groupBox->Controls->Add(this->Base64textBox); + this->Base64groupBox->Location = System::Drawing::Point(7, 141); + this->Base64groupBox->Name = L"Base64groupBox"; + this->Base64groupBox->Size = System::Drawing::Size(352, 91); + this->Base64groupBox->TabIndex = 1; + this->Base64groupBox->TabStop = false; + this->Base64groupBox->Text = L"Converted IP address"; + // + // labelAddrMT + // + this->labelAddrMT->AutoSize = true; + this->labelAddrMT->Location = System::Drawing::Point(29, 57); + this->labelAddrMT->Name = L"labelAddrMT"; + this->labelAddrMT->Size = System::Drawing::Size(40, 13); + this->labelAddrMT->TabIndex = 3; + this->labelAddrMT->Text = L"MTSP:"; + // + // textBoxMTAddr + // + this->textBoxMTAddr->Location = System::Drawing::Point(75, 54); + this->textBoxMTAddr->Name = L"textBoxMTAddr"; + this->textBoxMTAddr->ReadOnly = true; + this->textBoxMTAddr->Size = System::Drawing::Size(271, 20); + this->textBoxMTAddr->TabIndex = 2; + // + // labelAddrBase64 + // + this->labelAddrBase64->AutoSize = true; + this->labelAddrBase64->Location = System::Drawing::Point(19, 23); + this->labelAddrBase64->Name = L"labelAddrBase64"; + this->labelAddrBase64->Size = System::Drawing::Size(50, 13); + this->labelAddrBase64->TabIndex = 1; + this->labelAddrBase64->Text = L"LilithPort:"; + // + // Base64textBox + // + this->Base64textBox->Location = System::Drawing::Point(75, 20); + this->Base64textBox->MaxLength = 100; + this->Base64textBox->Name = L"Base64textBox"; + this->Base64textBox->ReadOnly = true; + this->Base64textBox->Size = System::Drawing::Size(271, 20); + this->Base64textBox->TabIndex = 0; + // + // IPgroupBox + // + this->IPgroupBox->Controls->Add(this->IPtextBox); + this->IPgroupBox->Location = System::Drawing::Point(7, 76); + this->IPgroupBox->Name = L"IPgroupBox"; + this->IPgroupBox->Size = System::Drawing::Size(352, 56); + this->IPgroupBox->TabIndex = 0; + this->IPgroupBox->TabStop = false; + this->IPgroupBox->Text = L"IP address"; + // + // IPtextBox + // + this->IPtextBox->AccessibleDescription = L""; + this->IPtextBox->Location = System::Drawing::Point(7, 21); + this->IPtextBox->MaxLength = 20; + this->IPtextBox->Name = L"IPtextBox"; + this->IPtextBox->Size = System::Drawing::Size(339, 20); + this->IPtextBox->TabIndex = 0; + this->IPtextBox->TextChanged += gcnew System::EventHandler(this, &OptionForm::IPtextBox_TextChanged); + // + // tabPageDetails + // + this->tabPageDetails->Controls->Add(this->groupBoxDetails); + this->tabPageDetails->Location = System::Drawing::Point(4, 22); + this->tabPageDetails->Name = L"tabPageDetails"; + this->tabPageDetails->Padding = System::Windows::Forms::Padding(3); + this->tabPageDetails->Size = System::Drawing::Size(369, 339); + this->tabPageDetails->TabIndex = 8; + this->tabPageDetails->Text = L"Misc."; + this->tabPageDetails->UseVisualStyleBackColor = true; + // + // groupBoxDetails + // + this->groupBoxDetails->Controls->Add(this->checkBoxShowGameOption); + this->groupBoxDetails->Controls->Add(this->checkBoxNameFlash); + this->groupBoxDetails->Controls->Add(this->checkBoxGetIP); + this->groupBoxDetails->Controls->Add(this->checkBoxTalkFlash); + this->groupBoxDetails->Location = System::Drawing::Point(9, 8); + this->groupBoxDetails->Name = L"groupBoxDetails"; + this->groupBoxDetails->Size = System::Drawing::Size(351, 306); + this->groupBoxDetails->TabIndex = 0; + this->groupBoxDetails->TabStop = false; + this->groupBoxDetails->Text = L"Miscellaneous"; + // + // checkBoxShowGameOption + // + this->checkBoxShowGameOption->AutoSize = true; + this->checkBoxShowGameOption->Location = System::Drawing::Point(8, 92); + this->checkBoxShowGameOption->Name = L"checkBoxShowGameOption"; + this->checkBoxShowGameOption->Size = System::Drawing::Size(203, 17); + this->checkBoxShowGameOption->TabIndex = 3; + this->checkBoxShowGameOption->Text = L"Show match settings on game startup"; + this->checkBoxShowGameOption->UseVisualStyleBackColor = true; + this->checkBoxShowGameOption->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // checkBoxNameFlash + // + this->checkBoxNameFlash->AutoSize = true; + this->checkBoxNameFlash->Location = System::Drawing::Point(8, 43); + this->checkBoxNameFlash->Name = L"checkBoxNameFlash"; + this->checkBoxNameFlash->Size = System::Drawing::Size(228, 17); + this->checkBoxNameFlash->TabIndex = 1; + this->checkBoxNameFlash->Text = L"Blink window when nickname is mentioned"; + this->checkBoxNameFlash->UseVisualStyleBackColor = true; + this->checkBoxNameFlash->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // checkBoxGetIP + // + this->checkBoxGetIP->AutoSize = true; + this->checkBoxGetIP->Location = System::Drawing::Point(8, 67); + this->checkBoxGetIP->Name = L"checkBoxGetIP"; + this->checkBoxGetIP->Size = System::Drawing::Size(212, 17); + this->checkBoxGetIP->TabIndex = 2; + this->checkBoxGetIP->Text = L"Get IP address when server has started"; + this->checkBoxGetIP->UseVisualStyleBackColor = true; + this->checkBoxGetIP->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // checkBoxTalkFlash + // + this->checkBoxTalkFlash->AutoSize = true; + this->checkBoxTalkFlash->Location = System::Drawing::Point(8, 20); + this->checkBoxTalkFlash->Name = L"checkBoxTalkFlash"; + this->checkBoxTalkFlash->Size = System::Drawing::Size(171, 17); + this->checkBoxTalkFlash->TabIndex = 0; + this->checkBoxTalkFlash->Text = L"Blink window on new message"; + this->checkBoxTalkFlash->UseVisualStyleBackColor = true; + this->checkBoxTalkFlash->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); + // + // OptionForm + // + this->AutoScaleDimensions = System::Drawing::SizeF(6, 13); + this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font; + this->AutoScroll = true; + this->ClientSize = System::Drawing::Size(377, 405); + this->Controls->Add(this->tabControlOption); + this->Controls->Add(this->buttonApply); + this->Controls->Add(this->buttonCancel); + this->Controls->Add(this->buttonOK); + this->Icon = (cli::safe_cast(resources->GetObject(L"$this.Icon"))); + this->MaximizeBox = false; + this->MinimizeBox = false; + this->Name = L"OptionForm"; + this->ShowInTaskbar = false; + this->Text = L"Options"; + this->FormClosed += gcnew System::Windows::Forms::FormClosedEventHandler(this, &OptionForm::OptionForm_FormClosed); + this->Load += gcnew System::EventHandler(this, &OptionForm::OptionForm_Load); + this->Shown += gcnew System::EventHandler(this, &OptionForm::OptionForm_Shown); + this->tabPageSound->ResumeLayout(false); + this->groupBoxKeywordSound->ResumeLayout(false); + this->groupBoxKeywordSound->PerformLayout(); + this->groupBoxSeekSound->ResumeLayout(false); + this->groupBoxSeekSound->PerformLayout(); + this->groupBoxTalkSound->ResumeLayout(false); + this->groupBoxTalkSound->PerformLayout(); + this->groupBoxName->ResumeLayout(false); + this->groupBoxName->PerformLayout(); + this->groupBoxEnterSound->ResumeLayout(false); + this->groupBoxEnterSound->PerformLayout(); + this->groupBoxNoticeSound->ResumeLayout(false); + this->groupBoxNoticeSound->PerformLayout(); + this->groupBoxVSSound->ResumeLayout(false); + this->groupBoxVSSound->PerformLayout(); + this->tabPagePath->ResumeLayout(false); + this->groupBoxProfile->ResumeLayout(false); + this->groupBoxProfile->PerformLayout(); + this->groupBoxReplayFolder->ResumeLayout(false); + this->groupBoxReplayFolder->PerformLayout(); + this->groupBoxNet->ResumeLayout(false); + this->groupBoxNet->PerformLayout(); + (cli::safe_cast(this->numericUpDownMaxConnection))->EndInit(); + this->groupBoxGameExe->ResumeLayout(false); + this->groupBoxGameExe->PerformLayout(); + this->groupBoxSave->ResumeLayout(false); + this->groupBoxSave->PerformLayout(); + this->tabControlOption->ResumeLayout(false); + this->tabPageGame->ResumeLayout(false); + this->groupBoxTeamOption->ResumeLayout(false); + this->groupBoxTeamOption->PerformLayout(); + this->groupBoxSimulate->ResumeLayout(false); + this->groupBoxSimulate->PerformLayout(); + (cli::safe_cast(this->numericUpDownSimDelay))->EndInit(); + this->groupBoxRun->ResumeLayout(false); + this->groupBoxRun->PerformLayout(); + this->groupBoxView->ResumeLayout(false); + this->groupBoxView->PerformLayout(); + this->groupBoxSetting->ResumeLayout(false); + this->groupBoxSetting->PerformLayout(); + (cli::safe_cast(this->numericUpDownRound))->EndInit(); + (cli::safe_cast(this->numericUpDownTimer))->EndInit(); + (cli::safe_cast(this->numericUpDownMaxStage))->EndInit(); + (cli::safe_cast(this->numericUpDownStageSelect))->EndInit(); + this->tabPageColor->ResumeLayout(false); + this->groupBoxMessageColor->ResumeLayout(false); + this->groupBoxOthersColor->ResumeLayout(false); + this->groupBoxStateColor->ResumeLayout(false); + this->groupBoxNameColor->ResumeLayout(false); + this->tabPageVolume->ResumeLayout(false); + this->groupBoxMidi->ResumeLayout(false); + this->groupBoxMidi->PerformLayout(); + (cli::safe_cast(this->trackBarMidi))->EndInit(); + this->groupBoxSE->ResumeLayout(false); + this->groupBoxSE->PerformLayout(); + (cli::safe_cast(this->trackBarSE))->EndInit(); + this->groupBoxBGM->ResumeLayout(false); + this->groupBoxBGM->PerformLayout(); + (cli::safe_cast(this->trackBarBGM))->EndInit(); + this->tabPageIP->ResumeLayout(false); + this->tabPageIP->PerformLayout(); + this->Base64groupBox->ResumeLayout(false); + this->Base64groupBox->PerformLayout(); + this->IPgroupBox->ResumeLayout(false); + this->IPgroupBox->PerformLayout(); + this->tabPageDetails->ResumeLayout(false); + this->groupBoxDetails->ResumeLayout(false); + this->groupBoxDetails->PerformLayout(); + this->ResumeLayout(false); - } + } #pragma endregion protected: HMIXER hMixer; @@ -2025,22 +2029,22 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; DWORD MixerVolumeMin, MixerVolumeMax; void AdviceGameExe(){ - textBoxGameExe->Text = gcnew String("右のボタンを押してパスを設定してください"); + textBoxGameExe->Text = gcnew String(L"右のボタンを押してパスを設定してください"); textBoxGameExe->Focus(); } void CheckStageValue(){ if(numericUpDownStageSelect->Value > numericUpDownMaxStage->Value){ - labelMaxStage->Text = gcnew String("開始ステージ"); - labelStageSelect->Text = gcnew String("終端ステージ"); + labelMaxStage->Text = gcnew String(L"開始ステージ"); + labelStageSelect->Text = gcnew String(L"終端ステージ"); } else{ - labelMaxStage->Text = gcnew String("最大ステージ数"); - labelStageSelect->Text = gcnew String("対戦ステージ"); + labelMaxStage->Text = gcnew String(L"最大ステージ数"); + labelStageSelect->Text = gcnew String(L"対戦ステージ"); } if(numericUpDownStageSelect->Value == 0){ - labelStageSelect->Text = gcnew String("ランダムステージ"); + labelStageSelect->Text = gcnew String(L"ランダムステージ"); } } @@ -2137,8 +2141,8 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; CheckStageValue(); - labelBGM->Text = String::Format("{0,3}%", trackBarBGM->Value * 5); - labelSE->Text = String::Format("{0,3}%", trackBarSE->Value * 5); + labelBGM->Text = String::Format(L"{0,3}%", trackBarBGM->Value * 5); + labelSE->Text = String::Format(L"{0,3}%", trackBarSE->Value * 5); if(MTOPTION.REPLAY_VERSION == 2){ radioButtonReplayVersion1->Checked = false; @@ -2218,7 +2222,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; DWORD delta = MixerVolumeMax - MixerVolumeMin; trackBarMidi->Value = ((vol.dwValue - MixerVolumeMin)*100 + delta/2)/delta; - labelMidi->Text = String::Format("{0,3}%", trackBarMidi->Value); + labelMidi->Text = String::Format(L"{0,3}%", trackBarMidi->Value); } } catch(Exception^){ @@ -2227,7 +2231,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; hMixer = NULL; } - labelMidi->Text = gcnew String("xxx"); + labelMidi->Text = gcnew String(L"xxx"); groupBoxMidi->Enabled = false; } @@ -2280,17 +2284,17 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonGameExe_Click(System::Object^ sender, System::EventArgs^ e) { - openFileDialog1->Title = gcnew String("格闘ツクールの実行ファイル"); - openFileDialog1->Filter = gcnew String("exe file (*.exe)|*.exe"); + openFileDialog1->Title = gcnew String(L"格闘ツクールの実行ファイル"); + openFileDialog1->Filter = gcnew String(L"exe file (*.exe)|*.exe"); if(openFileDialog1->ShowDialog() == ::DialogResult::OK){ FileVersionInfo^ info = FileVersionInfo::GetVersionInfo(openFileDialog1->FileName); - if(info->FileDescription == "2D格闘ツクール2nd." || info->FileDescription == "2D格闘ツクール95"){ + if(info->FileDescription == L"2D格闘ツクール2nd." || info->FileDescription == L"2D格闘ツクール95"){ textBoxGameExe->Text = openFileDialog1->FileName; } else{ - textBoxGameExe->Text = "格闘ツクールの実行ファイルではありません"; + textBoxGameExe->Text = L"格闘ツクールの実行ファイルではありません"; textBoxGameExe->SelectAll(); textBoxGameExe->Focus(); } @@ -2304,8 +2308,8 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonVSSound_Click(System::Object^ sender, System::EventArgs^ e) { - openFileDialog1->Title = gcnew String("対戦時に鳴らす音声ファイル"); - openFileDialog1->Filter = gcnew String("wav file (*.wav)|*.wav"); + openFileDialog1->Title = gcnew String(L"対戦時に鳴らす音声ファイル"); + openFileDialog1->Filter = gcnew String(L"wav file (*.wav)|*.wav"); if(openFileDialog1->ShowDialog() == ::DialogResult::OK){ textBoxVSSound->Text = openFileDialog1->FileName; @@ -2313,8 +2317,8 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonNoticeSound_Click(System::Object^ sender, System::EventArgs^ e) { - openFileDialog1->Title = gcnew String("告知受信時に鳴らす音声ファイル"); - openFileDialog1->Filter = gcnew String("wav file (*.wav)|*.wav"); + openFileDialog1->Title = gcnew String(L"告知受信時に鳴らす音声ファイル"); + openFileDialog1->Filter = gcnew String(L"wav file (*.wav)|*.wav"); if(openFileDialog1->ShowDialog() == ::DialogResult::OK){ textBoxNoticeSound->Text = openFileDialog1->FileName; @@ -2322,8 +2326,8 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonEnterSound_Click(System::Object^ sender, System::EventArgs^ e) { - openFileDialog1->Title = gcnew String("メンバー入室時に鳴らす音声ファイル"); - openFileDialog1->Filter = gcnew String("wav file (*.wav)|*.wav"); + openFileDialog1->Title = gcnew String(L"メンバー入室時に鳴らす音声ファイル"); + openFileDialog1->Filter = gcnew String(L"wav file (*.wav)|*.wav"); if(openFileDialog1->ShowDialog() == ::DialogResult::OK){ textBoxEnterSound->Text = openFileDialog1->FileName; @@ -2331,8 +2335,8 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonNameSound_Click(System::Object^ sender, System::EventArgs^ e) { - openFileDialog1->Title = gcnew String("ニックネームが呼ばれたら鳴らす音声ファイル"); - openFileDialog1->Filter = gcnew String("wav file (*.wav)|*.wav"); + openFileDialog1->Title = gcnew String(L"ニックネームが呼ばれたら鳴らす音声ファイル"); + openFileDialog1->Filter = gcnew String(L"wav file (*.wav)|*.wav"); if(openFileDialog1->ShowDialog() == ::DialogResult::OK){ textBoxNameSound->Text = openFileDialog1->FileName; @@ -2340,8 +2344,8 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonTalkSound_Click(System::Object^ sender, System::EventArgs^ e) { - openFileDialog1->Title = gcnew String("発言で鳴らす音声ファイル"); - openFileDialog1->Filter = gcnew String("wav file (*.wav)|*.wav"); + openFileDialog1->Title = gcnew String(L"発言で鳴らす音声ファイル"); + openFileDialog1->Filter = gcnew String(L"wav file (*.wav)|*.wav"); if(openFileDialog1->ShowDialog() == ::DialogResult::OK){ textBoxTalkSound->Text = openFileDialog1->FileName; @@ -2349,8 +2353,8 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonSeekSound_Click(System::Object^ sender, System::EventArgs^ e) { - openFileDialog1->Title = gcnew String("対戦募集で鳴らす音声ファイル"); - openFileDialog1->Filter = gcnew String("wav file (*.wav)|*.wav"); + openFileDialog1->Title = gcnew String(L"対戦募集で鳴らす音声ファイル"); + openFileDialog1->Filter = gcnew String(L"wav file (*.wav)|*.wav"); if(openFileDialog1->ShowDialog() == ::DialogResult::OK){ textBoxSeekSound->Text = openFileDialog1->FileName; @@ -2358,8 +2362,8 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonKeywordSound_Click(System::Object^ sender, System::EventArgs^ e) { - openFileDialog1->Title = gcnew String("キーワードで鳴らす音声ファイル"); - openFileDialog1->Filter = gcnew String("wav file (*.wav)|*.wav"); + openFileDialog1->Title = gcnew String(L"キーワードで鳴らす音声ファイル"); + openFileDialog1->Filter = gcnew String(L"wav file (*.wav)|*.wav"); if(openFileDialog1->ShowDialog() == ::DialogResult::OK){ textBoxKeywordSoundPath->Text = openFileDialog1->FileName; @@ -2457,17 +2461,17 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; System::Void trackBarBGM_Scroll(System::Object^ sender, System::EventArgs^ e) { buttonApply->Enabled = true; - labelBGM->Text = String::Format("{0,3}%", trackBarBGM->Value * 5); + labelBGM->Text = String::Format(L"{0,3}%", trackBarBGM->Value * 5); } System::Void trackBarSE_Scroll(System::Object^ sender, System::EventArgs^ e) { buttonApply->Enabled = true; - labelSE->Text = String::Format("{0,3}%", trackBarSE->Value * 5); + labelSE->Text = String::Format(L"{0,3}%", trackBarSE->Value * 5); } System::Void trackBarMidi_Scroll(System::Object^ sender, System::EventArgs^ e) { - labelMidi->Text = String::Format("{0,3}%", trackBarMidi->Value); + labelMidi->Text = String::Format(L"{0,3}%", trackBarMidi->Value); MIXERCONTROLDETAILS mcd; MIXERCONTROLDETAILS_UNSIGNED vol; @@ -2487,7 +2491,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; hMixer = NULL; } - labelMidi->Text = gcnew String("xxx"); + labelMidi->Text = gcnew String(L"xxx"); groupBoxMidi->Enabled = false; } } @@ -2500,7 +2504,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; String^ extension = Path::GetExtension(file[0])->ToLower(); FileVersionInfo^ info = FileVersionInfo::GetVersionInfo(file[0]); - if(extension == ".exe" && (info->FileDescription == "2D格闘ツクール2nd." || info->FileDescription == "2D格闘ツクール95")){ + if(extension == ".exe" && (info->FileDescription == L"2D格闘ツクール2nd." || info->FileDescription == L"2D格闘ツクール95")){ e->Effect = DragDropEffects::All; } } @@ -2662,8 +2666,8 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } // ポート付きIPの変換 System::Void AddPortbutton_Click(System::Object^ sender, System::EventArgs^ e) { - Base64textBox->Text = String::Format("{0}:{1}", EncryptionIP(IPtextBox->Text), MTOPTION.OPEN_PORT); - textBoxMTAddr->Text = String::Format("{0}:{1}", MTEncryptionIP(IPtextBox->Text), MTOPTION.OPEN_PORT); + Base64textBox->Text = String::Format(L"{0}:{1}", EncryptionIP(IPtextBox->Text), MTOPTION.OPEN_PORT); + textBoxMTAddr->Text = String::Format(L"{0}:{1}", MTEncryptionIP(IPtextBox->Text), MTOPTION.OPEN_PORT); } // プロファイルコンボボックス変更 System::Void comboBoxProfile_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) { @@ -2713,21 +2717,21 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; // プロファイル複製 String^ mes; String^ buf = comboBoxProfile->Items[comboBoxProfile->SelectedIndex]->ToString(); - String^ bufClone = String::Format("{0}{1}", buf, "_"); + String^ bufClone = String::Format(L"{0}{1}", buf, "_"); if(buf->Length > MAX_ARRAY-1){ - mes = "プロファイル名が長すぎます。\n複製を行うには、プロファイル名を短くしてください。"; + mes = L"プロファイル名が長すぎます。\n複製を行うには、プロファイル名を短くしてください。"; } for(int i=0; i < Profile::ProfileList->Count; i++){ if(Profile::ProfileList[i] == bufClone){ - mes = "既に複製されたプロファイルが存在します。"; + mes = L"既に複製されたプロファイルが存在します。"; } } if(Profile::ProfileList->Count > 31){ - mes = "これ以上プロファイルを作成できません。"; + mes = L"これ以上プロファイルを作成できません。"; return; } if(mes != nullptr){ - MessageBox::Show(mes, "プロファイル複製", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); + MessageBox::Show(mes, L"プロファイル複製", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); return; } Profile::ProfileList->Add(bufClone); @@ -2747,7 +2751,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; // プロファイル削除 int index = comboBoxProfile->SelectedIndex; String^ buf = comboBoxProfile->Items[index]->ToString(); - if(MessageBox::Show(String::Format("{0}を削除します。\nよろしいですか?", buf), "プロファイル削除", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show(String::Format(L"{0}を削除します。\nよろしいですか?", buf), L"プロファイル削除", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ Profile::ProfileList->RemoveAt(index); comboBoxProfile->Items->RemoveAt(index); @@ -2765,7 +2769,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; return; } if(Profile::ProfileList->Count > 31){ - MessageBox::Show("これ以上プロファイルを作成できません。", "プロファイル追加", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); + MessageBox::Show(L"これ以上プロファイルを作成できません。", L"プロファイル追加", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); return; } diff --git a/LilithPort/OptionForm.resx b/LilithPort/OptionForm.resx index 6d0e8b7..c67e058 100644 --- a/LilithPort/OptionForm.resx +++ b/LilithPort/OptionForm.resx @@ -112,21 +112,21 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + 17, 17 - + 149, 17 - + 310, 17 - + AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAQAMAAAAAAAAAAAAAAAAAAAAA diff --git a/LilithPort/StartupForm.h b/LilithPort/StartupForm.h index 1e203da..9986b14 100644 --- a/LilithPort/StartupForm.h +++ b/LilithPort/StartupForm.h @@ -441,7 +441,7 @@ namespace LilithPort { // サーバ名チェック if(textBoxServerName->Text->Length == 0){ - MessageBox::Show("サーバ名を入力してください。\n\nSERVERモードで起動するには、\nサーバ名を入力する必要があります。", "SERVERモードエラー", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); + MessageBox::Show(L"サーバ名を入力してください。\n\nSERVERモードで起動するには、\nサーバ名を入力する必要があります。", L"SERVERモードエラー", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); return; } mp = Runtime::InteropServices::Marshal::StringToHGlobalAuto(textBoxServerName->Text); @@ -449,7 +449,7 @@ namespace LilithPort { Runtime::InteropServices::Marshal::FreeHGlobal(mp); p2 = _tcschr(p1, _T(',')); if (p2 != NULL){ - MessageBox::Show("サーバ名に使用できない文字(,)があります。\nサーバ名を確認してください。", "SERVERモードエラー", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); + MessageBox::Show(L"サーバ名に使用できない文字(,)があります。\nサーバ名を確認してください。", L"SERVERモードエラー", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); return; } } @@ -472,14 +472,14 @@ namespace LilithPort { // IPチェック if(MTOPTION.CONNECTION_TYPE == CT_HOST || MTOPTION.CONNECTION_TYPE == CT_CLIENT) { if(textBoxIP->Text->Length == 0){ - MessageBox::Show("接続先アドレスを入力してください。\n\nHOST, CLIENTモードで起動するには、\n接続先のアドレスを入力する必要があります。", "HOST, CLIENTモードエラー", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); + MessageBox::Show(L"接続先アドレスを入力してください。\n\nHOST, CLIENTモードで起動するには、\n接続先のアドレスを入力する必要があります。", L"HOST, CLIENTモードエラー", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); return; } mp = Runtime::InteropServices::Marshal::StringToHGlobalAuto(textBoxIP->Text); _tcscpy_s(p1, static_cast(mp.ToPointer())); p2 = _tcschr(p1, _T(',')); if (p2 != NULL){ - MessageBox::Show("接続先アドレスに使用できない文字(,)があります。\n接続先アドレスを確認してください。", "HOST, CLIENTモードエラー", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); + MessageBox::Show(L"接続先アドレスに使用できない文字(,)があります。\n接続先アドレスを確認してください。", L"HOST, CLIENTモードエラー", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); return; } } @@ -493,7 +493,7 @@ namespace LilithPort { textBoxName->Text = gcnew String(MTOPTION.NAME); if(textBoxName->Text->Length == 0){ - textBoxName->Text = gcnew String("名無しさん"); + textBoxName->Text = gcnew String(L"名無しさん"); } } diff --git a/LilithPort/app.ico b/LilithPort/app.ico new file mode 100644 index 0000000000000000000000000000000000000000..1113a5c24e32fc9d14fd4cfe7523537cd33e837a GIT binary patch literal 894 zcmcIjYe*AN6h7u3AtQ^(1(o$Df+&=7SxxbQ&0dP3qCZ5Ul2~bJ`N-UKzOc!bIUh|^ zm(J-@H;NKnzGibyH#c9KnmWxSbcvcj)XI6fGU|sy|2p@6hkL*C9S-Mm4}c9>4h}#( z1@71a><5731cZVk1e^SSvM86@G-~Yw=ek&z`sfpqOZLov7h+PiLlZbsh9fm-5Frg7 zvCeb|Z+}W~YYRM>vOV|VNyTytDwWt*j4J+*(0xVP7ibi3?uO`DZ`fKc!}Z;ABkE)u zMj^fmn-Jfa)(BAf9EU{M6gPX>Hf>9ZtdQC<32H?f(=}M)r*6u$bQPe$-!M>#vPiQ# zBwF>yApYVGwlAcdg&4L+LzDD-OY$P$SJj-2a`p<}r(4DS6=ch^iZg;`vitLW0{p;P zsbfw?I2N?TjOAZ7c-gSzshCcciy4bao^q@B9<3nW`Sp4$j;nB?9hY>deL6>l*yNMa zYj&9>0fVj(l}p#S0>i4OLsmx>ep8~k6-`~(--ip07)dGfhQ}U|=nioVCt;C~ns;6i zwlklkgdXN$KdKux`m^Rn`SWk?n#;rI%7P}0_3Nz(Q`dKKnprsPgWl@19 zk>zdDY938h%`~k}p@6QTLuysT7is(&Ntu*kpaX}#C)=#YQ9UlSp}reuq{yI%!YQ2c zaAV-!yq-do+%%Q?_q1fAIPzrcoH#AXOGXMYp literal 0 HcmV?d00001 diff --git a/LilithPort/resource.h b/LilithPort/resource.h index d5ac7c4..7242760 100644 --- a/LilithPort/resource.h +++ b/LilithPort/resource.h @@ -1,3 +1,3 @@ -//{{NO_DEPENDENCIES}} +//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by app.rc diff --git a/LilithPort/stdafx.cpp b/LilithPort/stdafx.cpp index 4c605c0..13626e8 100644 --- a/LilithPort/stdafx.cpp +++ b/LilithPort/stdafx.cpp @@ -10,7 +10,7 @@ using namespace System::Collections; // 落ちる前にエラー内容をロギング void WriteErrorLog(String^ text, String^ caption) { - IO::StreamWriter^ sw = gcnew IO::StreamWriter(gcnew String(MTOPTION.PATH) + "error.log", true, Encoding::Default); + IO::StreamWriter^ sw = gcnew IO::StreamWriter(gcnew String(MTOPTION.PATH) + L"error.log", true, Encoding::Default); try{ sw->WriteLine("-------------------------------------------------------------------------------"); sw->WriteLine("{0} {1} [{2}]", DateTime::Now.ToLongDateString(), DateTime::Now.ToLongTimeString(), caption); @@ -35,7 +35,7 @@ void ApplicationThreadException(Object^ sender, Threading::ThreadExceptionEventA MTINFO.ERRORED = true; if(!MTINFO.SERVER_MODE){ - MessageBox::Show("突然ですがLilithPort終了のお知らせです。", "緊急事態発生"); + MessageBox::Show(L"An error occurred, and LilithPort must exit.\nThe exception has been written to a text file.\n"+e->Exception->ToString(), L"Unhandled thread exception"); } Application::Exit(); @@ -48,7 +48,7 @@ void ApplicationUnhandledException(Object^ sender, UnhandledExceptionEventArgs^ MTINFO.ERRORED = true; if(!MTINFO.SERVER_MODE){ - MessageBox::Show("突然ですがLilithPort終了のお知らせです。", "例外が飛んできました"); + MessageBox::Show(L"An error occurred, and LilithPort must exit.\nThe exception has been written to a text file.\n" + safe_cast(e->ExceptionObject)->ToString(), L"Unhandled exception"); } Application::Exit(); @@ -96,7 +96,7 @@ void LoadMTOption() GetPrivateProfileString(iniSystem, _T("SeekSound"), _T("seek.wav"), MTOPTION.SEEK_SOUND, _MAX_PATH, ini); GetPrivateProfileString(iniSystem, _T("KeywordSound"), _T("name.wav"), MTOPTION.KEYWORD_SOUND, _MAX_PATH, ini); GetPrivateProfileString(iniSystem, _T("Keyword"), _T(""), MTOPTION.KEYWORD, MAX_KEYWORD, ini); - GetPrivateProfileString(iniSystem, _T("Name"), _T("名無しさん"), MTOPTION.NAME, MAX_NAME, ini); + GetPrivateProfileString(iniSystem, _T("Name"), _T("NamelessDude"), MTOPTION.NAME, MAX_NAME, ini); GetPrivateProfileString(iniSystem, _T("Comment"), _T(""), MTOPTION.COMMENT, MAX_NAME, ini); MTOPTION.CONNECTION_TYPE = GetPrivateProfileInt(iniSystem, _T("ConnectType"), 0, ini); MTOPTION.PORT = GetPrivateProfileInt(iniSystem, _T("Port"), 7500, ini); @@ -172,7 +172,7 @@ void LoadMTOption() } } catch(Exception^){ - MessageBox::Show("ブックマーク情報の読み込みに失敗しました。\n", "ブックマーク読み込み", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); + MessageBox::Show(L"Could not read bookmark information.\n", L"Bookmarks", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); } // プロファイルリスト読み込み @@ -380,9 +380,9 @@ void SaveMTOption() String^ bufProfileList; for(int i=0; i < Profile::ProfileList->Count; i++){ if(i > 0){ - bufProfileList = String::Format("{0},{1}", bufProfileList, Profile::ProfileList[i]); + bufProfileList = String::Format(L"{0},{1}", bufProfileList, Profile::ProfileList[i]); }else{ - bufProfileList = String::Format("{0}{1}", bufProfileList, Profile::ProfileList[i]); + bufProfileList = String::Format(L"{0}{1}", bufProfileList, Profile::ProfileList[i]); } } mp = Runtime::InteropServices::Marshal::StringToHGlobalAuto(bufProfileList); @@ -492,9 +492,9 @@ void SaveProfileOption(){ String^ bufProfileList; for(int i=0; i < Profile::ProfileList->Count; i++){ if(i > 0){ - bufProfileList = String::Format("{0},{1}", bufProfileList, Profile::ProfileList[i]); + bufProfileList = String::Format(L"{0},{1}", bufProfileList, Profile::ProfileList[i]); }else{ - bufProfileList = String::Format("{0}{1}", bufProfileList, Profile::ProfileList[i]); + bufProfileList = String::Format(L"{0}{1}", bufProfileList, Profile::ProfileList[i]); } } mp = Runtime::InteropServices::Marshal::StringToHGlobalAuto(bufProfileList); @@ -675,10 +675,10 @@ String^ EncryptionIP(String^ ip) ipString = Int64(Net::IPAddress::Parse(ip)->Address).ToString(); } catch (ArgumentNullException^) { - return "変換失敗。IPぬるぽエラー"; + return L"変換失敗。IPぬるぽエラー"; } catch (FormatException^) { - return "変換失敗。IP形式エラー"; + return L"変換失敗。IP形式エラー"; } array ^binaryData = gcnew array(11); @@ -689,10 +689,10 @@ String^ EncryptionIP(String^ ip) ipBase64 = Convert::ToBase64String(binaryData); } catch (ArgumentNullException^) { - return "変換失敗。Base64ぬるぽエラー"; + return L"変換失敗。Base64ぬるぽエラー"; } catch (FormatException^) { - return "変換失敗。Base64形式エラー"; + return L"変換失敗。Base64形式エラー"; } return ipBase64; } @@ -700,8 +700,8 @@ String^ EncryptionIP(String^ ip) String^ MTEncryptionIP(String^ ip) { String^ result, ^buf, ^part; - String^ dic = "そぞただちぢっつづてでとどなにぬねのはばabcdefghijklmnopqrstuvwxyz" - "ABCDEFGHIJKLMNOPQRSTUVWXYGぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜ"; + String^ dic = L"そぞただちぢっつづてでとどなにぬねのはばabcdefghijklmnopqrstuvwxyz" + L"ABCDEFGHIJKLMNOPQRSTUVWXYGぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜ"; try{ // 10桁+シード @@ -719,7 +719,7 @@ String^ MTEncryptionIP(String^ ip) return result; } catch(Exception^){ - return "IPアドレスのMTSP変換に失敗しました。"; + return L"IPアドレスのMTSP変換に失敗しました。"; } } @@ -752,17 +752,17 @@ _int64 MTDecryptionIP(String^ cipher_ip) String^ buf; TCHAR part; int index; - String^ dic = "そぞただちぢっつづてでとどなにぬねのはばabcdefghijklmnopqrstuvwxyz" - "ABCDEFGHIJKLMNOPQRSTUVWXYGぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜ"; + String^ dic = L"そぞただちぢっつづてでとどなにぬねのはばabcdefghijklmnopqrstuvwxyz" + L"ABCDEFGHIJKLMNOPQRSTUVWXYGぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜ"; try{ for(int i=0; i < cipher_ip->Length; i++){ part = cipher_ip->default[i]; index = dic->IndexOf(part); if(index < 10){ - buf = String::Format("{0}0{1}", buf, index); + buf = String::Format(L"{0}0{1}", buf, index); }else{ - buf = String::Format("{0}{1}", buf, index); + buf = String::Format(L"{0}{1}", buf, index); } } return ((Convert::ToInt64(buf) ^ 0xe5c06811) - 0xa68c8b5);