コード例 #1
0
        public Form1(TSOConfig tso_config, string[] args)
        {
            InitializeComponent();

            this.ClientSize      = tso_config.ClientSize;
            save_path            = tso_config.SavePath;
            pose_path            = tso_config.PosePath;
            TMOAnimItem.PoseRoot = tso_config.PosePath;
            TMOAnimItem.FaceRoot = tso_config.FacePath;

            viewer             = new CCDViewer();
            viewer.ScreenColor = tso_config.ScreenColor;
            if (viewer.InitializeApplication(this))
            {
                CreatePngSave();
                viewer.Camera.SetTranslation(0.0f, +10.0f, +44.0f);
                viewer.MotionEnabled = true;
                timer1.Enabled       = true;
            }
            saveListForm          = new SaveListForm();
            saveListForm.SavePath = tso_config.SavePath;
            poseListForm          = new PoseListForm();
            poseListForm.PosePath = tso_config.PosePath;
            faceListForm          = new FaceListForm();
            faceListForm.FacePath = tso_config.FacePath;
            tmoAnimItemForm       = new TmoAnimItemForm();
            tmoAnimItemForm.SetPoseListForm(poseListForm);
            tmoAnimItemForm.SetFaceListForm(faceListForm);
            poseListForm.AddListView(lvPoses);
            this.tso_config = tso_config;
        }
コード例 #2
0
        public Form1(TSOConfig tso_config, string[] args)
        {
            InitializeComponent();
            this.ClientSize = tso_config.ClientSize;
            this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true);

            save_path = tso_config.SavePath;
            pose_path = tso_config.PosePath;

            viewer = new CCDViewer();
            if (viewer.InitializeApplication(this))
            {
                viewer.LoadAnyFile(Path.Combine(save_path, @"system.tdcgsav.png"), true);
                viewer.Camera.SetTranslation(0.0f, +10.0f, +44.0f);
            }
            this.tso_config = tso_config;
        }