mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-17 19:56:38 -04:00
more progress of adaption .
This commit is contained in:
parent
ca20863dc1
commit
d2070318ed
4 changed files with 112 additions and 202 deletions
|
@ -71,9 +71,10 @@ BOOL CAITriggerAddDlg::OnInitDialog()
|
|||
CListBox* lb=(CListBox*)GetDlgItem(IDC_AITRIGGERS);
|
||||
|
||||
int i;
|
||||
for(i=0;i<ai.sections["AITriggerTypes"].values.size();i++)
|
||||
{
|
||||
lb->AddString(*ai.sections["AITriggerTypes"].GetValueName(i)+ (CString)" " +GetParam(*ai.sections["AITriggerTypes"].GetValue(i), 0));
|
||||
for (i = 0; i < ai["AITriggerTypes"].Size(); i++) {
|
||||
auto const& section = ai.GetSection("AITriggerTypes");
|
||||
auto const& valuePair = section.Nth(i);
|
||||
lb->AddString(valuePair.first + (CString)" " + GetParam(valuePair.second, 0));
|
||||
}
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue