changes
This commit is contained in:
@@ -44,12 +44,14 @@ namespace Qoo.Game
|
||||
}
|
||||
KsInput.Enable = false;
|
||||
KsInput.Clear();
|
||||
bool flag = KsExec.ExecPay(Param, Value, count);
|
||||
/*bool flag = KsExec.ExecPay(Param, Value, count);
|
||||
if (flag)
|
||||
{
|
||||
KsInput.Enable = true;
|
||||
}
|
||||
return flag;
|
||||
return flag;*/
|
||||
//should disable all payment checks
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -74,11 +76,20 @@ namespace Qoo.Game
|
||||
// Token: 0x06000612 RID: 1554 RVA: 0x0001943C File Offset: 0x0001763C
|
||||
public static bool InputName(int count)
|
||||
{
|
||||
//UnityEngine.Debug.LogWarning(count);
|
||||
if (count == 0)
|
||||
{
|
||||
UnityEngine.Debug.LogWarning("first");
|
||||
KsExec.confirm = false;
|
||||
KsExec.confirmResult = false;
|
||||
KsExec.editName = "アリス";
|
||||
if (UnityApp.Instance.isJapanese)
|
||||
{
|
||||
KsExec.editName = "アリス";
|
||||
}
|
||||
else
|
||||
{
|
||||
KsExec.editName = "Alice";
|
||||
}
|
||||
NameInputKeyboard.DebugInputText = KsExec.editName;
|
||||
KsExec.KeyboardMain();
|
||||
}
|
||||
@@ -99,28 +110,40 @@ namespace Qoo.Game
|
||||
KsExec.editName = NameInputKeyboard.InputText;
|
||||
if (KsExec.editName.Length == 0 || KsExec.checkSpaceOnly(KsExec.editName))
|
||||
{
|
||||
UnityTask.SetSubNoUnityTask(MessageDlg.ExecDlg("名前が入力されていません。", null));
|
||||
UnityTask.SetSubNoUnityTask(MessageDlg.ExecDlg("No name entered", null));
|
||||
KsExec.KeyboardMain();
|
||||
}
|
||||
else if (KsExec.editName.Length > 7)
|
||||
{
|
||||
UnityTask.SetSubNoUnityTask(MessageDlg.ExecDlg("入力できる名前は7文字までです。", null));
|
||||
UnityTask.SetSubNoUnityTask(MessageDlg.ExecDlg("You can enter up to 7 characters for the name.", null));
|
||||
KsExec.KeyboardMain();
|
||||
}
|
||||
else if (!Singleton<UnityGraph>.Instance.Font.Font.CheckGlyph(KsExec.editName))
|
||||
{
|
||||
UnityTask.SetSubNoUnityTask(MessageDlg.ExecDlg("表示できない文字が含まれています。", null));
|
||||
UnityTask.SetSubNoUnityTask(MessageDlg.ExecDlg("Contains characters that cannot be displayed.", null));
|
||||
KsExec.KeyboardMain();
|
||||
}
|
||||
else
|
||||
{
|
||||
string arg = KsExec.editName;
|
||||
string paramString = GameData.GetParamString("familyname", string.Empty);
|
||||
string[] msgs = new string[]
|
||||
{
|
||||
string.Format("「{0}={1}」です。", arg, paramString),
|
||||
"よろしいですか?"
|
||||
};
|
||||
string[] msgs;
|
||||
if (UnityApp.Instance.isJapanese)
|
||||
{
|
||||
msgs = new string[]
|
||||
{
|
||||
string.Format("「{0}={1}」です。", arg, paramString),
|
||||
"よろしいですか?"
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
msgs = new string[]
|
||||
{
|
||||
string.Format("Is {0} {1} correct?", arg, paramString)
|
||||
};
|
||||
|
||||
}
|
||||
UnityTask.SetSubNoUnityTask(MessageDlg.ExecDlg(msgs, new Action<bool>(KsExec.SetResult)));
|
||||
KsExec.confirm = true;
|
||||
KsExec.confirmResult = false;
|
||||
@@ -145,13 +168,14 @@ namespace Qoo.Game
|
||||
// Token: 0x06000614 RID: 1556 RVA: 0x00019604 File Offset: 0x00017804
|
||||
private static void KeyboardMain()
|
||||
{
|
||||
switch (UnityEngine.Application.platform)
|
||||
UnityTask.SetSubTask(NameInputKeyboard.Open(KsExec.editName, true));
|
||||
/*switch (UnityEngine.Application.platform)
|
||||
{
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
case RuntimePlatform.Android:
|
||||
UnityTask.SetSubTask(NameInputKeyboard.Open(KsExec.editName, true));
|
||||
break;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
// Token: 0x06000615 RID: 1557 RVA: 0x0001964C File Offset: 0x0001784C
|
||||
|
||||
Reference in New Issue
Block a user