diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-07-05 19:04:06 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-07-05 19:04:06 +0100 |
commit | 5e61c1280c15ab9969b94cd360cafd4a11b2dd30 (patch) | |
tree | 1fdb60d771c4351b5aa5dcf1a43376c0558625a4 /src/T2NewDlg.h | |
parent | c2efba6907fab934a04959b9bb644cf7141cc955 (diff) | |
download | t2win-5e61c1280c15ab9969b94cd360cafd4a11b2dd30.tar.gz t2win-5e61c1280c15ab9969b94cd360cafd4a11b2dd30.zip |
matched T2.exe
Diffstat (limited to '')
-rw-r--r-- | src/T2NewDlg.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/T2NewDlg.h b/src/T2NewDlg.h index fcaf1ff..5412231 100644 --- a/src/T2NewDlg.h +++ b/src/T2NewDlg.h @@ -1,3 +1,62 @@ #pragma once #include "common.h" +struct PluginRecord { + T2BitImage *preview; + T2BitImage *icon; + CString *mStr8; + CString *mStrC; + CString *mStr10; + void *_14; + CString *mStr18; +}; + +class T2NewDlg : public CFrameWnd { + DECLARE_DYNCREATE(T2NewDlg) + DECLARE_MESSAGE_MAP() + +public: + T2NewDlg(); + virtual ~T2NewDlg(); + virtual BOOL PreTranslateMessage(MSG *pMsg); + void Setup(T2TowerDoc *inDoc, T2PluginLoader *inPluginLoader, BOOL inShowCancelButton); + T2PluginSpecifier *GetSelectedPlugin(); + +protected: + virtual BOOL PreCreateWindow(CREATESTRUCT &cs); + + afx_msg void OnClose(); + afx_msg void OnTimer(UINT nIDEvent); + afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); + afx_msg BOOL OnQueryNewPalette(); + afx_msg void OnCommandOK(); + afx_msg void OnCommandCancel(); + afx_msg void OnCommand106(); + afx_msg void OnCommand107(); + afx_msg BOOL OnEraseBkgnd(CDC *pDC); + void GoLeft(); + void GoRight(); + void DrawWorldPreview(CDC *pDC); + + T2PluginLoader *mPluginLoader; + BOOL mShowCancelButton; + T2TowerDoc *mDocument; + CFont mFont; + CPalette mPalette; + short *mPal1; + short *mPal2; + CBitmap mBitmap; + CBrush mBrush; + PluginRecord *mPlugins; + int mPluginCount; + int mScrollOffset; + int _100; + int mSelectedPlugin; + CRect mRect1; + CRect mRect2; + CRect mRect3; + CButton mButton1; + CButton mButton2; + CButton mButton3; + CButton mButton4; +}; |