示例#1
0
文件: World.cs 项目: dzamkov/DUIP
        public World(Context InputContext, Theme Theme)
        {
            this._Arcs = new List<Arc>();
            this._Nodes = new List<Node>();
            this._Theme = Theme;

            InputContext.RegisterProbeSignalChange(this._ProbeSignalChange);
            InputContext.RegisterUpdate(this._Update);
            this._InputContext = InputContext;
        }
示例#2
0
文件: Editor.cs 项目: dzamkov/DUIP
 public override Disposable<Block> CreateBlock(Theme Theme)
 {
     SystemTypeface typeface = SystemTypeface.Create("Courier New", false, false);
     SystemFont font = typeface.GetFont(0.05, Color.Black);
     TextStyle normal = new TextStyle(font, Color.White);
     TextStyle selected = new TextStyle(font, Color.Black);
     TextBlock textblock =
         new TextBlock(((TextSection)"Look, it's a list:\n\t* With\n\t* Three\n\t* Items").Style(normal, selected),
             new TextBlockStyle(new Point(0.04, 0.05), Alignment.Center, Alignment.Center, 4, 0.5, new Border(0.003, Color.Black)));
     return textblock.WithMargin(0.1).WithBackground(Theme.NodeBackground).WithBorder(Theme.NodeBorder);
 }
示例#3
0
文件: Content.cs 项目: dzamkov/DUIP
 /// <summary>
 /// Creates a block representation of this content to be used within a node.
 /// </summary>
 public abstract Disposable<Block> CreateBlock(Theme Theme);