mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-17 19:23:51 +02:00
Script editor now is in a seperate tab
This commit is contained in:
@@ -42,6 +42,7 @@ If you have questions concerning this license or the applicable additional terms
|
||||
#include <afxcmn.h>
|
||||
|
||||
#include "ModelViewDock.h"
|
||||
#include "../script/DialogScriptEditor.h"
|
||||
|
||||
class CXYWnd;
|
||||
class CZWnd;
|
||||
@@ -211,7 +212,7 @@ protected:
|
||||
// CXYDockWnd
|
||||
//
|
||||
// Owns the embedded XY editor layout and the new docked game preview:
|
||||
// [ tabs: XY | Game ]
|
||||
// [ tabs: XY | Game | Model View | Script Editor ]
|
||||
//
|
||||
// XY tab:
|
||||
// [ menu bar ]
|
||||
@@ -222,6 +223,11 @@ protected:
|
||||
// [ game command strip / fill controls ]
|
||||
// [ hosted game HWND ]
|
||||
//
|
||||
// Script Editor tab:
|
||||
// [ dark command strip ]
|
||||
// [ syntax/intellisense editor ]
|
||||
// [ status strip ]
|
||||
//
|
||||
// The docked Z window starts at 5% of the MDI container width. The divider in
|
||||
// the MDI client can be dragged to resize the Z and XY top panes interactively.
|
||||
//=============================================================================
|
||||
@@ -264,23 +270,31 @@ public:
|
||||
HWND GetDockedGameWindow() const;
|
||||
BOOL IsGameTabActive() const;
|
||||
BOOL IsModelViewTabActive() const;
|
||||
BOOL IsScriptEditorTabActive() const;
|
||||
void SelectXYTab();
|
||||
void SelectGameTab();
|
||||
void SelectModelViewTab();
|
||||
void SelectScriptEditorTab();
|
||||
void FocusGameWindow();
|
||||
void FocusXYWindow();
|
||||
void FocusModelView();
|
||||
void FocusScriptEditor();
|
||||
DialogScriptEditor *GetScriptEditor();
|
||||
void OpenScriptFile(const char *fileName);
|
||||
virtual BOOL PreTranslateMessage(MSG *pMsg);
|
||||
protected:
|
||||
enum {
|
||||
XYDOCK_TAB_XY = 0,
|
||||
XYDOCK_TAB_GAME = 1,
|
||||
XYDOCK_TAB_MODELVIEW = 2
|
||||
XYDOCK_TAB_MODELVIEW = 2,
|
||||
XYDOCK_TAB_SCRIPTEDITOR = 3
|
||||
};
|
||||
|
||||
CTabCtrl m_wndTabs;
|
||||
CWnd m_wndXYPage;
|
||||
CGameDockWnd m_wndGamePage;
|
||||
CModelViewDockWnd m_wndModelPage;
|
||||
DialogScriptEditor m_wndScriptPage;
|
||||
CXYMenuBar m_wndMenuBar;
|
||||
CXYMDIContainerWnd m_wndMDIContainer;
|
||||
CToolBar *m_pToolBar;
|
||||
|
||||
Reference in New Issue
Block a user