Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/tools/atlas/GameInterface/Handlers/CinemaHandler.cpp
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | BEGIN_COMMAND(SetCinemaPaths) | ||||
} | } | ||||
void Undo() | void Undo() | ||||
{ | { | ||||
SetCurrentPaths(m_oldPaths); | SetCurrentPaths(m_oldPaths); | ||||
} | } | ||||
}; | }; | ||||
END_COMMAND(SetCinemaPaths) | END_COMMAND(SetCinemaPaths) | ||||
BEGIN_COMMAND(SetCinemaPathsDrawing) | |||||
{ | |||||
void Do() | |||||
{ | |||||
if (g_Game && g_Game->GetView() && g_Game->GetView()->GetCinema()) | |||||
g_Game->GetView()->GetCinema()->SetPathsDrawing(msg->drawPaths); | |||||
} | |||||
void Redo() | |||||
{ | |||||
} | |||||
void Undo() | |||||
{ | |||||
} | |||||
}; | |||||
END_COMMAND(SetCinemaPathsDrawing) | |||||
QUERYHANDLER(GetCinemaPaths) | QUERYHANDLER(GetCinemaPaths) | ||||
{ | { | ||||
msg->paths = GetCurrentPaths(); | msg->paths = GetCurrentPaths(); | ||||
} | } | ||||
} | } |
Wildfire Games · Phabricator