mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[saco] Implement/match CUnkClass5::ResetDialogControls(...)
* Update CUnkClass5 constructor
This commit is contained in:
parent
dd43644768
commit
b0382f7076
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user