Ejemplo n.º 1
0
        public override void DisplayData()
        {
            StoryProgressTracker?nullableProgress = GetProgressFunc();

            currentProgress = (StoryProgressTracker)nullableProgress;
            PrintableString[] strings = new PrintableString[2];
            strings[0] = new PrintableString("Active", 0);
            strings[1] = new PrintableString("Completed", 1);
            SetDisplayableArrayData <DataItem>(strings, 1);
            ProcessClickStoryStatusButton(strings[0]);
        }
Ejemplo n.º 2
0
 public override void DisplayData()
 {
     if (ReceiveFunction == null)
     {
         return;
     }
     SaveFile[] saveFiles = ReceiveFunction();
     panels[1].SetData <SaveFile>(saveFiles);
     PrintableString[] texts = new PrintableString[] { new PrintableString("Save Game") };
     panels[0].SetData <DataItem>(texts);
     SetSelectedDisplayable(1, 0);
 }
Ejemplo n.º 3
0
        public void ProcessSelectStoryNameButton(DataItem sentData)
        {
            PrintableString[] printableDescription = new PrintableString[1];
            //Cast sentData as IPrintable to access explictly implemented Text property.
            IPrintable journalDescriptionPrintable = (IPrintable)sentData;

            printableDescription[0] = new PrintableString(journalDescriptionPrintable.PrintableText);
            SetDisplayableArrayData <DataItem>(printableDescription, 3);
            if (!(sentData is INestable <DataItem>))
            {
                return;
            }
            INestable <DataItem> returnable = (INestable <DataItem>)sentData;

            SetDisplayableArrayData <DataItem>(returnable.GetArray(), 2);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Checks if a string is a printable string.
 /// </summary>
 /// <param name="Value">Value to check.</param>
 /// <returns>If the string is a printable string or not.</returns>
 public static bool IsPrintable(string Value)
 {
     return(PrintableString.IsMatch(Value));
 }