/// <summary> /// Get graphic obj for background based on code /// </summary> /// <param name="bgCode"></param> /// <returns></returns> public static IGraphicObject GetBackground(BackgroundCode bgCode) { if (_bgGraphic.ContainsKey(bgCode)) { return(_bgGraphic[bgCode]); } else { return(new GraphicObject( "StoryGraphicNull", new GraphicRectangle(_graphics, GraphicDimension.GraphicFrame, Color.Black))); } }
public ConversationLine( string speaker, List <string> sentences, StoryGraphicCode code = StoryGraphicCode.Default, BackgroundCode bg = BackgroundCode.Default) { _graphic = code; _bg = bg; _speaker = speaker; _sentences = sentences; _count = 0; _isfinished = false; }
public static string Background(object value, BackgroundCode code) => Format(value, (FormatCode)code);