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

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

            RecentsController.InitRecentControl(Toolname, Recents_MenuItem, fileName => LoadFile(fileName));
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 4
0
        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;
        }
Ejemplo n.º 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;
        }