29 #include "../../idlib/precompiled.h"
32 #include "../../sys/win32/rc/AFEditor_resource.h"
75 , m_selfCollision(false)
77 , m_angularFriction(0)
78 , m_contactFriction(0)
79 , m_constraintFriction(0)
81 , m_suspendLinearVelocity(0)
82 , m_suspendAngularVelocity(0)
83 , m_suspendLinearAcceleration(0)
84 , m_suspendAngularAcceleration(0)
88 , m_linearTolerance(0)
89 , m_angularTolerance(0)
93 EnableToolTips(
TRUE );
110 CDialog::DoDataExchange(pDX);
257 CDialog::OnToolHitTest( point, pTI );
262 ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, 0, 0xFFFF, OnToolTipNotify)
263 ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, 0, 0xFFFF, OnToolTipNotify)
315 if (
file &&
file->
bodies.
Num() && MessageBox(
"Apply to all bodies ?",
"Self Collision", MB_YESNO | MB_ICONQUESTION ) == IDYES ) {
326 if (
file &&
file->
bodies.
Num() && MessageBox(
"Apply to all bodies ?",
"Contents", MB_YESNO | MB_ICONQUESTION ) == IDYES ) {
338 if (
file &&
file->
bodies.
Num() && MessageBox(
"Apply to all bodies ?",
"Clip Mask", MB_YESNO | MB_ICONQUESTION ) == IDYES ) {
350 if (
file &&
file->
bodies.
Num() && MessageBox(
"Apply to all bodies ?",
"Linear Friction", MB_YESNO | MB_ICONQUESTION ) == IDYES ) {
363 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
372 if (
file &&
file->
bodies.
Num() && MessageBox(
"Apply to all bodies ?",
"Angular Friction", MB_YESNO | MB_ICONQUESTION ) == IDYES ) {
385 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
394 if (
file &&
file->
bodies.
Num() && MessageBox(
"Apply to all bodies ?",
"Contact Friction", MB_YESNO | MB_ICONQUESTION ) == IDYES ) {
407 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
416 if (
file &&
file->
constraints.
Num() && MessageBox(
"Apply to all constraints ?",
"Constraint Friction", MB_YESNO | MB_ICONQUESTION ) == IDYES ) {
429 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
442 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
BOOL DefaultOnToolTipNotify(const toolTip_t *toolTips, UINT id, NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnEnChangeEditMinimummovetime()
idList< idDeclAF_Constraint * > constraints
float defaultLinearFriction
#define IDC_EDIT_MAXIMUM_MOVE_TIME
afx_msg void OnEnChangeEditLineartolerance()
virtual void AF_UpdateEntities(const char *fileName)
afx_msg void OnEnChangeEditLinearvelocity()
afx_msg void OnEnChangeEditNomovetime()
afx_msg void OnDeltaposSpinContactfriction(NMHDR *pNMHDR, LRESULT *pResult)
static int ContentsFromString(const char *str)
afx_msg void OnEnChangeEditLinearfriction()
afx_msg void OnDeltaposSpinConstraintfriction(NMHDR *pNMHDR, LRESULT *pResult)
float m_suspendAngularAcceleration
CONST PIXELFORMATDESCRIPTOR UINT
float m_suspendAngularVelocity
#define IDC_EDIT_ANGULAR_TOLERANCE
#define IDC_EDIT_LINEARFRICTION
#define IDC_BUTTON_BROWSE_SKIN
afx_msg void OnEnChangeEditLinearacceleration()
#define IDC_CHECK_SELFCOLLISION
void AFDialogReloadFile(void)
afx_msg void OnEnChangeEditConstraintfriction()
#define IDC_EDIT_NO_MOVE_TIME
const char * GetName(void) const
afx_msg void OnEnChangeEditAngularacceleration()
afx_msg void OnDeltaposSpinTotalmass(NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_EDIT_LINEAR_TOLERANCE
#define IDC_EDIT_ANGULARACCELERATION
#define IDC_EDIT_LINEARVELOCITY
afx_msg void OnBnClickedCheckSelfcollision()
afx_msg void OnEnChangeEditTotalmass()
void LoadFile(idDeclAF *af)
virtual int OnToolHitTest(CPoint point, TOOLINFO *pTI) const
afx_msg void OnEnChangeEditClipmask()
float m_constraintFriction
static toolTip_t toolTips[]
virtual ~DialogAFProperties()
#define IDC_SPIN_CONSTRAINTFRICTION
afx_msg void OnEnChangeEditModel()
#define IDC_EDIT_MINIMUM_MOVE_TIME
float defaultContactFriction
#define IDC_SPIN_ANGULARFRICTION
void LoadFile(idDeclAF *af)
int DefaultOnToolHitTest(const toolTip_t *toolTips, const CDialog *dialog, CPoint point, TOOLINFO *pTI)
virtual void DoDataExchange(CDataExchange *pDX)
#define IDC_EDIT_CLIPMASK
#define IDC_EDIT_TOTALMASS
#define IDD_DIALOG_AF_PROPERTIES
static const char * ContentsToString(const int contents, idStr &str)
afx_msg void OnEnChangeEditAngularfriction()
afx_msg void OnDeltaposSpinLinearfriction(NMHDR *pNMHDR, LRESULT *pResult)
DialogAFConstraint * constraintDlg
bool EditControlEnterHit(CEdit *edit)
#define IDC_SPIN_CONTACTFRICTION
void LoadFile(idDeclAF *af)
afx_msg void OnBnClickedButtonBrowseSkin()
#define IDC_EDIT_ANGULARVELOCITY
#define IDC_EDIT_LINEARACCELERATION
afx_msg void OnEnChangeEditAngulartolerance()
float defaultConstraintFriction
void AFDialogSetFileModified(void)
idVec2 suspendAcceleration
idList< idDeclAF_Body * > bodies
afx_msg void OnEnChangeEditMaximummovetime()
#define IDC_EDIT_CONTENTS
afx_msg void OnEnChangeEditAngularvelocity()
afx_msg void OnBnClickedButtonBrowseModel()
#define IDC_EDIT_ANGULARFRICTION
#define IDC_BUTTON_BROWSE_MODEL
#define IDC_SPIN_LINEARFRICTION
#define IDC_SPIN_TOTALMASS
float EditSpinFloat(CEdit *edit, bool up)
const char * c_str(void) const
afx_msg void OnDeltaposSpinAngularfriction(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnEnChangeEditSkin()
#define IDC_EDIT_CONSTRAINTFRICTION
float m_suspendLinearAcceleration
float defaultAngularFriction
#define IDC_EDIT_CONTACTFRICTION
afx_msg void OnEnChangeEditContactfriction()
float EditVerifyFloat(CEdit *edit, bool allowNegative)
float m_suspendLinearVelocity
afx_msg void OnEnChangeEditContents()