Self test opens the bestiary too; bestiary screenshot with the portraits
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
918458df50
commit
6886b2e1a4
4 files changed
+10
-4
No files matched your search
+6
-1
@@ -2188,7 +2188,7 @@ app.pending_briefing = briefing_of(&campaign, i);
|
||||
}
|
||||
}
|
||||
|
||||
// ---- self test and screenshots (desktop): DC_SHOT=demo, title or a savegame file starts it right
|
||||
// ---- self test and screenshots (desktop): DC_SHOT=demo, title, bestiary or a savegame file starts it right
|
||||
// away, DC_SHOT_STYLE=hd|pixel picks the graphics style (not saved), DC_SHOT_AFTER seconds later
|
||||
// (default 10) the screen goes to DC_SHOT_OUT (default /tmp/dc-shot.png) and the game ends;
|
||||
// DC_SHOT_ZOOM sets the camera zoom, DC_SHOT_YAW its turn, DC_SHOT_AT=x,z where it looks;
|
||||
@@ -2247,6 +2247,11 @@ impl ShotPlan {
|
||||
self.started = Some(now);
|
||||
return None;
|
||||
}
|
||||
if self.load == "bestiary" {
|
||||
menu.open_bestiary(true);
|
||||
self.started = Some(now);
|
||||
return None;
|
||||
}
|
||||
if self.load == "demo" {
|
||||
app.seed = next_seed(app.seed);
|
||||
(app.game, app.cam) = Game::new_demo_map(app.seed);
|
||||
|
||||
@@ -67,7 +67,7 @@ fn max_level(e: Entry) -> u32 {
|
||||
}
|
||||
|
||||
impl Menu {
|
||||
pub(super) fn open_bestiary(&mut self, from_title: bool) {
|
||||
pub(crate) fn open_bestiary(&mut self, from_title: bool) {
|
||||
self.page = Some(Page::Bestiary { tab: 0, sel: 1, level: 1, from_title });
|
||||
self.scroll = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user