X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMapState.cpp;h=af156304b9412c6523e7aec39f7b0547e6fadd3f;hb=350055a7ff27c74882aff8a4d6af2014782f830b;hp=5ec95071963cbfccac3f3920b3ffc0c1ca56343d;hpb=0bbc2eda56eba3ea195c2043370ff4d3fd29ca79;p=l2e.git diff --git a/src/map/MapState.cpp b/src/map/MapState.cpp index 5ec9507..af15630 100644 --- a/src/map/MapState.cpp +++ b/src/map/MapState.cpp @@ -17,6 +17,7 @@ #include "../common/GameConfig.h" #include "../common/GameState.h" #include "../graphics/ColorFade.h" +#include "../menu/PartyMenu.h" #include @@ -26,6 +27,7 @@ using battle::BattleState; using common::GameConfig; using geometry::Vector; using graphics::ColorFade; +using menu::PartyMenu; namespace map { @@ -69,6 +71,11 @@ void MapState::OnResize(int width, int height) { void MapState::HandleEvents(const Input &input) { + if (input.JustPressed(Input::ACTION_X)) { + Ctrl().PushState(new PartyMenu(game)); + return; + } + if (!controlled) return; if (input.IsDown(Input::PAD_UP)) {