Ejemplo n.º 1
0
        private static string TextTypeToText(eTextType textType)
        {
            switch (textType)
            {
            case eTextType.Broadcast:
                return(Resources.textTypeBroadcast);

            case eTextType.Dialog:
                return(Resources.textTypeDialog);

            case eTextType.Emote:
                return(Resources.textTypeEmote);

            case eTextType.Read:
                return(Resources.textTypeRead);

            default:
                return(Resources.textTypeNone);
            }
        }
Ejemplo n.º 2
0
 private void RegisterFile(eTextType type, string line)
 {
     //print( "Raw file : " + line );
     if( line == "TextData" )
     {
         type = eTextType.TextData;
     }
     else if( line == "CommandSequence" )
     {
         type = eTextType.CommandSequence;
     }
     else if( line == "background" )
     {
         type = eTextType.Background;
     }
     else if( type == eTextType.CommandSequence )
     {
         //StringParser.Instance.CommandParser( line );
     }
     else if( type == eTextType.Background )
     {
         StringParser.Instance.BackgroundReader( line, ref SceneManager.Instance.backgroundLookup );
     }
 }
Ejemplo n.º 3
0
 private static string TextTypeToText(eTextType textType)
 {
     switch (textType)
     {
         case eTextType.Broadcast:
             return Resources.textTypeBroadcast;
         case eTextType.Dialog:
             return Resources.textTypeDialog;
         case eTextType.Emote:
             return Resources.textTypeEmote;
         case eTextType.Read:
             return Resources.textTypeRead;
         default:
             return Resources.textTypeNone;
     }
 }