public void invoke(TriggerRangeEvent eventArgs) { // empieza el dialogo! if (!activated) { activated = true; //Program.GAME.Camera.Focus = (IFocusable)yae; //Program.GAME.Camera.resetCameraPosition(); // begin dialog! a los coñazos again string text = "Yae: $n " + "Sabia que vendrias... Goemon... $0 " + "Goemon: $n " + "Yae... Se que las cosas no terminaron bien entre nosotros pero... " + " $1 " + "Silencio!!! " + " $2 Goemon: $n " + "Como podemos arreglar esto? $e " + "Yae: $n " + "Solo se podra resolver con la muerte... $e " + "Yae: $n " + "Es hora de la batalla!!!!"; // parametros!!! DialogParameters[] pars = new DialogParameters[5]; pars[0] = new DialogParameters(false); pars[0].BlockSeconds = 4; pars[0].IsAutoNextAfterBlock = true; pars[1] = new DialogParameters(false); pars[1].Scale = 4; pars[2] = new DialogParameters(false); DialogManager.Instance.beginDialog(text, pars); } }
public void invoke(TriggerRangeEvent eventArgs) { if (eventArgs.IsInRange) { Program.GAME.Camera.zoomIn(); } else { Program.GAME.Camera.zoomOut(); } }
public void invoke(TriggerRangeEvent eventArgs) { DrawableEntity entity; if ((entity = entityToFade) != null || (entity = eventArgs.TriggerEntity as DrawableEntity) != null) { if (eventArgs.IsInRange) { FadeEffect effect = entity.findDrawEffect<FadeEffect>(); if(effect != null) { effect.fade(FadeEffect.FADE_TYPE.IN); } } else { FadeEffect effect = entity.findDrawEffect<FadeEffect>(); if (effect != null) { effect.fade(FadeEffect.FADE_TYPE.OUT); } } } }