From d1cfc8d5b2cd25782617c2bdfecb72aae7fab9fb Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 5 Jan 2000 15:33:27 +0000 Subject: Update the minifig wizard with the new pieces Added a function to read the update files cVS: ---------------------------------------------------------------------- git-svn-id: http://svn.leocad.org/trunk@49 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- win/Figdlg.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'win/Figdlg.cpp') diff --git a/win/Figdlg.cpp b/win/Figdlg.cpp index b209b4e..f819fca 100644 --- a/win/Figdlg.cpp +++ b/win/Figdlg.cpp @@ -131,7 +131,7 @@ BOOL CMinifigDlg::OnInitDialog() ((CComboBox*)GetDlgItem(i))->SetCurSel(0); ((CComboBox*)GetDlgItem(IDC_MF_HAT))->SetCurSel(6); ((CComboBox*)GetDlgItem(IDC_MF_HEAD))->SetCurSel(4); - ((CComboBox*)GetDlgItem(IDC_MF_TORSO))->SetCurSel(15); + ((CComboBox*)GetDlgItem(IDC_MF_TORSO))->SetCurSel(18); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE @@ -170,6 +170,9 @@ void CMinifigDlg::OnPieceSelEndOK(UINT nID) { m_pMFWnd->m_pFig->pos[0][2] = 3.92f; m_pMFWnd->m_pFig->pos[1][2] = 3.92f; + + if (strcmp (pInfo->m_strName,"4498") == 0) + m_pMFWnd->m_pFig->rot[3][2] = 180.0f; } else { @@ -237,6 +240,12 @@ void CMinifigDlg::OnPieceSelEndOK(UINT nID) { z = 1.24f; y = -0.34f; } if (strcmp (pInfo->m_strName,"3841") == 0) { z = 2.24f; y = -1.34f; rz = 180; } + if (strcmp (pInfo->m_strName,"4499") == 0) + { rz = 10; z = 1.52f; } + if (strcmp (pInfo->m_strName,"3852") == 0) + { rz = -90; x = 0.90f; y = -0.8f; z = 1.84f; } + if (strcmp (pInfo->m_strName,"30152") == 0) + { z = 3.06f; y = -2.16f; } if (nID == IDC_MF_TOOLR) x = -x; -- cgit v1.2.3