summaryrefslogtreecommitdiff
path: root/src/T2WorldSelectDlg.h
blob: df75a942bc9799cd34a49a49fddb9d9e9b9ae466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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;
};