diff --git a/UI/Config/Debugger/ScriptWindowConfig.cs b/UI/Config/Debugger/ScriptWindowConfig.cs index 0be6bdbf..bfe54427 100644 --- a/UI/Config/Debugger/ScriptWindowConfig.cs +++ b/UI/Config/Debugger/ScriptWindowConfig.cs @@ -29,6 +29,8 @@ namespace Mesen.Config [Reactive] public bool AllowIoOsAccess { get; set; } = false; [Reactive] public bool AllowNetworkAccess { get; set; } = false; + [Reactive] public bool ShowLineNumbers { get; set; } = false; + [Reactive] public UInt32 ScriptTimeout { get; set; } = 1; public void AddRecentScript(string scriptFile) diff --git a/UI/Debugger/ViewModels/ScriptWindowViewModel.cs b/UI/Debugger/ViewModels/ScriptWindowViewModel.cs index d1be523d..7577c8ca 100644 --- a/UI/Debugger/ViewModels/ScriptWindowViewModel.cs +++ b/UI/Debugger/ViewModels/ScriptWindowViewModel.cs @@ -45,6 +45,9 @@ namespace Mesen.Debugger.ViewModels [Reactive] public List HelpMenuActions { get; private set; } = new(); [Reactive] public List ToolbarActions { get; private set; } = new(); + [Obsolete("For designer only")] + public ScriptWindowViewModel() : this(null) { } + public ScriptWindowViewModel(ScriptStartupBehavior? behavior = null) { this.WhenAnyValue(x => x.ScriptName).Select(x => { diff --git a/UI/Debugger/Windows/DebuggerConfigWindow.axaml b/UI/Debugger/Windows/DebuggerConfigWindow.axaml index 457920f7..41d1c993 100644 --- a/UI/Debugger/Windows/DebuggerConfigWindow.axaml +++ b/UI/Debugger/Windows/DebuggerConfigWindow.axaml @@ -95,6 +95,11 @@ + + + + + diff --git a/UI/Debugger/Windows/ScriptWindow.axaml b/UI/Debugger/Windows/ScriptWindow.axaml index 5afa86c5..f7bbfce7 100644 --- a/UI/Debugger/Windows/ScriptWindow.axaml +++ b/UI/Debugger/Windows/ScriptWindow.axaml @@ -50,7 +50,7 @@ Auto-start script when loaded (or reloaded) Auto-reload script from disk when file changes Auto-restart script after power cycling or reloading a game + + Display settings + Show line numbers Restrictions Maximum execution time: