Exemplo n.º 1
0
        /// <summary>
        /// Rafraichi les messages
        /// </summary>
        private void RefreshMessage(VO_RunningScript script)
        {
            if (script != null && script.CurrentLine != null && script.CurrentLine is VO_Script_Message)
            {
                VO_Dialog  dialog  = ((VO_Script_Message)script.CurrentLine).Dialog;
                VO_Message message = dialog.Messages[script.ObjectState - 1];
                Draw(_Service.FormatText(message, new VO_Size(_ProjectData.Resolution.Width, _ProjectData.Resolution.Height), new Point((int)Camera2D.Pos.X, (int)Camera2D.Pos.Y)));

                //Dessiner les faces
                if (dialog.UseFaces)
                {
                    Draw(_Service.GetAnimatedFaces(dialog));
                }
            }
        }