Skip to content

Commit

Permalink
A couple PR tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshEngebretson committed Jun 16, 2017
1 parent 5fc049f commit 8ba2cc3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions Script/AtomicEditor/ui/Shortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@ class Shortcuts extends Atomic.ScriptObject {

if (!Atomic.ui.focusedWidget && !this.cmdKeyDown()) {

if (ev.key == Atomic.KEY_ESCAPE) {

if (Atomic.ui.consoleIsVisible) {
Atomic.ui.showConsole(false);
}
}

if (ev.key == Atomic.KEY_W) {
this.invokeGizmoEditModeChanged(Editor.EditMode.EDIT_MOVE);
} else if (ev.key == Atomic.KEY_E) {
Expand Down
5 changes: 3 additions & 2 deletions Source/Atomic/Resource/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@
#include <libsquish/squish.h>
#endif

// ATOMIC END

#include <STB/stb_image.h>
#include <STB/stb_image_write.h>

// ATOMIC END


#include "../DebugNew.h"

#ifndef MAKEFOURCC
Expand Down
3 changes: 3 additions & 0 deletions Source/Atomic/UI/UI.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ class ATOMIC_API UI : public Object, private tb::TBWidgetListener
void ShowConsole(bool value);
void ToggleConsole();

/// Get whether the console is currently visible
bool GetConsoleIsVisible() const { return consoleVisible_; }

bool GetFocusedWidget();

/// request exit on next frame
Expand Down

0 comments on commit 8ba2cc3

Please sign in to comment.