Пример #1
0
 public DialogueOutput(int id)
 {
     m_choices        = new List <int>();
     m_textureChanges = new TextureChangeCollection();
     m_id             = id;
     m_nextId         = -1;
     m_message        = string.Format(MISSING_MESSAGE, m_id);
 }
Пример #2
0
        private void UpdateImagery()
        {
            TextureChangeCollection changes = CurrentDialog.TexChanges;

            foreach (TextureRole role in Enum.GetValues(typeof(TextureRole)))
            {
                if (CurrentDialog.NextId == -1 && CurrentDialog.Message == UNKNOWN_CHOICE.Message)
                {
                    myTextures[role] = null;
                }
                myTextures[role] = changes[role] != null ? changes[role].GetTexture() : (myTextures.ContainsKey(role) ? myTextures[role] : null);
            }

            BackgroundTexture = changes[TextureRole.Background] != null ? changes[TextureRole.Background].GetTexture() : BackgroundTexture;
            Speaker0Texture   = changes[TextureRole.Speaker0] != null ? changes[TextureRole.Speaker0].GetTexture() : Speaker0Texture;
            Speaker1Texture   = changes[TextureRole.Speaker1] != null ? changes[TextureRole.Speaker1].GetTexture() : Speaker1Texture;
            Speaker2Texture   = changes[TextureRole.Speaker2] != null ? changes[TextureRole.Speaker2].GetTexture() : Speaker2Texture;
            Speaker3Texture   = changes[TextureRole.Speaker3] != null ? changes[TextureRole.Speaker3].GetTexture() : Speaker3Texture;
            Speaker4Texture   = changes[TextureRole.Speaker4] != null ? changes[TextureRole.Speaker4].GetTexture() : Speaker4Texture;
            Speaker5Texture   = changes[TextureRole.Speaker5] != null ? changes[TextureRole.Speaker5].GetTexture() : Speaker5Texture;
            Speaker6Texture   = changes[TextureRole.Speaker6] != null ? changes[TextureRole.Speaker6].GetTexture() : Speaker6Texture;
            Speaker7Texture   = changes[TextureRole.Speaker7] != null ? changes[TextureRole.Speaker7].GetTexture() : Speaker7Texture;
            TextPanelTexture  = changes[TextureRole.TextPanel] != null ? changes[TextureRole.TextPanel].GetTexture() : TextPanelTexture;
        }