2024-05-25 22:21:04 -05:00
|
|
|
@using System.Diagnostics
|
2024-08-04 17:53:19 -05:00
|
|
|
@using LANCommander.Launcher.Data.Models
|
|
|
|
|
@using LANCommander.Launcher.Models
|
2024-05-25 22:21:04 -05:00
|
|
|
@inherits FeedbackComponent<ActionSelectorDialogOptions, Process>
|
2024-08-26 20:18:54 -05:00
|
|
|
@inject GameService GameService
|
2024-05-25 22:21:04 -05:00
|
|
|
|
2024-12-31 18:21:41 -06:00
|
|
|
<AntList DataSource="Options.Actions" TItem="SDK.Models.Action" Class="ant-list-clickable" Size="ListSize.Small">
|
2024-06-01 22:47:56 -05:00
|
|
|
<ListItem OnClick="() => Run(Options.Game, context)">
|
2024-05-25 22:21:04 -05:00
|
|
|
@context.Name
|
|
|
|
|
</ListItem>
|
|
|
|
|
</AntList>
|
|
|
|
|
|
|
|
|
|
@code {
|
2024-06-01 22:47:56 -05:00
|
|
|
void Run(Game game, SDK.Models.Action action)
|
2024-05-25 22:21:04 -05:00
|
|
|
{
|
2024-09-05 00:48:04 -05:00
|
|
|
GameService.Run(game, action);
|
2024-05-25 22:21:04 -05:00
|
|
|
|
|
|
|
|
CloseFeedbackAsync();
|
|
|
|
|
}
|
|
|
|
|
}
|