| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#include "SoundListCombo.h" |
| 23 |
#include "gr.h" |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
class CWorldTexturesDialog : public CDialog { |
| 29 |
|
| 30 |
public: |
| 31 |
CWorldTexturesDialog(CWnd *pParent = NULL); |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
enum { IDD = IDD_WORLDTEXTURES }; |
| 36 |
CSoundListCombo m_ambient_sound_combo; |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
public: |
| 43 |
virtual BOOL DestroyWindow(); |
| 44 |
|
| 45 |
protected: |
| 46 |
virtual void DoDataExchange(CDataExchange *pDX); |
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
public: |
| 51 |
|
| 52 |
|
| 53 |
afx_msg void OnWtexdlgAddnew(); |
| 54 |
afx_msg void OnPaint(); |
| 55 |
afx_msg void OnNext(); |
| 56 |
afx_msg void OnPrevious(); |
| 57 |
afx_msg void OnSelendokTexList(); |
| 58 |
afx_msg void OnLock(); |
| 59 |
afx_msg void OnCheckin(); |
| 60 |
afx_msg void OnRcsStatus(); |
| 61 |
afx_msg void OnDelete(); |
| 62 |
afx_msg void OnVolatile(); |
| 63 |
afx_msg void OnWater(); |
| 64 |
afx_msg void OnForcefield(); |
| 65 |
afx_msg void OnCheckAnimate(); |
| 66 |
afx_msg void OnLoadBitmap(); |
| 67 |
afx_msg void OnCheckDestroy(); |
| 68 |
afx_msg void OnKillfocusReflect(); |
| 69 |
afx_msg void OnKillfocusSlideu(); |
| 70 |
afx_msg void OnKillfocusSlidev(); |
| 71 |
afx_msg void OnKillfocusDamage(); |
| 72 |
afx_msg void OnKillfocusTexNum(); |
| 73 |
virtual BOOL OnInitDialog(); |
| 74 |
afx_msg void OnTimer(UINT nIDEvent); |
| 75 |
afx_msg void OnLButtonDown(UINT nFlags, CPoint point); |
| 76 |
afx_msg void OnTextureCurrent(); |
| 77 |
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar); |
| 78 |
afx_msg void OnMineTexture(); |
| 79 |
afx_msg void OnObjectTexture(); |
| 80 |
afx_msg void OnTerrainTexture(); |
| 81 |
afx_msg void OnKillfocusBlueLighting(); |
| 82 |
afx_msg void OnKillfocusGreenLighting(); |
| 83 |
afx_msg void OnKillfocusRedLighting(); |
| 84 |
afx_msg BOOL OnHelpInfo(HELPINFO *pHelpInfo); |
| 85 |
afx_msg void OnAddNewSmall(); |
| 86 |
afx_msg void OnAddNewTiny(); |
| 87 |
afx_msg void OnKillfocusAlphaEdit(); |
| 88 |
afx_msg void OnTextureFlyThruCheck(); |
| 89 |
afx_msg void OnPingPong(); |
| 90 |
afx_msg void OnTextureChangeName(); |
| 91 |
afx_msg void OnSelendokDestroyPulldown(); |
| 92 |
afx_msg void OnSaturate(); |
| 93 |
afx_msg void OnOverride(); |
| 94 |
afx_msg void OnSaveAsTga(); |
| 95 |
afx_msg void OnConvertToNormal(); |
| 96 |
afx_msg void OnConvertToSmall(); |
| 97 |
afx_msg void OnConvertToTiny(); |
| 98 |
afx_msg void OnKillfocusSpeedEdit(); |
| 99 |
afx_msg void OnImportBump(); |
| 100 |
afx_msg void OnGenerateOmni(); |
| 101 |
afx_msg void OnSrcBump(); |
| 102 |
afx_msg void OnBump1(); |
| 103 |
afx_msg void OnBump2(); |
| 104 |
afx_msg void OnBump3(); |
| 105 |
afx_msg void OnBump4(); |
| 106 |
afx_msg void OnMetalCheck(); |
| 107 |
afx_msg void OnMarbleCheck(); |
| 108 |
afx_msg void OnPlasticCheck(); |
| 109 |
afx_msg void OnEffectTexture(); |
| 110 |
afx_msg void OnHudCockpitTexture(); |
| 111 |
afx_msg void OnLightTexture(); |
| 112 |
afx_msg void OnProceduralCheck(); |
| 113 |
afx_msg void OnProceduralButton(); |
| 114 |
afx_msg void OnWaterProceduralCheck(); |
| 115 |
afx_msg void OnForceLightmaps(); |
| 116 |
afx_msg void OnCoronaA(); |
| 117 |
afx_msg void OnCoronaB(); |
| 118 |
afx_msg void OnCoronaC(); |
| 119 |
afx_msg void OnCoronaD(); |
| 120 |
afx_msg void OnMultichecktex(); |
| 121 |
afx_msg void OnImport4444(); |
| 122 |
afx_msg void OnSaturateLightmap(); |
| 123 |
afx_msg void OnAddNewHuge(); |
| 124 |
afx_msg void OnLavaCheckbox(); |
| 125 |
afx_msg void OnRubbleCheckbox(); |
| 126 |
afx_msg void OnSelendokTextureAmbientSoundPulldown(); |
| 127 |
afx_msg void OnKillfocusTextureAmbientSoundVolume(); |
| 128 |
afx_msg void OnSmoothSpecCheck(); |
| 129 |
afx_msg void OnAmbientSoundSelect(); |
| 130 |
afx_msg void OnCheckBreakable(); |
| 131 |
|
| 132 |
DECLARE_MESSAGE_MAP() |
| 133 |
|
| 134 |
private: |
| 135 |
void UpdateDialog(void); |
| 136 |
void UpdateTextureViews(int); |
| 137 |
void SaveTexturesOnClose(void); |
| 138 |
void TextureListDown(int rows); |
| 139 |
void TextureListUp(int rows); |
| 140 |
int LoadITLFile(char *filename, int type); |
| 141 |
void DrawSwatch(int handle, float r, float g, float b); |
| 142 |
void ChangeSize(int w, int h); |
| 143 |
|
| 144 |
private: |
| 145 |
grHardwareSurface m_TextureSurf; |
| 146 |
int m_TexStart; |
| 147 |
int m_TexListPos; |
| 148 |
int m_TexPageLen; |
| 149 |
int m_bumpmap; |
| 150 |
bool m_RedrawListbox; |
| 151 |
int m_CheckX, m_CheckY, m_CheckForTextureList; |
| 152 |
}; |