mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 01:15:12 +03:00
Move the minimap code from common to sandbox, reflecting where it's used. (Never in debug or edit mode)
This commit is contained in:
parent
d5d186dd37
commit
3f32c7abf3
@ -9,13 +9,11 @@ use widgetry::{
|
||||
ScreenPt, ScreenRectangle, Text, TextSpan, Toggle, VerticalAlignment, Widget,
|
||||
};
|
||||
|
||||
pub use self::minimap::MinimapController;
|
||||
pub use self::warp::Warping;
|
||||
use crate::app::App;
|
||||
use crate::app::Transition;
|
||||
use crate::info::{ContextualActions, InfoPanel, Tab};
|
||||
|
||||
mod minimap;
|
||||
mod warp;
|
||||
|
||||
// TODO This is now just used in two modes...
|
||||
|
@ -19,12 +19,12 @@ use widgetry::{
|
||||
|
||||
use crate::app::{App, Transition};
|
||||
use crate::challenges::cutscene::CutsceneBuilder;
|
||||
use crate::common::{tool_panel, MinimapController, Warping};
|
||||
use crate::common::{tool_panel, Warping};
|
||||
use crate::edit::EditMode;
|
||||
use crate::sandbox::gameplay::{GameplayMode, GameplayState};
|
||||
use crate::sandbox::{
|
||||
maybe_exit_sandbox, spawn_agents_around, Actions, AgentMeter, SandboxControls, SandboxMode,
|
||||
SpeedControls, TimePanel,
|
||||
maybe_exit_sandbox, spawn_agents_around, Actions, AgentMeter, MinimapController,
|
||||
SandboxControls, SandboxMode, SpeedControls, TimePanel,
|
||||
};
|
||||
|
||||
const ESCORT: CarID = CarID(0, VehicleType::Car);
|
||||
|
@ -16,11 +16,12 @@ use widgetry::{
|
||||
};
|
||||
|
||||
pub use self::gameplay::{spawn_agents_around, GameplayMode, TutorialPointer, TutorialState};
|
||||
pub use self::minimap::MinimapController;
|
||||
use self::misc_tools::{RoutePreview, TrafficRecorder};
|
||||
pub use self::speed::{SpeedControls, SpeedSetting, TimePanel};
|
||||
pub use self::time_warp::TimeWarpScreen;
|
||||
use crate::app::{App, Transition};
|
||||
use crate::common::{tool_panel, CommonState, MinimapController};
|
||||
use crate::common::{tool_panel, CommonState};
|
||||
use crate::debug::DebugMode;
|
||||
use crate::edit::{
|
||||
can_edit_lane, EditMode, LaneEditor, SaveEdits, StopSignEditor, TrafficSignalEditor,
|
||||
@ -32,6 +33,7 @@ use crate::pregame::MainMenu;
|
||||
|
||||
pub mod dashboards;
|
||||
pub mod gameplay;
|
||||
mod minimap;
|
||||
mod misc_tools;
|
||||
mod speed;
|
||||
mod time_warp;
|
||||
|
Loading…
Reference in New Issue
Block a user