mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-20 22:33:43 -04:00
github publish
This commit is contained in:
commit
506e23bf32
542 changed files with 120675 additions and 0 deletions
61
mapedit/ColEdit/PaletteEditor.h
Normal file
61
mapedit/ColEdit/PaletteEditor.h
Normal file
|
@ -0,0 +1,61 @@
|
|||
#if !defined(AFX_PALETTEEDITOR_H__45E6ACB6_CCFC_47F4_906C_BF0D2E76E2FE__INCLUDED_)
|
||||
#define AFX_PALETTEEDITOR_H__45E6ACB6_CCFC_47F4_906C_BF0D2E76E2FE__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// PaletteEditor.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPaletteEditor window
|
||||
|
||||
class CPaletteEditor : public CStatic
|
||||
{
|
||||
// Construction
|
||||
char *_palette;
|
||||
bool _selection[256];
|
||||
bool _drawsel;
|
||||
public:
|
||||
CPaletteEditor();
|
||||
|
||||
void SetPalette(char *pal) {_palette=pal;}
|
||||
bool IsSelected(int p) {return _selection[p];}
|
||||
int GetR(int p) {return _palette[p*3];}
|
||||
int GetG(int p) {return _palette[p*3+1];}
|
||||
int GetB(int p) {return _palette[p*3+2];}
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
|
||||
// Operations
|
||||
public:
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CPaletteEditor)
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
int IndexFromPoint(CPoint pt);
|
||||
virtual ~CPaletteEditor();
|
||||
|
||||
// Generated message map functions
|
||||
protected:
|
||||
//{{AFX_MSG(CPaletteEditor)
|
||||
afx_msg void OnPaint();
|
||||
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
|
||||
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
||||
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
||||
//}}AFX_MSG
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_PALETTEEDITOR_H__45E6ACB6_CCFC_47F4_906C_BF0D2E76E2FE__INCLUDED_)
|
Loading…
Add table
Add a link
Reference in a new issue