Add campaign editor script runtime and debug overlays
This commit is contained in:
1 parent
cd35ca8e3d
commit
b06c48172b
13 files changed
+2211
-66
No files matched your search
+4
-1
@@ -2231,11 +2231,14 @@ fn draw_marks(g: &Game, t: f32) {
|
||||
return;
|
||||
}
|
||||
for m in &g.marks {
|
||||
if !m.fixed && !g.debug_markers {
|
||||
continue;
|
||||
}
|
||||
let left = m.until.saturating_sub(g.sim_steps) as f32 * STEP;
|
||||
if left <= 0.0 {
|
||||
continue;
|
||||
}
|
||||
let a = (left / 2.0).min(1.0).max(0.18);
|
||||
let a = if m.fixed { 1.0 } else { (left / 2.0).min(1.0).max(0.18) };
|
||||
let base = mark_color(m.kind);
|
||||
let side = mark_side_color(m.side);
|
||||
draw_command_flag(m.x, m.y, Color::new(base.r, base.g, base.b, a), Color::new(side.r, side.g, side.b, a), t);
|
||||
|
||||
Reference in new issue
Block a user