示例#1
0
        public PlotEditor() : base("Plot Editor")
        {
            InitializeComponent();
            RecentsController.InitRecentControl(Toolname, Recents_MenuItem, fileName => LoadFile(fileName));

            FindObjectUsagesControl.parentRef = this;
        }
        public AnimationImporter() : base("Animation Importer")
        {
            DataContext = this;
            LoadCommands();
            InitializeComponent();

            RecentsController.InitRecentControl(Toolname, Recents_MenuItem, fileName => LoadFile(fileName));
        }
示例#3
0
        public PlotEditor() : base("Plot Editor")
        {
            GotoCommand = new GenericCommand(FocusGoto, () => Pcc != null);

            InitializeComponent();
            RecentsController.InitRecentControl(Toolname, Recents_MenuItem, fileName => LoadFile(fileName));

            FindObjectUsagesControl.parentRef = this;
        }
        public InterpEditor() : base("Interp Editor")
        {
            MemoryAnalyzer.AddTrackedMemoryItem(new MemoryAnalyzerObjectExtended("Interp Editor", new WeakReference(this)));
            LoadCommands();
            DataContext = this;
            StatusText  = "Select package file to load";
            InitializeComponent();
            RecentsController.InitRecentControl(Toolname, Recents_MenuItem, LoadFile);

            timelineControl.SelectionChanged += TimelineControlOnSelectionChanged;
        }
示例#5
0
        public WwiseEditorWPF() : base("Wwise Editor")
        {
            DataContext = this;
            StatusText  = "Select package file to load";
            LoadCommands();
            InitializeComponent();

            RecentsController.InitRecentControl(Toolname, Recents_MenuItem, fileName => LoadFile(fileName));

            graphEditor           = (WwiseGraphEditor)GraphHost.Child;
            graphEditor.BackColor = GraphEditorBackColor;

            if (File.Exists(OptionsPath))
            {
                var options = JsonConvert.DeserializeObject <Dictionary <string, object> >(File.ReadAllText(OptionsPath));
                if (options.ContainsKey("AutoSave"))
                {
                    AutoSaveView_MenuItem.IsChecked = (bool)options["AutoSave"];
                }
            }

            soundPanel.SoundPanel_TabsControl.SelectedIndex = 1;
            soundPanel.HIRCObjectSelected += SoundPanel_HIRCObjectSelected;
        }