Guard and attack markers (shields and swords, up to eight each, right click removes); the world and the interface are copied opaque so glows keep their brightness

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-06 07:47:21 +01:00
1 parent a1a53273cd
commit c9dafb1606
24 files changed
+470 -46

No files matched your search

+6
View File
@@ -92,6 +92,10 @@ pub enum Act {
y: i32,
},
CancelOrders,
Unmark {
x: f32,
y: f32,
}, // right click with an order tool: removes the marker there (or cancels the guard orders)
// gold for an allied master of a match (`crate::netplay::GOLD_ALL`: everything)
SendGold {
to: u8,
@@ -172,6 +176,7 @@ impl Game {
},
Act::Guard { x, y } => (point(x as f32, y as f32), MARK_GUARD, 10.0),
Act::CancelOrders => (point(self.map.core.0 as f32, self.map.core.1 as f32), MARK_CANCEL, 4.0),
Act::Unmark { x, y } => (point(x, y), MARK_CANCEL, 3.0),
};
let fixed = matches!(act, Act::Guard { .. } | Act::Attack { .. } | Act::Flag { .. });
let dur = match act {
@@ -220,6 +225,7 @@ impl Game {
}
Act::Guard { x, y } => self.order_guard(x, y),
Act::CancelOrders => self.cancel_orders(),
Act::Unmark { x, y } => self.unmark(x, y),
Act::SendGold { to, amount } => self.send_gold(to, amount),
}
}