CNC_TS_and_RA2_Mission_Editor/MissionEditor/TileSetBrowserView.h
brbarnesEA a547a31a37 TS_RA2_Mission_Editor_sourcecode_23.02.2023_1
TS_RA2_Mission_Editor_sourcecode_23.02.2023_1
2024-03-05 11:56:45 -08:00

90 lines
2.8 KiB
C++

/*
FinalSun/FinalAlert 2 Mission Editor
Copyright (C) 1999-2024 Electronic Arts, Inc.
Authored by Matthias Wagner
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#if !defined(AFX_TILESETBROWSERVIEW_H__3DD92021_7D37_11D4_9C87_97337B61A44A__INCLUDED_)
#define AFX_TILESETBROWSERVIEW_H__3DD92021_7D37_11D4_9C87_97337B61A44A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TileSetBrowserView.h : Header-Datei
//
/////////////////////////////////////////////////////////////////////////////
// Ansicht CTileSetBrowserView
class CTileSetBrowserView : public CScrollView
{
public:
CTileSetBrowserView(); // Dynamische Erstellung verwendet geschützten Konstruktor
DECLARE_DYNCREATE(CTileSetBrowserView)
// Attribute
public:
// Operationen
public:
// Überschreibungen
// Vom Klassen-Assistenten generierte virtuelle Funktionsüberschreibungen
//{{AFX_VIRTUAL(CTileSetBrowserView)
protected:
virtual void OnDraw(CDC* pDC); // Überschrieben zum Zeichnen dieser Ansicht
virtual void OnInitialUpdate(); // Zum ersten Mal nach der Konstruktion
virtual void PostNcDestroy();
//}}AFX_VIRTUAL
// Implementierung
public:
void SetOverlay(DWORD dwID);
int m_currentOverlay;
int GetAddedHeight(DWORD dwID);
int m_bottom_needed;
void DrawIt();
LPDIRECTDRAWSURFACE4* m_lpDDS;
void SetTileSet(DWORD dwTileSet, BOOL bOnlyRedraw=FALSE);
DWORD GetTileID(DWORD dwTileSet, DWORD dwType);
int m_currentTileSet;
virtual ~CTileSetBrowserView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generierte Nachrichtenzuordnungsfunktionen
//{{AFX_MSG(CTileSetBrowserView)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
int m_CurrentMode;
LPDIRECTDRAWSURFACE4 RenderTile(DWORD dwID);
int m_tilecount;
int m_tile_height;
int m_tile_width;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ fügt unmittelbar vor der vorhergehenden Zeile zusätzliche Deklarationen ein.
#endif // AFX_TILESETBROWSERVIEW_H__3DD92021_7D37_11D4_9C87_97337B61A44A__INCLUDED_