29 #include "../../idlib/precompiled.h"
41 static char THIS_FILE[] = __FILE__;
64 CDialogBar::DoDataExchange(pDX);
97 void CTextureBar::OnDeltaposSpinHshift(NMHDR* pNMHDR, LRESULT* pResult)
99 NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR;
102 if (pNMUpDown->iDelta < 0)
103 Select_ShiftTexture(abs(g_qeglobals.d_savedinfo.m_nTextureTweak), 0);
105 Select_ShiftTexture(-abs(g_qeglobals.d_savedinfo.m_nTextureTweak), 0);
106 GetSurfaceAttributes();
111 NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR;
115 if (pNMUpDown->iDelta < 0)
116 Select_ShiftTexture(0, abs(g_qeglobals.d_savedinfo.m_nTextureTweak));
118 Select_ShiftTexture(0, -abs(g_qeglobals.d_savedinfo.m_nTextureTweak));
124 NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR;
128 if (pNMUpDown->iDelta < 0)
129 Select_ScaleTexture((
float)abs(g_qeglobals.d_savedinfo.m_nTextureTweak),0);
131 Select_ScaleTexture((
float)-abs(g_qeglobals.d_savedinfo.m_nTextureTweak),0);
137 NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR;
141 if (pNMUpDown->iDelta < 0)
142 Select_ScaleTexture(0, (
float)abs(g_qeglobals.d_savedinfo.m_nTextureTweak));
144 Select_ScaleTexture(0, (
float)-abs(g_qeglobals.d_savedinfo.m_nTextureTweak));
150 NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR;
153 if (pNMUpDown->iDelta < 0)
169 if (CDialogBar::OnCreate(lpCreateStruct) == -1)
200 if (g_qeglobals.m_bBrushPrimitMode)
202 common->
Printf(
"Warning : brush primitive mode not implemented in CTextureBar");
206 texdef_t* pt = &selFace->texdef;
void WINAPI Sys_UpdateWindows(int nBits)
afx_msg void OnDeltaposSpinRotate(NMHDR *pNMHDR, LRESULT *pResult)
CSpinButtonCtrl m_spinVScale
afx_msg void OnDeltaposSpinHScale(NMHDR *pNMHDR, LRESULT *pResult)
void GetSurfaceAttributes()
CSpinButtonCtrl m_spinHScale
afx_msg void OnSelectionPrint()
#define ID_SELECTION_PRINT
afx_msg void OnBtnApplytexturestuff()
void SetSurfaceAttributes()
#define IDC_EDIT_ROTATEAMT
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDeltaposSpinVshift(NMHDR *pNMHDR, LRESULT *pResult)
void Select_RotateTexture(float amt, bool absolute)
CPtrArray & g_ptrSelectedFaces
CSpinButtonCtrl m_spinHShift
virtual void Printf(const char *fmt,...) id_attribute((format(printf
virtual void DoDataExchange(CDataExchange *pDX)
CSpinButtonCtrl m_spinVShift
#define IDC_BTN_APPLYTEXTURESTUFF
afx_msg void OnDeltaposSpinVScale(NMHDR *pNMHDR, LRESULT *pResult)
CSpinButtonCtrl m_spinRotate