mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 20:12:50 +02:00
'B' opens deco editor
This commit is contained in:
@@ -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();
|
||||
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user