launcher: allow editing utf8 strings. now that saving is granular this at least won't ever cause anything to break just from launching the game.
This commit is contained in:
@@ -517,9 +517,9 @@ public:
|
|||||||
textbox->Scale(ScaleWidth, ScaleHeight);
|
textbox->Scale(ScaleWidth, ScaleHeight);
|
||||||
|
|
||||||
// disable editing for utf8 mode because the ANSI hack used may not work correctly
|
// disable editing for utf8 mode because the ANSI hack used may not work correctly
|
||||||
if (_useUtf8) {
|
//if (_useUtf8) {
|
||||||
textbox->Enabled = false;
|
// textbox->Enabled = false;
|
||||||
}
|
//}
|
||||||
|
|
||||||
tooltip->SetToolTip(label, gcnew String(_description));
|
tooltip->SetToolTip(label, gcnew String(_description));
|
||||||
tooltip->SetToolTip(textbox, gcnew String(_description));
|
tooltip->SetToolTip(textbox, gcnew String(_description));
|
||||||
@@ -540,8 +540,8 @@ public:
|
|||||||
virtual void SaveOption()
|
virtual void SaveOption()
|
||||||
{
|
{
|
||||||
// disable saving for utf8 mode because the ANSI hack used may not work correctly
|
// disable saving for utf8 mode because the ANSI hack used may not work correctly
|
||||||
if (_useUtf8)
|
//if (_useUtf8)
|
||||||
return;
|
// return;
|
||||||
|
|
||||||
System::String^ tempSysStr;
|
System::String^ tempSysStr;
|
||||||
std::wstring tempWStr;
|
std::wstring tempWStr;
|
||||||
@@ -714,10 +714,10 @@ public:
|
|||||||
combobox->Scale(ScaleWidth, ScaleHeight);
|
combobox->Scale(ScaleWidth, ScaleHeight);
|
||||||
|
|
||||||
// disable editing for utf8 mode because the ANSI hack used may not work correctly
|
// disable editing for utf8 mode because the ANSI hack used may not work correctly
|
||||||
if (_useUtf8) {
|
//if (_useUtf8) {
|
||||||
label->Enabled = false;
|
// label->Enabled = false;
|
||||||
combobox->Enabled = false;
|
// combobox->Enabled = false;
|
||||||
}
|
//}
|
||||||
|
|
||||||
tooltip->SetToolTip(label, gcnew String(_description));
|
tooltip->SetToolTip(label, gcnew String(_description));
|
||||||
tooltip->SetToolTip(combobox, gcnew String(_description));
|
tooltip->SetToolTip(combobox, gcnew String(_description));
|
||||||
@@ -741,8 +741,8 @@ public:
|
|||||||
virtual void SaveOption()
|
virtual void SaveOption()
|
||||||
{
|
{
|
||||||
// disable saving for utf8 mode because the ANSI hack used may not work correctly
|
// disable saving for utf8 mode because the ANSI hack used may not work correctly
|
||||||
if (_useUtf8)
|
//if (_useUtf8)
|
||||||
return;
|
// return;
|
||||||
|
|
||||||
System::String^ tempSysStr;
|
System::String^ tempSysStr;
|
||||||
std::wstring tempWStr;
|
std::wstring tempWStr;
|
||||||
|
|||||||
Reference in New Issue
Block a user