Exemple #1
0
        private void CntP_Preview_Load(object sender, EventArgs e)
        {
            playfield = new DDD_Playfield();
            playfield.UnitTestMode = true;
            playfield.ImageLibraryPath = string.Format("{0}\\Resources\\{1}", System.Environment.CurrentDirectory, "ImageLib.dll");
            playfield.MapFile = "Resources\\Ramadi.jpg";

            agT_CanvasControl1.AddScene(playfield);
        }
Exemple #2
0
        public Form1()
        {
            SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true);

            InitializeComponent();

            scene_2D = new DDD_Playfield();
            scene_2D.UnitTestMode = true;
            scene_2D.ImageLibraryPath = string.Format("{0}\\Resources\\{1}", System.Environment.CurrentDirectory, "ImageLib.dll");
            scene_2D.MapFile = "Resources\\Ramadi.jpg";
        }
Exemple #3
0
        public CntP_Playfield()
        {
            InitializeComponent();
            playfield = new DDD_Playfield();
            playfield.OnMouseSelection += new MouseSelectionHandler(AssetSelectionChanged);

            playfield.ImageLibraryPath = string.Format("{0}\\Resources\\{1}", System.Environment.CurrentDirectory, "ImageLib.dll");
            playfield.MapFile = "Resources\\Ramadi.jpg";

            preview = new Ctl_PreviewScenario();
            preview.Parent = splitContainer1.Panel2;
            preview.Hide();

            cc.AddScene(playfield);
            _timeline.Add(string.Empty, new AssetTimelines(new TimelinePanel(), new Dictionary<string, Node>()));
            _timeline[_current_asset].CtlTimeline.ContentPane = this;
            _timeline[_current_asset].CtlTimeline.HeaderText = "Global Events";
            _timeline[_current_asset].CtlTimeline.Parent = splitContainer1.Panel2;
            _timeline[_current_asset].CtlTimeline.Dock = DockStyle.Fill;
            _timeline[_current_asset].CtlTimeline.Hide();

            ChangeMode(ContentPanelMode.Playfield);
        }
Exemple #4
0
        public PreviewSimulator(AGT_CanvasControl control)
        {
            TickUpdateCallback = null;
            _scene = new AGT.Scenes.DDD_Playfield();
            _scene.UserControl = false;

            _canvas_control = control;
            _canvas_control.AddScene(_scene);

            _previewTimer = new System.Threading.Timer(new TimerCallback(this.OnTick), null, Timeout.Infinite, Timeout.Infinite);
            _scenario = new SortedDictionary<int, List<AbstractPreviewEvent>>();
        }