From a889825768c86b037024e96d2f8aa44c9bc5a7f5 Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Thu, 5 Nov 2026 20:07:47 +0100 Subject: [PATCH] Open the co-op campaign in the editor Co-Authored-By: Claude Opus 5.5 --- src/editor/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/editor/mod.rs b/src/editor/mod.rs index 08c9f69..b884b37 100644 --- a/src/editor/mod.rs +++ b/src/editor/mod.rs @@ -534,6 +534,13 @@ impl Editor { self.open_dialog = false; return None; } + y += CH() * 2.2; + // the built-in co-op campaign, as a copy to change or to learn from + if im.button(gfx, Rect::new(x, y, bw * 2.0 + CW(), CH() * 1.7), &tr("net.coop_league")) { + self.load(coop_campaign::coop_campaign(), None); + self.open_dialog = false; + return None; + } y += CH() * 2.6; // a mission of the built-in campaign as a copy label(gfx, x, y, &tr("ed.template"), FRAME_HI);