summaryrefslogtreecommitdiff
path: root/src/T2NewDlg.h
blob: caef686aecbbec04dd4c8814986d83a2ac5d6f2c (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#pragma once
#include "common.h"
#include "resource.h"

struct PluginRecord {
    T2BitImage *preview;
    T2BitImage *icon;
    CString *mStr8;
    CString *mStrC;
    CString *mStr10;
    void *_14;
    CString *mStr18;
};

class T2NewDlg : public CFrameWnd {
protected:
    T2NewDlg();
    DECLARE_DYNCREATE(T2NewDlg)

public:
    virtual ~T2NewDlg();
    void Setup(T2TowerDoc *inDoc, T2PluginLoader *inPluginLoader, BOOL inShowCancelButton);
    T2PluginSpecifier *GetSelectedPlugin();

    //{{AFX_VIRTUAL(T2NewDlg)
    public:
    virtual BOOL PreTranslateMessage(MSG *pMsg);
    protected:
    virtual BOOL PreCreateWindow(CREATESTRUCT &cs);
    //}}AFX_VIRTUAL

    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;

protected:
    //{{AFX_MSG(T2NewDlg)
    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);
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()
};