public override void Func(ref line_c line, bool _isInLine) { this.scriptMaster.getVNHandler().ClearCharacters(line.m_parameters[0] == 1 ? true : false); // this.scriptMaster.HideText(); this.scriptMaster.WaitQueue.Add(new WaitObject(WAIT_STATE.CHARACTER_FADEOUT)); if (line.m_parameters[1] == 1) { this.scriptMaster.NextLine(false); } }
public override void Func(ref line_c line, bool _isInLine) { if (this.scriptMaster.getVNHandler() == null || this.scriptMaster.getVNHandler().VNMode == false) { this.scriptMaster.TEXT.Reset(true, this.scriptMaster.NextLine); } else { this.scriptMaster.NextLine(_isInLine); } }
public override void Func(ref line_c line, bool _isInLine) { if (this.scriptMaster.SCRIPT_FLAGS.Contains(line.m_parameters_txt[0])) { // Flag already set, ignore } else { this.scriptMaster.SCRIPT_FLAGS.Add(line.m_parameters_txt[0]); } this.scriptMaster.NextLine(_isInLine); }
public override void Func(ref line_c line, bool isInline) { var index = this.scriptMaster.getCurrentScript().GetCheckpointIndex(line.m_parameters_txt[0]); if (index == -1) { Debug.LogError("Failed to find checkpoint: " + line.m_parameters_txt[0]); } else { this.scriptMaster.GotoLine(index); } }
//private List<Texture2D> loadedBackgrounds; public line_c GetLine(int index) { if (compiledLines.Count == 0 || index >= compiledLines.Count) { line_c temp = new line_c(); temp.m_lineType = LINETYPE.NUM_OF_LINETYPES; return(temp); } if (index < 0) { return(compiledLines[0]); } return(compiledLines[index]); }
public override void Func(ref line_c line, bool _isInLine) { this.scriptMaster.getVNHandler().CreateCharacter(line.m_parameters_txt[0], line.m_parameters_txt[1], line.m_parameters[0]); if (line.m_parameters[1] != 1) { this.scriptMaster.HideText(); //WaitState = WAIT_STATE.CHARACTER_FADEIN; this.scriptMaster.WaitQueue.Add(new WaitObject(WAIT_STATE.CHARACTER_FADEIN)); } else { this.scriptMaster.NextLine(_isInLine); } }
public override void Func(ref line_c line, bool _isInLine) { GameObject loopSFXobj = GameObject.Find(line.m_parameters_txt[0]); if (loopSFXobj == null) { Debug.LogErrorFormat("Failed to stop looping SFX \"{0}\" at line {1}; is not currently playing!", line.m_parameters_txt[0], line.m_origScriptPos); this.scriptMaster.NextLine(); return; } SFXScript stopSFXloop = loopSFXobj.GetComponent <SFXScript>(); stopSFXloop.Stop(line.m_parameters_txt[1]); this.scriptMaster.NextLine(); }
public override void Func(ref line_c line, bool _isInLine) { if (!this.scriptMaster.getVNHandler().ClearCharacter(line.m_parameters_txt[0], (line.m_parameters[0] == 1))) { Debug.LogErrorFormat("Unable to clear character {0} at line {1}", line.m_parameters_txt[0], line.m_origScriptPos); this.scriptMaster.NextLine(_isInLine); return; } if (line.m_parameters[0] == 1) { this.scriptMaster.NextLine(_isInLine); } else { this.scriptMaster.WaitQueue.Add(new WaitObject(WAIT_STATE.CHARACTER_FADEOUT_INDIVIDUAL, line.m_parameters_txt[0])); } }
public override void Func(ref line_c _line, bool _isInLine) { var background = this.scriptMaster.getBackground(); var backgroundScript = this.scriptMaster.getBackgroundScript(); var backgroundTrans = this.scriptMaster.getBackgroundTrans(); var backgroundTransScript = this.scriptMaster.getBackgroundTransScript(); var WaitQueue = this.scriptMaster.getWaitQueue(); if (backgroundScript.IsMoving()) { backgroundScript.SetIsMoving(false); } backgroundTrans.sprite = M22.BackgroundMaster.GetBackground(_line.m_parameters_txt[0]); //RectTransform tempRT = backgroundTrans.gameObject.GetComponent<RectTransform>(); //tempRT.offsetMax = new Vector2(backgroundTrans.sprite.texture.height, 0); if (backgroundTrans.sprite == background.sprite) { //WaitState = WAIT_STATE.BACKGROUND_MOVING; WaitQueue.Add(new M22.WaitObject(WAIT_STATE.BACKGROUND_MOVING)); backgroundScript.UpdatePos( _line.m_parameters[0], _line.m_parameters[1] ); } else { backgroundTransScript.UpdateBackground( _line.m_parameters[0], _line.m_parameters[1], float.Parse(_line.m_parameters_txt[1]), float.Parse(_line.m_parameters_txt[2]) ); backgroundTrans.color = new Color(1, 1, 1, 0.001f); } if (_line.m_parameters[2] == 1) { //WaitState = WAIT_STATE.NOT_WAITING; if (WaitQueue.Count > 0) { WaitQueue.RemoveAt(0); } this.scriptMaster.NextLine(_isInLine); } }
public int AddLine(line_c _input) { compiledLines.Add(_input); return(compiledLines.Count - 1); }
public override void Func(ref line_c line, bool _isInLine) { this.scriptMaster.TEXT.SetNewCurrentLine(line.m_lineContents); this.scriptMaster.getVNHandler().UpdateCharacterName(line.m_speaker); }
public override void Func(ref line_c line, bool _isInLine) { this.scriptMaster.getVNHandler().SetMovementSpeed(float.Parse(line.m_parameters_txt[0])); this.scriptMaster.NextLine(_isInLine); }
public override void Func(ref line_c line, bool _isInLine) { this.scriptMaster.WaitQueue.Add(new WaitObject(WAIT_STATE.WAIT_COMMAND)); this.scriptMaster.setWaitCommandTimer(0); }
public override void Func(ref line_c line, bool _isInLine) { this.scriptMaster.LoadScript(line.m_parameters_txt[0]); }