summaryrefslogtreecommitdiff
path: root/src/T2TowerMainView.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-09 20:59:16 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-09 20:59:16 +0100
commitc920fe38a19013b99f3f74e48da9724fb053c212 (patch)
tree6bb036fd3f61b85daceb26f74378eadcdd977db1 /src/T2TowerMainView.cpp
parent96a63139221587c6be9659c1e07eacd3a8e7f048 (diff)
downloadt2win-c920fe38a19013b99f3f74e48da9724fb053c212.tar.gz
t2win-c920fe38a19013b99f3f74e48da9724fb053c212.zip
support building from VC++ IDE, add resources
Diffstat (limited to '')
-rw-r--r--src/T2TowerMainView.cpp76
1 files changed, 40 insertions, 36 deletions
diff --git a/src/T2TowerMainView.cpp b/src/T2TowerMainView.cpp
index 64b2f37..18a2daa 100644
--- a/src/T2TowerMainView.cpp
+++ b/src/T2TowerMainView.cpp
@@ -1,28 +1,30 @@
+#include "StdAfx.h"
#include "DbgEquipInfo.h"
-#include "GlobalFunc.h"
+#include "T2DLL/GlobalFunc.h"
#include "T2.h"
-#include "T2BitImage.h"
-#include "T2CrossEquipArray.h"
-#include "T2DLL.h"
-#include "T2FInfoAreaIterator.h"
-#include "T2FloorInfo.h"
+#include "T2DLL/T2BitImage.h"
+#include "T2DLL/T2CrossEquipArray.h"
+#include "T2DLL/T2DLL.h"
+#include "T2DLL/T2FInfoAreaIterator.h"
+#include "T2DLL/T2FloorInfo.h"
#include "T2MainWindow.h"
-#include "T2Mover.h"
-#include "T2MoverArray.h"
-#include "T2MoverArrayList.h"
-#include "T2Request.h"
-#include "T2Tenant.h"
-#include "T2TenantArray.h"
-#include "T2TenantArrayList.h"
-#include "T2ToolDef.h"
-#include "T2ToolWindow.h"
+#include "T2DLL/T2Mover.h"
+#include "T2DLL/T2MoverArray.h"
+#include "T2DLL/T2MoverArrayList.h"
+#include "T2DLL/T2Request.h"
+#include "T2DLL/T2Tenant.h"
+#include "T2DLL/T2TenantArray.h"
+#include "T2DLL/T2TenantArrayList.h"
+#include "T2DLL/T2ToolDef.h"
+#include "T2DLL/T2ToolWindow.h"
#include "T2TowerDoc.h"
#include "T2TowerMainView.h"
-#include "T2WorldDef.h"
-#include "URect.h"
-#include "UT2BkgndInfo.h"
-#include "UT2Coordinate.h"
-#include "UT2Utils.h"
+#include "T2DLL/T2WorldDef.h"
+#include "T2DLL/URect.h"
+#include "T2DLL/UT2BkgndInfo.h"
+#include "T2DLL/UT2Coordinate.h"
+#include "T2DLL/UT2Utils.h"
+#include "resource.h"
#ifdef _DEBUG
#define new DEBUG_NEW
@@ -34,32 +36,34 @@ static char THIS_FILE[] = __FILE__;
IMPLEMENT_DYNCREATE(T2TowerMainView, CView)
BEGIN_MESSAGE_MAP(T2TowerMainView, CView)
+ //{{AFX_MSG_MAP(T2TowerMainView)
ON_WM_CREATE()
ON_WM_SIZE()
- ON_COMMAND(0x8006, OnDebugNormalDisplay)
- ON_UPDATE_COMMAND_UI(0x8006, OnUpdateDebugNormalDisplay)
- ON_COMMAND(0x8008, OnDebugBkgndInfo)
- ON_UPDATE_COMMAND_UI(0x8008, OnUpdateDebugBkgndInfo)
- ON_COMMAND(0x8007, OnDebugFloorInfoTenant)
- ON_UPDATE_COMMAND_UI(0x8007, OnUpdateDebugFloorInfoTenant)
+ ON_COMMAND(ID_DBG_NORMAL_DISPLAY, OnDebugNormalDisplay)
+ ON_UPDATE_COMMAND_UI(ID_DBG_NORMAL_DISPLAY, OnUpdateDebugNormalDisplay)
+ ON_COMMAND(ID_DBG_BKGNDINFO, OnDebugBkgndInfo)
+ ON_UPDATE_COMMAND_UI(ID_DBG_BKGNDINFO, OnUpdateDebugBkgndInfo)
+ ON_COMMAND(ID_DBG_FLOORINFO_TENANT, OnDebugFloorInfoTenant)
+ ON_UPDATE_COMMAND_UI(ID_DBG_FLOORINFO_TENANT, OnUpdateDebugFloorInfoTenant)
ON_WM_LBUTTONDOWN()
ON_WM_MOUSEMOVE()
ON_WM_LBUTTONUP()
- ON_UPDATE_COMMAND_UI(0x800B, OnUpdateDebugGrid)
- ON_COMMAND(0x800B, OnDebugGrid)
- ON_UPDATE_COMMAND_UI(0x800C, OnUpdateDebugFloorInfoMover)
- ON_COMMAND(0x800C, OnDebugFloorInfoMover)
+ ON_UPDATE_COMMAND_UI(ID_DBG_GRID, OnUpdateDebugGrid)
+ ON_COMMAND(ID_DBG_GRID, OnDebugGrid)
+ ON_UPDATE_COMMAND_UI(ID_DBG_FLOORINFO_MOVER, OnUpdateDebugFloorInfoMover)
+ ON_COMMAND(ID_DBG_FLOORINFO_MOVER, OnDebugFloorInfoMover)
ON_WM_RBUTTONDOWN()
- ON_COMMAND(0x800E, OnDebugFloorInfoRequest)
- ON_UPDATE_COMMAND_UI(0x800E, OnUpdateDebugFloorInfoRequest)
- ON_UPDATE_COMMAND_UI(0x800F, OnUpdateDebugDisplaySpeedMeasuring)
- ON_COMMAND(0x800F, OnDebugDisplaySpeedMeasuring)
- ON_UPDATE_COMMAND_UI(0x8017, OnUpdateDebugOffscreenSpeedMeasuring)
- ON_COMMAND(0x8017, OnDebugOffscreenSpeedMeasuring)
+ ON_COMMAND(ID_DBG_FLOORINFO_REQUEST, OnDebugFloorInfoRequest)
+ ON_UPDATE_COMMAND_UI(ID_DBG_FLOORINFO_REQUEST, OnUpdateDebugFloorInfoRequest)
+ ON_UPDATE_COMMAND_UI(ID_DBG_DISPLAY_SPEED_MEASURING, OnUpdateDebugDisplaySpeedMeasuring)
+ ON_COMMAND(ID_DBG_DISPLAY_SPEED_MEASURING, OnDebugDisplaySpeedMeasuring)
+ ON_UPDATE_COMMAND_UI(ID_DBG_OFFSCR_SPEED_MEASURING, OnUpdateDebugOffscreenSpeedMeasuring)
+ ON_COMMAND(ID_DBG_OFFSCR_SPEED_MEASURING, OnDebugOffscreenSpeedMeasuring)
ON_WM_RBUTTONUP()
ON_WM_TIMER()
ON_WM_DESTROY()
ON_COMMAND_RANGE(10000, 10010, OnCommand10000to10010)
+ //}}AFX_MSG_MAP
END_MESSAGE_MAP()
T2TowerMainView::T2TowerMainView() {