LANCommander/LANCommander.Server/Models/ScriptEditorOptions.cs
Pat Hartl 885032547b Improve script editor with context-aware completions, validation, and UX
- Filter variable completions and hover by script type so only relevant variables appear (e.g. $AllocatedKey only in KeyChange scripts)
- Add inline validation warnings for package scripts missing New-Package and for variables used outside their valid script type
- Extend debug console to support tools and redistributables, add stop button and elapsed time display
- Disable minimap, enable bracket pair colorization and word wrap
- Add snippet insertion via Monaco snippet controller with selection replacement support
- Add script templates that auto-populate on new script creation
- Add Variables dropdown in editor toolbar based on current script type
- Change Add Script button to type-selection dropdown, auto-populate script name from type, remove Type field from editor dialog
- Move Requires Admin checkbox to toolbar row, move toolbar and editor outside Form to prevent dropdown clicks from closing the modal
- Set MaskClosable=false on script editor modals so Monaco autocomplete clicks don't dismiss the dialog
2026-05-10 19:33:48 -05:00

15 lines
466 B
C#

using LANCommander.SDK.Enums;
namespace LANCommander.Server.Models
{
public class ScriptEditorOptions
{
public Guid ScriptId { get; set; }
public Guid? GameId { get; set; }
public Guid? RedistributableId { get; set; }
public Guid? ServerId { get; set; }
public Guid? ToolId { get; set; }
public ScriptType? ScriptType { get; set; }
public IEnumerable<ScriptType> AllowedTypes { get; set; }
}
}