Exemple #1
0
        public TAStudio()
        {
            Settings = new TAStudioSettings();
            InitializeComponent();

            // TODO: show this at all times or hide it when saving is done?
            this.SavingProgressBar.Visible = false;

            InitializeSaveWorker();
            InitializeSeekWorker();

            WantsToControlStopMovie           = true;
            WantsToControlRestartMovie        = true;
            TasPlaybackBox.Tastudio           = this;
            MarkerControl.Tastudio            = this;
            BookMarkControl.Tastudio          = this;
            MarkerControl.Emulator            = this.Emulator;
            TasView.QueryItemText            += TasView_QueryItemText;
            TasView.QueryItemBkColor         += TasView_QueryItemBkColor;
            TasView.QueryRowBkColor          += TasView_QueryRowBkColor;
            TasView.QueryItemIcon            += TasView_QueryItemIcon;
            TasView.QueryFrameLag            += TasView_QueryFrameLag;
            TasView.PointedCellChanged       += TasView_PointedCellChanged;
            TasView.MultiSelect               = true;
            TasView.MaxCharactersInHorizontal = 1;
            LastPositionFrame = -1;
        }
Exemple #2
0
        public TAStudio()
        {
            InitializeComponent();
            Settings = new TAStudioSettings();

            // TODO: show this at all times or hide it when saving is done?
            this.SavingProgressBar.Visible = false;

            InitializeSaveWorker();

            WantsToControlStopMovie = true;
            TasPlaybackBox.Tastudio = this;
            MarkerControl.Tastudio = this;
            MarkerControl.Emulator = this.Emulator;
            TasView.QueryItemText += TasView_QueryItemText;
            TasView.QueryItemBkColor += TasView_QueryItemBkColor;
            TasView.QueryRowBkColor += TasView_QueryRowBkColor;
            TasView.QueryItemIcon += TasView_QueryItemIcon;
            TasView.QueryFrameLag += TasView_QueryFrameLag;
            TasView.InputPaintingMode = Settings.DrawInput;
            TasView.PointedCellChanged += TasView_PointedCellChanged;
            TasView.MultiSelect = true;
            TasView.MaxCharactersInHorizontal = 1;
            WantsToControlRestartMovie = true;
        }
Exemple #3
0
        public TAStudio()
        {
            Settings = new TAStudioSettings();

            // input roll renderer must be set before InputRoll initialisation
            InputRollRenderer = BizHawk.Common.PlatformLinkedLibSingleton.RunningOnUnix ? 1 : Global.Config.TasStudioRenderer;

            InitializeComponent();
            InitializeSeekWorker();

            // TODO: show this at all times or hide it when saving is done?
            SavingProgressBar.Visible = false;

            WantsToControlStopMovie           = true;
            WantsToControlRestartMovie        = true;
            TasPlaybackBox.Tastudio           = this;
            MarkerControl.Tastudio            = this;
            BookMarkControl.Tastudio          = this;
            TasView.QueryItemText            += TasView_QueryItemText;
            TasView.QueryItemBkColor         += TasView_QueryItemBkColor;
            TasView.QueryRowBkColor          += TasView_QueryRowBkColor;
            TasView.QueryItemIcon            += TasView_QueryItemIcon;
            TasView.QueryFrameLag            += TasView_QueryFrameLag;
            TasView.PointedCellChanged       += TasView_PointedCellChanged;
            TasView.MultiSelect               = true;
            TasView.MaxCharactersInHorizontal = 1;
            LastPositionFrame = -1;
        }
Exemple #4
0
        public TAStudio()
        {
            Settings = new TAStudioSettings();
            InitializeComponent();
            InitializeSeekWorker();

            _defaultMainSplitDistance         = MainVertialSplit.SplitterDistance;
            _defaultBranchMarkerSplitDistance = BranchesMarkersSplit.SplitterDistance;

            // TODO: show this at all times or hide it when saving is done?
            SavingProgressBar.Visible = false;

            WantsToControlStopMovie     = true;
            WantsToControlRestartMovie  = true;
            TasPlaybackBox.Tastudio     = this;
            MarkerControl.Tastudio      = this;
            BookMarkControl.Tastudio    = this;
            TasView.QueryItemText      += TasView_QueryItemText;
            TasView.QueryItemBkColor   += TasView_QueryItemBkColor;
            TasView.QueryRowBkColor    += TasView_QueryRowBkColor;
            TasView.QueryItemIcon      += TasView_QueryItemIcon;
            TasView.QueryFrameLag      += TasView_QueryFrameLag;
            TasView.PointedCellChanged += TasView_PointedCellChanged;
            TasView.MultiSelect         = true;
            LastPositionFrame           = -1;
        }
Exemple #5
0
        public TAStudio()
        {
            Settings = new TAStudioSettings();
            InitializeComponent();

            if (Global.Emulator != null)
            {
                // Set the screenshot to "1x" resolution of the core
                // cores like n64 and psx are going to still have sizes too big for the control, so cap them
                int width  = Global.Emulator.VideoProvider().BufferWidth;
                int height = Global.Emulator.VideoProvider().BufferHeight;
                if (width > 320)
                {
                    double ratio = 320.0 / (double)width;
                    width  = 320;
                    height = (int)((double)(height) * ratio);
                }
                ScreenshotControl.DrawingHeight = height;
                ScreenshotControl.Size          = new Size(width, ScreenshotControl.DrawingHeight + ScreenshotControl.UserPadding);
            }

            ScreenshotControl.Visible = false;
            Controls.Add(ScreenshotControl);
            ScreenshotControl.BringToFront();

            // TODO: show this at all times or hide it when saving is done?
            this.SavingProgressBar.Visible = false;

            InitializeSaveWorker();
            InitializeSeekWorker();

            WantsToControlStopMovie           = true;
            WantsToControlRestartMovie        = true;
            TasPlaybackBox.Tastudio           = this;
            MarkerControl.Tastudio            = this;
            BookMarkControl.Tastudio          = this;
            MarkerControl.Emulator            = this.Emulator;
            TasView.QueryItemText            += TasView_QueryItemText;
            TasView.QueryItemBkColor         += TasView_QueryItemBkColor;
            TasView.QueryRowBkColor          += TasView_QueryRowBkColor;
            TasView.QueryItemIcon            += TasView_QueryItemIcon;
            TasView.QueryFrameLag            += TasView_QueryFrameLag;
            TasView.PointedCellChanged       += TasView_PointedCellChanged;
            TasView.MultiSelect               = true;
            TasView.MaxCharactersInHorizontal = 1;
            IgnoreSeekFrame = false;
        }
Exemple #6
0
        public TAStudio()
        {
            Settings = new TAStudioSettings();
            InitializeComponent();

            if (Global.Emulator != null)
            {
                // Set the screenshot to "1x" resolution of the core
                // cores like n64 and psx are going to still have sizes too big for the control, so cap them
                int width = Global.Emulator.VideoProvider().BufferWidth;
                int height = Global.Emulator.VideoProvider().BufferHeight;
                if (width > 320)
                {
                    double ratio = 320.0 / (double)width;
                    width = 320;
                    height = (int)((double)(height) * ratio);
                }
                ScreenshotControl.DrawingHeight = height;
                ScreenshotControl.Size = new Size(width, ScreenshotControl.DrawingHeight + ScreenshotControl.UserPadding);
            }

            ScreenshotControl.Visible = false;
            Controls.Add(ScreenshotControl);
            ScreenshotControl.BringToFront();

            // TODO: show this at all times or hide it when saving is done?
            this.SavingProgressBar.Visible = false;

            InitializeSaveWorker();
            InitializeSeekWorker();

            WantsToControlStopMovie = true;
            WantsToControlRestartMovie = true;
            TasPlaybackBox.Tastudio = this;
            MarkerControl.Tastudio = this;
            BookMarkControl.Tastudio = this;
            MarkerControl.Emulator = this.Emulator;
            TasView.QueryItemText += TasView_QueryItemText;
            TasView.QueryItemBkColor += TasView_QueryItemBkColor;
            TasView.QueryRowBkColor += TasView_QueryRowBkColor;
            TasView.QueryItemIcon += TasView_QueryItemIcon;
            TasView.QueryFrameLag += TasView_QueryFrameLag;
            TasView.PointedCellChanged += TasView_PointedCellChanged;
            TasView.MultiSelect = true;
            TasView.MaxCharactersInHorizontal = 1;
            IgnoreSeekFrame = false;
        }
Exemple #7
0
        public TAStudio()
        {
            void SetImages()
            {
                RecentSubMenu.Image = Properties.Resources.Recent;
                recentMacrosToolStripMenuItem.Image = Properties.Resources.Recent;
                TASEditorManualOnlineMenuItem.Image = Properties.Resources.Help;
                ForumThreadMenuItem.Image           = Properties.Resources.TAStudio;

                Icon = Properties.Resources.TAStudio_MultiSize;
            }

            Settings = new TAStudioSettings();
            InitializeComponent();
            SetImages();
            InitializeSeekWorker();

            _defaultMainSplitDistance         = MainVertialSplit.SplitterDistance;
            _defaultBranchMarkerSplitDistance = BranchesMarkersSplit.SplitterDistance;

            // TODO: show this at all times or hide it when saving is done?
            SavingProgressBar.Visible = false;

            WantsToControlStopMovie     = true;
            WantsToControlRestartMovie  = true;
            TasPlaybackBox.Tastudio     = this;
            MarkerControl.Tastudio      = this;
            BookMarkControl.Tastudio    = this;
            TasView.QueryItemText      += TasView_QueryItemText;
            TasView.QueryItemBkColor   += TasView_QueryItemBkColor;
            TasView.QueryRowBkColor    += TasView_QueryRowBkColor;
            TasView.QueryItemIcon      += TasView_QueryItemIcon;
            TasView.QueryFrameLag      += TasView_QueryFrameLag;
            TasView.PointedCellChanged += TasView_PointedCellChanged;
            TasView.MultiSelect         = true;
            LastPositionFrame           = -1;

            BookMarkControl.LoadedCallback  = BranchLoaded;
            BookMarkControl.SavedCallback   = BranchSaved;
            BookMarkControl.RemovedCallback = BranchRemoved;
        }
Exemple #8
0
        public TAStudio()
        {
            InitializeComponent();

            if (Global.Emulator != null)
            {
                // Set the screenshot to "1x" resolution of the core
                // TODO: cores like n64 and psx are going to still have sizes too big for the control
                // Find a smart way to keep them small
                ScreenshotControl.Size = new Size(Global.Emulator.VideoProvider().BufferWidth, Global.Emulator.VideoProvider().BufferHeight);
            }

            ScreenshotControl.Visible = false;
            Controls.Add(ScreenshotControl);
            ScreenshotControl.BringToFront();
            Settings = new TAStudioSettings();

            // TODO: show this at all times or hide it when saving is done?
            this.SavingProgressBar.Visible = false;

            InitializeSaveWorker();

            WantsToControlStopMovie = true;
            TasPlaybackBox.Tastudio = this;
            MarkerControl.Tastudio = this;
            BookMarkControl.Tastudio = this;
            MarkerControl.Emulator = this.Emulator;
            TasView.QueryItemText += TasView_QueryItemText;
            TasView.QueryItemBkColor += TasView_QueryItemBkColor;
            TasView.QueryRowBkColor += TasView_QueryRowBkColor;
            TasView.QueryItemIcon += TasView_QueryItemIcon;
            TasView.QueryFrameLag += TasView_QueryFrameLag;
            TasView.PointedCellChanged += TasView_PointedCellChanged;
            TasView.MultiSelect = true;
            TasView.MaxCharactersInHorizontal = 1;
            WantsToControlRestartMovie = true;
        }