void Question_Command(string[] param) { if (param.Length > 1) { screen.SetQuestion(param[0], param[1]); if ((param[1])[0] != '(') { OldVSNController.GetInstance().charList.MakeCharTalk(screen.GetTalkingCharName()); } } else { screen.SetQuestion(param[0]); if (param[0] == null) { return; } if ((param[0])[0] != '(') { OldVSNController.GetInstance().charList.MakeCharTalk(screen.GetTalkingCharName()); } } }
void Choices_Command(string[] param) { string[] choiceText = new string[param.Length / 2]; int[] choiceWaypoint = new int[param.Length / 2]; string[] labelNames = new string[param.Length / 2]; int tempIndex = 0; for (int i = 0; i < param.Length; i++) { if (i % 2 == 0) { choiceText[tempIndex] = param[i]; } else { labelNames[tempIndex] = param[i]; if (waypoints.ContainsKey(param[i])) { choiceWaypoint[tempIndex] = waypoints[param[i]]; } else { choiceWaypoint[tempIndex] = 0; } tempIndex++; } } OldVSNController.GetInstance().SetLabelNames(labelNames); screen.SetChoices(choiceText, choiceWaypoint); }
void AnimAlpha_Command(string[] param) { int char_index = OldVSNController.GetInstance().charList.GetCharIdByParam(param[0]); float alpha = float.Parse(param[1]); float time = float.Parse(param[2]); CharacterList.GetInstance().AnimateAlpha(char_index, time, alpha); }
void Wait_Command(string[] waitTime) { float time = float.Parse(waitTime[0]); screen.EnableDialogBox(false); screen.choices.SetActive(false); OldVSNController.GetInstance().WaitSeconds(time); }
void Anim_Scale_Command(string[] param) { int char_index = OldVSNController.GetInstance().charList.GetCharIdByParam(param[0]); float scale = float.Parse(param[1]); float time = float.Parse(param[2]); screen.SetScale(char_index, time, scale); }
void Move_y_Command(string[] param) { int char_index = OldVSNController.GetInstance().charList.GetCharIdByParam(param[0]); float anim_time = float.Parse(param[1]); float destination_y = float.Parse(param[2]); screen.SetMovement_y(char_index, anim_time, destination_y); }
void Start() { GameObject gc = GameObject.FindWithTag("GameController"); if (gc) { gameController = gc.GetComponent <OldVSNController>(); } }
void ResumeScript_Command(string[] param) { OldVSNController.ScriptPosition pos = OldVSNController.GetInstance().LastScriptStackEntry(); OldVSNController.GetInstance().PauseVSN(); if (param.Length > 0) { OldVSNController.GetInstance().StartVSNScript(pos.scriptName, param[0]); } else { OldVSNController.GetInstance().StartVSNScript(pos.scriptName, pos.scriptLine); } }
void EndDialog() { dialogText.text = taggedDialogString; talking = false; if (OldVSNController.GetInstance().gameState == OldVSNController.GameState.Dialog) { ShowIndicatorArrow(true); } OldVSNController.GetInstance().charList.MakeAllCharsStopTalking(); dialogScreen.EndDialogEffect(); }
void Say_Command(string[] param) { OldVSNController.GetInstance().SetDialogState(); if (param.Length > 1) { screen.SetDialog(param[0], param[1]); OldVSNController.GetInstance().charList.MakeCharTalk(param[0]); } else { screen.SetDialog(param[0]); OldVSNController.GetInstance().charList.MakeCharTalk(screen.GetTalkingCharName()); } }
void Awake() { dialogBox.gameObject.SetActive(false); instance = this; scriptStack = new List <ScriptPosition>(); }
void Mirror_Command(string[] param) { int char_index = OldVSNController.GetInstance().charList.GetCharIdByParam(param[0]); screen.MirrorCharacter(char_index); }
void FastForwardText() { OldVSNController.GetInstance().ClickedScreen(); }
public void SetChoices(string[] text, int[] wp) { OldVSNController.GetInstance().SetQuestionState(wp); dialogBox.SetChoicesText(text); ChangeScreenLayout(DialogScreen.ScreenLayout.Question); }
void EndScript_Command() { Debug.Log("Calling endscript"); OldVSNController.GetInstance().PauseVSN(); OldVSNController.GetInstance().ClearScriptPositionStack(); }
void GotoScript_Command(string[] param) { OldVSNController.GetInstance().PauseVSN(); OldVSNController.GetInstance().SaveScriptPositionInStack(); OldVSNController.GetInstance().StartVSNScript(param[0]); }
void WaitAnswerConfirm_Command(string[] param) { screen.EnableDialogBox(false); screen.choices.SetActive(false); OldVSNController.GetInstance().WaitForValidation(param[0], param[1]); }
public void SetQuestion(string text) { OldVSNController.GetInstance().SetQuestion(text); dialogBox.Say(text); }