added support for android and linux
This commit is contained in:
@@ -428,13 +428,24 @@ namespace Qoo.Game
|
||||
}
|
||||
|
||||
// Token: 0x060000A9 RID: 169 RVA: 0x000044D8 File Offset: 0x000026D8
|
||||
public static void SetFirstName(string name)
|
||||
public static void SetLastName(string name)
|
||||
{
|
||||
GameData.SetParamString("firstname", string.Empty, name);
|
||||
GameData.SetParamString("familyname", string.Empty, name);
|
||||
}
|
||||
|
||||
// Token: 0x060000AA RID: 170 RVA: 0x000044EC File Offset: 0x000026EC
|
||||
public static byte[] Save()
|
||||
public static string GetLastName()
|
||||
{
|
||||
return GameData.GetParamString("familyname", string.Empty);
|
||||
}
|
||||
|
||||
// Token: 0x060000A9 RID: 169 RVA: 0x000044D8 File Offset: 0x000026D8
|
||||
public static void SetFirstName(string name)
|
||||
{
|
||||
GameData.SetParamString("firstname", string.Empty, name);
|
||||
}
|
||||
|
||||
// Token: 0x060000AA RID: 170 RVA: 0x000044EC File Offset: 0x000026EC
|
||||
public static byte[] Save()
|
||||
{
|
||||
if (!GameData.m_isLoadData)
|
||||
{
|
||||
@@ -473,7 +484,8 @@ namespace Qoo.Game
|
||||
GameParam gameParam = new GameParam();
|
||||
gameParam.Copy(GameData.LockParam);
|
||||
gameParam.Set("firstname", GameData.GetFirstName());
|
||||
return gameParam;
|
||||
gameParam.Set("familyname", GameData.GetLastName());
|
||||
return gameParam;
|
||||
}
|
||||
|
||||
// Token: 0x060000AF RID: 175 RVA: 0x000045AC File Offset: 0x000027AC
|
||||
|
||||
@@ -85,20 +85,24 @@ namespace Qoo.Game
|
||||
if (UnityApp.Instance.isJapanese)
|
||||
{
|
||||
KsExec.editName = "アリス";
|
||||
}
|
||||
KsExec.editLastName = "リデル";
|
||||
}
|
||||
else
|
||||
{
|
||||
KsExec.editName = "Alice";
|
||||
}
|
||||
KsExec.editLastName = "Liddell";
|
||||
}
|
||||
NameInputKeyboard.DebugInputText = KsExec.editName;
|
||||
KsExec.KeyboardMain();
|
||||
NameInputKeyboard.DebugInputTextLastName = KsExec.editLastName;
|
||||
KsExec.KeyboardMain();
|
||||
}
|
||||
else if (KsExec.confirm)
|
||||
{
|
||||
if (KsExec.confirmResult)
|
||||
{
|
||||
GameData.SetParamString("firstname", string.Empty, KsExec.editName);
|
||||
NameInputKeyboard.Close();
|
||||
GameData.SetParamString("familyname", string.Empty, KsExec.editLastName);
|
||||
NameInputKeyboard.Close();
|
||||
return true;
|
||||
}
|
||||
KsExec.KeyboardMain();
|
||||
@@ -108,7 +112,8 @@ namespace Qoo.Game
|
||||
else
|
||||
{
|
||||
KsExec.editName = NameInputKeyboard.InputText;
|
||||
if (KsExec.editName.Length == 0 || KsExec.checkSpaceOnly(KsExec.editName))
|
||||
KsExec.editLastName = NameInputKeyboard.InputTextLastName;
|
||||
if (KsExec.editName.Length == 0 || KsExec.checkSpaceOnly(KsExec.editName))
|
||||
{
|
||||
UnityTask.SetSubNoUnityTask(MessageDlg.ExecDlg("No name entered", null));
|
||||
KsExec.KeyboardMain();
|
||||
@@ -126,9 +131,10 @@ namespace Qoo.Game
|
||||
else
|
||||
{
|
||||
string arg = KsExec.editName;
|
||||
string paramString = GameData.GetParamString("familyname", string.Empty);
|
||||
string arg2 = KsExec.editLastName;
|
||||
string paramString = GameData.GetParamString("familyname", string.Empty);
|
||||
string[] msgs;
|
||||
if (UnityApp.Instance.isJapanese)
|
||||
/*if (UnityApp.Instance.isJapanese)
|
||||
{
|
||||
msgs = new string[]
|
||||
{
|
||||
@@ -143,8 +149,25 @@ namespace Qoo.Game
|
||||
string.Format("Is {0} {1} correct?", arg, paramString)
|
||||
};
|
||||
|
||||
}
|
||||
UnityTask.SetSubNoUnityTask(MessageDlg.ExecDlg(msgs, new Action<bool>(KsExec.SetResult)));
|
||||
}*/
|
||||
|
||||
if (UnityApp.Instance.isJapanese)
|
||||
{
|
||||
msgs = new string[]
|
||||
{
|
||||
string.Format("「{0}={1}」です。", arg, arg2),
|
||||
"よろしいですか?"
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
msgs = new string[]
|
||||
{
|
||||
string.Format("Is {0} {1} correct?", arg, arg2)
|
||||
};
|
||||
|
||||
}
|
||||
UnityTask.SetSubNoUnityTask(MessageDlg.ExecDlg(msgs, new Action<bool>(KsExec.SetResult)));
|
||||
KsExec.confirm = true;
|
||||
KsExec.confirmResult = false;
|
||||
}
|
||||
@@ -168,7 +191,7 @@ namespace Qoo.Game
|
||||
// Token: 0x06000614 RID: 1556 RVA: 0x00019604 File Offset: 0x00017804
|
||||
private static void KeyboardMain()
|
||||
{
|
||||
UnityTask.SetSubTask(NameInputKeyboard.Open(KsExec.editName, true));
|
||||
UnityTask.SetSubTask(NameInputKeyboard.Open(KsExec.editName, KsExec.editLastName, true));
|
||||
/*switch (UnityEngine.Application.platform)
|
||||
{
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
@@ -259,5 +282,7 @@ namespace Qoo.Game
|
||||
|
||||
// Token: 0x040005AB RID: 1451
|
||||
private static string editName = string.Empty;
|
||||
}
|
||||
|
||||
private static string editLastName = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user