mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 19:55:23 +00:00
102 lines
3.1 KiB
C++
102 lines
3.1 KiB
C++
/*
|
|
* Descent 3
|
|
* Copyright (C) 2024 Parallax Software
|
|
*
|
|
* 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 <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#if !defined(AFX_PROCEDURALDIALOG_H__F9603B01_1586_11D2_9798_006097D5770E__INCLUDED_)
|
|
#define AFX_PROCEDURALDIALOG_H__F9603B01_1586_11D2_9798_006097D5770E__INCLUDED_
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
// ProceduralDialog.h : header file
|
|
//
|
|
|
|
#include "gr.h"
|
|
#include "gametexture.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CProceduralDialog dialog
|
|
|
|
class CProceduralDialog : public CDialog {
|
|
// Construction
|
|
public:
|
|
CProceduralDialog(CWnd *pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CProceduralDialog)
|
|
enum { IDD = IDD_PROCEDURAL_DIALOG };
|
|
CSliderCtrl m_heat_slider;
|
|
CSliderCtrl m_freq_slider;
|
|
CSliderCtrl m_size_slider;
|
|
CSliderCtrl m_speed_slider;
|
|
//}}AFX_DATA
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CProceduralDialog)
|
|
public:
|
|
virtual BOOL DestroyWindow();
|
|
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CProceduralDialog)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnTimer(UINT nIDEvent);
|
|
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 void OnClearProcedurals();
|
|
afx_msg void OnSelendokProceduralPulldown();
|
|
afx_msg void OnKillfocusProcRedEdit();
|
|
afx_msg void OnProceduralUpdate();
|
|
afx_msg void OnImportPalette();
|
|
afx_msg void OnDefaultPalette();
|
|
afx_msg void OnCopyProcedural();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
private:
|
|
void UpdateDialog(void);
|
|
void UpdateProcView(void);
|
|
void MakeCurColor(void);
|
|
void HarvestValue(int, uint8_t *);
|
|
void PrintValue(int, uint8_t);
|
|
static_proc_element *CreateElement(int, int);
|
|
|
|
private:
|
|
grHardwareSurface m_TextureSurf;
|
|
grHardwareSurface m_PaletteSurf;
|
|
int m_window_bitmap;
|
|
int m_palette_bitmap;
|
|
int m_button_down;
|
|
int m_proc_type;
|
|
int m_save_x, m_save_y;
|
|
uint8_t m_cur_color;
|
|
uint8_t m_speed, m_saturate, m_frequency;
|
|
uint8_t m_size;
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_PROCEDURALDIALOG_H__F9603B01_1586_11D2_9798_006097D5770E__INCLUDED_)
|