Changeset View
Changeset View
Standalone View
Standalone View
source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.cpp
Show First 20 Lines • Show All 605 Lines • ▼ Show 20 Lines | void MapSidebar::OnSimPlay(wxCommandEvent& event) | ||||
{ | { | ||||
speed = 0.125f; | speed = 0.125f; | ||||
newState = SimPlayingSlow; | newState = SimPlayingSlow; | ||||
} | } | ||||
if (m_SimState == SimInactive) | if (m_SimState == SimInactive) | ||||
{ | { | ||||
// Force update of player settings | // Force update of player settings | ||||
POST_MESSAGE(LoadPlayerSettings, (false)); | POST_MESSAGE(ParsePlayerSettings, (false)); | ||||
POST_MESSAGE(SimStateSave, (L"default")); | POST_MESSAGE(SimStateSave, (L"default")); | ||||
POST_MESSAGE(GuiSwitchPage, (L"page_session.xml")); | POST_MESSAGE(GuiSwitchPage, (L"page_session.xml")); | ||||
POST_MESSAGE(SimPlay, (speed, true)); | POST_MESSAGE(SimPlay, (speed, true)); | ||||
m_SimState = newState; | m_SimState = newState; | ||||
} | } | ||||
else // paused or already playing at a different speed | else // paused or already playing at a different speed | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator