dlgtoolsparticles.cpp
来自「混乱竞技场的全套代码,客户端资源可以网上搜」· C++ 代码 · 共 933 行 · 第 1/2 页
CPP
933 行
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnChangeSizeStart()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnChangeSizeVar()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnChangeSizeEnd()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnChangeAlphaStart()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnChangeAlphaVar()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnChangeAlphaEnd()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnChangeColorRedStart()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnChangeColorRedVar()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnChangeColorRedEnd()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnChangeColorGreenStart()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnChangeColorGreenVar()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnChangeColorGreenEnd()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnChangeColorBlueStart()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnChangeColorBlueVar()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnChangeColorEnd()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnCustomdrawFrequence(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
m_frequence = m_slider_frequence.GetPos();
UpdateData(FALSE);
UpdateParticles();
*pResult = 0;
}
void CDlgToolsParticles::OnCustomdrawAngle(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
m_angle = m_slider_angle.GetPos();
UpdateData(FALSE);
UpdateParticles();
*pResult = 0;
}
void CDlgToolsParticles::OnCustomdrawSliderLife(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
m_life = m_slider_life.GetPos()/100.0f;
UpdateData(FALSE);
UpdateParticles();
*pResult = 0;
}
void CDlgToolsParticles::OnCustomdrawSliderSpeed(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
m_speed = m_slider_speed.GetPos()/10.0f;
UpdateData(FALSE);
UpdateParticles();
*pResult = 0;
}
void CDlgToolsParticles::OnCustomdrawSliderGravityStart(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
m_gravity_start = (m_slider_gravity_start.GetPos()-1000)/100.0f;
UpdateData(FALSE);
UpdateParticles();
*pResult = 0;
}
void CDlgToolsParticles::OnCustomdrawSliderGravityEnd(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
m_gravity_end = (m_slider_gravity_end.GetPos()-1000)/100.0f;
UpdateData(FALSE);
UpdateParticles();
*pResult = 0;
}
void CDlgToolsParticles::OnCustomdrawSliderSizeStart(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
m_size_start = (m_slider_size_start.GetPos())/100.0f;
UpdateData(FALSE);
UpdateParticles();
*pResult = 0;
}
void CDlgToolsParticles::OnCustomdrawSliderSizeEnd(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
m_size_end = m_slider_size_end.GetPos()/100.0f;
UpdateData(FALSE);
UpdateParticles();
*pResult = 0;
}
void CDlgToolsParticles::OnCustomdrawSliderAlphaStart(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
m_alpha_start = m_slider_alpha_start.GetPos()/255.0f;
UpdateData(FALSE);
UpdateParticles();
*pResult = 0;
}
void CDlgToolsParticles::OnCustomdrawSliderAlphaEnd(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
m_alpha_end = m_slider_alpha_end.GetPos()/255.0f;
UpdateData(FALSE);
UpdateParticles();
*pResult = 0;
}
void CDlgToolsParticles::OnCustomdrawSliderColorRedStart(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
m_color_red_start = m_slider_color_red_start.GetPos()/255.0f;
UpdateData(FALSE);
UpdateParticles();
*pResult = 0;
}
void CDlgToolsParticles::OnCustomdrawSliderColorRedEnd(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
m_color_red_end = m_slider_color_red_end.GetPos()/255.0f;
UpdateData(FALSE);
UpdateParticles();
*pResult = 0;
}
void CDlgToolsParticles::OnCustomdrawSliderColorGreenStart(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
m_color_green_start = m_slider_color_green_start.GetPos()/255.0f;
UpdateData(FALSE);
UpdateParticles();
*pResult = 0;
}
void CDlgToolsParticles::OnCustomdrawSliderColorGreenEnd(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
m_color_green_end = m_slider_color_green_end.GetPos()/255.0f;
UpdateData(FALSE);
UpdateParticles();
*pResult = 0;
}
void CDlgToolsParticles::OnCustomdrawSliderColorBlueStart(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
m_color_blue_start = m_slider_color_blue_start.GetPos()/255.0f;
UpdateData(FALSE);
UpdateParticles();
*pResult = 0;
}
void CDlgToolsParticles::OnCustomdrawSliderColorBlueEnd(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
m_color_blue_end = m_slider_color_blue_end.GetPos()/255.0f;
UpdateData(FALSE);
UpdateParticles();
*pResult = 0;
}
void CDlgToolsParticles::OnCHECKAttractive()
{
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnCHECKColliding()
{
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnCHECKGathering()
{
// TODO: Add your control notification handler code here
UpdateParticles();
UpdateSeting();
}
void CDlgToolsParticles::OnBtnSave()
{
// TODO: Add your control notification handler code here
m_ptr_particles->Export();
}
void CDlgToolsParticles::OnBtnSaveAs()
{
// TODO: Add your control notification handler code here
m_ptr_particles->Export();
}
void CDlgToolsParticles::OnBtnImport()
{
// TODO: Add your control notification handler code here
}
void CDlgToolsParticles::OnButtonTexture()
{
// TODO: Add your control notification handler code here
UpdateData();
CDlgSelectImage dlg;
if(IDOK!=dlg.DoModal())
{
return;
}
m_str_texture = dlg.m_str_image;
m_ptr_particles->SetANI(m_nTextureIndex, (LPCSTR)m_str_texture, m_hasAlpha);
UpdateData(FALSE);
}
void CDlgToolsParticles::OnSelchangeComboTexture()
{
// TODO: Add your control notification handler code here
UpdateData();
m_str_texture = m_ptr_particles->GetANI(m_nTextureIndex);
m_hasAlpha = m_ptr_particles->IsANIHasAlpha(m_nTextureIndex);
UpdateData(FALSE);
}
void CDlgToolsParticles::OnSelendokComboAction()
{
// TODO: Add your control notification handler code here
UpdateData();
}
void CDlgToolsParticles::OnCustomdrawSliderPreviewLength(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
UpdateData();
*pResult = 0;
}
void CDlgToolsParticles::OnCustomdrawSliderPreviewSpeed(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
UpdateData();
*pResult = 0;
}
void CDlgToolsParticles::OnCheckTextureAlpha()
{
// TODO: Add your control notification handler code here
UpdateData();
m_ptr_particles->SetANIBlend(m_nTextureIndex, m_hasAlpha);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?