- Move all Launcher components to LANCommander.Launcher.UI namespace - Move all SCSS files next to components (when possible) - Refactor styles that control overflow of content into titlebar to MainWindow only - Remove use in launcher UI of SDK.Client
21 lines
No EOL
622 B
Text
21 lines
No EOL
622 B
Text
@using System.Diagnostics
|
|
@using LANCommander.Launcher.Data.Models
|
|
@using LANCommander.Launcher.Models
|
|
@namespace LANCommander.Launcher.UI
|
|
@inherits FeedbackComponent<ActionSelectorDialogOptions, Process>
|
|
@inject GameService GameService
|
|
|
|
<AntList DataSource="Options.Actions" TItem="SDK.Models.Manifest.Action" Class="ant-list-clickable" Size="ListSize.Small">
|
|
<ListItem OnClick="() => Run(Options.Game, context)">
|
|
@context.Name
|
|
</ListItem>
|
|
</AntList>
|
|
|
|
@code {
|
|
void Run(Game game, SDK.Models.Manifest.Action action)
|
|
{
|
|
GameService.Run(game, action);
|
|
|
|
CloseFeedbackAsync();
|
|
}
|
|
} |