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;
|
int screenshotIndex;
|
||||||
PreviewController * activePreview;
|
PreviewController * activePreview;
|
||||||
GameView * gameView;
|
GameView * gameView;
|
||||||
GameModel * gameModel;
|
|
||||||
SearchController * search;
|
SearchController * search;
|
||||||
RenderController * renderOptions;
|
RenderController * renderOptions;
|
||||||
LoginController * loginWindow;
|
LoginController * loginWindow;
|
||||||
@@ -57,6 +56,7 @@ public:
|
|||||||
class SaveOpenCallback;
|
class SaveOpenCallback;
|
||||||
friend class SaveOpenCallback;
|
friend class SaveOpenCallback;
|
||||||
GameController();
|
GameController();
|
||||||
|
GameModel * gameModel;
|
||||||
~GameController();
|
~GameController();
|
||||||
GameView * GetView();
|
GameView * GetView();
|
||||||
|
|
||||||
|
@@ -12,6 +12,7 @@
|
|||||||
#include "interface/Slider.h"
|
#include "interface/Slider.h"
|
||||||
#include "search/Thumbnail.h"
|
#include "search/Thumbnail.h"
|
||||||
#include "simulation/SaveRenderer.h"
|
#include "simulation/SaveRenderer.h"
|
||||||
|
#include "simulation/SimulationData.h"
|
||||||
#include "dialogues/ConfirmPrompt.h"
|
#include "dialogues/ConfirmPrompt.h"
|
||||||
#include "Format.h"
|
#include "Format.h"
|
||||||
#include "QuickOption.h"
|
#include "QuickOption.h"
|
||||||
@@ -1321,6 +1322,8 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
|
|||||||
case 'b':
|
case 'b':
|
||||||
if(ctrl)
|
if(ctrl)
|
||||||
c->SetDecoration();
|
c->SetDecoration();
|
||||||
|
else
|
||||||
|
c->SetActiveMenu(c->gameModel->GetMenuList()[SC_DECO]);
|
||||||
break;
|
break;
|
||||||
case 'y':
|
case 'y':
|
||||||
c->SwitchAir();
|
c->SwitchAir();
|
||||||
|
Reference in New Issue
Block a user