'B' opens deco editor

This commit is contained in:
mniip
2013-01-11 21:27:20 +04:00
parent 9d67dd61e8
commit 269420c6c7
2 changed files with 13 additions and 10 deletions

View File

@@ -36,7 +36,6 @@ private:
int screenshotIndex;
PreviewController * activePreview;
GameView * gameView;
GameModel * gameModel;
SearchController * search;
RenderController * renderOptions;
LoginController * loginWindow;
@@ -57,6 +56,7 @@ public:
class SaveOpenCallback;
friend class SaveOpenCallback;
GameController();
GameModel * gameModel;
~GameController();
GameView * GetView();

View File

@@ -12,6 +12,7 @@
#include "interface/Slider.h"
#include "search/Thumbnail.h"
#include "simulation/SaveRenderer.h"
#include "simulation/SimulationData.h"
#include "dialogues/ConfirmPrompt.h"
#include "Format.h"
#include "QuickOption.h"
@@ -1321,6 +1322,8 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
case 'b':
if(ctrl)
c->SetDecoration();
else
c->SetActiveMenu(c->gameModel->GetMenuList()[SC_DECO]);
break;
case 'y':
c->SwitchAir();