Exemple #1
0
        //SkyBox skyBox;
        public Form1()
        {
            InitializeComponent();

            MapToolCore.Environment.Instance.ProjectDirectory = System.IO.Path.GetFullPath(Properties.Settings.Default.ProjectDir);
            MapToolCore.Environment.Instance.PropertyChanged += Env_PropertyChanged;
            m_renderView = new DockView <View.RenderView>();
            MaptoolRenderer.GraphicsDevice.Initalize(m_renderView.Content, 1920, 1080);
            m_renderView.Content.Initialize(800, 600);


            Doc.Document.Instance.PropertyChanged += Document_PropertyChanged;

            m_mapObjTreePanel                 = new DockView <View.MapObjectTreePanel>();
            m_propertyView                    = new DockView <PropertyGrid>();
            m_projectDirectoryView            = new DockView <View.ProjectDirectoryPanel>();
            m_animationJsonEditView           = new DockView <View.AnimationView>();
            m_colliderEditView                = new DockView <View.ColiiderEditView>();
            m_mapObjTreePanel.TabText         = "트리";
            m_renderView.TabText              = "렌더";
            m_projectDirectoryView.TabText    = "디렉토리";
            m_propertyView.TabText            = "속성";
            m_animationJsonEditView.TabText   = "애니메이션";
            m_colliderEditView.TabText        = "콜라이더";
            m_propertyView.Content.AllowDrop  = true;
            m_propertyView.Content.DragEnter += PropertyView_DragEnter;
            m_propertyView.Content.DragDrop  += PropertyView_DragDrop;

            m_mapObjTreePanel.Show(dockPanel1, DockState.DockLeft);
            m_renderView.Show(dockPanel1, DockState.Document);
            m_propertyView.Show(dockPanel1, DockState.DockRight);
            m_projectDirectoryView.Show(dockPanel1, DockState.DockBottom);
            m_animationJsonEditView.Show(dockPanel1, DockState.Document);
            m_colliderEditView.Show(dockPanel1, DockState.Document);
            m_renderView.Activate();
            m_renderView.CloseButtonVisible            = false;
            m_renderView.CloseButton                   = false;
            m_renderView.IsFloat                       = false;
            m_animationJsonEditView.CloseButtonVisible = false;
            m_animationJsonEditView.CloseButton        = false;
            m_animationJsonEditView.IsFloat            = false;
            m_colliderEditView.CloseButtonVisible      = false;
            m_colliderEditView.CloseButton             = false;
            m_colliderEditView.IsFloat                 = false;

            //GraphicsDevice.Instance.Render();
            m_renderView.Content.RenderObjects = renderObjects;
            m_renderView.Content.MouseClick   += RederView_MouseClick;
        }
Exemple #2
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            var service = new DockService();

            service.GetDocks((docks, error) =>
            {
                if (error != null)
                {
                    throw new Exception("Problem loading docks.", error);
                }

                foreach (var dock in docks)
                {
                    var window         = new DockView();
                    var dockViewModel  = new DockViewModel(dock);
                    window.DataContext = dockViewModel;
                    window.Show();
                }
            });
        }
        public void InitializeDocViews()
        {
            renderView         = new DockView <View.CharacterMetaRenderView>();
            colliderView       = new DockView <View.ColliderPropertyView>();
            animationTableView = new DockView <View.AnimationTableView>();
            propertyView       = new DockView <PropertyGrid>();
            renderView.TabText = "View";
            renderView.Show(dockPanel1, DockState.Document);
            renderView.CloseButtonVisible = false;
            renderView.CloseButton        = false;
            renderView.IsFloat            = false;

            colliderView.TabText = "Colliders";
            colliderView.Show(dockPanel1, DockState.DockLeft);

            animationTableView.TabText = "Animations";
            animationTableView.Show(dockPanel1, DockState.DockLeft);

            propertyView.TabText = "X Mesh 정보";
            propertyView.Show(dockPanel1, DockState.DockRight);
        }