diff --git a/saco/unkclass5.cpp b/saco/unkclass5.cpp index 07848ec..22eb402 100644 --- a/saco/unkclass5.cpp +++ b/saco/unkclass5.cpp @@ -6,7 +6,7 @@ CUnkClass5::CUnkClass5(IDirect3DDevice9 *pD3DDevice) field_0 = 0; field_4 = 0; m_pD3DDevice = pD3DDevice; - field_28 = 0; + m_pDialog = NULL; field_30 = 0; field_14 = 640; field_18 = 300; @@ -26,3 +26,22 @@ CUnkClass5::CUnkClass5(IDirect3DDevice9 *pD3DDevice) field_258 = 0; field_254 = RakNet::GetTime(); } + +void CUnkClass5::ResetDialogControls(CDXUTDialog *pDialog) +{ + m_pDialog = pDialog; + + if(pDialog) { + m_pListBox = new CDXUTListBox(m_pDialog); + m_pDialog->AddControl(m_pListBox); + m_pListBox->SetLocation(2,2); + m_pListBox->SetSize(field_14-4,field_18-35); + m_pListBox->OnInit(); + m_pListBox->GetElement(0)->TextureColor.Init(D3DCOLOR_ARGB( 200, 255, 255, 255 )); + m_pListBox->SetEnabled(false); + m_pListBox->SetVisible(false); + m_pListBox->field_4D = 2; + m_pListBox->field_51 = field_23C; + m_pListBox->field_55 = field_240; + } +} diff --git a/saco/unkclass5.h b/saco/unkclass5.h index 08a55bf..ec3b34d 100644 --- a/saco/unkclass5.h +++ b/saco/unkclass5.h @@ -13,8 +13,8 @@ private: int field_1C; int field_20; char _gap24[4]; - int field_28; - char _gap2C[4]; + CDXUTDialog *m_pDialog; + CDXUTListBox *m_pListBox; int field_30; int field_34; char field_38[129]; @@ -33,4 +33,6 @@ private: public: CUnkClass5(IDirect3DDevice9 *pD3DDevice); + void ResetDialogControls(CDXUTDialog *pDialog); + };