From 9772679a2f864a0e4b1472e64ae8ebbca990e2e0 Mon Sep 17 00:00:00 2001 From: dingo Date: Tue, 21 Apr 2026 12:38:21 -0400 Subject: [PATCH] feat(ability-builder): add delete buttons to all visual canvas nodes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cost node rows now have per-item × buttons. Conditions node has a clear-all × in the header. Sub-group action and sub-group effect nodes both have × buttons in their headers. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- .../Pages/Cards/AbilityBuilder.razor | 32 +++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/Server/src/SOR.Admin/Components/Pages/Cards/AbilityBuilder.razor b/Server/src/SOR.Admin/Components/Pages/Cards/AbilityBuilder.razor index 7971649..7a3d04c 100644 --- a/Server/src/SOR.Admin/Components/Pages/Cards/AbilityBuilder.razor +++ b/Server/src/SOR.Admin/Components/Pages/Cards/AbilityBuilder.razor @@ -1058,9 +1058,19 @@ Cost @fabi.Costs.Count - @foreach (var ce in fabi.Costs.Take(3)) + @for (int ci = 0; ci < Math.Min(fabi.Costs.Count, 3); ci++) { -
@ce.TypeStr @(ce.Amount>0?ce.Amount:"")
+ int cidx = ci; + var ce = fabi.Costs[cidx]; +
+ @ce.TypeStr @(ce.Amount>0?ce.Amount:"") + +
} @if (fabi.Costs.Count > 3){
+@(fabi.Costs.Count-3) more…
} @@ -1075,6 +1085,12 @@
Conditions @fabi.Conditions.Count +
} @@ -1177,6 +1193,12 @@ @onmousedown="e=>OnNodeMouseDown(e,sgActK)" @onmousedown:stopPropagation="true">
SG@(sgiIdx+1) · Act @(sgjIdx+1) +
→ @sgAct.Ownership @sgAct.TargetType @@ -1194,6 +1216,12 @@
@sgEff.TypeKey +
@EffectSummary(sgEff)