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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
|
/*
* 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/>.
*/
// WorldTexturesDialog.h : header file
//
#include "SoundListCombo.h"
#include "gr.h"
/////////////////////////////////////////////////////////////////////////////
// CWorldTexturesDialog dialog
class CWorldTexturesDialog : public CDialog {
// Construction
public:
CWorldTexturesDialog(CWnd *pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CWorldTexturesDialog)
enum { IDD = IDD_WORLDTEXTURES };
CSoundListCombo m_ambient_sound_combo;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWorldTexturesDialog)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
public:
// Generated message map functions
//{{AFX_MSG(CWorldTexturesDialog)
afx_msg void OnWtexdlgAddnew();
afx_msg void OnPaint();
afx_msg void OnNext();
afx_msg void OnPrevious();
afx_msg void OnSelendokTexList();
afx_msg void OnLock();
afx_msg void OnCheckin();
afx_msg void OnRcsStatus();
afx_msg void OnDelete();
afx_msg void OnVolatile();
afx_msg void OnWater();
afx_msg void OnForcefield();
afx_msg void OnCheckAnimate();
afx_msg void OnLoadBitmap();
afx_msg void OnCheckDestroy();
afx_msg void OnKillfocusReflect();
afx_msg void OnKillfocusSlideu();
afx_msg void OnKillfocusSlidev();
afx_msg void OnKillfocusDamage();
afx_msg void OnKillfocusTexNum();
virtual BOOL OnInitDialog();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnTextureCurrent();
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar);
afx_msg void OnMineTexture();
afx_msg void OnObjectTexture();
afx_msg void OnTerrainTexture();
afx_msg void OnKillfocusBlueLighting();
afx_msg void OnKillfocusGreenLighting();
afx_msg void OnKillfocusRedLighting();
afx_msg BOOL OnHelpInfo(HELPINFO *pHelpInfo);
afx_msg void OnAddNewSmall();
afx_msg void OnAddNewTiny();
afx_msg void OnKillfocusAlphaEdit();
afx_msg void OnTextureFlyThruCheck();
afx_msg void OnPingPong();
afx_msg void OnTextureChangeName();
afx_msg void OnSelendokDestroyPulldown();
afx_msg void OnSaturate();
afx_msg void OnOverride();
afx_msg void OnSaveAsTga();
afx_msg void OnConvertToNormal();
afx_msg void OnConvertToSmall();
afx_msg void OnConvertToTiny();
afx_msg void OnKillfocusSpeedEdit();
afx_msg void OnImportBump();
afx_msg void OnGenerateOmni();
afx_msg void OnSrcBump();
afx_msg void OnBump1();
afx_msg void OnBump2();
afx_msg void OnBump3();
afx_msg void OnBump4();
afx_msg void OnMetalCheck();
afx_msg void OnMarbleCheck();
afx_msg void OnPlasticCheck();
afx_msg void OnEffectTexture();
afx_msg void OnHudCockpitTexture();
afx_msg void OnLightTexture();
afx_msg void OnProceduralCheck();
afx_msg void OnProceduralButton();
afx_msg void OnWaterProceduralCheck();
afx_msg void OnForceLightmaps();
afx_msg void OnCoronaA();
afx_msg void OnCoronaB();
afx_msg void OnCoronaC();
afx_msg void OnCoronaD();
afx_msg void OnMultichecktex();
afx_msg void OnImport4444();
afx_msg void OnSaturateLightmap();
afx_msg void OnAddNewHuge();
afx_msg void OnLavaCheckbox();
afx_msg void OnRubbleCheckbox();
afx_msg void OnSelendokTextureAmbientSoundPulldown();
afx_msg void OnKillfocusTextureAmbientSoundVolume();
afx_msg void OnSmoothSpecCheck();
afx_msg void OnAmbientSoundSelect();
afx_msg void OnCheckBreakable();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void UpdateDialog(void);
void UpdateTextureViews(int);
void SaveTexturesOnClose(void);
void TextureListDown(int rows);
void TextureListUp(int rows);
int LoadITLFile(char *filename, int type);
void DrawSwatch(int handle, float r, float g, float b);
void ChangeSize(int w, int h);
private:
grHardwareSurface m_TextureSurf;
int m_TexStart; // Start of texture list.
int m_TexListPos; // Current position of textture list.
int m_TexPageLen; // length of one view of textures in listbox
int m_bumpmap;
bool m_RedrawListbox;
int m_CheckX, m_CheckY, m_CheckForTextureList;
};
|