Пример #1
0
        public HeavyweightLine(SceneMgr mgr, long id, Vector start, Vector end, Color color, int width)
            : base(mgr, id)
        {
            SceneMgr = mgr;
            Start    = start;
            End      = end;

            SceneMgr.BeginInvoke(new Action(() => {
                HeavyWeightGeometry        = HeavyweightGeometryFactory.CreateLineGeometry(Start, End, color, width);
                BlurEffect effect          = new BlurEffect();
                effect.Radius              = 6;
                effect.KernelType          = KernelType.Box;
                HeavyWeightGeometry.Effect = effect;
            }));
        }
Пример #2
0
 public void InitElement()
 {
     mgr.BeginInvoke(new Action(() =>
     {
         element = (AlertBox)LogicalTreeHelper.FindLogicalNode(mgr.GetCanvas(), "AlertBoxUC");
         if (element == null)
         {
             Size size = SharedDef.VIEW_PORT_SIZE;
             element   = GuiObjectFactory.CreateAndAddAlertBox(mgr, new Vector((SharedDef.VIEW_PORT_SIZE.Width - 395) / 2, 0));
         }
     }));
 }
Пример #3
0
 private void UpdateTime()
 {
     mgr.BeginInvoke(new Action(() => statsWindow.SetTime(time.ToString("00", Strings.Culture))));
 }