Launch Configurations

@if (this.ViewModel.LaunchConfigurations.Count is 0) { } else {
@for (var i = 0; i < this.ViewModel.LaunchConfigurations.Count; i++) { var config = this.ViewModel.LaunchConfigurations[i]; var index = i;
Reorder
@if (index > 0) { } @if (index < this.ViewModel.LaunchConfigurations.Count - 1) { }
Identifier
Name
Accent Color
@if (!string.IsNullOrWhiteSpace(context)) {
} @this.ViewModel.GetColorDisplayName(context)
Executable
@(string.IsNullOrWhiteSpace(context) ? "Any Executable" : context)
Credentials
@(this.ViewModel.Credentials.FirstOrDefault(c => c.Identifier == context)?.Username ?? "Unknown")
Custom Arguments
Steam support
Custom mod loadout
Manage Mods
}
}
@using Daybreak.Shared.Models; @page "/launch-configurations" @inherits ViewBase @inject IJSRuntime JSRuntime @code { public async Task ScrollToConfigAsync(string identifier) { try { await this.JSRuntime.InvokeVoidAsync("eval", $"setTimeout(() => document.getElementById('launch-config-{identifier}')?.scrollIntoView({{ behavior: 'smooth', block: 'start' }}), 50)"); } catch { } } }