summaryrefslogtreecommitdiff
path: root/src/T2WorldSelectDlg.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-05 19:04:06 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-05 19:04:06 +0100
commit5e61c1280c15ab9969b94cd360cafd4a11b2dd30 (patch)
tree1fdb60d771c4351b5aa5dcf1a43376c0558625a4 /src/T2WorldSelectDlg.h
parentc2efba6907fab934a04959b9bb644cf7141cc955 (diff)
downloadt2win-5e61c1280c15ab9969b94cd360cafd4a11b2dd30.tar.gz
t2win-5e61c1280c15ab9969b94cd360cafd4a11b2dd30.zip
matched T2.exe
Diffstat (limited to 'src/T2WorldSelectDlg.h')
-rw-r--r--src/T2WorldSelectDlg.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/T2WorldSelectDlg.h b/src/T2WorldSelectDlg.h
index fcaf1ff..df75a94 100644
--- a/src/T2WorldSelectDlg.h
+++ b/src/T2WorldSelectDlg.h
@@ -1,3 +1,56 @@
#pragma once
#include "common.h"
+#include "T2Dialog.h"
+struct PluginRecord {
+ T2BitImage *preview;
+ T2BitImage *icon;
+ CString *mStr8;
+ CString *mStrC;
+ CString *mStr10;
+ CString *mStr14;
+ CString *mStr18;
+};
+
+class T2WorldSelectDlg : public T2Dialog {
+public:
+ T2WorldSelectDlg();
+ virtual ~T2WorldSelectDlg();
+ void ShowWorldSelectDlg(T2TowerDoc *inDoc, T2PluginLoader *inPluginLoader, BOOL inShowCancelButton);
+ T2PluginSpecifier *GetSelectedPlugin();
+
+protected:
+ virtual BOOL PreCreateWindow(CREATESTRUCT &cs);
+ virtual BOOL OnT2PreEraseBkgnd(CDC *pDC);
+ virtual void OnT2DlgLButtonDown(UINT nFlags, CPoint pt);
+ virtual void OnT2DlgLButtonDblClk(UINT nFlags, CPoint pt);
+ virtual BOOL OnT2DialogCommand(WPARAM inWParam, LPARAM inLParam);
+
+ void GoLeft();
+ void GoRight();
+ void DrawWorldPreview(CDC *pDC);
+ void x432436(CDC *pDC);
+
+ T2TowerDoc *mDocumentAlso;
+ CPalette mPalette;
+ T2BitImage *mArrowButtonImages;
+ T2ImageObj *mImageObj;
+ T2PluginLoader *mPluginLoader;
+ BOOL mShowCancelButton;
+ T2TowerDoc *mDocument;
+ CFont mFont;
+ short *mPal1;
+ short *mPal2;
+ CBitmap mBitmap;
+ CBrush mBrush;
+ PluginRecord *mPlugins;
+ int mPluginCount;
+ int mScrollOffset;
+ int _144;
+ int mSelectedPlugin;
+ CRect mRect1;
+ CRect mRect2;
+ CRect mRect3;
+ CButton *mBackButton;
+ CButton *mNextButton;
+}; \ No newline at end of file